From d55aa59caf1fd0d1079dcd07cf1dfc419b437c7d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 12 Oct 2023 19:01:26 +0000 Subject: [PATCH 1/2] feat: added the route modifiers Users can now set optional conditions when calculating vehicle routes. PiperOrigin-RevId: 572934958 Source-Link: https://github.com/googleapis/googleapis/commit/d1ed9b8459d0a7b82681c3236ec904ffab23be7d Source-Link: https://github.com/googleapis/googleapis-gen/commit/797754860db7e2fea109f855062523e063e57603 Copy-Tag: eyJwIjoiamF2YS1vcHRpbWl6YXRpb24vLk93bEJvdC55YW1sIiwiaCI6Ijc5Nzc1NDg2MGRiN2UyZmVhMTA5Zjg1NTA2MjUyM2UwNjNlNTc2MDMifQ== --- .../optimization/v1/AsyncModelProto.java | 143 - .../BatchOptimizeToursResponseOrBuilder.java | 24 - .../v1/CapacityQuantityOrBuilder.java | 46 - .../optimization/v1/FleetRoutingProto.java | 1442 --- .../optimization/v1/FleetRoutingClient.java | 0 .../optimization/v1/FleetRoutingSettings.java | 1 + .../cloud/optimization/v1/gapic_metadata.json | 0 .../cloud/optimization/v1/package-info.java | 0 .../v1/stub/FleetRoutingStub.java | 0 .../v1/stub/FleetRoutingStubSettings.java | 0 .../stub/GrpcFleetRoutingCallableFactory.java | 0 .../v1/stub/GrpcFleetRoutingStub.java | 1 + .../HttpJsonFleetRoutingCallableFactory.java | 0 .../v1/stub/HttpJsonFleetRoutingStub.java | 1 + .../reflect-config.json | 18 + .../v1/FleetRoutingClientHttpJsonTest.java | 0 .../v1/FleetRoutingClientTest.java | 0 .../optimization/v1/MockFleetRouting.java | 0 .../optimization/v1/MockFleetRoutingImpl.java | 0 .../optimization/v1/FleetRoutingGrpc.java | 310 +- .../optimization/v1/AggregatedMetrics.java | 1545 ++- .../v1/AggregatedMetricsOrBuilder.java | 159 +- .../optimization/v1/AsyncModelMetadata.java | 645 +- .../v1/AsyncModelMetadataOrBuilder.java | 49 +- .../optimization/v1/AsyncModelProto.java | 124 + .../v1/BatchOptimizeToursRequest.java | 1412 +-- .../BatchOptimizeToursRequestOrBuilder.java | 70 +- .../v1/BatchOptimizeToursResponse.java | 248 +- .../BatchOptimizeToursResponseOrBuilder.java | 9 + .../cloud/optimization/v1/BreakRule.java | 2056 ++-- .../optimization/v1/BreakRuleOrBuilder.java | 71 +- .../optimization/v1/CapacityQuantity.java | 332 +- .../v1/CapacityQuantityInterval.java | 365 +- .../v1/CapacityQuantityIntervalOrBuilder.java | 28 +- .../v1/CapacityQuantityOrBuilder.java | 27 + .../cloud/optimization/v1/DataFormat.java | 82 +- .../cloud/optimization/v1/DistanceLimit.java | 413 +- .../v1/DistanceLimitOrBuilder.java | 42 +- .../optimization/v1/FleetRoutingProto.java | 1153 +++ .../cloud/optimization/v1/GcsDestination.java | 315 +- .../v1/GcsDestinationOrBuilder.java | 27 +- .../cloud/optimization/v1/GcsSource.java | 312 +- .../optimization/v1/GcsSourceOrBuilder.java | 27 +- .../v1/InjectedSolutionConstraint.java | 2446 ++--- .../InjectedSolutionConstraintOrBuilder.java | 98 +- .../cloud/optimization/v1/InputConfig.java | 424 +- .../optimization/v1/InputConfigOrBuilder.java | 32 +- .../cloud/optimization/v1/Location.java | 358 +- .../optimization/v1/LocationOrBuilder.java | 32 +- .../optimization/v1/OptimizeToursRequest.java | 1784 ++-- .../v1/OptimizeToursRequestOrBuilder.java | 171 +- .../v1/OptimizeToursResponse.java | 2069 ++--- .../v1/OptimizeToursResponseOrBuilder.java | 119 +- .../v1/OptimizeToursValidationError.java | 1673 ++-- ...OptimizeToursValidationErrorOrBuilder.java | 95 +- .../cloud/optimization/v1/OutputConfig.java | 425 +- .../v1/OutputConfigOrBuilder.java | 32 +- .../cloud/optimization/v1/RouteModifiers.java | 783 ++ .../v1/RouteModifiersOrBuilder.java | 57 + .../cloud/optimization/v1/Shipment.java | 4084 +++----- .../cloud/optimization/v1/ShipmentModel.java | 7003 +++++--------- .../v1/ShipmentModelOrBuilder.java | 349 +- .../optimization/v1/ShipmentOrBuilder.java | 201 +- .../cloud/optimization/v1/ShipmentRoute.java | 8254 ++++++----------- .../v1/ShipmentRouteOrBuilder.java | 303 +- .../v1/ShipmentTypeIncompatibility.java | 541 +- .../ShipmentTypeIncompatibilityOrBuilder.java | 53 +- .../v1/ShipmentTypeRequirement.java | 648 +- .../v1/ShipmentTypeRequirementOrBuilder.java | 68 +- .../optimization/v1/SkippedShipment.java | 1046 +-- .../v1/SkippedShipmentOrBuilder.java | 48 +- .../cloud/optimization/v1/TimeWindow.java | 691 +- .../optimization/v1/TimeWindowOrBuilder.java | 62 +- .../optimization/v1/TransitionAttributes.java | 790 +- .../v1/TransitionAttributesOrBuilder.java | 76 +- .../google/cloud/optimization/v1/Vehicle.java | 5983 +++++------- .../optimization/v1/VehicleOrBuilder.java | 479 +- .../cloud/optimization/v1/Waypoint.java | 503 +- .../optimization/v1/WaypointOrBuilder.java | 41 +- .../cloud/optimization/v1/async_model.proto | 0 .../cloud/optimization/v1/fleet_routing.proto | 37 + .../AsyncBatchOptimizeTours.java | 0 .../AsyncBatchOptimizeToursLRO.java | 0 .../SyncBatchOptimizeTours.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../optimizetours/AsyncOptimizeTours.java | 0 .../optimizetours/SyncOptimizeTours.java | 0 .../optimizetours/SyncOptimizeTours.java | 0 .../optimizetours/SyncOptimizeTours.java | 0 91 files changed, 19366 insertions(+), 33989 deletions(-) delete mode 100644 java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java delete mode 100644 java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java delete mode 100644 java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java delete mode 100644 java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java (99%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java (99%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java (99%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json (99%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java (67%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java (67%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java (83%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java (70%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java (76%) create mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java (62%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java (51%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java (62%) create mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java (66%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java (66%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java (65%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java (68%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java (56%) create mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java (66%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java (76%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java (66%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java (50%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java (65%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java (50%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java (68%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java (72%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java (69%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java (71%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java (70%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java (71%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java (83%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java (93%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java (74%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java (77%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java (77%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java (90%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java (69%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java create mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java (78%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java (73%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java (86%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java (90%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java (73%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java (80%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java (66%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java (61%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java (71%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java (74%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java (75%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java (73%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java (76%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java (87%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java (75%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java (84%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java (76%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java (84%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java (71%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java (74%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto (98%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java (100%) rename {java-optimization => owl-bot-staging/java-optimization/v1}/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java (100%) diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java deleted file mode 100644 index 61589a1d4494..000000000000 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/optimization/v1/async_model.proto - -package com.google.cloud.optimization.v1; - -public final class AsyncModelProto { - private AsyncModelProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/optimization/v1/async_mod" - + "el.proto\022\034google.cloud.optimization.v1\032\037" - + "google/api/field_behavior.proto\032\037google/" - + "protobuf/timestamp.proto\"\225\001\n\013InputConfig" - + "\022=\n\ngcs_source\030\001 \001(\0132\'.google.cloud.opti" - + "mization.v1.GcsSourceH\000\022=\n\013data_format\030\002" - + " \001(\0162(.google.cloud.optimization.v1.Data" - + "FormatB\010\n\006source\"\245\001\n\014OutputConfig\022G\n\017gcs" - + "_destination\030\001 \001(\0132,.google.cloud.optimi" - + "zation.v1.GcsDestinationH\000\022=\n\013data_forma" - + "t\030\002 \001(\0162(.google.cloud.optimization.v1.D" - + "ataFormatB\r\n\013destination\"\036\n\tGcsSource\022\021\n" - + "\003uri\030\001 \001(\tB\004\342A\001\002\"#\n\016GcsDestination\022\021\n\003ur" - + "i\030\001 \001(\tB\004\342A\001\002\"\253\002\n\022AsyncModelMetadata\022E\n\005" - + "state\030\001 \001(\01626.google.cloud.optimization." - + "v1.AsyncModelMetadata.State\022\025\n\rstate_mes" - + "sage\030\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google" - + ".protobuf.Timestamp\022/\n\013update_time\030\004 \001(\013" - + "2\032.google.protobuf.Timestamp\"U\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUC" - + "CEEDED\020\002\022\r\n\tCANCELLED\020\003\022\n\n\006FAILED\020\004*?\n\nD" - + "ataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010" - + "\n\004JSON\020\001\022\n\n\006STRING\020\002B{\n com.google.cloud" - + ".optimization.v1B\017AsyncModelProtoP\001ZDclo" - + "ud.google.com/go/optimization/apiv1/opti" - + "mizationpb;optimizationpbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_optimization_v1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_InputConfig_descriptor, - new java.lang.String[] { - "GcsSource", "DataFormat", "Source", - }); - internal_static_google_cloud_optimization_v1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "DataFormat", "Destination", - }); - internal_static_google_cloud_optimization_v1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_GcsSource_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_optimization_v1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor, - new java.lang.String[] { - "State", "StateMessage", "CreateTime", "UpdateTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java deleted file mode 100644 index 2be77d0d900f..000000000000 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/optimization/v1/fleet_routing.proto - -package com.google.cloud.optimization.v1; - -public interface BatchOptimizeToursResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BatchOptimizeToursResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java deleted file mode 100644 index 348ff803ec94..000000000000 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/optimization/v1/fleet_routing.proto - -package com.google.cloud.optimization.v1; - -@java.lang.Deprecated -public interface CapacityQuantityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.CapacityQuantity) - com.google.protobuf.MessageOrBuilder { - - /** - * string type = 1; - * - * @return The type. - */ - java.lang.String getType(); - /** - * string type = 1; - * - * @return The bytes for type. - */ - com.google.protobuf.ByteString getTypeBytes(); - - /** - * int64 value = 2; - * - * @return The value. - */ - long getValue(); -} diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java deleted file mode 100644 index 1776db6fc382..000000000000 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java +++ /dev/null @@ -1,1442 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/optimization/v1/fleet_routing.proto - -package com.google.cloud.optimization.v1; - -public final class FleetRoutingProto { - private FleetRoutingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_TimeWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Waypoint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Location_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BreakRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/optimization/v1/fleet_rou" - + "ting.proto\022\034google.cloud.optimization.v1" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032.google/cloud/optimization/v1/a" - + "sync_model.proto\032#google/longrunning/ope" - + "rations.proto\032\036google/protobuf/duration." - + "proto\032\037google/protobuf/timestamp.proto\032\030" - + "google/type/latlng.proto\"\245\t\n\024OptimizeTou" - + "rsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022*\n\007timeo" - + "ut\030\002 \001(\0132\031.google.protobuf.Duration\022:\n\005m" - + "odel\030\003 \001(\0132+.google.cloud.optimization.v" - + "1.ShipmentModel\022T\n\014solving_mode\030\004 \001(\0162>." - + "google.cloud.optimization.v1.OptimizeTou" - + "rsRequest.SolvingMode\022R\n\013search_mode\030\006 \001" - + "(\0162=.google.cloud.optimization.v1.Optimi" - + "zeToursRequest.SearchMode\022S\n\036injected_fi" - + "rst_solution_routes\030\007 \003(\0132+.google.cloud" - + ".optimization.v1.ShipmentRoute\022^\n\034inject" - + "ed_solution_constraint\030\010 \001(\01328.google.cl" - + "oud.optimization.v1.InjectedSolutionCons" - + "traint\022K\n\026refresh_details_routes\030\t \003(\0132+" - + ".google.cloud.optimization.v1.ShipmentRo" - + "ute\0221\n)interpret_injected_solutions_usin" - + "g_labels\030\n \001(\010\022\035\n\025consider_road_traffic\030" - + "\013 \001(\010\022\032\n\022populate_polylines\030\014 \001(\010\022%\n\035pop" - + "ulate_transition_polylines\030\r \001(\010\0226\n.allo" - + "w_large_deadline_despite_interruption_ri" - + "sk\030\016 \001(\010\022\036\n\026use_geodesic_distances\030\017 \001(\010" - + "\022\'\n\032geodesic_meters_per_second\030\020 \001(\001H\000\210\001" - + "\001\022\"\n\025max_validation_errors\030\005 \001(\005H\001\210\001\001\022\r\n" - + "\005label\030\021 \001(\t\022*\n\036populate_travel_step_pol" - + "ylines\030\024 \001(\010B\002\030\001\"Y\n\013SolvingMode\022\021\n\rDEFAU" - + "LT_SOLVE\020\000\022\021\n\rVALIDATE_ONLY\020\001\022$\n DETECT_" - + "SOME_INFEASIBLE_SHIPMENTS\020\002\"Z\n\nSearchMod" - + "e\022\033\n\027SEARCH_MODE_UNSPECIFIED\020\000\022\017\n\013RETURN" - + "_FAST\020\001\022\036\n\032CONSUME_ALL_AVAILABLE_TIME\020\002B" - + "\035\n\033_geodesic_meters_per_secondB\030\n\026_max_v" - + "alidation_errors\"\256\006\n\025OptimizeToursRespon" - + "se\022;\n\006routes\030\001 \003(\0132+.google.cloud.optimi" - + "zation.v1.ShipmentRoute\022\025\n\rrequest_label" - + "\030\003 \001(\t\022H\n\021skipped_shipments\030\004 \003(\0132-.goog" - + "le.cloud.optimization.v1.SkippedShipment" - + "\022U\n\021validation_errors\030\005 \003(\0132:.google.clo" - + "ud.optimization.v1.OptimizeToursValidati" - + "onError\022L\n\007metrics\030\006 \001(\0132;.google.cloud." - + "optimization.v1.OptimizeToursResponse.Me" - + "trics\022\026\n\ntotal_cost\030\002 \001(\001B\002\030\001\032\271\003\n\007Metric" - + "s\022Q\n\030aggregated_route_metrics\030\001 \001(\0132/.go" - + "ogle.cloud.optimization.v1.AggregatedMet" - + "rics\022(\n skipped_mandatory_shipment_count" - + "\030\002 \001(\005\022\032\n\022used_vehicle_count\030\003 \001(\005\022?\n\033ea" - + "rliest_vehicle_start_time\030\004 \001(\0132\032.google" - + ".protobuf.Timestamp\022;\n\027latest_vehicle_en" - + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" - + "\022U\n\005costs\030\n \003(\0132F.google.cloud.optimizat" - + "ion.v1.OptimizeToursResponse.Metrics.Cos" - + "tsEntry\022\022\n\ntotal_cost\030\006 \001(\001\032,\n\nCostsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\357\002\n\031Ba" - + "tchOptimizeToursRequest\022\024\n\006parent\030\001 \001(\tB" - + "\004\342A\001\002\022e\n\rmodel_configs\030\002 \003(\0132H.google.cl" - + "oud.optimization.v1.BatchOptimizeToursRe" - + "quest.AsyncModelConfigB\004\342A\001\002\032\324\001\n\020AsyncMo" - + "delConfig\022\024\n\014display_name\030\001 \001(\t\022E\n\014input" - + "_config\030\002 \001(\0132).google.cloud.optimizatio" - + "n.v1.InputConfigB\004\342A\001\002\022G\n\routput_config\030" - + "\003 \001(\0132*.google.cloud.optimization.v1.Out" - + "putConfigB\004\342A\001\002\022\032\n\022enable_checkpoints\030\004 " - + "\001(\010\"\034\n\032BatchOptimizeToursResponse\"\237\017\n\rSh" - + "ipmentModel\0229\n\tshipments\030\001 \003(\0132&.google." - + "cloud.optimization.v1.Shipment\0227\n\010vehicl" - + "es\030\002 \003(\0132%.google.cloud.optimization.v1." - + "Vehicle\022 \n\023max_active_vehicles\030\004 \001(\005H\000\210\001" - + "\001\0225\n\021global_start_time\030\005 \001(\0132\032.google.pr" - + "otobuf.Timestamp\0223\n\017global_end_time\030\006 \001(" - + "\0132\032.google.protobuf.Timestamp\022%\n\035global_" - + "duration_cost_per_hour\030\007 \001(\001\022f\n\032duration" - + "_distance_matrices\030\010 \003(\0132B.google.cloud." - + "optimization.v1.ShipmentModel.DurationDi" - + "stanceMatrix\022)\n!duration_distance_matrix" - + "_src_tags\030\t \003(\t\022)\n!duration_distance_mat" - + "rix_dst_tags\030\n \003(\t\022Q\n\025transition_attribu" - + "tes\030\013 \003(\01322.google.cloud.optimization.v1" - + ".TransitionAttributes\022b\n\037shipment_type_i" - + "ncompatibilities\030\014 \003(\01329.google.cloud.op" - + "timization.v1.ShipmentTypeIncompatibilit" - + "y\022Y\n\032shipment_type_requirements\030\r \003(\01325." - + "google.cloud.optimization.v1.ShipmentTyp" - + "eRequirement\022T\n\020precedence_rules\030\016 \003(\0132:" - + ".google.cloud.optimization.v1.ShipmentMo" - + "del.PrecedenceRule\022N\n\013break_rules\030\017 \003(\0132" - + "5.google.cloud.optimization.v1.ShipmentM" - + "odel.BreakRuleB\002\030\001\032\316\001\n\026DurationDistanceM" - + "atrix\022T\n\004rows\030\001 \003(\0132F.google.cloud.optim" - + "ization.v1.ShipmentModel.DurationDistanc" - + "eMatrix.Row\022\031\n\021vehicle_start_tag\030\002 \001(\t\032C" - + "\n\003Row\022,\n\tdurations\030\001 \003(\0132\031.google.protob" - + "uf.Duration\022\016\n\006meters\030\002 \003(\001\032\321\001\n\016Preceden" - + "ceRule\022\030\n\013first_index\030\001 \001(\005H\000\210\001\001\022\031\n\021firs" - + "t_is_delivery\030\003 \001(\010\022\031\n\014second_index\030\002 \001(" - + "\005H\001\210\001\001\022\032\n\022second_is_delivery\030\004 \001(\010\0222\n\017of" - + "fset_duration\030\005 \001(\0132\031.google.protobuf.Du" - + "rationB\016\n\014_first_indexB\017\n\r_second_index\032" - + "\261\004\n\tBreakRule\022Z\n\016break_requests\030\001 \003(\0132B." - + "google.cloud.optimization.v1.ShipmentMod" - + "el.BreakRule.BreakRequest\022h\n\025frequency_c" - + "onstraints\030\002 \003(\0132I.google.cloud.optimiza" - + "tion.v1.ShipmentModel.BreakRule.Frequenc" - + "yConstraint\032\301\001\n\014BreakRequest\022=\n\023earliest" - + "_start_time\030\001 \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\002\022;\n\021latest_start_time\030\002 \001(\0132\032" - + ".google.protobuf.TimestampB\004\342A\001\002\0225\n\014min_" - + "duration\030\003 \001(\0132\031.google.protobuf.Duratio" - + "nB\004\342A\001\002\032\225\001\n\023FrequencyConstraint\022;\n\022min_b" - + "reak_duration\030\001 \001(\0132\031.google.protobuf.Du" - + "rationB\004\342A\001\002\022A\n\030max_inter_break_duration" - + "\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\002:" - + "\002\030\001B\026\n\024_max_active_vehicles\"\200\014\n\010Shipment" - + "\022D\n\007pickups\030\001 \003(\01323.google.cloud.optimiz" - + "ation.v1.Shipment.VisitRequest\022G\n\ndelive" - + "ries\030\002 \003(\01323.google.cloud.optimization.v" - + "1.Shipment.VisitRequest\022M\n\014load_demands\030" - + "\016 \003(\01327.google.cloud.optimization.v1.Shi" - + "pment.LoadDemandsEntry\022\031\n\014penalty_cost\030\004" - + " \001(\001H\000\210\001\001\022\037\n\027allowed_vehicle_indices\030\005 \003" - + "(\005\022\031\n\021costs_per_vehicle\030\006 \003(\001\022!\n\031costs_p" - + "er_vehicle_indices\030\007 \003(\005\0225\n(pickup_to_de" - + "livery_relative_detour_limit\030\010 \001(\001H\001\210\001\001\022" - + "K\n(pickup_to_delivery_absolute_detour_li" - + "mit\030\t \001(\0132\031.google.protobuf.Duration\022@\n\035" - + "pickup_to_delivery_time_limit\030\n \001(\0132\031.go" - + "ogle.protobuf.Duration\022\025\n\rshipment_type\030" - + "\013 \001(\t\022\r\n\005label\030\014 \001(\t\022\016\n\006ignore\030\r \001(\010\022C\n\007" - + "demands\030\003 \003(\0132..google.cloud.optimizatio" - + "n.v1.CapacityQuantityB\002\030\001\032\243\005\n\014VisitReque" - + "st\022-\n\020arrival_location\030\001 \001(\0132\023.google.ty" - + "pe.LatLng\022@\n\020arrival_waypoint\030\002 \001(\0132&.go" - + "ogle.cloud.optimization.v1.Waypoint\022/\n\022d" - + "eparture_location\030\003 \001(\0132\023.google.type.La" - + "tLng\022B\n\022departure_waypoint\030\004 \001(\0132&.googl" - + "e.cloud.optimization.v1.Waypoint\022\014\n\004tags" - + "\030\005 \003(\t\022>\n\014time_windows\030\006 \003(\0132(.google.cl" - + "oud.optimization.v1.TimeWindow\022+\n\010durati" - + "on\030\007 \001(\0132\031.google.protobuf.Duration\022\014\n\004c" - + "ost\030\010 \001(\001\022Z\n\014load_demands\030\014 \003(\0132D.google" - + ".cloud.optimization.v1.Shipment.VisitReq" - + "uest.LoadDemandsEntry\022\023\n\013visit_types\030\n \003" - + "(\t\022\r\n\005label\030\013 \001(\t\022C\n\007demands\030\t \003(\0132..goo" - + "gle.cloud.optimization.v1.CapacityQuanti" - + "tyB\002\030\001\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001 \001(\t\022" - + ":\n\005value\030\002 \001(\0132+.google.cloud.optimizati" - + "on.v1.Shipment.Load:\0028\001\032\026\n\004Load\022\016\n\006amoun" - + "t\030\002 \001(\003\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001 \001(\t" - + "\022:\n\005value\030\002 \001(\0132+.google.cloud.optimizat" - + "ion.v1.Shipment.Load:\0028\001B\017\n\r_penalty_cos" - + "tB+\n)_pickup_to_delivery_relative_detour" - + "_limit\"\242\002\n\033ShipmentTypeIncompatibility\022\r" - + "\n\005types\030\001 \003(\t\022k\n\024incompatibility_mode\030\002 " - + "\001(\0162M.google.cloud.optimization.v1.Shipm" - + "entTypeIncompatibility.IncompatibilityMo" - + "de\"\206\001\n\023IncompatibilityMode\022$\n INCOMPATIB" - + "ILITY_MODE_UNSPECIFIED\020\000\022!\n\035NOT_PERFORME" - + "D_BY_SAME_VEHICLE\020\001\022&\n\"NOT_IN_SAME_VEHIC" - + "LE_SIMULTANEOUSLY\020\002\"\350\002\n\027ShipmentTypeRequ" - + "irement\022+\n#required_shipment_type_altern" - + "atives\030\001 \003(\t\022 \n\030dependent_shipment_types" - + "\030\002 \003(\t\022_\n\020requirement_mode\030\003 \001(\0162E.googl" - + "e.cloud.optimization.v1.ShipmentTypeRequ" - + "irement.RequirementMode\"\234\001\n\017RequirementM" - + "ode\022 \n\034REQUIREMENT_MODE_UNSPECIFIED\020\000\022\035\n" - + "\031PERFORMED_BY_SAME_VEHICLE\020\001\022\"\n\036IN_SAME_" - + "VEHICLE_AT_PICKUP_TIME\020\002\022$\n IN_SAME_VEHI" - + "CLE_AT_DELIVERY_TIME\020\003\"\316\024\n\007Vehicle\022E\n\013tr" - + "avel_mode\030\001 \001(\01620.google.cloud.optimizat" - + "ion.v1.Vehicle.TravelMode\022+\n\016start_locat" - + "ion\030\003 \001(\0132\023.google.type.LatLng\022>\n\016start_" - + "waypoint\030\004 \001(\0132&.google.cloud.optimizati" - + "on.v1.Waypoint\022)\n\014end_location\030\005 \001(\0132\023.g" - + "oogle.type.LatLng\022<\n\014end_waypoint\030\006 \001(\0132" - + "&.google.cloud.optimization.v1.Waypoint\022" - + "\022\n\nstart_tags\030\007 \003(\t\022\020\n\010end_tags\030\010 \003(\t\022D\n" - + "\022start_time_windows\030\t \003(\0132(.google.cloud" - + ".optimization.v1.TimeWindow\022B\n\020end_time_" - + "windows\030\n \003(\0132(.google.cloud.optimizatio" - + "n.v1.TimeWindow\022%\n\030travel_duration_multi" - + "ple\030\013 \001(\001H\000\210\001\001\022O\n\020unloading_policy\030\014 \001(\016" - + "25.google.cloud.optimization.v1.Vehicle." - + "UnloadingPolicy\022J\n\013load_limits\030\036 \003(\01325.g" - + "oogle.cloud.optimization.v1.Vehicle.Load" - + "LimitsEntry\022\025\n\rcost_per_hour\030\020 \001(\001\022\036\n\026co" - + "st_per_traveled_hour\030\021 \001(\001\022\032\n\022cost_per_k" - + "ilometer\030\022 \001(\001\022\022\n\nfixed_cost\030\023 \001(\001\022\036\n\026us" - + "ed_if_route_is_empty\030\024 \001(\010\022Q\n\024route_dura" - + "tion_limit\030\025 \001(\01323.google.cloud.optimiza" - + "tion.v1.Vehicle.DurationLimit\022R\n\025travel_" - + "duration_limit\030\026 \001(\01323.google.cloud.opti" - + "mization.v1.Vehicle.DurationLimit\022I\n\024rou" - + "te_distance_limit\030\027 \001(\0132+.google.cloud.o" - + "ptimization.v1.DistanceLimit\022v\n#extra_vi" - + "sit_duration_for_visit_type\030\030 \003(\0132I.goog" - + "le.cloud.optimization.v1.Vehicle.ExtraVi" - + "sitDurationForVisitTypeEntry\022;\n\nbreak_ru" - + "le\030\031 \001(\0132\'.google.cloud.optimization.v1." - + "BreakRule\022\r\n\005label\030\033 \001(\t\022\016\n\006ignore\030\034 \001(\010" - + "\022\036\n\022break_rule_indices\030\035 \003(\005B\002\030\001\022F\n\ncapa" - + "cities\030\r \003(\0132..google.cloud.optimization" - + ".v1.CapacityQuantityB\002\030\001\022X\n\024start_load_i" - + "ntervals\030\016 \003(\01326.google.cloud.optimizati" - + "on.v1.CapacityQuantityIntervalB\002\030\001\022V\n\022en" - + "d_load_intervals\030\017 \003(\01326.google.cloud.op" - + "timization.v1.CapacityQuantityIntervalB\002" - + "\030\001\032\313\002\n\tLoadLimit\022\025\n\010max_load\030\001 \001(\003H\000\210\001\001\022" - + "\025\n\rsoft_max_load\030\002 \001(\003\022$\n\034cost_per_unit_" - + "above_soft_max\030\003 \001(\001\022U\n\023start_load_inter" - + "val\030\004 \001(\01328.google.cloud.optimization.v1" - + ".Vehicle.LoadLimit.Interval\022S\n\021end_load_" - + "interval\030\005 \001(\01328.google.cloud.optimizati" - + "on.v1.Vehicle.LoadLimit.Interval\0321\n\010Inte" - + "rval\022\013\n\003min\030\001 \001(\003\022\020\n\003max\030\002 \001(\003H\000\210\001\001B\006\n\004_" - + "maxB\013\n\t_max_load\032\360\002\n\rDurationLimit\022/\n\014ma" - + "x_duration\030\001 \001(\0132\031.google.protobuf.Durat" - + "ion\0224\n\021soft_max_duration\030\002 \001(\0132\031.google." - + "protobuf.Duration\022)\n\034cost_per_hour_after" - + "_soft_max\030\003 \001(\001H\000\210\001\001\022>\n\033quadratic_soft_m" - + "ax_duration\030\004 \001(\0132\031.google.protobuf.Dura" - + "tion\022:\n-cost_per_square_hour_after_quadr" - + "atic_soft_max\030\005 \001(\001H\001\210\001\001B\037\n\035_cost_per_ho" - + "ur_after_soft_maxB0\n._cost_per_square_ho" - + "ur_after_quadratic_soft_max\032b\n\017LoadLimit" - + "sEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.goo" - + "gle.cloud.optimization.v1.Vehicle.LoadLi" - + "mit:\0028\001\032`\n#ExtraVisitDurationForVisitTyp" - + "eEntry\022\013\n\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.goo" - + "gle.protobuf.Duration:\0028\001\"C\n\nTravelMode\022" - + "\033\n\027TRAVEL_MODE_UNSPECIFIED\020\000\022\013\n\007DRIVING\020" - + "\001\022\013\n\007WALKING\020\002\"b\n\017UnloadingPolicy\022 \n\034UNL" - + "OADING_POLICY_UNSPECIFIED\020\000\022\025\n\021LAST_IN_F" - + "IRST_OUT\020\001\022\026\n\022FIRST_IN_FIRST_OUT\020\002B\033\n\031_t" - + "ravel_duration_multiple\"\204\003\n\nTimeWindow\022." - + "\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" - + "uf.Timestamp\0223\n\017soft_start_time\030\003 \001(\0132\032." - + "google.protobuf.Timestamp\0221\n\rsoft_end_ti" - + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\0221\n$" - + "cost_per_hour_before_soft_start_time\030\005 \001" - + "(\001H\000\210\001\001\022.\n!cost_per_hour_after_soft_end_" - + "time\030\006 \001(\001H\001\210\001\001B\'\n%_cost_per_hour_before" - + "_soft_start_timeB$\n\"_cost_per_hour_after" - + "_soft_end_time\"3\n\020CapacityQuantity\022\014\n\004ty" - + "pe\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\002\030\001\"x\n\030CapacityQ" - + "uantityInterval\022\014\n\004type\030\001 \001(\t\022\026\n\tmin_val" - + "ue\030\002 \001(\003H\000\210\001\001\022\026\n\tmax_value\030\003 \001(\003H\001\210\001\001:\002\030" - + "\001B\014\n\n_min_valueB\014\n\n_max_value\"\225\002\n\rDistan" - + "ceLimit\022\027\n\nmax_meters\030\001 \001(\003H\000\210\001\001\022\034\n\017soft" - + "_max_meters\030\002 \001(\003H\001\210\001\001\022.\n!cost_per_kilom" - + "eter_below_soft_max\030\004 \001(\001H\002\210\001\001\022.\n!cost_p" - + "er_kilometer_above_soft_max\030\003 \001(\001H\003\210\001\001B\r" - + "\n\013_max_metersB\022\n\020_soft_max_metersB$\n\"_co" - + "st_per_kilometer_below_soft_maxB$\n\"_cost" - + "_per_kilometer_above_soft_max\"\205\002\n\024Transi" - + "tionAttributes\022\017\n\007src_tag\030\001 \001(\t\022\030\n\020exclu" - + "ded_src_tag\030\002 \001(\t\022\017\n\007dst_tag\030\003 \001(\t\022\030\n\020ex" - + "cluded_dst_tag\030\004 \001(\t\022\014\n\004cost\030\005 \001(\001\022\032\n\022co" - + "st_per_kilometer\030\006 \001(\001\022C\n\016distance_limit" - + "\030\007 \001(\0132+.google.cloud.optimization.v1.Di" - + "stanceLimit\022(\n\005delay\030\010 \001(\0132\031.google.prot" - + "obuf.Duration\"\201\001\n\010Waypoint\022:\n\010location\030\001" - + " \001(\0132&.google.cloud.optimization.v1.Loca" - + "tionH\000\022\022\n\010place_id\030\002 \001(\tH\000\022\024\n\014side_of_ro" - + "ad\030\003 \001(\010B\017\n\rlocation_type\"R\n\010Location\022$\n" - + "\007lat_lng\030\001 \001(\0132\023.google.type.LatLng\022\024\n\007h" - + "eading\030\002 \001(\005H\000\210\001\001B\n\n\010_heading\"\221\004\n\tBreakR" - + "ule\022L\n\016break_requests\030\001 \003(\01324.google.clo" - + "ud.optimization.v1.BreakRule.BreakReques" - + "t\022Z\n\025frequency_constraints\030\002 \003(\0132;.googl" - + "e.cloud.optimization.v1.BreakRule.Freque" - + "ncyConstraint\032\301\001\n\014BreakRequest\022=\n\023earlie" - + "st_start_time\030\001 \001(\0132\032.google.protobuf.Ti" - + "mestampB\004\342A\001\002\022;\n\021latest_start_time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampB\004\342A\001\002\0225\n\014mi" - + "n_duration\030\003 \001(\0132\031.google.protobuf.Durat" - + "ionB\004\342A\001\002\032\225\001\n\023FrequencyConstraint\022;\n\022min" - + "_break_duration\030\001 \001(\0132\031.google.protobuf." - + "DurationB\004\342A\001\002\022A\n\030max_inter_break_durati" - + "on\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001" - + "\002\"\303\026\n\rShipmentRoute\022\025\n\rvehicle_index\030\001 \001" - + "(\005\022\025\n\rvehicle_label\030\002 \001(\t\0226\n\022vehicle_sta" - + "rt_time\030\005 \001(\0132\032.google.protobuf.Timestam" - + "p\0224\n\020vehicle_end_time\030\006 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022A\n\006visits\030\007 \003(\01321.google" - + ".cloud.optimization.v1.ShipmentRoute.Vis" - + "it\022K\n\013transitions\030\010 \003(\01326.google.cloud.o" - + "ptimization.v1.ShipmentRoute.Transition\022" - + "#\n\033has_traffic_infeasibilities\030\t \001(\010\022S\n\016" - + "route_polyline\030\n \001(\0132;.google.cloud.opti" - + "mization.v1.ShipmentRoute.EncodedPolylin" - + "e\022A\n\006breaks\030\013 \003(\01321.google.cloud.optimiz" - + "ation.v1.ShipmentRoute.Break\022@\n\007metrics\030" - + "\014 \001(\0132/.google.cloud.optimization.v1.Agg" - + "regatedMetrics\022P\n\013route_costs\030\021 \003(\0132;.go" - + "ogle.cloud.optimization.v1.ShipmentRoute" - + ".RouteCostsEntry\022\030\n\020route_total_cost\030\022 \001" - + "(\001\022E\n\tend_loads\030\r \003(\0132..google.cloud.opt" - + "imization.v1.CapacityQuantityB\002\030\001\022P\n\014tra" - + "vel_steps\030\016 \003(\01326.google.cloud.optimizat" - + "ion.v1.ShipmentRoute.TravelStepB\002\030\001\0225\n\016v" - + "ehicle_detour\030\017 \001(\0132\031.google.protobuf.Du" - + "rationB\002\030\001\022W\n\030delay_before_vehicle_end\030\020" - + " \001(\01321.google.cloud.optimization.v1.Ship" - + "mentRoute.DelayB\002\030\001\032h\n\005Delay\022.\n\nstart_ti" - + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\022+\n\010" - + "duration\030\002 \001(\0132\031.google.protobuf.Duratio" - + "n:\002\030\001\032\365\004\n\005Visit\022\026\n\016shipment_index\030\001 \001(\005\022" - + "\021\n\tis_pickup\030\002 \001(\010\022\033\n\023visit_request_inde" - + "x\030\003 \001(\005\022.\n\nstart_time\030\004 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022X\n\014load_demands\030\013 \003(\0132B." - + "google.cloud.optimization.v1.ShipmentRou" - + "te.Visit.LoadDemandsEntry\022)\n\006detour\030\006 \001(" - + "\0132\031.google.protobuf.Duration\022\026\n\016shipment" - + "_label\030\007 \001(\t\022\023\n\013visit_label\030\010 \001(\t\022I\n\rarr" - + "ival_loads\030\t \003(\0132..google.cloud.optimiza" - + "tion.v1.CapacityQuantityB\002\030\001\022Q\n\022delay_be" - + "fore_start\030\n \001(\01321.google.cloud.optimiza" - + "tion.v1.ShipmentRoute.DelayB\002\030\001\022C\n\007deman" - + "ds\030\005 \003(\0132..google.cloud.optimization.v1." - + "CapacityQuantityB\002\030\001\032_\n\020LoadDemandsEntry" - + "\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google.cl" - + "oud.optimization.v1.Shipment.Load:\0028\001\032\344\005" - + "\n\nTransition\0222\n\017travel_duration\030\001 \001(\0132\031." - + "google.protobuf.Duration\022\036\n\026travel_dista" - + "nce_meters\030\002 \001(\001\022 \n\030traffic_info_unavail" - + "able\030\003 \001(\010\0221\n\016delay_duration\030\004 \001(\0132\031.goo" - + "gle.protobuf.Duration\0221\n\016break_duration\030" - + "\005 \001(\0132\031.google.protobuf.Duration\0220\n\rwait" - + "_duration\030\006 \001(\0132\031.google.protobuf.Durati" - + "on\0221\n\016total_duration\030\007 \001(\0132\031.google.prot" - + "obuf.Duration\022.\n\nstart_time\030\010 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022S\n\016route_polyline\030" - + "\t \001(\0132;.google.cloud.optimization.v1.Shi" - + "pmentRoute.EncodedPolyline\022_\n\rvehicle_lo" - + "ads\030\013 \003(\0132H.google.cloud.optimization.v1" - + ".ShipmentRoute.Transition.VehicleLoadsEn" - + "try\022A\n\005loads\030\n \003(\0132..google.cloud.optimi" - + "zation.v1.CapacityQuantityB\002\030\001\032l\n\021Vehicl" - + "eLoadsEntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\0132" - + "7.google.cloud.optimization.v1.ShipmentR" - + "oute.VehicleLoad:\0028\001\032\035\n\013VehicleLoad\022\016\n\006a" - + "mount\030\001 \001(\003\032!\n\017EncodedPolyline\022\016\n\006points" - + "\030\001 \001(\t\032d\n\005Break\022.\n\nstart_time\030\001 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022+\n\010duration\030\002 \001(" - + "\0132\031.google.protobuf.Duration\032\315\001\n\nTravelS" - + "tep\022+\n\010duration\030\001 \001(\0132\031.google.protobuf." - + "Duration\022\027\n\017distance_meters\030\002 \001(\001\022 \n\030tra" - + "ffic_info_unavailable\030\003 \001(\010\022S\n\016route_pol" - + "yline\030\004 \001(\0132;.google.cloud.optimization." - + "v1.ShipmentRoute.EncodedPolyline:\002\030\001\0321\n\017" - + "RouteCostsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\001:\0028\001\"\376\004\n\017SkippedShipment\022\r\n\005index\030\001 \001" - + "(\005\022\r\n\005label\030\002 \001(\t\022E\n\007reasons\030\003 \003(\01324.goo" - + "gle.cloud.optimization.v1.SkippedShipmen" - + "t.Reason\032\205\004\n\006Reason\022G\n\004code\030\001 \001(\01629.goog" - + "le.cloud.optimization.v1.SkippedShipment" - + ".Reason.Code\022\"\n\025example_vehicle_index\030\002 " - + "\001(\005H\000\210\001\001\022&\n\036example_exceeded_capacity_ty" - + "pe\030\003 \001(\t\"\313\002\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022" - + "\016\n\nNO_VEHICLE\020\001\022#\n\037DEMAND_EXCEEDS_VEHICL" - + "E_CAPACITY\020\002\0225\n1CANNOT_BE_PERFORMED_WITH" - + "IN_VEHICLE_DISTANCE_LIMIT\020\003\0225\n1CANNOT_BE" - + "_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT" - + "\020\004\022<\n8CANNOT_BE_PERFORMED_WITHIN_VEHICLE" - + "_TRAVEL_DURATION_LIMIT\020\005\0223\n/CANNOT_BE_PE" - + "RFORMED_WITHIN_VEHICLE_TIME_WINDOWS\020\006\022\027\n" - + "\023VEHICLE_NOT_ALLOWED\020\007B\030\n\026_example_vehic" - + "le_index\"\330\005\n\021AggregatedMetrics\022 \n\030perfor" - + "med_shipment_count\030\001 \001(\005\0222\n\017travel_durat" - + "ion\030\002 \001(\0132\031.google.protobuf.Duration\0220\n\r" - + "wait_duration\030\003 \001(\0132\031.google.protobuf.Du" - + "ration\0221\n\016delay_duration\030\004 \001(\0132\031.google." - + "protobuf.Duration\0221\n\016break_duration\030\005 \001(" - + "\0132\031.google.protobuf.Duration\0221\n\016visit_du" - + "ration\030\006 \001(\0132\031.google.protobuf.Duration\022" - + "1\n\016total_duration\030\007 \001(\0132\031.google.protobu" - + "f.Duration\022\036\n\026travel_distance_meters\030\010 \001" - + "(\001\022P\n\tmax_loads\030\t \003(\0132=.google.cloud.opt" - + "imization.v1.AggregatedMetrics.MaxLoadsE" - + "ntry\022M\n\005costs\030\n \003(\0132:.google.cloud.optim" - + "ization.v1.AggregatedMetrics.CostsEntryB" - + "\002\030\001\022\026\n\ntotal_cost\030\013 \001(\001B\002\030\001\032h\n\rMaxLoadsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.googl" - + "e.cloud.optimization.v1.ShipmentRoute.Ve" - + "hicleLoad:\0028\001\032,\n\nCostsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\001:\0028\001\"\237\006\n\032InjectedSolution" - + "Constraint\022;\n\006routes\030\001 \003(\0132+.google.clou" - + "d.optimization.v1.ShipmentRoute\022H\n\021skipp" - + "ed_shipments\030\002 \003(\0132-.google.cloud.optimi" - + "zation.v1.SkippedShipment\022m\n\026constraint_" - + "relaxations\030\003 \003(\0132M.google.cloud.optimiz" - + "ation.v1.InjectedSolutionConstraint.Cons" - + "traintRelaxation\032\212\004\n\024ConstraintRelaxatio" - + "n\022m\n\013relaxations\030\001 \003(\0132X.google.cloud.op", - "timization.v1.InjectedSolutionConstraint" - + ".ConstraintRelaxation.Relaxation\022\027\n\017vehi" - + "cle_indices\030\002 \003(\005\032\351\002\n\nRelaxation\022m\n\005leve" - + "l\030\001 \001(\0162^.google.cloud.optimization.v1.I" - + "njectedSolutionConstraint.ConstraintRela" - + "xation.Relaxation.Level\0222\n\016threshold_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022\035\n\025t" - + "hreshold_visit_count\030\003 \001(\005\"\230\001\n\005Level\022\025\n\021" - + "LEVEL_UNSPECIFIED\020\000\022%\n!RELAX_VISIT_TIMES" - + "_AFTER_THRESHOLD\020\001\0222\n.RELAX_VISIT_TIMES_" - + "AND_SEQUENCE_AFTER_THRESHOLD\020\002\022\035\n\031RELAX_" - + "ALL_AFTER_THRESHOLD\020\003\"\375\002\n\034OptimizeToursV" - + "alidationError\022\014\n\004code\030\001 \001(\005\022\024\n\014display_" - + "name\030\002 \001(\t\022Y\n\006fields\030\003 \003(\0132I.google.clou" - + "d.optimization.v1.OptimizeToursValidatio" - + "nError.FieldReference\022\025\n\rerror_message\030\004" - + " \001(\t\022\030\n\020offending_values\030\005 \001(\t\032\254\001\n\016Field" - + "Reference\022\014\n\004name\030\001 \001(\t\022\017\n\005index\030\002 \001(\005H\000" - + "\022\r\n\003key\030\004 \001(\tH\000\022\\\n\tsub_field\030\003 \001(\0132I.goo" - + "gle.cloud.optimization.v1.OptimizeToursV" - + "alidationError.FieldReferenceB\016\n\014index_o" - + "r_key2\340\004\n\014FleetRouting\022\342\001\n\rOptimizeTours" - + "\0222.google.cloud.optimization.v1.Optimize" - + "ToursRequest\0323.google.cloud.optimization" - + ".v1.OptimizeToursResponse\"h\202\323\344\223\002b\"1/v1/{" - + "parent=projects/*/locations/*}:optimizeT" - + "ours:\001*Z*\"%/v1/{parent=projects/*}:optim" - + "izeTours:\001*\022\224\002\n\022BatchOptimizeTours\0227.goo" - + "gle.cloud.optimization.v1.BatchOptimizeT" - + "oursRequest\032\035.google.longrunning.Operati" - + "on\"\245\001\312A0\n\032BatchOptimizeToursResponse\022\022As" - + "yncModelMetadata\202\323\344\223\002l\"6/v1/{parent=proj" - + "ects/*/locations/*}:batchOptimizeTours:\001" - + "*Z/\"*/v1/{parent=projects/*}:batchOptimi" - + "zeTours:\001*\032T\312A cloudoptimization.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB}\n com.google.cloud.opt" - + "imization.v1B\021FleetRoutingProtoP\001ZDcloud" - + ".google.com/go/optimization/apiv1/optimi" - + "zationpb;optimizationpbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor, - new java.lang.String[] { - "Parent", - "Timeout", - "Model", - "SolvingMode", - "SearchMode", - "InjectedFirstSolutionRoutes", - "InjectedSolutionConstraint", - "RefreshDetailsRoutes", - "InterpretInjectedSolutionsUsingLabels", - "ConsiderRoadTraffic", - "PopulatePolylines", - "PopulateTransitionPolylines", - "AllowLargeDeadlineDespiteInterruptionRisk", - "UseGeodesicDistances", - "GeodesicMetersPerSecond", - "MaxValidationErrors", - "Label", - "PopulateTravelStepPolylines", - "GeodesicMetersPerSecond", - "MaxValidationErrors", - }); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor, - new java.lang.String[] { - "Routes", - "RequestLabel", - "SkippedShipments", - "ValidationErrors", - "Metrics", - "TotalCost", - }); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor = - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor, - new java.lang.String[] { - "AggregatedRouteMetrics", - "SkippedMandatoryShipmentCount", - "UsedVehicleCount", - "EarliestVehicleStartTime", - "LatestVehicleEndTime", - "Costs", - "TotalCost", - }); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor = - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor, - new java.lang.String[] { - "Parent", "ModelConfigs", - }); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor = - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor, - new java.lang.String[] { - "DisplayName", "InputConfig", "OutputConfig", "EnableCheckpoints", - }); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor, - new java.lang.String[] { - "Shipments", - "Vehicles", - "MaxActiveVehicles", - "GlobalStartTime", - "GlobalEndTime", - "GlobalDurationCostPerHour", - "DurationDistanceMatrices", - "DurationDistanceMatrixSrcTags", - "DurationDistanceMatrixDstTags", - "TransitionAttributes", - "ShipmentTypeIncompatibilities", - "ShipmentTypeRequirements", - "PrecedenceRules", - "BreakRules", - "MaxActiveVehicles", - }); - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor, - new java.lang.String[] { - "Rows", "VehicleStartTag", - }); - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor, - new java.lang.String[] { - "Durations", "Meters", - }); - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor, - new java.lang.String[] { - "FirstIndex", - "FirstIsDelivery", - "SecondIndex", - "SecondIsDelivery", - "OffsetDuration", - "FirstIndex", - "SecondIndex", - }); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor, - new java.lang.String[] { - "BreakRequests", "FrequencyConstraints", - }); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor, - new java.lang.String[] { - "EarliestStartTime", "LatestStartTime", "MinDuration", - }); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor, - new java.lang.String[] { - "MinBreakDuration", "MaxInterBreakDuration", - }); - internal_static_google_cloud_optimization_v1_Shipment_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_descriptor, - new java.lang.String[] { - "Pickups", - "Deliveries", - "LoadDemands", - "PenaltyCost", - "AllowedVehicleIndices", - "CostsPerVehicle", - "CostsPerVehicleIndices", - "PickupToDeliveryRelativeDetourLimit", - "PickupToDeliveryAbsoluteDetourLimit", - "PickupToDeliveryTimeLimit", - "ShipmentType", - "Label", - "Ignore", - "Demands", - "PenaltyCost", - "PickupToDeliveryRelativeDetourLimit", - }); - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor = - internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor, - new java.lang.String[] { - "ArrivalLocation", - "ArrivalWaypoint", - "DepartureLocation", - "DepartureWaypoint", - "Tags", - "TimeWindows", - "Duration", - "Cost", - "LoadDemands", - "VisitTypes", - "Label", - "Demands", - }); - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor = - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor = - internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor, - new java.lang.String[] { - "Amount", - }); - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor = - internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor, - new java.lang.String[] { - "Types", "IncompatibilityMode", - }); - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor, - new java.lang.String[] { - "RequiredShipmentTypeAlternatives", "DependentShipmentTypes", "RequirementMode", - }); - internal_static_google_cloud_optimization_v1_Vehicle_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_descriptor, - new java.lang.String[] { - "TravelMode", - "StartLocation", - "StartWaypoint", - "EndLocation", - "EndWaypoint", - "StartTags", - "EndTags", - "StartTimeWindows", - "EndTimeWindows", - "TravelDurationMultiple", - "UnloadingPolicy", - "LoadLimits", - "CostPerHour", - "CostPerTraveledHour", - "CostPerKilometer", - "FixedCost", - "UsedIfRouteIsEmpty", - "RouteDurationLimit", - "TravelDurationLimit", - "RouteDistanceLimit", - "ExtraVisitDurationForVisitType", - "BreakRule", - "Label", - "Ignore", - "BreakRuleIndices", - "Capacities", - "StartLoadIntervals", - "EndLoadIntervals", - "TravelDurationMultiple", - }); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor, - new java.lang.String[] { - "MaxLoad", - "SoftMaxLoad", - "CostPerUnitAboveSoftMax", - "StartLoadInterval", - "EndLoadInterval", - "MaxLoad", - }); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor, - new java.lang.String[] { - "Min", "Max", "Max", - }); - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor, - new java.lang.String[] { - "MaxDuration", - "SoftMaxDuration", - "CostPerHourAfterSoftMax", - "QuadraticSoftMaxDuration", - "CostPerSquareHourAfterQuadraticSoftMax", - "CostPerHourAfterSoftMax", - "CostPerSquareHourAfterQuadraticSoftMax", - }); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_TimeWindow_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_TimeWindow_descriptor, - new java.lang.String[] { - "StartTime", - "EndTime", - "SoftStartTime", - "SoftEndTime", - "CostPerHourBeforeSoftStartTime", - "CostPerHourAfterSoftEndTime", - "CostPerHourBeforeSoftStartTime", - "CostPerHourAfterSoftEndTime", - }); - internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor, - new java.lang.String[] { - "Type", "Value", - }); - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor, - new java.lang.String[] { - "Type", "MinValue", "MaxValue", "MinValue", "MaxValue", - }); - internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor, - new java.lang.String[] { - "MaxMeters", - "SoftMaxMeters", - "CostPerKilometerBelowSoftMax", - "CostPerKilometerAboveSoftMax", - "MaxMeters", - "SoftMaxMeters", - "CostPerKilometerBelowSoftMax", - "CostPerKilometerAboveSoftMax", - }); - internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor, - new java.lang.String[] { - "SrcTag", - "ExcludedSrcTag", - "DstTag", - "ExcludedDstTag", - "Cost", - "CostPerKilometer", - "DistanceLimit", - "Delay", - }); - internal_static_google_cloud_optimization_v1_Waypoint_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Waypoint_descriptor, - new java.lang.String[] { - "Location", "PlaceId", "SideOfRoad", "LocationType", - }); - internal_static_google_cloud_optimization_v1_Location_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Location_descriptor, - new java.lang.String[] { - "LatLng", "Heading", "Heading", - }); - internal_static_google_cloud_optimization_v1_BreakRule_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BreakRule_descriptor, - new java.lang.String[] { - "BreakRequests", "FrequencyConstraints", - }); - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor = - internal_static_google_cloud_optimization_v1_BreakRule_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor, - new java.lang.String[] { - "EarliestStartTime", "LatestStartTime", "MinDuration", - }); - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor = - internal_static_google_cloud_optimization_v1_BreakRule_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor, - new java.lang.String[] { - "MinBreakDuration", "MaxInterBreakDuration", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor, - new java.lang.String[] { - "VehicleIndex", - "VehicleLabel", - "VehicleStartTime", - "VehicleEndTime", - "Visits", - "Transitions", - "HasTrafficInfeasibilities", - "RoutePolyline", - "Breaks", - "Metrics", - "RouteCosts", - "RouteTotalCost", - "EndLoads", - "TravelSteps", - "VehicleDetour", - "DelayBeforeVehicleEnd", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor, - new java.lang.String[] { - "StartTime", "Duration", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor, - new java.lang.String[] { - "ShipmentIndex", - "IsPickup", - "VisitRequestIndex", - "StartTime", - "LoadDemands", - "Detour", - "ShipmentLabel", - "VisitLabel", - "ArrivalLoads", - "DelayBeforeStart", - "Demands", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor, - new java.lang.String[] { - "TravelDuration", - "TravelDistanceMeters", - "TrafficInfoUnavailable", - "DelayDuration", - "BreakDuration", - "WaitDuration", - "TotalDuration", - "StartTime", - "RoutePolyline", - "VehicleLoads", - "Loads", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor, - new java.lang.String[] { - "Amount", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor, - new java.lang.String[] { - "Points", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor, - new java.lang.String[] { - "StartTime", "Duration", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor - .getNestedTypes() - .get(6); - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor, - new java.lang.String[] { - "Duration", "DistanceMeters", "TrafficInfoUnavailable", "RoutePolyline", - }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor - .getNestedTypes() - .get(7); - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor, - new java.lang.String[] { - "Index", "Label", "Reasons", - }); - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor = - internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor, - new java.lang.String[] { - "Code", "ExampleVehicleIndex", "ExampleExceededCapacityType", "ExampleVehicleIndex", - }); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor, - new java.lang.String[] { - "PerformedShipmentCount", - "TravelDuration", - "WaitDuration", - "DelayDuration", - "BreakDuration", - "VisitDuration", - "TotalDuration", - "TravelDistanceMeters", - "MaxLoads", - "Costs", - "TotalCost", - }); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor = - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor = - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor, - new java.lang.String[] { - "Routes", "SkippedShipments", "ConstraintRelaxations", - }); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor = - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor, - new java.lang.String[] { - "Relaxations", "VehicleIndices", - }); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor = - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor, - new java.lang.String[] { - "Level", "ThresholdTime", "ThresholdVisitCount", - }); - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor, - new java.lang.String[] { - "Code", "DisplayName", "Fields", "ErrorMessage", "OffendingValues", - }); - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor = - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor, - new java.lang.String[] { - "Name", "Index", "Key", "SubField", "IndexOrKey", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java similarity index 99% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java index 4dd193a8e1ba..f5501181ba16 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java +++ b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.optimization.v1.stub.FleetRoutingStubSettings; diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json similarity index 100% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java similarity index 99% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java index f7fb48354182..c1284dbd4ae8 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java +++ b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java @@ -34,6 +34,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java similarity index 99% rename from java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java index abd18208d84d..ca7f9303c8e3 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java +++ b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java @@ -29,6 +29,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json similarity index 99% rename from java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json index 8612ff1cc92a..16a85dbfd881 100644 --- a/java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json +++ b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json @@ -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, diff --git a/java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java diff --git a/java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java diff --git a/java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java diff --git a/java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java b/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java similarity index 100% rename from java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java rename to owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java diff --git a/java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java b/owl-bot-staging/java-optimization/v1/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java similarity index 67% rename from java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java rename to owl-bot-staging/java-optimization/v1/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java index 2297ce44d24a..7fbf645e4a39 100644 --- a/java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java +++ b/owl-bot-staging/java-optimization/v1/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.optimization.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * A service for optimizing vehicle tours.
  * Validity of certain types of fields:
@@ -49,143 +32,113 @@ private FleetRoutingGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.cloud.optimization.v1.FleetRouting";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.optimization.v1.OptimizeToursRequest,
-          com.google.cloud.optimization.v1.OptimizeToursResponse>
-      getOptimizeToursMethod;
+  private static volatile io.grpc.MethodDescriptor getOptimizeToursMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "OptimizeTours",
       requestType = com.google.cloud.optimization.v1.OptimizeToursRequest.class,
       responseType = com.google.cloud.optimization.v1.OptimizeToursResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.optimization.v1.OptimizeToursRequest,
-          com.google.cloud.optimization.v1.OptimizeToursResponse>
-      getOptimizeToursMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.optimization.v1.OptimizeToursRequest,
-            com.google.cloud.optimization.v1.OptimizeToursResponse>
-        getOptimizeToursMethod;
+  public static io.grpc.MethodDescriptor getOptimizeToursMethod() {
+    io.grpc.MethodDescriptor getOptimizeToursMethod;
     if ((getOptimizeToursMethod = FleetRoutingGrpc.getOptimizeToursMethod) == null) {
       synchronized (FleetRoutingGrpc.class) {
         if ((getOptimizeToursMethod = FleetRoutingGrpc.getOptimizeToursMethod) == null) {
-          FleetRoutingGrpc.getOptimizeToursMethod =
-              getOptimizeToursMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OptimizeTours"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.optimization.v1.OptimizeToursRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.optimization.v1.OptimizeToursResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new FleetRoutingMethodDescriptorSupplier("OptimizeTours"))
-                      .build();
+          FleetRoutingGrpc.getOptimizeToursMethod = getOptimizeToursMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OptimizeTours"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.optimization.v1.OptimizeToursRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.optimization.v1.OptimizeToursResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new FleetRoutingMethodDescriptorSupplier("OptimizeTours"))
+              .build();
         }
       }
     }
     return getOptimizeToursMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.optimization.v1.BatchOptimizeToursRequest,
-          com.google.longrunning.Operation>
-      getBatchOptimizeToursMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchOptimizeToursMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchOptimizeTours",
       requestType = com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.optimization.v1.BatchOptimizeToursRequest,
-          com.google.longrunning.Operation>
-      getBatchOptimizeToursMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.optimization.v1.BatchOptimizeToursRequest,
-            com.google.longrunning.Operation>
-        getBatchOptimizeToursMethod;
+  public static io.grpc.MethodDescriptor getBatchOptimizeToursMethod() {
+    io.grpc.MethodDescriptor getBatchOptimizeToursMethod;
     if ((getBatchOptimizeToursMethod = FleetRoutingGrpc.getBatchOptimizeToursMethod) == null) {
       synchronized (FleetRoutingGrpc.class) {
         if ((getBatchOptimizeToursMethod = FleetRoutingGrpc.getBatchOptimizeToursMethod) == null) {
-          FleetRoutingGrpc.getBatchOptimizeToursMethod =
-              getBatchOptimizeToursMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchOptimizeTours"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.optimization.v1.BatchOptimizeToursRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new FleetRoutingMethodDescriptorSupplier("BatchOptimizeTours"))
-                      .build();
+          FleetRoutingGrpc.getBatchOptimizeToursMethod = getBatchOptimizeToursMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchOptimizeTours"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.optimization.v1.BatchOptimizeToursRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new FleetRoutingMethodDescriptorSupplier("BatchOptimizeTours"))
+              .build();
         }
       }
     }
     return getBatchOptimizeToursMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static FleetRoutingStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public FleetRoutingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new FleetRoutingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public FleetRoutingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new FleetRoutingStub(channel, callOptions);
+        }
+      };
     return FleetRoutingStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static FleetRoutingBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static FleetRoutingBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public FleetRoutingBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new FleetRoutingBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public FleetRoutingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new FleetRoutingBlockingStub(channel, callOptions);
+        }
+      };
     return FleetRoutingBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static FleetRoutingFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static FleetRoutingFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public FleetRoutingFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new FleetRoutingFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public FleetRoutingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new FleetRoutingFutureStub(channel, callOptions);
+        }
+      };
     return FleetRoutingFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -207,8 +160,6 @@ public FleetRoutingFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an
      * `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of
@@ -224,17 +175,12 @@ public interface AsyncService {
      * `ShipmentModel`.
      * 
*/ - default void optimizeTours( - com.google.cloud.optimization.v1.OptimizeToursRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getOptimizeToursMethod(), responseObserver); + default void optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOptimizeToursMethod(), responseObserver); } /** - * - * *
      * Optimizes vehicle tours for one or more `OptimizeToursRequest`
      * messages as a batch.
@@ -247,17 +193,14 @@ default void optimizeTours(
      * vehicles minimizing the overall cost.
      * 
*/ - default void batchOptimizeTours( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest request, + default void batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeToursRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchOptimizeToursMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchOptimizeToursMethod(), responseObserver); } } /** * Base class for the server implementation of the service FleetRouting. - * *
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -276,18 +219,16 @@ default void batchOptimizeTours(
    *     * at least one of latitude and longitude must be non-zero.
    * 
*/ - public abstract static class FleetRoutingImplBase + public static abstract class FleetRoutingImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return FleetRoutingGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service FleetRouting. - * *
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -308,18 +249,18 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class FleetRoutingStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private FleetRoutingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private FleetRoutingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected FleetRoutingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected FleetRoutingStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new FleetRoutingStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an
      * `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of
@@ -335,19 +276,13 @@ protected FleetRoutingStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * `ShipmentModel`.
      * 
*/ - public void optimizeTours( - com.google.cloud.optimization.v1.OptimizeToursRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOptimizeToursMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getOptimizeToursMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Optimizes vehicle tours for one or more `OptimizeToursRequest`
      * messages as a batch.
@@ -360,19 +295,15 @@ public void optimizeTours(
      * vehicles minimizing the overall cost.
      * 
*/ - public void batchOptimizeTours( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest request, + public void batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeToursRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchOptimizeToursMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchOptimizeToursMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service FleetRouting. - * *
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -393,7 +324,8 @@ public void batchOptimizeTours(
    */
   public static final class FleetRoutingBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private FleetRoutingBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private FleetRoutingBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -404,8 +336,6 @@ protected FleetRoutingBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an
      * `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of
@@ -421,15 +351,12 @@ protected FleetRoutingBlockingStub build(
      * `ShipmentModel`.
      * 
*/ - public com.google.cloud.optimization.v1.OptimizeToursResponse optimizeTours( - com.google.cloud.optimization.v1.OptimizeToursRequest request) { + public com.google.cloud.optimization.v1.OptimizeToursResponse optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getOptimizeToursMethod(), getCallOptions(), request); } /** - * - * *
      * Optimizes vehicle tours for one or more `OptimizeToursRequest`
      * messages as a batch.
@@ -442,8 +369,7 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse optimizeTours(
      * vehicles minimizing the overall cost.
      * 
*/ - public com.google.longrunning.Operation batchOptimizeTours( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) { + public com.google.longrunning.Operation batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchOptimizeToursMethod(), getCallOptions(), request); } @@ -451,7 +377,6 @@ public com.google.longrunning.Operation batchOptimizeTours( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service FleetRouting. - * *
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -472,7 +397,8 @@ public com.google.longrunning.Operation batchOptimizeTours(
    */
   public static final class FleetRoutingFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private FleetRoutingFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private FleetRoutingFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -483,8 +409,6 @@ protected FleetRoutingFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an
      * `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of
@@ -500,16 +424,13 @@ protected FleetRoutingFutureStub build(
      * `ShipmentModel`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.optimization.v1.OptimizeToursResponse> - optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest request) { + public com.google.common.util.concurrent.ListenableFuture optimizeTours( + com.google.cloud.optimization.v1.OptimizeToursRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getOptimizeToursMethod(), getCallOptions()), request); } /** - * - * *
      * Optimizes vehicle tours for one or more `OptimizeToursRequest`
      * messages as a batch.
@@ -522,8 +443,8 @@ protected FleetRoutingFutureStub build(
      * vehicles minimizing the overall cost.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchOptimizeTours( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchOptimizeToursMethod(), getCallOptions()), request); } @@ -532,11 +453,11 @@ protected FleetRoutingFutureStub build( private static final int METHODID_OPTIMIZE_TOURS = 0; private static final int METHODID_BATCH_OPTIMIZE_TOURS = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -550,14 +471,11 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_OPTIMIZE_TOURS: - serviceImpl.optimizeTours( - (com.google.cloud.optimization.v1.OptimizeToursRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.optimizeTours((com.google.cloud.optimization.v1.OptimizeToursRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_OPTIMIZE_TOURS: - serviceImpl.batchOptimizeTours( - (com.google.cloud.optimization.v1.BatchOptimizeToursRequest) request, + serviceImpl.batchOptimizeTours((com.google.cloud.optimization.v1.BatchOptimizeToursRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -579,24 +497,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getOptimizeToursMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.optimization.v1.OptimizeToursRequest, - com.google.cloud.optimization.v1.OptimizeToursResponse>( - service, METHODID_OPTIMIZE_TOURS))) + getOptimizeToursMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.optimization.v1.OptimizeToursRequest, + com.google.cloud.optimization.v1.OptimizeToursResponse>( + service, METHODID_OPTIMIZE_TOURS))) .addMethod( - getBatchOptimizeToursMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest, - com.google.longrunning.Operation>(service, METHODID_BATCH_OPTIMIZE_TOURS))) + getBatchOptimizeToursMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.optimization.v1.BatchOptimizeToursRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_OPTIMIZE_TOURS))) .build(); } - private abstract static class FleetRoutingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class FleetRoutingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { FleetRoutingBaseDescriptorSupplier() {} @java.lang.Override @@ -638,13 +556,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (FleetRoutingGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FleetRoutingFileDescriptorSupplier()) - .addMethod(getOptimizeToursMethod()) - .addMethod(getBatchOptimizeToursMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FleetRoutingFileDescriptorSupplier()) + .addMethod(getOptimizeToursMethod()) + .addMethod(getBatchOptimizeToursMethod()) + .build(); } } } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java similarity index 67% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java index 51c998880426..ec3530c6599a 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Aggregated metrics for
  * [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute] (resp. for
@@ -32,64 +15,61 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.AggregatedMetrics}
  */
-public final class AggregatedMetrics extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AggregatedMetrics extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.AggregatedMetrics)
     AggregatedMetricsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AggregatedMetrics.newBuilder() to construct.
   private AggregatedMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private AggregatedMetrics() {}
+  private AggregatedMetrics() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AggregatedMetrics();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 9:
         return internalGetMaxLoads();
       case 10:
         return internalGetCosts();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.AggregatedMetrics.class,
-            com.google.cloud.optimization.v1.AggregatedMetrics.Builder.class);
+            com.google.cloud.optimization.v1.AggregatedMetrics.class, com.google.cloud.optimization.v1.AggregatedMetrics.Builder.class);
   }
 
   public static final int PERFORMED_SHIPMENT_COUNT_FIELD_NUMBER = 1;
   private int performedShipmentCount_ = 0;
   /**
-   *
-   *
    * 
    * Number of shipments performed. Note that a pickup and delivery pair only
    * counts once.
    * 
* * int32 performed_shipment_count = 1; - * * @return The performedShipmentCount. */ @java.lang.Override @@ -100,14 +80,11 @@ public int getPerformedShipmentCount() { public static final int TRAVEL_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration travelDuration_; /** - * - * *
    * Total travel duration for a route or a solution.
    * 
* * .google.protobuf.Duration travel_duration = 2; - * * @return Whether the travelDuration field is set. */ @java.lang.Override @@ -115,25 +92,18 @@ public boolean hasTravelDuration() { return travelDuration_ != null; } /** - * - * *
    * Total travel duration for a route or a solution.
    * 
* * .google.protobuf.Duration travel_duration = 2; - * * @return The travelDuration. */ @java.lang.Override public com.google.protobuf.Duration getTravelDuration() { - return travelDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : travelDuration_; + return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; } /** - * - * *
    * Total travel duration for a route or a solution.
    * 
@@ -142,22 +112,17 @@ public com.google.protobuf.Duration getTravelDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { - return travelDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : travelDuration_; + return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; } public static final int WAIT_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration waitDuration_; /** - * - * *
    * Total wait duration for a route or a solution.
    * 
* * .google.protobuf.Duration wait_duration = 3; - * * @return Whether the waitDuration field is set. */ @java.lang.Override @@ -165,25 +130,18 @@ public boolean hasWaitDuration() { return waitDuration_ != null; } /** - * - * *
    * Total wait duration for a route or a solution.
    * 
* * .google.protobuf.Duration wait_duration = 3; - * * @return The waitDuration. */ @java.lang.Override public com.google.protobuf.Duration getWaitDuration() { - return waitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : waitDuration_; + return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; } /** - * - * *
    * Total wait duration for a route or a solution.
    * 
@@ -192,22 +150,17 @@ public com.google.protobuf.Duration getWaitDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() { - return waitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : waitDuration_; + return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; } public static final int DELAY_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration delayDuration_; /** - * - * *
    * Total delay duration for a route or a solution.
    * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return Whether the delayDuration field is set. */ @java.lang.Override @@ -215,25 +168,18 @@ public boolean hasDelayDuration() { return delayDuration_ != null; } /** - * - * *
    * Total delay duration for a route or a solution.
    * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return The delayDuration. */ @java.lang.Override public com.google.protobuf.Duration getDelayDuration() { - return delayDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : delayDuration_; + return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; } /** - * - * *
    * Total delay duration for a route or a solution.
    * 
@@ -242,22 +188,17 @@ public com.google.protobuf.Duration getDelayDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() { - return delayDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : delayDuration_; + return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; } public static final int BREAK_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration breakDuration_; /** - * - * *
    * Total break duration for a route or a solution.
    * 
* * .google.protobuf.Duration break_duration = 5; - * * @return Whether the breakDuration field is set. */ @java.lang.Override @@ -265,25 +206,18 @@ public boolean hasBreakDuration() { return breakDuration_ != null; } /** - * - * *
    * Total break duration for a route or a solution.
    * 
* * .google.protobuf.Duration break_duration = 5; - * * @return The breakDuration. */ @java.lang.Override public com.google.protobuf.Duration getBreakDuration() { - return breakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : breakDuration_; + return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; } /** - * - * *
    * Total break duration for a route or a solution.
    * 
@@ -292,22 +226,17 @@ public com.google.protobuf.Duration getBreakDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() { - return breakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : breakDuration_; + return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; } public static final int VISIT_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration visitDuration_; /** - * - * *
    * Total visit duration for a route or a solution.
    * 
* * .google.protobuf.Duration visit_duration = 6; - * * @return Whether the visitDuration field is set. */ @java.lang.Override @@ -315,25 +244,18 @@ public boolean hasVisitDuration() { return visitDuration_ != null; } /** - * - * *
    * Total visit duration for a route or a solution.
    * 
* * .google.protobuf.Duration visit_duration = 6; - * * @return The visitDuration. */ @java.lang.Override public com.google.protobuf.Duration getVisitDuration() { - return visitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : visitDuration_; + return visitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : visitDuration_; } /** - * - * *
    * Total visit duration for a route or a solution.
    * 
@@ -342,16 +264,12 @@ public com.google.protobuf.Duration getVisitDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() { - return visitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : visitDuration_; + return visitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : visitDuration_; } public static final int TOTAL_DURATION_FIELD_NUMBER = 7; private com.google.protobuf.Duration totalDuration_; /** - * - * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -361,7 +279,6 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() {
    * 
* * .google.protobuf.Duration total_duration = 7; - * * @return Whether the totalDuration field is set. */ @java.lang.Override @@ -369,8 +286,6 @@ public boolean hasTotalDuration() { return totalDuration_ != null; } /** - * - * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -380,18 +295,13 @@ public boolean hasTotalDuration() {
    * 
* * .google.protobuf.Duration total_duration = 7; - * * @return The totalDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalDuration() { - return totalDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalDuration_; + return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_; } /** - * - * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -404,22 +314,17 @@ public com.google.protobuf.Duration getTotalDuration() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
-    return totalDuration_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : totalDuration_;
+    return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_;
   }
 
   public static final int TRAVEL_DISTANCE_METERS_FIELD_NUMBER = 8;
   private double travelDistanceMeters_ = 0D;
   /**
-   *
-   *
    * 
    * Total travel distance for a route or a solution.
    * 
* * double travel_distance_meters = 8; - * * @return The travelDistanceMeters. */ @java.lang.Override @@ -428,43 +333,32 @@ public double getTravelDistanceMeters() { } public static final int MAX_LOADS_FIELD_NUMBER = 9; - private static final class MaxLoadsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - defaultEntry = + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - maxLoads_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - internalGetMaxLoads() { + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> maxLoads_; + private com.google.protobuf.MapField + internalGetMaxLoads() { if (maxLoads_ == null) { - return com.google.protobuf.MapField.emptyMapField(MaxLoadsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MaxLoadsDefaultEntryHolder.defaultEntry); } return maxLoads_; } - public int getMaxLoadsCount() { return internalGetMaxLoads().getMap().size(); } /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -474,26 +368,23 @@ public int getMaxLoadsCount() {
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ @java.lang.Override - public boolean containsMaxLoads(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMaxLoads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMaxLoads().getMap().containsKey(key); } - /** Use {@link #getMaxLoadsMap()} instead. */ + /** + * Use {@link #getMaxLoadsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMaxLoads() { + public java.util.Map getMaxLoads() { return getMaxLoadsMap(); } /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -503,17 +394,13 @@ public boolean containsMaxLoads(java.lang.String key) {
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ @java.lang.Override - public java.util.Map - getMaxLoadsMap() { + public java.util.Map getMaxLoadsMap() { return internalGetMaxLoads().getMap(); } /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -523,25 +410,20 @@ public boolean containsMaxLoads(java.lang.String key) {
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad - getMaxLoadsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMaxLoads().getMap(); + public /* nullable */ +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMaxLoads().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -551,17 +433,14 @@ public boolean containsMaxLoads(java.lang.String key) {
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMaxLoads().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMaxLoads().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -569,35 +448,32 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrT } public static final int COSTS_FIELD_NUMBER = 10; - private static final class CostsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.DOUBLE, - 0D); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Double> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.DOUBLE, + 0D); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField costs_; - - private com.google.protobuf.MapField internalGetCosts() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Double> costs_; + private com.google.protobuf.MapField + internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + CostsDefaultEntryHolder.defaultEntry); } return costs_; } - - @java.lang.Deprecated - public int getCostsCount() { + @java.lang.Deprecated public int getCostsCount() { return internalGetCosts().getMap().size(); } /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -609,22 +485,20 @@ public int getCostsCount() {
    * map<string, double> costs = 10 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated
-  public boolean containsCosts(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  @java.lang.Deprecated public boolean containsCosts(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetCosts().getMap().containsKey(key);
   }
-  /** Use {@link #getCostsMap()} instead. */
+  /**
+   * Use {@link #getCostsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getCosts() {
     return getCostsMap();
   }
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -636,13 +510,10 @@ public java.util.Map getCosts() {
    * map<string, double> costs = 10 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated
-  public java.util.Map getCostsMap() {
+  @java.lang.Deprecated public java.util.Map getCostsMap() {
     return internalGetCosts().getMap();
   }
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -654,17 +525,15 @@ public java.util.Map getCostsMap() {
    * map<string, double> costs = 10 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated
-  public double getCostsOrDefault(java.lang.String key, double defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetCosts().getMap();
+  @java.lang.Deprecated public double getCostsOrDefault(
+      java.lang.String key,
+      double defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetCosts().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -676,12 +545,11 @@ public double getCostsOrDefault(java.lang.String key, double defaultValue) {
    * map<string, double> costs = 10 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated
-  public double getCostsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetCosts().getMap();
+  @java.lang.Deprecated public double getCostsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetCosts().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -691,8 +559,6 @@ public double getCostsOrThrow(java.lang.String key) {
   public static final int TOTAL_COST_FIELD_NUMBER = 11;
   private double totalCost_ = 0D;
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -702,19 +568,16 @@ public double getCostsOrThrow(java.lang.String key) {
    * 
* * double total_cost = 11 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2351 + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @return The totalCost. */ @java.lang.Override - @java.lang.Deprecated - public double getTotalCost() { + @java.lang.Deprecated public double getTotalCost() { return totalCost_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -726,7 +589,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (performedShipmentCount_ != 0) { output.writeInt32(1, performedShipmentCount_); } @@ -751,10 +615,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(travelDistanceMeters_) != 0) { output.writeDouble(8, travelDistanceMeters_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMaxLoads(), MaxLoadsDefaultEntryHolder.defaultEntry, 9); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetCosts(), CostsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMaxLoads(), + MaxLoadsDefaultEntryHolder.defaultEntry, + 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCosts(), + CostsDefaultEntryHolder.defaultEntry, + 10); if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { output.writeDouble(11, totalCost_); } @@ -768,54 +640,60 @@ public int getSerializedSize() { size = 0; if (performedShipmentCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, performedShipmentCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, performedShipmentCount_); } if (travelDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTravelDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTravelDuration()); } if (waitDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWaitDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWaitDuration()); } if (delayDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDelayDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDelayDuration()); } if (breakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBreakDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getBreakDuration()); } if (visitDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVisitDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getVisitDuration()); } if (totalDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTotalDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTotalDuration()); } if (java.lang.Double.doubleToRawLongBits(travelDistanceMeters_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, travelDistanceMeters_); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - entry : internalGetMaxLoads().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - maxLoads__ = - MaxLoadsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, maxLoads__); - } - for (java.util.Map.Entry entry : - internalGetCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry costs__ = - CostsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, costs__); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, travelDistanceMeters_); + } + for (java.util.Map.Entry entry + : internalGetMaxLoads().getMap().entrySet()) { + com.google.protobuf.MapEntry + maxLoads__ = MaxLoadsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, maxLoads__); + } + for (java.util.Map.Entry entry + : internalGetCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry + costs__ = CostsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, costs__); } if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, totalCost_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, totalCost_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -825,45 +703,55 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.AggregatedMetrics)) { return super.equals(obj); } - com.google.cloud.optimization.v1.AggregatedMetrics other = - (com.google.cloud.optimization.v1.AggregatedMetrics) obj; + com.google.cloud.optimization.v1.AggregatedMetrics other = (com.google.cloud.optimization.v1.AggregatedMetrics) obj; - if (getPerformedShipmentCount() != other.getPerformedShipmentCount()) return false; + if (getPerformedShipmentCount() + != other.getPerformedShipmentCount()) return false; if (hasTravelDuration() != other.hasTravelDuration()) return false; if (hasTravelDuration()) { - if (!getTravelDuration().equals(other.getTravelDuration())) return false; + if (!getTravelDuration() + .equals(other.getTravelDuration())) return false; } if (hasWaitDuration() != other.hasWaitDuration()) return false; if (hasWaitDuration()) { - if (!getWaitDuration().equals(other.getWaitDuration())) return false; + if (!getWaitDuration() + .equals(other.getWaitDuration())) return false; } if (hasDelayDuration() != other.hasDelayDuration()) return false; if (hasDelayDuration()) { - if (!getDelayDuration().equals(other.getDelayDuration())) return false; + if (!getDelayDuration() + .equals(other.getDelayDuration())) return false; } if (hasBreakDuration() != other.hasBreakDuration()) return false; if (hasBreakDuration()) { - if (!getBreakDuration().equals(other.getBreakDuration())) return false; + if (!getBreakDuration() + .equals(other.getBreakDuration())) return false; } if (hasVisitDuration() != other.hasVisitDuration()) return false; if (hasVisitDuration()) { - if (!getVisitDuration().equals(other.getVisitDuration())) return false; + if (!getVisitDuration() + .equals(other.getVisitDuration())) return false; } if (hasTotalDuration() != other.hasTotalDuration()) return false; if (hasTotalDuration()) { - if (!getTotalDuration().equals(other.getTotalDuration())) return false; + if (!getTotalDuration() + .equals(other.getTotalDuration())) return false; } if (java.lang.Double.doubleToLongBits(getTravelDistanceMeters()) - != java.lang.Double.doubleToLongBits(other.getTravelDistanceMeters())) return false; - if (!internalGetMaxLoads().equals(other.internalGetMaxLoads())) return false; - if (!internalGetCosts().equals(other.internalGetCosts())) return false; + != java.lang.Double.doubleToLongBits( + other.getTravelDistanceMeters())) return false; + if (!internalGetMaxLoads().equals( + other.internalGetMaxLoads())) return false; + if (!internalGetCosts().equals( + other.internalGetCosts())) return false; if (java.lang.Double.doubleToLongBits(getTotalCost()) - != java.lang.Double.doubleToLongBits(other.getTotalCost())) return false; + != java.lang.Double.doubleToLongBits( + other.getTotalCost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -902,10 +790,8 @@ public int hashCode() { hash = (53 * hash) + getTotalDuration().hashCode(); } hash = (37 * hash) + TRAVEL_DISTANCE_METERS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTravelDistanceMeters())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTravelDistanceMeters())); if (!internalGetMaxLoads().getMap().isEmpty()) { hash = (37 * hash) + MAX_LOADS_FIELD_NUMBER; hash = (53 * hash) + internalGetMaxLoads().hashCode(); @@ -915,113 +801,106 @@ public int hashCode() { hash = (53 * hash) + internalGetCosts().hashCode(); } hash = (37 * hash) + TOTAL_COST_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTotalCost())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTotalCost())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.AggregatedMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.AggregatedMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.AggregatedMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Aggregated metrics for
    * [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute] (resp. for
@@ -1033,56 +912,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.AggregatedMetrics}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.AggregatedMetrics)
       com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 9:
           return internalGetMaxLoads();
         case 10:
           return internalGetCosts();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 9:
           return internalGetMutableMaxLoads();
         case 10:
           return internalGetMutableCosts();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.AggregatedMetrics.class,
-              com.google.cloud.optimization.v1.AggregatedMetrics.Builder.class);
+              com.google.cloud.optimization.v1.AggregatedMetrics.class, com.google.cloud.optimization.v1.AggregatedMetrics.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.AggregatedMetrics.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1126,9 +1008,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
     }
 
     @java.lang.Override
@@ -1147,11 +1029,8 @@ public com.google.cloud.optimization.v1.AggregatedMetrics build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.AggregatedMetrics buildPartial() {
-      com.google.cloud.optimization.v1.AggregatedMetrics result =
-          new com.google.cloud.optimization.v1.AggregatedMetrics(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.AggregatedMetrics result = new com.google.cloud.optimization.v1.AggregatedMetrics(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1162,28 +1041,34 @@ private void buildPartial0(com.google.cloud.optimization.v1.AggregatedMetrics re
         result.performedShipmentCount_ = performedShipmentCount_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.travelDuration_ =
-            travelDurationBuilder_ == null ? travelDuration_ : travelDurationBuilder_.build();
+        result.travelDuration_ = travelDurationBuilder_ == null
+            ? travelDuration_
+            : travelDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.waitDuration_ =
-            waitDurationBuilder_ == null ? waitDuration_ : waitDurationBuilder_.build();
+        result.waitDuration_ = waitDurationBuilder_ == null
+            ? waitDuration_
+            : waitDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.delayDuration_ =
-            delayDurationBuilder_ == null ? delayDuration_ : delayDurationBuilder_.build();
+        result.delayDuration_ = delayDurationBuilder_ == null
+            ? delayDuration_
+            : delayDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.breakDuration_ =
-            breakDurationBuilder_ == null ? breakDuration_ : breakDurationBuilder_.build();
+        result.breakDuration_ = breakDurationBuilder_ == null
+            ? breakDuration_
+            : breakDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.visitDuration_ =
-            visitDurationBuilder_ == null ? visitDuration_ : visitDurationBuilder_.build();
+        result.visitDuration_ = visitDurationBuilder_ == null
+            ? visitDuration_
+            : visitDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.totalDuration_ =
-            totalDurationBuilder_ == null ? totalDuration_ : totalDurationBuilder_.build();
+        result.totalDuration_ = totalDurationBuilder_ == null
+            ? totalDuration_
+            : totalDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
         result.travelDistanceMeters_ = travelDistanceMeters_;
@@ -1205,39 +1090,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.AggregatedMetrics re
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.AggregatedMetrics) {
-        return mergeFrom((com.google.cloud.optimization.v1.AggregatedMetrics) other);
+        return mergeFrom((com.google.cloud.optimization.v1.AggregatedMetrics)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1245,8 +1129,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.AggregatedMetrics other) {
-      if (other == com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) return this;
       if (other.getPerformedShipmentCount() != 0) {
         setPerformedShipmentCount(other.getPerformedShipmentCount());
       }
@@ -1271,9 +1154,11 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.AggregatedMetrics othe
       if (other.getTravelDistanceMeters() != 0D) {
         setTravelDistanceMeters(other.getTravelDistanceMeters());
       }
-      internalGetMutableMaxLoads().mergeFrom(other.internalGetMaxLoads());
+      internalGetMutableMaxLoads().mergeFrom(
+          other.internalGetMaxLoads());
       bitField0_ |= 0x00000100;
-      internalGetMutableCosts().mergeFrom(other.internalGetCosts());
+      internalGetMutableCosts().mergeFrom(
+          other.internalGetCosts());
       bitField0_ |= 0x00000200;
       if (other.getTotalCost() != 0D) {
         setTotalCost(other.getTotalCost());
@@ -1304,91 +1189,87 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                performedShipmentCount_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getTravelDurationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getWaitDurationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getDelayDurationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getBreakDurationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getVisitDurationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getTotalDurationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 65:
-              {
-                travelDistanceMeters_ = input.readDouble();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 65
-            case 74:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String,
-                        com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
-                    maxLoads__ =
-                        input.readMessage(
-                            MaxLoadsDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableMaxLoads()
-                    .getMutableMap()
-                    .put(maxLoads__.getKey(), maxLoads__.getValue());
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.protobuf.MapEntry costs__ =
-                    input.readMessage(
-                        CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-                internalGetMutableCosts().getMutableMap().put(costs__.getKey(), costs__.getValue());
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 89:
-              {
-                totalCost_ = input.readDouble();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 89
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              performedShipmentCount_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getTravelDurationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getWaitDurationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getDelayDurationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getBreakDurationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getVisitDurationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getTotalDurationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 65: {
+              travelDistanceMeters_ = input.readDouble();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 65
+            case 74: {
+              com.google.protobuf.MapEntry
+              maxLoads__ = input.readMessage(
+                  MaxLoadsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableMaxLoads().getMutableMap().put(
+                  maxLoads__.getKey(), maxLoads__.getValue());
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              com.google.protobuf.MapEntry
+              costs__ = input.readMessage(
+                  CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableCosts().getMutableMap().put(
+                  costs__.getKey(), costs__.getValue());
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 89: {
+              totalCost_ = input.readDouble();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 89
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1398,20 +1279,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private int performedShipmentCount_;
+    private int performedShipmentCount_ ;
     /**
-     *
-     *
      * 
      * Number of shipments performed. Note that a pickup and delivery pair only
      * counts once.
      * 
* * int32 performed_shipment_count = 1; - * * @return The performedShipmentCount. */ @java.lang.Override @@ -1419,15 +1296,12 @@ public int getPerformedShipmentCount() { return performedShipmentCount_; } /** - * - * *
      * Number of shipments performed. Note that a pickup and delivery pair only
      * counts once.
      * 
* * int32 performed_shipment_count = 1; - * * @param value The performedShipmentCount to set. * @return This builder for chaining. */ @@ -1439,15 +1313,12 @@ public Builder setPerformedShipmentCount(int value) { return this; } /** - * - * *
      * Number of shipments performed. Note that a pickup and delivery pair only
      * counts once.
      * 
* * int32 performed_shipment_count = 1; - * * @return This builder for chaining. */ public Builder clearPerformedShipmentCount() { @@ -1459,47 +1330,34 @@ public Builder clearPerformedShipmentCount() { private com.google.protobuf.Duration travelDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - travelDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> travelDurationBuilder_; /** - * - * *
      * Total travel duration for a route or a solution.
      * 
* * .google.protobuf.Duration travel_duration = 2; - * * @return Whether the travelDuration field is set. */ public boolean hasTravelDuration() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Total travel duration for a route or a solution.
      * 
* * .google.protobuf.Duration travel_duration = 2; - * * @return The travelDuration. */ public com.google.protobuf.Duration getTravelDuration() { if (travelDurationBuilder_ == null) { - return travelDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : travelDuration_; + return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; } else { return travelDurationBuilder_.getMessage(); } } /** - * - * *
      * Total travel duration for a route or a solution.
      * 
@@ -1520,15 +1378,14 @@ public Builder setTravelDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total travel duration for a route or a solution.
      * 
* * .google.protobuf.Duration travel_duration = 2; */ - public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTravelDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (travelDurationBuilder_ == null) { travelDuration_ = builderForValue.build(); } else { @@ -1539,8 +1396,6 @@ public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
      * Total travel duration for a route or a solution.
      * 
@@ -1549,9 +1404,9 @@ public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeTravelDuration(com.google.protobuf.Duration value) { if (travelDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && travelDuration_ != null - && travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + travelDuration_ != null && + travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTravelDurationBuilder().mergeFrom(value); } else { travelDuration_ = value; @@ -1564,8 +1419,6 @@ public Builder mergeTravelDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total travel duration for a route or a solution.
      * 
@@ -1583,8 +1436,6 @@ public Builder clearTravelDuration() { return this; } /** - * - * *
      * Total travel duration for a route or a solution.
      * 
@@ -1597,8 +1448,6 @@ public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { return getTravelDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Total travel duration for a route or a solution.
      * 
@@ -1609,14 +1458,11 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { if (travelDurationBuilder_ != null) { return travelDurationBuilder_.getMessageOrBuilder(); } else { - return travelDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : travelDuration_; + return travelDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; } } /** - * - * *
      * Total travel duration for a route or a solution.
      * 
@@ -1624,17 +1470,14 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { * .google.protobuf.Duration travel_duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTravelDurationFieldBuilder() { if (travelDurationBuilder_ == null) { - travelDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTravelDuration(), getParentForChildren(), isClean()); + travelDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), + getParentForChildren(), + isClean()); travelDuration_ = null; } return travelDurationBuilder_; @@ -1642,47 +1485,34 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { private com.google.protobuf.Duration waitDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - waitDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> waitDurationBuilder_; /** - * - * *
      * Total wait duration for a route or a solution.
      * 
* * .google.protobuf.Duration wait_duration = 3; - * * @return Whether the waitDuration field is set. */ public boolean hasWaitDuration() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Total wait duration for a route or a solution.
      * 
* * .google.protobuf.Duration wait_duration = 3; - * * @return The waitDuration. */ public com.google.protobuf.Duration getWaitDuration() { if (waitDurationBuilder_ == null) { - return waitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : waitDuration_; + return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; } else { return waitDurationBuilder_.getMessage(); } } /** - * - * *
      * Total wait duration for a route or a solution.
      * 
@@ -1703,15 +1533,14 @@ public Builder setWaitDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total wait duration for a route or a solution.
      * 
* * .google.protobuf.Duration wait_duration = 3; */ - public Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setWaitDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (waitDurationBuilder_ == null) { waitDuration_ = builderForValue.build(); } else { @@ -1722,8 +1551,6 @@ public Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForVa return this; } /** - * - * *
      * Total wait duration for a route or a solution.
      * 
@@ -1732,9 +1559,9 @@ public Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForVa */ public Builder mergeWaitDuration(com.google.protobuf.Duration value) { if (waitDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && waitDuration_ != null - && waitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + waitDuration_ != null && + waitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getWaitDurationBuilder().mergeFrom(value); } else { waitDuration_ = value; @@ -1747,8 +1574,6 @@ public Builder mergeWaitDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total wait duration for a route or a solution.
      * 
@@ -1766,8 +1591,6 @@ public Builder clearWaitDuration() { return this; } /** - * - * *
      * Total wait duration for a route or a solution.
      * 
@@ -1780,8 +1603,6 @@ public com.google.protobuf.Duration.Builder getWaitDurationBuilder() { return getWaitDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Total wait duration for a route or a solution.
      * 
@@ -1792,14 +1613,11 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() { if (waitDurationBuilder_ != null) { return waitDurationBuilder_.getMessageOrBuilder(); } else { - return waitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : waitDuration_; + return waitDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; } } /** - * - * *
      * Total wait duration for a route or a solution.
      * 
@@ -1807,17 +1625,14 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() { * .google.protobuf.Duration wait_duration = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWaitDurationFieldBuilder() { if (waitDurationBuilder_ == null) { - waitDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getWaitDuration(), getParentForChildren(), isClean()); + waitDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getWaitDuration(), + getParentForChildren(), + isClean()); waitDuration_ = null; } return waitDurationBuilder_; @@ -1825,47 +1640,34 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() { private com.google.protobuf.Duration delayDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - delayDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayDurationBuilder_; /** - * - * *
      * Total delay duration for a route or a solution.
      * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return Whether the delayDuration field is set. */ public boolean hasDelayDuration() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Total delay duration for a route or a solution.
      * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return The delayDuration. */ public com.google.protobuf.Duration getDelayDuration() { if (delayDurationBuilder_ == null) { - return delayDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : delayDuration_; + return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; } else { return delayDurationBuilder_.getMessage(); } } /** - * - * *
      * Total delay duration for a route or a solution.
      * 
@@ -1886,15 +1688,14 @@ public Builder setDelayDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total delay duration for a route or a solution.
      * 
* * .google.protobuf.Duration delay_duration = 4; */ - public Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDelayDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (delayDurationBuilder_ == null) { delayDuration_ = builderForValue.build(); } else { @@ -1905,8 +1706,6 @@ public Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForV return this; } /** - * - * *
      * Total delay duration for a route or a solution.
      * 
@@ -1915,9 +1714,9 @@ public Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForV */ public Builder mergeDelayDuration(com.google.protobuf.Duration value) { if (delayDurationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && delayDuration_ != null - && delayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + delayDuration_ != null && + delayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDelayDurationBuilder().mergeFrom(value); } else { delayDuration_ = value; @@ -1930,8 +1729,6 @@ public Builder mergeDelayDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total delay duration for a route or a solution.
      * 
@@ -1949,8 +1746,6 @@ public Builder clearDelayDuration() { return this; } /** - * - * *
      * Total delay duration for a route or a solution.
      * 
@@ -1963,8 +1758,6 @@ public com.google.protobuf.Duration.Builder getDelayDurationBuilder() { return getDelayDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Total delay duration for a route or a solution.
      * 
@@ -1975,14 +1768,11 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() { if (delayDurationBuilder_ != null) { return delayDurationBuilder_.getMessageOrBuilder(); } else { - return delayDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : delayDuration_; + return delayDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; } } /** - * - * *
      * Total delay duration for a route or a solution.
      * 
@@ -1990,17 +1780,14 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() { * .google.protobuf.Duration delay_duration = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDelayDurationFieldBuilder() { if (delayDurationBuilder_ == null) { - delayDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDelayDuration(), getParentForChildren(), isClean()); + delayDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDelayDuration(), + getParentForChildren(), + isClean()); delayDuration_ = null; } return delayDurationBuilder_; @@ -2008,47 +1795,34 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() { private com.google.protobuf.Duration breakDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - breakDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> breakDurationBuilder_; /** - * - * *
      * Total break duration for a route or a solution.
      * 
* * .google.protobuf.Duration break_duration = 5; - * * @return Whether the breakDuration field is set. */ public boolean hasBreakDuration() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Total break duration for a route or a solution.
      * 
* * .google.protobuf.Duration break_duration = 5; - * * @return The breakDuration. */ public com.google.protobuf.Duration getBreakDuration() { if (breakDurationBuilder_ == null) { - return breakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : breakDuration_; + return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; } else { return breakDurationBuilder_.getMessage(); } } /** - * - * *
      * Total break duration for a route or a solution.
      * 
@@ -2069,15 +1843,14 @@ public Builder setBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total break duration for a route or a solution.
      * 
* * .google.protobuf.Duration break_duration = 5; */ - public Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setBreakDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (breakDurationBuilder_ == null) { breakDuration_ = builderForValue.build(); } else { @@ -2088,8 +1861,6 @@ public Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForV return this; } /** - * - * *
      * Total break duration for a route or a solution.
      * 
@@ -2098,9 +1869,9 @@ public Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForV */ public Builder mergeBreakDuration(com.google.protobuf.Duration value) { if (breakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && breakDuration_ != null - && breakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + breakDuration_ != null && + breakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getBreakDurationBuilder().mergeFrom(value); } else { breakDuration_ = value; @@ -2113,8 +1884,6 @@ public Builder mergeBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total break duration for a route or a solution.
      * 
@@ -2132,8 +1901,6 @@ public Builder clearBreakDuration() { return this; } /** - * - * *
      * Total break duration for a route or a solution.
      * 
@@ -2146,8 +1913,6 @@ public com.google.protobuf.Duration.Builder getBreakDurationBuilder() { return getBreakDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Total break duration for a route or a solution.
      * 
@@ -2158,14 +1923,11 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() { if (breakDurationBuilder_ != null) { return breakDurationBuilder_.getMessageOrBuilder(); } else { - return breakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : breakDuration_; + return breakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; } } /** - * - * *
      * Total break duration for a route or a solution.
      * 
@@ -2173,17 +1935,14 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() { * .google.protobuf.Duration break_duration = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getBreakDurationFieldBuilder() { if (breakDurationBuilder_ == null) { - breakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getBreakDuration(), getParentForChildren(), isClean()); + breakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getBreakDuration(), + getParentForChildren(), + isClean()); breakDuration_ = null; } return breakDurationBuilder_; @@ -2191,47 +1950,34 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() { private com.google.protobuf.Duration visitDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - visitDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> visitDurationBuilder_; /** - * - * *
      * Total visit duration for a route or a solution.
      * 
* * .google.protobuf.Duration visit_duration = 6; - * * @return Whether the visitDuration field is set. */ public boolean hasVisitDuration() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Total visit duration for a route or a solution.
      * 
* * .google.protobuf.Duration visit_duration = 6; - * * @return The visitDuration. */ public com.google.protobuf.Duration getVisitDuration() { if (visitDurationBuilder_ == null) { - return visitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : visitDuration_; + return visitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : visitDuration_; } else { return visitDurationBuilder_.getMessage(); } } /** - * - * *
      * Total visit duration for a route or a solution.
      * 
@@ -2252,15 +1998,14 @@ public Builder setVisitDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total visit duration for a route or a solution.
      * 
* * .google.protobuf.Duration visit_duration = 6; */ - public Builder setVisitDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setVisitDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (visitDurationBuilder_ == null) { visitDuration_ = builderForValue.build(); } else { @@ -2271,8 +2016,6 @@ public Builder setVisitDuration(com.google.protobuf.Duration.Builder builderForV return this; } /** - * - * *
      * Total visit duration for a route or a solution.
      * 
@@ -2281,9 +2024,9 @@ public Builder setVisitDuration(com.google.protobuf.Duration.Builder builderForV */ public Builder mergeVisitDuration(com.google.protobuf.Duration value) { if (visitDurationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && visitDuration_ != null - && visitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + visitDuration_ != null && + visitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getVisitDurationBuilder().mergeFrom(value); } else { visitDuration_ = value; @@ -2296,8 +2039,6 @@ public Builder mergeVisitDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Total visit duration for a route or a solution.
      * 
@@ -2315,8 +2056,6 @@ public Builder clearVisitDuration() { return this; } /** - * - * *
      * Total visit duration for a route or a solution.
      * 
@@ -2329,8 +2068,6 @@ public com.google.protobuf.Duration.Builder getVisitDurationBuilder() { return getVisitDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Total visit duration for a route or a solution.
      * 
@@ -2341,14 +2078,11 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() { if (visitDurationBuilder_ != null) { return visitDurationBuilder_.getMessageOrBuilder(); } else { - return visitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : visitDuration_; + return visitDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : visitDuration_; } } /** - * - * *
      * Total visit duration for a route or a solution.
      * 
@@ -2356,17 +2090,14 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() { * .google.protobuf.Duration visit_duration = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getVisitDurationFieldBuilder() { if (visitDurationBuilder_ == null) { - visitDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getVisitDuration(), getParentForChildren(), isClean()); + visitDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getVisitDuration(), + getParentForChildren(), + isClean()); visitDuration_ = null; } return visitDurationBuilder_; @@ -2374,13 +2105,8 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() { private com.google.protobuf.Duration totalDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - totalDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalDurationBuilder_; /** - * - * *
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2390,15 +2116,12 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() {
      * 
* * .google.protobuf.Duration total_duration = 7; - * * @return Whether the totalDuration field is set. */ public boolean hasTotalDuration() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2408,21 +2131,16 @@ public boolean hasTotalDuration() {
      * 
* * .google.protobuf.Duration total_duration = 7; - * * @return The totalDuration. */ public com.google.protobuf.Duration getTotalDuration() { if (totalDurationBuilder_ == null) { - return totalDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalDuration_; + return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_; } else { return totalDurationBuilder_.getMessage(); } } /** - * - * *
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2447,8 +2165,6 @@ public Builder setTotalDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2459,7 +2175,8 @@ public Builder setTotalDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_duration = 7;
      */
-    public Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (totalDurationBuilder_ == null) {
         totalDuration_ = builderForValue.build();
       } else {
@@ -2470,8 +2187,6 @@ public Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2484,9 +2199,9 @@ public Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeTotalDuration(com.google.protobuf.Duration value) {
       if (totalDurationBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)
-            && totalDuration_ != null
-            && totalDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0) &&
+          totalDuration_ != null &&
+          totalDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalDurationBuilder().mergeFrom(value);
         } else {
           totalDuration_ = value;
@@ -2499,8 +2214,6 @@ public Builder mergeTotalDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2522,8 +2235,6 @@ public Builder clearTotalDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2540,8 +2251,6 @@ public com.google.protobuf.Duration.Builder getTotalDurationBuilder() {
       return getTotalDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2556,14 +2265,11 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
       if (totalDurationBuilder_ != null) {
         return totalDurationBuilder_.getMessageOrBuilder();
       } else {
-        return totalDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : totalDuration_;
+        return totalDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : totalDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2575,32 +2281,26 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
      * .google.protobuf.Duration total_duration = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTotalDurationFieldBuilder() {
       if (totalDurationBuilder_ == null) {
-        totalDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getTotalDuration(), getParentForChildren(), isClean());
+        totalDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTotalDuration(),
+                getParentForChildren(),
+                isClean());
         totalDuration_ = null;
       }
       return totalDurationBuilder_;
     }
 
-    private double travelDistanceMeters_;
+    private double travelDistanceMeters_ ;
     /**
-     *
-     *
      * 
      * Total travel distance for a route or a solution.
      * 
* * double travel_distance_meters = 8; - * * @return The travelDistanceMeters. */ @java.lang.Override @@ -2608,14 +2308,11 @@ public double getTravelDistanceMeters() { return travelDistanceMeters_; } /** - * - * *
      * Total travel distance for a route or a solution.
      * 
* * double travel_distance_meters = 8; - * * @param value The travelDistanceMeters to set. * @return This builder for chaining. */ @@ -2627,14 +2324,11 @@ public Builder setTravelDistanceMeters(double value) { return this; } /** - * - * *
      * Total travel distance for a route or a solution.
      * 
* * double travel_distance_meters = 8; - * * @return This builder for chaining. */ public Builder clearTravelDistanceMeters() { @@ -2645,24 +2339,20 @@ public Builder clearTravelDistanceMeters() { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - maxLoads_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> maxLoads_; + private com.google.protobuf.MapField internalGetMaxLoads() { if (maxLoads_ == null) { - return com.google.protobuf.MapField.emptyMapField(MaxLoadsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MaxLoadsDefaultEntryHolder.defaultEntry); } return maxLoads_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + private com.google.protobuf.MapField internalGetMutableMaxLoads() { if (maxLoads_ == null) { - maxLoads_ = - com.google.protobuf.MapField.newMapField(MaxLoadsDefaultEntryHolder.defaultEntry); + maxLoads_ = com.google.protobuf.MapField.newMapField( + MaxLoadsDefaultEntryHolder.defaultEntry); } if (!maxLoads_.isMutable()) { maxLoads_ = maxLoads_.copy(); @@ -2671,13 +2361,10 @@ public Builder clearTravelDistanceMeters() { onChanged(); return maxLoads_; } - public int getMaxLoadsCount() { return internalGetMaxLoads().getMap().size(); } /** - * - * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2687,28 +2374,23 @@ public int getMaxLoadsCount() {
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ @java.lang.Override - public boolean containsMaxLoads(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMaxLoads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMaxLoads().getMap().containsKey(key); } - /** Use {@link #getMaxLoadsMap()} instead. */ + /** + * Use {@link #getMaxLoadsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - getMaxLoads() { + public java.util.Map getMaxLoads() { return getMaxLoadsMap(); } /** - * - * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2718,19 +2400,13 @@ public boolean containsMaxLoads(java.lang.String key) {
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - getMaxLoadsMap() { + public java.util.Map getMaxLoadsMap() { return internalGetMaxLoads().getMap(); } /** - * - * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2740,26 +2416,20 @@ public boolean containsMaxLoads(java.lang.String key) {
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad - getMaxLoadsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMaxLoads().getMap(); + public /* nullable */ +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMaxLoads().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2769,32 +2439,26 @@ public boolean containsMaxLoads(java.lang.String key) {
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMaxLoads().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMaxLoads().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearMaxLoads() { bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableMaxLoads().getMutableMap().clear(); + internalGetMutableMaxLoads().getMutableMap() + .clear(); return this; } /** - * - * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2804,28 +2468,25 @@ public Builder clearMaxLoads() {
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ - public Builder removeMaxLoads(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMaxLoads().getMutableMap().remove(key); + public Builder removeMaxLoads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMaxLoads().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + public java.util.Map getMutableMaxLoads() { bitField0_ |= 0x00000100; return internalGetMutableMaxLoads().getMutableMap(); } /** - * - * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2835,25 +2496,19 @@ public Builder removeMaxLoads(java.lang.String key) {
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ public Builder putMaxLoads( - java.lang.String key, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMaxLoads().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMaxLoads().getMutableMap() + .put(key, value); bitField0_ |= 0x00000100; return this; } /** - * - * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2863,33 +2518,31 @@ public Builder putMaxLoads(
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ public Builder putAllMaxLoads( - java.util.Map - values) { - internalGetMutableMaxLoads().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableMaxLoads().getMutableMap() + .putAll(values); bitField0_ |= 0x00000100; return this; } - private com.google.protobuf.MapField costs_; - - @java.lang.Deprecated - private com.google.protobuf.MapField internalGetCosts() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Double> costs_; + @java.lang.Deprecated private com.google.protobuf.MapField + internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + CostsDefaultEntryHolder.defaultEntry); } return costs_; } - - @java.lang.Deprecated - private com.google.protobuf.MapField + @java.lang.Deprecated private com.google.protobuf.MapField internalGetMutableCosts() { if (costs_ == null) { - costs_ = com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); + costs_ = com.google.protobuf.MapField.newMapField( + CostsDefaultEntryHolder.defaultEntry); } if (!costs_.isMutable()) { costs_ = costs_.copy(); @@ -2898,14 +2551,10 @@ private com.google.protobuf.MapField interna onChanged(); return costs_; } - - @java.lang.Deprecated - public int getCostsCount() { + @java.lang.Deprecated public int getCostsCount() { return internalGetCosts().getMap().size(); } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2917,22 +2566,20 @@ public int getCostsCount() {
      * map<string, double> costs = 10 [deprecated = true];
      */
     @java.lang.Override
-    @java.lang.Deprecated
-    public boolean containsCosts(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    @java.lang.Deprecated public boolean containsCosts(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetCosts().getMap().containsKey(key);
     }
-    /** Use {@link #getCostsMap()} instead. */
+    /**
+     * Use {@link #getCostsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getCosts() {
       return getCostsMap();
     }
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2944,13 +2591,10 @@ public java.util.Map getCosts() {
      * map<string, double> costs = 10 [deprecated = true];
      */
     @java.lang.Override
-    @java.lang.Deprecated
-    public java.util.Map getCostsMap() {
+    @java.lang.Deprecated public java.util.Map getCostsMap() {
       return internalGetCosts().getMap();
     }
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2962,17 +2606,15 @@ public java.util.Map getCostsMap() {
      * map<string, double> costs = 10 [deprecated = true];
      */
     @java.lang.Override
-    @java.lang.Deprecated
-    public double getCostsOrDefault(java.lang.String key, double defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetCosts().getMap();
+    @java.lang.Deprecated public double getCostsOrDefault(
+        java.lang.String key,
+        double defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetCosts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2984,27 +2626,23 @@ public double getCostsOrDefault(java.lang.String key, double defaultValue) {
      * map<string, double> costs = 10 [deprecated = true];
      */
     @java.lang.Override
-    @java.lang.Deprecated
-    public double getCostsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetCosts().getMap();
+    @java.lang.Deprecated public double getCostsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetCosts().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
-    @java.lang.Deprecated
-    public Builder clearCosts() {
+    @java.lang.Deprecated public Builder clearCosts() {
       bitField0_ = (bitField0_ & ~0x00000200);
-      internalGetMutableCosts().getMutableMap().clear();
+      internalGetMutableCosts().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -3015,23 +2653,23 @@ public Builder clearCosts() {
      *
      * map<string, double> costs = 10 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public Builder removeCosts(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableCosts().getMutableMap().remove(key);
+    @java.lang.Deprecated public Builder removeCosts(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableCosts().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableCosts() {
+    public java.util.Map
+        getMutableCosts() {
       bitField0_ |= 0x00000200;
       return internalGetMutableCosts().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -3042,19 +2680,17 @@ public java.util.Map getMutableCosts() {
      *
      * map<string, double> costs = 10 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public Builder putCosts(java.lang.String key, double value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    @java.lang.Deprecated public Builder putCosts(
+        java.lang.String key,
+        double value) {
+      if (key == null) { throw new NullPointerException("map key"); }
 
-      internalGetMutableCosts().getMutableMap().put(key, value);
+      internalGetMutableCosts().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000200;
       return this;
     }
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -3065,17 +2701,16 @@ public Builder putCosts(java.lang.String key, double value) {
      *
      * map<string, double> costs = 10 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public Builder putAllCosts(java.util.Map values) {
-      internalGetMutableCosts().getMutableMap().putAll(values);
+    @java.lang.Deprecated public Builder putAllCosts(
+        java.util.Map values) {
+      internalGetMutableCosts().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000200;
       return this;
     }
 
-    private double totalCost_;
+    private double totalCost_ ;
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -3085,19 +2720,15 @@ public Builder putAllCosts(java.util.Map val
      * 
* * double total_cost = 11 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2351 + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @return The totalCost. */ @java.lang.Override - @java.lang.Deprecated - public double getTotalCost() { + @java.lang.Deprecated public double getTotalCost() { return totalCost_; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -3107,14 +2738,12 @@ public double getTotalCost() {
      * 
* * double total_cost = 11 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2351 + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @param value The totalCost to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setTotalCost(double value) { + @java.lang.Deprecated public Builder setTotalCost(double value) { totalCost_ = value; bitField0_ |= 0x00000400; @@ -3122,8 +2751,6 @@ public Builder setTotalCost(double value) { return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -3133,21 +2760,19 @@ public Builder setTotalCost(double value) {
      * 
* * double total_cost = 11 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2351 + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearTotalCost() { + @java.lang.Deprecated public Builder clearTotalCost() { bitField0_ = (bitField0_ & ~0x00000400); totalCost_ = 0D; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3157,12 +2782,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.AggregatedMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.AggregatedMetrics) private static final com.google.cloud.optimization.v1.AggregatedMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.AggregatedMetrics(); } @@ -3171,27 +2796,27 @@ public static com.google.cloud.optimization.v1.AggregatedMetrics getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AggregatedMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregatedMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3206,4 +2831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.AggregatedMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java similarity index 83% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java index 0742ccd02fd8..76c3f6cdc47e 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java @@ -1,69 +1,42 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface AggregatedMetricsOrBuilder - extends +public interface AggregatedMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.AggregatedMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Number of shipments performed. Note that a pickup and delivery pair only
    * counts once.
    * 
* * int32 performed_shipment_count = 1; - * * @return The performedShipmentCount. */ int getPerformedShipmentCount(); /** - * - * *
    * Total travel duration for a route or a solution.
    * 
* * .google.protobuf.Duration travel_duration = 2; - * * @return Whether the travelDuration field is set. */ boolean hasTravelDuration(); /** - * - * *
    * Total travel duration for a route or a solution.
    * 
* * .google.protobuf.Duration travel_duration = 2; - * * @return The travelDuration. */ com.google.protobuf.Duration getTravelDuration(); /** - * - * *
    * Total travel duration for a route or a solution.
    * 
@@ -73,32 +46,24 @@ public interface AggregatedMetricsOrBuilder com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); /** - * - * *
    * Total wait duration for a route or a solution.
    * 
* * .google.protobuf.Duration wait_duration = 3; - * * @return Whether the waitDuration field is set. */ boolean hasWaitDuration(); /** - * - * *
    * Total wait duration for a route or a solution.
    * 
* * .google.protobuf.Duration wait_duration = 3; - * * @return The waitDuration. */ com.google.protobuf.Duration getWaitDuration(); /** - * - * *
    * Total wait duration for a route or a solution.
    * 
@@ -108,32 +73,24 @@ public interface AggregatedMetricsOrBuilder com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder(); /** - * - * *
    * Total delay duration for a route or a solution.
    * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return Whether the delayDuration field is set. */ boolean hasDelayDuration(); /** - * - * *
    * Total delay duration for a route or a solution.
    * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return The delayDuration. */ com.google.protobuf.Duration getDelayDuration(); /** - * - * *
    * Total delay duration for a route or a solution.
    * 
@@ -143,32 +100,24 @@ public interface AggregatedMetricsOrBuilder com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder(); /** - * - * *
    * Total break duration for a route or a solution.
    * 
* * .google.protobuf.Duration break_duration = 5; - * * @return Whether the breakDuration field is set. */ boolean hasBreakDuration(); /** - * - * *
    * Total break duration for a route or a solution.
    * 
* * .google.protobuf.Duration break_duration = 5; - * * @return The breakDuration. */ com.google.protobuf.Duration getBreakDuration(); /** - * - * *
    * Total break duration for a route or a solution.
    * 
@@ -178,32 +127,24 @@ public interface AggregatedMetricsOrBuilder com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder(); /** - * - * *
    * Total visit duration for a route or a solution.
    * 
* * .google.protobuf.Duration visit_duration = 6; - * * @return Whether the visitDuration field is set. */ boolean hasVisitDuration(); /** - * - * *
    * Total visit duration for a route or a solution.
    * 
* * .google.protobuf.Duration visit_duration = 6; - * * @return The visitDuration. */ com.google.protobuf.Duration getVisitDuration(); /** - * - * *
    * Total visit duration for a route or a solution.
    * 
@@ -213,8 +154,6 @@ public interface AggregatedMetricsOrBuilder com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder(); /** - * - * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -224,13 +163,10 @@ public interface AggregatedMetricsOrBuilder
    * 
* * .google.protobuf.Duration total_duration = 7; - * * @return Whether the totalDuration field is set. */ boolean hasTotalDuration(); /** - * - * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -240,13 +176,10 @@ public interface AggregatedMetricsOrBuilder
    * 
* * .google.protobuf.Duration total_duration = 7; - * * @return The totalDuration. */ com.google.protobuf.Duration getTotalDuration(); /** - * - * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -260,21 +193,16 @@ public interface AggregatedMetricsOrBuilder
   com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Total travel distance for a route or a solution.
    * 
* * double travel_distance_meters = 8; - * * @return The travelDistanceMeters. */ double getTravelDistanceMeters(); /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -284,13 +212,10 @@ public interface AggregatedMetricsOrBuilder
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ int getMaxLoadsCount(); /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -300,17 +225,17 @@ public interface AggregatedMetricsOrBuilder
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + */ + boolean containsMaxLoads( + java.lang.String key); + /** + * Use {@link #getMaxLoadsMap()} instead. */ - boolean containsMaxLoads(java.lang.String key); - /** Use {@link #getMaxLoadsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMaxLoads(); + getMaxLoads(); /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -320,14 +245,11 @@ public interface AggregatedMetricsOrBuilder
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ java.util.Map - getMaxLoadsMap(); + getMaxLoadsMap(); /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -337,17 +259,14 @@ public interface AggregatedMetricsOrBuilder
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ /* nullable */ - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault( +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue); +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue); /** - * - * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -357,15 +276,12 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault(
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow( java.lang.String key); /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -376,11 +292,8 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated
-  int getCostsCount();
+  @java.lang.Deprecated int getCostsCount();
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -391,14 +304,15 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
+  @java.lang.Deprecated boolean containsCosts(
+      java.lang.String key);
+  /**
+   * Use {@link #getCostsMap()} instead.
+   */
   @java.lang.Deprecated
-  boolean containsCosts(java.lang.String key);
-  /** Use {@link #getCostsMap()} instead. */
-  @java.lang.Deprecated
-  java.util.Map getCosts();
+  java.util.Map
+  getCosts();
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -409,11 +323,9 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated
-  java.util.Map getCostsMap();
+  @java.lang.Deprecated java.util.Map
+  getCostsMap();
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -424,11 +336,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated
-  double getCostsOrDefault(java.lang.String key, double defaultValue);
+  @java.lang.Deprecated double getCostsOrDefault(
+      java.lang.String key,
+      double defaultValue);
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -439,12 +350,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated
-  double getCostsOrThrow(java.lang.String key);
+  @java.lang.Deprecated double getCostsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -454,11 +363,9 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    * 
* * double total_cost = 11 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2351 + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @return The totalCost. */ - @java.lang.Deprecated - double getTotalCost(); + @java.lang.Deprecated double getTotalCost(); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java similarity index 70% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java index 94f7758ab75b..0283530e7b6d 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** - * - * *
  * The long running operation metadata for async model related methods.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.AsyncModelMetadata} */ -public final class AsyncModelMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AsyncModelMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.AsyncModelMetadata) AsyncModelMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AsyncModelMetadata.newBuilder() to construct. private AsyncModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncModelMetadata() { state_ = 0; stateMessage_ = ""; @@ -44,38 +26,34 @@ private AsyncModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncModelMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.AsyncModelMetadata.class, - com.google.cloud.optimization.v1.AsyncModelMetadata.Builder.class); + com.google.cloud.optimization.v1.AsyncModelMetadata.class, com.google.cloud.optimization.v1.AsyncModelMetadata.Builder.class); } /** - * - * *
    * Possible states of the operation.
    * 
* * Protobuf enum {@code google.cloud.optimization.v1.AsyncModelMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -84,8 +62,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request is being processed.
      * 
@@ -94,8 +70,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * The operation completed successfully.
      * 
@@ -104,8 +78,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The operation was cancelled.
      * 
@@ -114,8 +86,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLED(3), /** - * - * *
      * The operation has failed.
      * 
@@ -127,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -137,8 +105,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request is being processed.
      * 
@@ -147,8 +113,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * The operation completed successfully.
      * 
@@ -157,8 +121,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The operation was cancelled.
      * 
@@ -167,8 +129,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 3; /** - * - * *
      * The operation has failed.
      * 
@@ -177,6 +137,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -201,55 +162,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return SUCCEEDED; - case 3: - return CANCELLED; - case 4: - return FAILED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return SUCCEEDED; + case 3: return CANCELLED; + case 4: return FAILED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelMetadata.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -269,54 +226,39 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; /** - * - * *
    * The state of the current operation.
    * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the current operation.
    * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.optimization.v1.AsyncModelMetadata.State getState() { - com.google.cloud.optimization.v1.AsyncModelMetadata.State result = - com.google.cloud.optimization.v1.AsyncModelMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.optimization.v1.AsyncModelMetadata.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.optimization.v1.AsyncModelMetadata.State getState() { + com.google.cloud.optimization.v1.AsyncModelMetadata.State result = com.google.cloud.optimization.v1.AsyncModelMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.optimization.v1.AsyncModelMetadata.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object stateMessage_ = ""; /** - * - * *
    * A message providing more details about the current state of the operation.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; - * * @return The stateMessage. */ @java.lang.Override @@ -325,30 +267,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** - * - * *
    * A message providing more details about the current state of the operation.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -359,14 +301,11 @@ public com.google.protobuf.ByteString getStateMessageBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -374,14 +313,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -389,8 +325,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The creation time of the operation.
    * 
@@ -405,14 +339,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -420,14 +351,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ @java.lang.Override @@ -435,8 +363,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The last update time of the operation.
    * 
@@ -449,7 +375,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -461,10 +386,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.optimization.v1.AsyncModelMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.optimization.v1.AsyncModelMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { @@ -485,19 +409,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.optimization.v1.AsyncModelMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.optimization.v1.AsyncModelMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -507,23 +432,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.AsyncModelMetadata)) { return super.equals(obj); } - com.google.cloud.optimization.v1.AsyncModelMetadata other = - (com.google.cloud.optimization.v1.AsyncModelMetadata) obj; + com.google.cloud.optimization.v1.AsyncModelMetadata other = (com.google.cloud.optimization.v1.AsyncModelMetadata) obj; if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; + if (!getStateMessage() + .equals(other.getStateMessage())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -554,135 +481,131 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.AsyncModelMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.AsyncModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The long running operation metadata for async model related methods.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.AsyncModelMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.AsyncModelMetadata) com.google.cloud.optimization.v1.AsyncModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.AsyncModelMetadata.class, - com.google.cloud.optimization.v1.AsyncModelMetadata.Builder.class); + com.google.cloud.optimization.v1.AsyncModelMetadata.class, com.google.cloud.optimization.v1.AsyncModelMetadata.Builder.class); } // Construct using com.google.cloud.optimization.v1.AsyncModelMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -703,9 +626,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; } @java.lang.Override @@ -724,11 +647,8 @@ public com.google.cloud.optimization.v1.AsyncModelMetadata build() { @java.lang.Override public com.google.cloud.optimization.v1.AsyncModelMetadata buildPartial() { - com.google.cloud.optimization.v1.AsyncModelMetadata result = - new com.google.cloud.optimization.v1.AsyncModelMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.AsyncModelMetadata result = new com.google.cloud.optimization.v1.AsyncModelMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -742,10 +662,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.AsyncModelMetadata r result.stateMessage_ = stateMessage_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } } @@ -753,39 +677,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.AsyncModelMetadata r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.AsyncModelMetadata) { - return mergeFrom((com.google.cloud.optimization.v1.AsyncModelMetadata) other); + return mergeFrom((com.google.cloud.optimization.v1.AsyncModelMetadata)other); } else { super.mergeFrom(other); return this; @@ -793,8 +716,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.optimization.v1.AsyncModelMetadata other) { - if (other == com.google.cloud.optimization.v1.AsyncModelMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.optimization.v1.AsyncModelMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -835,37 +757,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - stateMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + stateMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -875,34 +796,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -913,33 +826,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.optimization.v1.AsyncModelMetadata.State getState() { - com.google.cloud.optimization.v1.AsyncModelMetadata.State result = - com.google.cloud.optimization.v1.AsyncModelMetadata.State.forNumber(state_); - return result == null - ? com.google.cloud.optimization.v1.AsyncModelMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.optimization.v1.AsyncModelMetadata.State result = com.google.cloud.optimization.v1.AsyncModelMetadata.State.forNumber(state_); + return result == null ? com.google.cloud.optimization.v1.AsyncModelMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -953,14 +857,11 @@ public Builder setState(com.google.cloud.optimization.v1.AsyncModelMetadata.Stat return this; } /** - * - * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -972,21 +873,19 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** - * - * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -995,22 +894,21 @@ public java.lang.String getStateMessage() { } } /** - * - * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -1018,37 +916,30 @@ public com.google.protobuf.ByteString getStateMessageBytes() { } } /** - * - * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStateMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } stateMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @return This builder for chaining. */ public Builder clearStateMessage() { @@ -1058,22 +949,18 @@ public Builder clearStateMessage() { return this; } /** - * - * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStateMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stateMessage_ = value; bitField0_ |= 0x00000002; @@ -1083,47 +970,34 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1144,15 +1018,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1163,8 +1036,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1173,9 +1044,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1188,8 +1059,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1207,8 +1076,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1221,8 +1088,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1233,14 +1098,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1248,17 +1110,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1266,47 +1125,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1327,15 +1173,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1346,8 +1191,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1356,9 +1199,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1371,8 +1214,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1390,8 +1231,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1404,8 +1243,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1416,14 +1253,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1431,24 +1265,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1458,12 +1289,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.AsyncModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.AsyncModelMetadata) private static final com.google.cloud.optimization.v1.AsyncModelMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.AsyncModelMetadata(); } @@ -1472,27 +1303,27 @@ public static com.google.cloud.optimization.v1.AsyncModelMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1507,4 +1338,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.AsyncModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java similarity index 76% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java index 856d899ba4e5..9353d6f5d29d 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java @@ -1,107 +1,72 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface AsyncModelMetadataOrBuilder - extends +public interface AsyncModelMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.AsyncModelMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the current operation.
    * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the current operation.
    * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; - * * @return The state. */ com.google.cloud.optimization.v1.AsyncModelMetadata.State getState(); /** - * - * *
    * A message providing more details about the current state of the operation.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; - * * @return The stateMessage. */ java.lang.String getStateMessage(); /** - * - * *
    * A message providing more details about the current state of the operation.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString getStateMessageBytes(); + com.google.protobuf.ByteString + getStateMessageBytes(); /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The creation time of the operation.
    * 
@@ -111,32 +76,24 @@ public interface AsyncModelMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The last update time of the operation.
    * 
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java new file mode 100644 index 000000000000..b0aaca5a9554 --- /dev/null +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java @@ -0,0 +1,124 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/optimization/v1/async_model.proto + +package com.google.cloud.optimization.v1; + +public final class AsyncModelProto { + private AsyncModelProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/optimization/v1/async_mod" + + "el.proto\022\034google.cloud.optimization.v1\032\037" + + "google/api/field_behavior.proto\032\037google/" + + "protobuf/timestamp.proto\"\225\001\n\013InputConfig" + + "\022=\n\ngcs_source\030\001 \001(\0132\'.google.cloud.opti" + + "mization.v1.GcsSourceH\000\022=\n\013data_format\030\002" + + " \001(\0162(.google.cloud.optimization.v1.Data" + + "FormatB\010\n\006source\"\245\001\n\014OutputConfig\022G\n\017gcs" + + "_destination\030\001 \001(\0132,.google.cloud.optimi" + + "zation.v1.GcsDestinationH\000\022=\n\013data_forma" + + "t\030\002 \001(\0162(.google.cloud.optimization.v1.D" + + "ataFormatB\r\n\013destination\"\036\n\tGcsSource\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\002\"#\n\016GcsDestination\022\021\n\003ur" + + "i\030\001 \001(\tB\004\342A\001\002\"\253\002\n\022AsyncModelMetadata\022E\n\005" + + "state\030\001 \001(\01626.google.cloud.optimization." + + "v1.AsyncModelMetadata.State\022\025\n\rstate_mes" + + "sage\030\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google" + + ".protobuf.Timestamp\022/\n\013update_time\030\004 \001(\013" + + "2\032.google.protobuf.Timestamp\"U\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUC" + + "CEEDED\020\002\022\r\n\tCANCELLED\020\003\022\n\n\006FAILED\020\004*?\n\nD" + + "ataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010" + + "\n\004JSON\020\001\022\n\n\006STRING\020\002B{\n com.google.cloud" + + ".optimization.v1B\017AsyncModelProtoP\001ZDclo" + + "ud.google.com/go/optimization/apiv1/opti" + + "mizationpb;optimizationpbb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_optimization_v1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_InputConfig_descriptor, + new java.lang.String[] { "GcsSource", "DataFormat", "Source", }); + internal_static_google_cloud_optimization_v1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "DataFormat", "Destination", }); + internal_static_google_cloud_optimization_v1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_GcsSource_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_optimization_v1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor, + new java.lang.String[] { "State", "StateMessage", "CreateTime", "UpdateTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java similarity index 62% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java index f24124f54c14..2fcdc0bc4be7 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Request to batch optimize tours as an asynchronous operation.
  * Each input file should contain one `OptimizeToursRequest`, and each output
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursRequest}
  */
-public final class BatchOptimizeToursRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchOptimizeToursRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BatchOptimizeToursRequest)
     BatchOptimizeToursRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchOptimizeToursRequest.newBuilder() to construct.
   private BatchOptimizeToursRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BatchOptimizeToursRequest() {
     parent_ = "";
     modelConfigs_ = java.util.Collections.emptyList();
@@ -48,142 +30,105 @@ private BatchOptimizeToursRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchOptimizeToursRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class,
-            com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder.class);
+            com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder.class);
   }
 
-  public interface AsyncModelConfigOrBuilder
-      extends
+  public interface AsyncModelConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * User defined model name, can be used as alias by users to keep track of
      * models.
      * 
* * string display_name = 1; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
      * User defined model name, can be used as alias by users to keep track of
      * models.
      * 
* * string display_name = 1; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
      * Required. Information about the input model.
      * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
      * Required. Information about the input model.
      * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.optimization.v1.InputConfig getInputConfig(); /** - * - * *
      * Required. Information about the input model.
      * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.optimization.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
      * Required. The desired output location information.
      * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
      * Required. The desired output location information.
      * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.optimization.v1.OutputConfig getOutputConfig(); /** - * - * *
      * Required. The desired output location information.
      * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
      * If this is set, the model will be solved in the checkpoint mode. In this
      * mode, the input model can have a deadline longer than 30 mins without the
@@ -196,70 +141,60 @@ public interface AsyncModelConfigOrBuilder
      * 
* * bool enable_checkpoints = 4; - * * @return The enableCheckpoints. */ boolean getEnableCheckpoints(); } /** - * - * *
    * Information for solving one optimization model asynchronously.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig} */ - public static final class AsyncModelConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AsyncModelConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) AsyncModelConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncModelConfig.newBuilder() to construct. private AsyncModelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AsyncModelConfig() { displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AsyncModelConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder - .class); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder.class); } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
      * User defined model name, can be used as alias by users to keep track of
      * models.
      * 
* * string display_name = 1; - * * @return The displayName. */ @java.lang.Override @@ -268,30 +203,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
      * User defined model name, can be used as alias by users to keep track of
      * models.
      * 
* * string display_name = 1; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -302,16 +237,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.optimization.v1.InputConfig inputConfig_; /** - * - * *
      * Required. Information about the input model.
      * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -319,55 +249,37 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
      * Required. Information about the input model.
      * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.optimization.v1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
      * Required. Information about the input model.
      * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.optimization.v1.InputConfigOrBuilder getInputConfigOrBuilder() { - return inputConfig_ == null - ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() : inputConfig_; } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.optimization.v1.OutputConfig outputConfig_; /** - * - * *
      * Required. The desired output location information.
      * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -375,47 +287,32 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
      * Required. The desired output location information.
      * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.optimization.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
      * Required. The desired output location information.
      * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() : outputConfig_; } public static final int ENABLE_CHECKPOINTS_FIELD_NUMBER = 4; private boolean enableCheckpoints_ = false; /** - * - * *
      * If this is set, the model will be solved in the checkpoint mode. In this
      * mode, the input model can have a deadline longer than 30 mins without the
@@ -428,7 +325,6 @@ public com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrB
      * 
* * bool enable_checkpoints = 4; - * * @return The enableCheckpoints. */ @java.lang.Override @@ -437,7 +333,6 @@ public boolean getEnableCheckpoints() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -449,7 +344,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } @@ -475,13 +371,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputConfig()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOutputConfig()); } if (enableCheckpoints_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableCheckpoints_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enableCheckpoints_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -491,25 +390,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)) { + if (!(obj instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other = - (com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) obj; + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other = (com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) obj; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } - if (getEnableCheckpoints() != other.getEnableCheckpoints()) return false; + if (getEnableCheckpoints() + != other.getEnableCheckpoints()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -532,107 +433,97 @@ public int hashCode() { hash = (53 * hash) + getOutputConfig().hashCode(); } hash = (37 * hash) + ENABLE_CHECKPOINTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCheckpoints()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableCheckpoints()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -642,43 +533,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information for solving one optimization model asynchronously.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder - .class); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder.class); } - // Construct using - // com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -699,22 +586,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - .getDefaultInstance(); + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig build() { - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result = - buildPartial(); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -722,30 +606,27 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConf } @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - buildPartial() { - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result = - new com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig buildPartial() { + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result = new com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result) { + private void buildPartial0(com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.inputConfig_ = - inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); + result.inputConfig_ = inputConfigBuilder_ == null + ? inputConfig_ + : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.outputConfig_ = - outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + result.outputConfig_ = outputConfigBuilder_ == null + ? outputConfig_ + : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.enableCheckpoints_ = enableCheckpoints_; @@ -756,55 +637,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) { - return mergeFrom( - (com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) other); + if (other instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) { + return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other) { - if (other - == com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other) { + if (other == com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.getDefaultInstance()) return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000001; @@ -845,37 +717,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - enableCheckpoints_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getInputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + enableCheckpoints_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -885,26 +756,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object displayName_ = ""; /** - * - * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -913,22 +781,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -936,37 +803,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -976,22 +836,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000001; @@ -1001,58 +857,39 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.optimization.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InputConfig, - com.google.cloud.optimization.v1.InputConfig.Builder, - com.google.cloud.optimization.v1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.optimization.v1.InputConfig, com.google.cloud.optimization.v1.InputConfig.Builder, com.google.cloud.optimization.v1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.optimization.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.optimization.v1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -1068,15 +905,11 @@ public Builder setInputConfig(com.google.cloud.optimization.v1.InputConfig value return this; } /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.optimization.v1.InputConfig.Builder builderForValue) { @@ -1090,22 +923,17 @@ public Builder setInputConfig( return this; } /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInputConfig(com.google.cloud.optimization.v1.InputConfig value) { if (inputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && inputConfig_ != null - && inputConfig_ - != com.google.cloud.optimization.v1.InputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + inputConfig_ != null && + inputConfig_ != com.google.cloud.optimization.v1.InputConfig.getDefaultInstance()) { getInputConfigBuilder().mergeFrom(value); } else { inputConfig_ = value; @@ -1118,15 +946,11 @@ public Builder mergeInputConfig(com.google.cloud.optimization.v1.InputConfig val return this; } /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1139,15 +963,11 @@ public Builder clearInputConfig() { return this; } /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.optimization.v1.InputConfig.Builder getInputConfigBuilder() { bitField0_ |= 0x00000002; @@ -1155,48 +975,36 @@ public com.google.cloud.optimization.v1.InputConfig.Builder getInputConfigBuilde return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.optimization.v1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
        * Required. Information about the input model.
        * 
* - * - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InputConfig, - com.google.cloud.optimization.v1.InputConfig.Builder, - com.google.cloud.optimization.v1.InputConfigOrBuilder> + com.google.cloud.optimization.v1.InputConfig, com.google.cloud.optimization.v1.InputConfig.Builder, com.google.cloud.optimization.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InputConfig, - com.google.cloud.optimization.v1.InputConfig.Builder, - com.google.cloud.optimization.v1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.InputConfig, com.google.cloud.optimization.v1.InputConfig.Builder, com.google.cloud.optimization.v1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1204,58 +1012,39 @@ public com.google.cloud.optimization.v1.InputConfigOrBuilder getInputConfigOrBui private com.google.cloud.optimization.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OutputConfig, - com.google.cloud.optimization.v1.OutputConfig.Builder, - com.google.cloud.optimization.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.optimization.v1.OutputConfig, com.google.cloud.optimization.v1.OutputConfig.Builder, com.google.cloud.optimization.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.optimization.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.optimization.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1271,15 +1060,11 @@ public Builder setOutputConfig(com.google.cloud.optimization.v1.OutputConfig val return this; } /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.optimization.v1.OutputConfig.Builder builderForValue) { @@ -1293,22 +1078,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.optimization.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1321,15 +1101,11 @@ public Builder mergeOutputConfig(com.google.cloud.optimization.v1.OutputConfig v return this; } /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1342,15 +1118,11 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.optimization.v1.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000004; @@ -1358,57 +1130,43 @@ public com.google.cloud.optimization.v1.OutputConfig.Builder getOutputConfigBuil return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
        * Required. The desired output location information.
        * 
* - * - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OutputConfig, - com.google.cloud.optimization.v1.OutputConfig.Builder, - com.google.cloud.optimization.v1.OutputConfigOrBuilder> + com.google.cloud.optimization.v1.OutputConfig, com.google.cloud.optimization.v1.OutputConfig.Builder, com.google.cloud.optimization.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OutputConfig, - com.google.cloud.optimization.v1.OutputConfig.Builder, - com.google.cloud.optimization.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.OutputConfig, com.google.cloud.optimization.v1.OutputConfig.Builder, com.google.cloud.optimization.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private boolean enableCheckpoints_; + private boolean enableCheckpoints_ ; /** - * - * *
        * If this is set, the model will be solved in the checkpoint mode. In this
        * mode, the input model can have a deadline longer than 30 mins without the
@@ -1421,7 +1179,6 @@ public com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrB
        * 
* * bool enable_checkpoints = 4; - * * @return The enableCheckpoints. */ @java.lang.Override @@ -1429,8 +1186,6 @@ public boolean getEnableCheckpoints() { return enableCheckpoints_; } /** - * - * *
        * If this is set, the model will be solved in the checkpoint mode. In this
        * mode, the input model can have a deadline longer than 30 mins without the
@@ -1443,7 +1198,6 @@ public boolean getEnableCheckpoints() {
        * 
* * bool enable_checkpoints = 4; - * * @param value The enableCheckpoints to set. * @return This builder for chaining. */ @@ -1455,8 +1209,6 @@ public Builder setEnableCheckpoints(boolean value) { return this; } /** - * - * *
        * If this is set, the model will be solved in the checkpoint mode. In this
        * mode, the input model can have a deadline longer than 30 mins without the
@@ -1469,7 +1221,6 @@ public Builder setEnableCheckpoints(boolean value) {
        * 
* * bool enable_checkpoints = 4; - * * @return This builder for chaining. */ public Builder clearEnableCheckpoints() { @@ -1478,7 +1229,6 @@ public Builder clearEnableCheckpoints() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1491,45 +1241,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) - private static final com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(); + DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - getDefaultInstance() { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncModelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncModelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1541,19 +1287,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Target project and location to make a call.
    *
@@ -1563,7 +1306,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -1572,15 +1314,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Target project and location to make a call.
    *
@@ -1590,15 +1331,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1607,100 +1349,72 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_CONFIGS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig> - modelConfigs_; + private java.util.List modelConfigs_; /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getModelConfigsList() { + public java.util.List getModelConfigsList() { return modelConfigs_; } /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> + public java.util.List getModelConfigsOrBuilderList() { return modelConfigs_; } /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getModelConfigsCount() { return modelConfigs_.size(); } /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - getModelConfigs(int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs(int index) { return modelConfigs_.get(index); } /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder - getModelConfigsOrBuilder(int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder getModelConfigsOrBuilder( + int index) { return modelConfigs_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1712,7 +1426,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -1732,7 +1447,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < modelConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, modelConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, modelConfigs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1742,16 +1458,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BatchOptimizeToursRequest other = - (com.google.cloud.optimization.v1.BatchOptimizeToursRequest) obj; + com.google.cloud.optimization.v1.BatchOptimizeToursRequest other = (com.google.cloud.optimization.v1.BatchOptimizeToursRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getModelConfigsList().equals(other.getModelConfigsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getModelConfigsList() + .equals(other.getModelConfigsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1775,104 +1492,98 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.BatchOptimizeToursRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to batch optimize tours as an asynchronous operation.
    * Each input file should contain one `OptimizeToursRequest`, and each output
@@ -1883,32 +1594,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BatchOptimizeToursRequest)
       com.google.cloud.optimization.v1.BatchOptimizeToursRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class,
-              com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder.class);
+              com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.BatchOptimizeToursRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1925,9 +1637,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
     }
 
     @java.lang.Override
@@ -1946,18 +1658,14 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursRequest build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.BatchOptimizeToursRequest buildPartial() {
-      com.google.cloud.optimization.v1.BatchOptimizeToursRequest result =
-          new com.google.cloud.optimization.v1.BatchOptimizeToursRequest(this);
+      com.google.cloud.optimization.v1.BatchOptimizeToursRequest result = new com.google.cloud.optimization.v1.BatchOptimizeToursRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.optimization.v1.BatchOptimizeToursRequest result) {
+    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.BatchOptimizeToursRequest result) {
       if (modelConfigsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           modelConfigs_ = java.util.Collections.unmodifiableList(modelConfigs_);
@@ -1980,39 +1688,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.BatchOptimizeToursRe
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest) {
-        return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursRequest) other);
+        return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2020,8 +1727,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.BatchOptimizeToursRequest other) {
-      if (other == com.google.cloud.optimization.v1.BatchOptimizeToursRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.BatchOptimizeToursRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -2045,10 +1751,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.BatchOptimizeToursRequ
             modelConfigsBuilder_ = null;
             modelConfigs_ = other.modelConfigs_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            modelConfigsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getModelConfigsFieldBuilder()
-                    : null;
+            modelConfigsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getModelConfigsFieldBuilder() : null;
           } else {
             modelConfigsBuilder_.addAllMessages(other.modelConfigs_);
           }
@@ -2080,34 +1785,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
-                            .parser(),
-                        extensionRegistry);
-                if (modelConfigsBuilder_ == null) {
-                  ensureModelConfigsIsMutable();
-                  modelConfigs_.add(m);
-                } else {
-                  modelConfigsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.parser(),
+                      extensionRegistry);
+              if (modelConfigsBuilder_ == null) {
+                ensureModelConfigsIsMutable();
+                modelConfigs_.add(m);
+              } else {
+                modelConfigsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2117,13 +1818,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Target project and location to make a call.
      *
@@ -2133,13 +1831,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -2148,8 +1846,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Target project and location to make a call.
      *
@@ -2159,14 +1855,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -2174,8 +1871,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Target project and location to make a call.
      *
@@ -2185,22 +1880,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Target project and location to make a call.
      *
@@ -2210,7 +1901,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -2220,8 +1910,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Target project and location to make a call.
      *
@@ -2231,14 +1919,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -2246,41 +1932,27 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig> - modelConfigs_ = java.util.Collections.emptyList(); - + private java.util.List modelConfigs_ = + java.util.Collections.emptyList(); private void ensureModelConfigsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - modelConfigs_ = - new java.util.ArrayList< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>( - modelConfigs_); + modelConfigs_ = new java.util.ArrayList(modelConfigs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> - modelConfigsBuilder_; + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> modelConfigsBuilder_; /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig> - getModelConfigsList() { + public java.util.List getModelConfigsList() { if (modelConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(modelConfigs_); } else { @@ -2288,16 +1960,12 @@ private void ensureModelConfigsIsMutable() { } } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getModelConfigsCount() { if (modelConfigsBuilder_ == null) { @@ -2307,19 +1975,14 @@ public int getModelConfigsCount() { } } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - getModelConfigs(int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs(int index) { if (modelConfigsBuilder_ == null) { return modelConfigs_.get(index); } else { @@ -2327,20 +1990,15 @@ public int getModelConfigsCount() { } } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setModelConfigs( - int index, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { + int index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { if (modelConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2354,21 +2012,15 @@ public Builder setModelConfigs( return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setModelConfigs( - int index, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) { if (modelConfigsBuilder_ == null) { ensureModelConfigsIsMutable(); modelConfigs_.set(index, builderForValue.build()); @@ -2379,19 +2031,14 @@ public Builder setModelConfigs( return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addModelConfigs( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { + public Builder addModelConfigs(com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { if (modelConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2405,20 +2052,15 @@ public Builder addModelConfigs( return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addModelConfigs( - int index, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { + int index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { if (modelConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2432,20 +2074,15 @@ public Builder addModelConfigs( return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addModelConfigs( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder - builderForValue) { + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) { if (modelConfigsBuilder_ == null) { ensureModelConfigsIsMutable(); modelConfigs_.add(builderForValue.build()); @@ -2456,21 +2093,15 @@ public Builder addModelConfigs( return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addModelConfigs( - int index, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) { if (modelConfigsBuilder_ == null) { ensureModelConfigsIsMutable(); modelConfigs_.add(index, builderForValue.build()); @@ -2481,25 +2112,19 @@ public Builder addModelConfigs( return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllModelConfigs( - java.lang.Iterable< - ? extends - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig> - values) { + java.lang.Iterable values) { if (modelConfigsBuilder_ == null) { ensureModelConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modelConfigs_); onChanged(); } else { modelConfigsBuilder_.addAllMessages(values); @@ -2507,16 +2132,12 @@ public Builder addAllModelConfigs( return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearModelConfigs() { if (modelConfigsBuilder_ == null) { @@ -2529,16 +2150,12 @@ public Builder clearModelConfigs() { return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeModelConfigs(int index) { if (modelConfigsBuilder_ == null) { @@ -2551,58 +2168,42 @@ public Builder removeModelConfigs(int index) { return this; } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder - getModelConfigsBuilder(int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder getModelConfigsBuilder( + int index) { return getModelConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder - getModelConfigsOrBuilder(int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder getModelConfigsOrBuilder( + int index) { if (modelConfigsBuilder_ == null) { - return modelConfigs_.get(index); - } else { + return modelConfigs_.get(index); } else { return modelConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends - com.google.cloud.optimization.v1.BatchOptimizeToursRequest - .AsyncModelConfigOrBuilder> - getModelConfigsOrBuilderList() { + public java.util.List + getModelConfigsOrBuilderList() { if (modelConfigsBuilder_ != null) { return modelConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2610,82 +2211,59 @@ public Builder removeModelConfigs(int index) { } } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder - addModelConfigsBuilder() { - return getModelConfigsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - .getDefaultInstance()); + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder addModelConfigsBuilder() { + return getModelConfigsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder - addModelConfigsBuilder(int index) { - return getModelConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig - .getDefaultInstance()); + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder addModelConfigsBuilder( + int index) { + return getModelConfigsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.getDefaultInstance()); } /** - * - * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder> - getModelConfigsBuilderList() { + public java.util.List + getModelConfigsBuilderList() { return getModelConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> getModelConfigsFieldBuilder() { if (modelConfigsBuilder_ == null) { - modelConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, - com.google.cloud.optimization.v1.BatchOptimizeToursRequest - .AsyncModelConfigOrBuilder>( - modelConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + modelConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder>( + modelConfigs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); modelConfigs_ = null; } return modelConfigsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2695,12 +2273,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BatchOptimizeToursRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BatchOptimizeToursRequest) private static final com.google.cloud.optimization.v1.BatchOptimizeToursRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BatchOptimizeToursRequest(); } @@ -2709,27 +2287,27 @@ public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchOptimizeToursRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchOptimizeToursRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2744,4 +2322,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.optimization.v1.BatchOptimizeToursRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java similarity index 51% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java index fcce76252b5d..a4373b0beba8 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface BatchOptimizeToursRequestOrBuilder - extends +public interface BatchOptimizeToursRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BatchOptimizeToursRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Target project and location to make a call.
    *
@@ -35,13 +17,10 @@ public interface BatchOptimizeToursRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Target project and location to make a call.
    *
@@ -51,80 +30,57 @@ public interface BatchOptimizeToursRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getModelConfigsList(); /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs( - int index); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs(int index); /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ int getModelConfigsCount(); /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List< - ? extends - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> + java.util.List getModelConfigsOrBuilderList(); /** - * - * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder - getModelConfigsOrBuilder(int index); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder getModelConfigsOrBuilder( + int index); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java similarity index 62% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java index 2ea909b25933..03c6a8a68702 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Response to a `BatchOptimizeToursRequest`. This is returned in
  * the LRO Operation after the operation is complete.
@@ -28,41 +11,39 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursResponse}
  */
-public final class BatchOptimizeToursResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchOptimizeToursResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BatchOptimizeToursResponse)
     BatchOptimizeToursResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchOptimizeToursResponse.newBuilder() to construct.
   private BatchOptimizeToursResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchOptimizeToursResponse() {}
+  private BatchOptimizeToursResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchOptimizeToursResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.BatchOptimizeToursResponse.class,
-            com.google.cloud.optimization.v1.BatchOptimizeToursResponse.Builder.class);
+            com.google.cloud.optimization.v1.BatchOptimizeToursResponse.class, com.google.cloud.optimization.v1.BatchOptimizeToursResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -74,7 +55,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -92,13 +74,12 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.BatchOptimizeToursResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.BatchOptimizeToursResponse other =
-        (com.google.cloud.optimization.v1.BatchOptimizeToursResponse) obj;
+    com.google.cloud.optimization.v1.BatchOptimizeToursResponse other = (com.google.cloud.optimization.v1.BatchOptimizeToursResponse) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -117,104 +98,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.optimization.v1.BatchOptimizeToursResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.optimization.v1.BatchOptimizeToursResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to a `BatchOptimizeToursRequest`. This is returned in
    * the LRO Operation after the operation is complete.
@@ -222,32 +197,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BatchOptimizeToursResponse)
       com.google.cloud.optimization.v1.BatchOptimizeToursResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BatchOptimizeToursResponse.class,
-              com.google.cloud.optimization.v1.BatchOptimizeToursResponse.Builder.class);
+              com.google.cloud.optimization.v1.BatchOptimizeToursResponse.class, com.google.cloud.optimization.v1.BatchOptimizeToursResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.BatchOptimizeToursResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -255,9 +231,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
     }
 
     @java.lang.Override
@@ -276,8 +252,7 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursResponse build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.BatchOptimizeToursResponse buildPartial() {
-      com.google.cloud.optimization.v1.BatchOptimizeToursResponse result =
-          new com.google.cloud.optimization.v1.BatchOptimizeToursResponse(this);
+      com.google.cloud.optimization.v1.BatchOptimizeToursResponse result = new com.google.cloud.optimization.v1.BatchOptimizeToursResponse(this);
       onBuilt();
       return result;
     }
@@ -286,39 +261,38 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursResponse buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.BatchOptimizeToursResponse) {
-        return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursResponse) other);
+        return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -326,8 +300,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.BatchOptimizeToursResponse other) {
-      if (other == com.google.cloud.optimization.v1.BatchOptimizeToursResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.BatchOptimizeToursResponse.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -354,13 +327,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -370,9 +342,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -382,12 +354,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BatchOptimizeToursResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BatchOptimizeToursResponse)
   private static final com.google.cloud.optimization.v1.BatchOptimizeToursResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BatchOptimizeToursResponse();
   }
@@ -396,27 +368,27 @@ public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchOptimizeToursResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchOptimizeToursResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -431,4 +403,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.optimization.v1.BatchOptimizeToursResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java
new file mode 100644
index 000000000000..f8c29b1334a4
--- /dev/null
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/optimization/v1/fleet_routing.proto
+
+package com.google.cloud.optimization.v1;
+
+public interface BatchOptimizeToursResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BatchOptimizeToursResponse)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
similarity index 66%
rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
index e3781a16b9de..8f65b2ff79f9 100644
--- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
- *
- *
  * 
  * Rules to generate time breaks for a vehicle (e.g. lunch breaks). A break
  * is a contiguous period of time during which the vehicle remains idle at its
@@ -36,16 +19,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.BreakRule}
  */
-public final class BreakRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BreakRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BreakRule)
     BreakRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BreakRule.newBuilder() to construct.
   private BreakRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BreakRule() {
     breakRequests_ = java.util.Collections.emptyList();
     frequencyConstraints_ = java.util.Collections.emptyList();
@@ -53,153 +35,110 @@ private BreakRule() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BreakRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.BreakRule.class,
-            com.google.cloud.optimization.v1.BreakRule.Builder.class);
+            com.google.cloud.optimization.v1.BreakRule.class, com.google.cloud.optimization.v1.BreakRule.Builder.class);
   }
 
-  public interface BreakRequestOrBuilder
-      extends
+  public interface BreakRequestOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BreakRule.BreakRequest)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the earliestStartTime field is set. */ boolean hasEarliestStartTime(); /** - * - * *
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The earliestStartTime. */ com.google.protobuf.Timestamp getEarliestStartTime(); /** - * - * *
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder(); /** - * - * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the latestStartTime field is set. */ boolean hasLatestStartTime(); /** - * - * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The latestStartTime. */ com.google.protobuf.Timestamp getLatestStartTime(); /** - * - * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder(); /** - * - * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minDuration field is set. */ boolean hasMinDuration(); /** - * - * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The minDuration. */ com.google.protobuf.Duration getMinDuration(); /** - * - * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder(); } /** - * - * *
    * The sequence of breaks (i.e. their number and order) that apply to each
    * vehicle must be known beforehand. The repeated `BreakRequest`s define
@@ -210,52 +149,46 @@ public interface BreakRequestOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.BreakRule.BreakRequest}
    */
-  public static final class BreakRequest extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class BreakRequest extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BreakRule.BreakRequest)
       BreakRequestOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use BreakRequest.newBuilder() to construct.
     private BreakRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private BreakRequest() {}
+    private BreakRequest() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new BreakRequest();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BreakRule.BreakRequest.class,
-              com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder.class);
+              com.google.cloud.optimization.v1.BreakRule.BreakRequest.class, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder.class);
     }
 
     public static final int EARLIEST_START_TIME_FIELD_NUMBER = 1;
     private com.google.protobuf.Timestamp earliestStartTime_;
     /**
-     *
-     *
      * 
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the earliestStartTime field is set. */ @java.lang.Override @@ -263,55 +196,37 @@ public boolean hasEarliestStartTime() { return earliestStartTime_ != null; } /** - * - * *
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The earliestStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEarliestStartTime() { - return earliestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestStartTime_; + return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; } /** - * - * *
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { - return earliestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestStartTime_; + return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; } public static final int LATEST_START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp latestStartTime_; /** - * - * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the latestStartTime field is set. */ @java.lang.Override @@ -319,54 +234,37 @@ public boolean hasLatestStartTime() { return latestStartTime_ != null; } /** - * - * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The latestStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLatestStartTime() { - return latestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestStartTime_; + return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; } /** - * - * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { - return latestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestStartTime_; + return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; } public static final int MIN_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration minDuration_; /** - * - * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minDuration field is set. */ @java.lang.Override @@ -374,42 +272,30 @@ public boolean hasMinDuration() { return minDuration_ != null; } /** - * - * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The minDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinDuration() { - return minDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minDuration_; + return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; } /** - * - * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { - return minDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minDuration_; + return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -421,7 +307,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (earliestStartTime_ != null) { output.writeMessage(1, getEarliestStartTime()); } @@ -441,13 +328,16 @@ public int getSerializedSize() { size = 0; if (earliestStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEarliestStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEarliestStartTime()); } if (latestStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLatestStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLatestStartTime()); } if (minDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMinDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -457,25 +347,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.BreakRule.BreakRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BreakRule.BreakRequest other = - (com.google.cloud.optimization.v1.BreakRule.BreakRequest) obj; + com.google.cloud.optimization.v1.BreakRule.BreakRequest other = (com.google.cloud.optimization.v1.BreakRule.BreakRequest) obj; if (hasEarliestStartTime() != other.hasEarliestStartTime()) return false; if (hasEarliestStartTime()) { - if (!getEarliestStartTime().equals(other.getEarliestStartTime())) return false; + if (!getEarliestStartTime() + .equals(other.getEarliestStartTime())) return false; } if (hasLatestStartTime() != other.hasLatestStartTime()) return false; if (hasLatestStartTime()) { - if (!getLatestStartTime().equals(other.getLatestStartTime())) return false; + if (!getLatestStartTime() + .equals(other.getLatestStartTime())) return false; } if (hasMinDuration() != other.hasMinDuration()) return false; if (hasMinDuration()) { - if (!getMinDuration().equals(other.getMinDuration())) return false; + if (!getMinDuration() + .equals(other.getMinDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -506,94 +398,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.BreakRule.BreakRequest prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.BreakRule.BreakRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -603,8 +490,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The sequence of breaks (i.e. their number and order) that apply to each
      * vehicle must be known beforehand. The repeated `BreakRequest`s define
@@ -615,33 +500,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.BreakRule.BreakRequest}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BreakRule.BreakRequest)
         com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.BreakRule.BreakRequest.class,
-                com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder.class);
+                com.google.cloud.optimization.v1.BreakRule.BreakRequest.class, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.BreakRule.BreakRequest.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -665,9 +550,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
       }
 
       @java.lang.Override
@@ -686,11 +571,8 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.BreakRule.BreakRequest buildPartial() {
-        com.google.cloud.optimization.v1.BreakRule.BreakRequest result =
-            new com.google.cloud.optimization.v1.BreakRule.BreakRequest(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.BreakRule.BreakRequest result = new com.google.cloud.optimization.v1.BreakRule.BreakRequest(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -698,18 +580,19 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest buildPartial() {
       private void buildPartial0(com.google.cloud.optimization.v1.BreakRule.BreakRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.earliestStartTime_ =
-              earliestStartTimeBuilder_ == null
-                  ? earliestStartTime_
-                  : earliestStartTimeBuilder_.build();
+          result.earliestStartTime_ = earliestStartTimeBuilder_ == null
+              ? earliestStartTime_
+              : earliestStartTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.latestStartTime_ =
-              latestStartTimeBuilder_ == null ? latestStartTime_ : latestStartTimeBuilder_.build();
+          result.latestStartTime_ = latestStartTimeBuilder_ == null
+              ? latestStartTime_
+              : latestStartTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.minDuration_ =
-              minDurationBuilder_ == null ? minDuration_ : minDurationBuilder_.build();
+          result.minDuration_ = minDurationBuilder_ == null
+              ? minDuration_
+              : minDurationBuilder_.build();
         }
       }
 
@@ -717,41 +600,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.BreakRule.BreakReque
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.BreakRule.BreakRequest) {
-          return mergeFrom((com.google.cloud.optimization.v1.BreakRule.BreakRequest) other);
+          return mergeFrom((com.google.cloud.optimization.v1.BreakRule.BreakRequest)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -759,8 +639,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.BreakRule.BreakRequest other) {
-        if (other == com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()) return this;
         if (other.hasEarliestStartTime()) {
           mergeEarliestStartTime(other.getEarliestStartTime());
         }
@@ -796,33 +675,33 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(
-                      getEarliestStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getLatestStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  input.readMessage(getMinDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getEarliestStartTimeFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getLatestStartTimeFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                input.readMessage(
+                    getMinDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,63 +711,43 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.Timestamp earliestStartTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
-          earliestStartTimeBuilder_;
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestStartTimeBuilder_;
       /**
-       *
-       *
        * 
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the earliestStartTime field is set. */ public boolean hasEarliestStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The earliestStartTime. */ public com.google.protobuf.Timestamp getEarliestStartTime() { if (earliestStartTimeBuilder_ == null) { - return earliestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestStartTime_; + return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; } else { return earliestStartTimeBuilder_.getMessage(); } } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { if (earliestStartTimeBuilder_ == null) { @@ -904,17 +763,14 @@ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEarliestStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (earliestStartTimeBuilder_ == null) { earliestStartTime_ = builderForValue.build(); } else { @@ -925,21 +781,17 @@ public Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builde return this; } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { if (earliestStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && earliestStartTime_ != null - && earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + earliestStartTime_ != null && + earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEarliestStartTimeBuilder().mergeFrom(value); } else { earliestStartTime_ = value; @@ -952,15 +804,11 @@ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEarliestStartTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -973,15 +821,11 @@ public Builder clearEarliestStartTime() { return this; } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { bitField0_ |= 0x00000001; @@ -989,48 +833,36 @@ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { return getEarliestStartTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { if (earliestStartTimeBuilder_ != null) { return earliestStartTimeBuilder_.getMessageOrBuilder(); } else { - return earliestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestStartTime_; + return earliestStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; } } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEarliestStartTimeFieldBuilder() { if (earliestStartTimeBuilder_ == null) { - earliestStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEarliestStartTime(), getParentForChildren(), isClean()); + earliestStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEarliestStartTime(), + getParentForChildren(), + isClean()); earliestStartTime_ = null; } return earliestStartTimeBuilder_; @@ -1038,58 +870,39 @@ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { private com.google.protobuf.Timestamp latestStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - latestStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> latestStartTimeBuilder_; /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the latestStartTime field is set. */ public boolean hasLatestStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The latestStartTime. */ public com.google.protobuf.Timestamp getLatestStartTime() { if (latestStartTimeBuilder_ == null) { - return latestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestStartTime_; + return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; } else { return latestStartTimeBuilder_.getMessage(); } } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLatestStartTime(com.google.protobuf.Timestamp value) { if (latestStartTimeBuilder_ == null) { @@ -1105,17 +918,14 @@ public Builder setLatestStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setLatestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLatestStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (latestStartTimeBuilder_ == null) { latestStartTime_ = builderForValue.build(); } else { @@ -1126,21 +936,17 @@ public Builder setLatestStartTime(com.google.protobuf.Timestamp.Builder builderF return this; } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeLatestStartTime(com.google.protobuf.Timestamp value) { if (latestStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && latestStartTime_ != null - && latestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + latestStartTime_ != null && + latestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLatestStartTimeBuilder().mergeFrom(value); } else { latestStartTime_ = value; @@ -1153,15 +959,11 @@ public Builder mergeLatestStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearLatestStartTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1174,15 +976,11 @@ public Builder clearLatestStartTime() { return this; } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder() { bitField0_ |= 0x00000002; @@ -1190,48 +988,36 @@ public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder() { return getLatestStartTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { if (latestStartTimeBuilder_ != null) { return latestStartTimeBuilder_.getMessageOrBuilder(); } else { - return latestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestStartTime_; + return latestStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; } } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLatestStartTimeFieldBuilder() { if (latestStartTimeBuilder_ == null) { - latestStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLatestStartTime(), getParentForChildren(), isClean()); + latestStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLatestStartTime(), + getParentForChildren(), + isClean()); latestStartTime_ = null; } return latestStartTimeBuilder_; @@ -1239,55 +1025,39 @@ public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { private com.google.protobuf.Duration minDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minDurationBuilder_; /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minDuration field is set. */ public boolean hasMinDuration() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The minDuration. */ public com.google.protobuf.Duration getMinDuration() { if (minDurationBuilder_ == null) { - return minDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minDuration_; + return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; } else { return minDurationBuilder_.getMessage(); } } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { @@ -1303,16 +1073,14 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (minDurationBuilder_ == null) { minDuration_ = builderForValue.build(); } else { @@ -1323,20 +1091,17 @@ public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForVal return this; } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && minDuration_ != null - && minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + minDuration_ != null && + minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinDurationBuilder().mergeFrom(value); } else { minDuration_ = value; @@ -1349,14 +1114,11 @@ public Builder mergeMinDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMinDuration() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1369,14 +1131,11 @@ public Builder clearMinDuration() { return this; } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { bitField0_ |= 0x00000004; @@ -1384,51 +1143,40 @@ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { return getMinDurationFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { if (minDurationBuilder_ != null) { return minDurationBuilder_.getMessageOrBuilder(); } else { - return minDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minDuration_; + return minDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : minDuration_; } } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinDurationFieldBuilder() { if (minDurationBuilder_ == null) { - minDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinDuration(), getParentForChildren(), isClean()); + minDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMinDuration(), + getParentForChildren(), + isClean()); minDuration_ = null; } return minDurationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1441,12 +1189,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BreakRule.BreakRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BreakRule.BreakRequest) private static final com.google.cloud.optimization.v1.BreakRule.BreakRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BreakRule.BreakRequest(); } @@ -1455,28 +1203,27 @@ public static com.google.cloud.optimization.v1.BreakRule.BreakRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BreakRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BreakRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1491,107 +1238,77 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.BreakRule.BreakRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface FrequencyConstraintOrBuilder - extends + public interface FrequencyConstraintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BreakRule.FrequencyConstraint) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minBreakDuration field is set. */ boolean hasMinBreakDuration(); /** - * - * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The minBreakDuration. */ com.google.protobuf.Duration getMinBreakDuration(); /** - * - * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder(); /** - * - * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxInterBreakDuration field is set. */ boolean hasMaxInterBreakDuration(); /** - * - * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxInterBreakDuration. */ com.google.protobuf.Duration getMaxInterBreakDuration(); /** - * - * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder(); } /** - * - * *
    * One may further constrain the frequency and duration of the breaks
    * specified above, by enforcing a minimum break frequency, such as
@@ -1630,53 +1347,47 @@ public interface FrequencyConstraintOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.BreakRule.FrequencyConstraint}
    */
-  public static final class FrequencyConstraint extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class FrequencyConstraint extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BreakRule.FrequencyConstraint)
       FrequencyConstraintOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use FrequencyConstraint.newBuilder() to construct.
     private FrequencyConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private FrequencyConstraint() {}
+    private FrequencyConstraint() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new FrequencyConstraint();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.class,
-              com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder.class);
+              com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.class, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder.class);
     }
 
     public static final int MIN_BREAK_DURATION_FIELD_NUMBER = 1;
     private com.google.protobuf.Duration minBreakDuration_;
     /**
-     *
-     *
      * 
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minBreakDuration field is set. */ @java.lang.Override @@ -1684,59 +1395,41 @@ public boolean hasMinBreakDuration() { return minBreakDuration_ != null; } /** - * - * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The minBreakDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinBreakDuration() { - return minBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBreakDuration_; + return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; } /** - * - * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { - return minBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBreakDuration_; + return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; } public static final int MAX_INTER_BREAK_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxInterBreakDuration_; /** - * - * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxInterBreakDuration field is set. */ @java.lang.Override @@ -1744,48 +1437,34 @@ public boolean hasMaxInterBreakDuration() { return maxInterBreakDuration_ != null; } /** - * - * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxInterBreakDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxInterBreakDuration() { - return maxInterBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxInterBreakDuration_; + return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; } /** - * - * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder() { - return maxInterBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxInterBreakDuration_; + return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1797,7 +1476,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (minBreakDuration_ != null) { output.writeMessage(1, getMinBreakDuration()); } @@ -1814,11 +1494,12 @@ public int getSerializedSize() { size = 0; if (minBreakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinBreakDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMinBreakDuration()); } if (maxInterBreakDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxInterBreakDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxInterBreakDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1828,21 +1509,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint other = - (com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint) obj; + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint other = (com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint) obj; if (hasMinBreakDuration() != other.hasMinBreakDuration()) return false; if (hasMinBreakDuration()) { - if (!getMinBreakDuration().equals(other.getMinBreakDuration())) return false; + if (!getMinBreakDuration() + .equals(other.getMinBreakDuration())) return false; } if (hasMaxInterBreakDuration() != other.hasMaxInterBreakDuration()) return false; if (hasMaxInterBreakDuration()) { - if (!getMaxInterBreakDuration().equals(other.getMaxInterBreakDuration())) return false; + if (!getMaxInterBreakDuration() + .equals(other.getMaxInterBreakDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1869,94 +1551,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1966,8 +1643,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * One may further constrain the frequency and duration of the breaks
      * specified above, by enforcing a minimum break frequency, such as
@@ -2006,33 +1681,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.BreakRule.FrequencyConstraint}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BreakRule.FrequencyConstraint)
         com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.class,
-                com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder.class);
+                com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.class, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2051,14 +1726,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint
-          getDefaultInstanceForType() {
+      public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getDefaultInstanceForType() {
         return com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance();
       }
 
@@ -2073,29 +1747,23 @@ public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint buildPartial() {
-        com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint result =
-            new com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint result = new com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint result) {
+      private void buildPartial0(com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.minBreakDuration_ =
-              minBreakDurationBuilder_ == null
-                  ? minBreakDuration_
-                  : minBreakDurationBuilder_.build();
+          result.minBreakDuration_ = minBreakDurationBuilder_ == null
+              ? minBreakDuration_
+              : minBreakDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.maxInterBreakDuration_ =
-              maxInterBreakDurationBuilder_ == null
-                  ? maxInterBreakDuration_
-                  : maxInterBreakDurationBuilder_.build();
+          result.maxInterBreakDuration_ = maxInterBreakDurationBuilder_ == null
+              ? maxInterBreakDuration_
+              : maxInterBreakDurationBuilder_.build();
         }
       }
 
@@ -2103,52 +1771,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint) {
-          return mergeFrom((com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint) other);
+          return mergeFrom((com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint other) {
-        if (other
-            == com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint other) {
+        if (other == com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()) return this;
         if (other.hasMinBreakDuration()) {
           mergeMinBreakDuration(other.getMinBreakDuration());
         }
@@ -2181,27 +1843,26 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(
-                      getMinBreakDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getMaxInterBreakDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getMinBreakDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getMaxInterBreakDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2211,66 +1872,46 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.Duration minBreakDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          minBreakDurationBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minBreakDurationBuilder_;
       /**
-       *
-       *
        * 
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minBreakDuration field is set. */ public boolean hasMinBreakDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The minBreakDuration. */ public com.google.protobuf.Duration getMinBreakDuration() { if (minBreakDurationBuilder_ == null) { - return minBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBreakDuration_; + return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; } else { return minBreakDurationBuilder_.getMessage(); } } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMinBreakDuration(com.google.protobuf.Duration value) { if (minBreakDurationBuilder_ == null) { @@ -2286,18 +1927,15 @@ public Builder setMinBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMinBreakDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinBreakDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (minBreakDurationBuilder_ == null) { minBreakDuration_ = builderForValue.build(); } else { @@ -2308,22 +1946,18 @@ public Builder setMinBreakDuration(com.google.protobuf.Duration.Builder builderF return this; } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMinBreakDuration(com.google.protobuf.Duration value) { if (minBreakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && minBreakDuration_ != null - && minBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + minBreakDuration_ != null && + minBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinBreakDurationBuilder().mergeFrom(value); } else { minBreakDuration_ = value; @@ -2336,16 +1970,12 @@ public Builder mergeMinBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMinBreakDuration() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2358,16 +1988,12 @@ public Builder clearMinBreakDuration() { return this; } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Duration.Builder getMinBreakDurationBuilder() { bitField0_ |= 0x00000001; @@ -2375,50 +2001,38 @@ public com.google.protobuf.Duration.Builder getMinBreakDurationBuilder() { return getMinBreakDurationFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { if (minBreakDurationBuilder_ != null) { return minBreakDurationBuilder_.getMessageOrBuilder(); } else { - return minBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBreakDuration_; + return minBreakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; } } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinBreakDurationFieldBuilder() { if (minBreakDurationBuilder_ == null) { - minBreakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinBreakDuration(), getParentForChildren(), isClean()); + minBreakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMinBreakDuration(), + getParentForChildren(), + isClean()); minBreakDuration_ = null; } return minBreakDurationBuilder_; @@ -2426,64 +2040,45 @@ public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { private com.google.protobuf.Duration maxInterBreakDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxInterBreakDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxInterBreakDurationBuilder_; /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxInterBreakDuration field is set. */ public boolean hasMaxInterBreakDuration() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxInterBreakDuration. */ public com.google.protobuf.Duration getMaxInterBreakDuration() { if (maxInterBreakDurationBuilder_ == null) { - return maxInterBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxInterBreakDuration_; + return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; } else { return maxInterBreakDurationBuilder_.getMessage(); } } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMaxInterBreakDuration(com.google.protobuf.Duration value) { if (maxInterBreakDurationBuilder_ == null) { @@ -2499,17 +2094,13 @@ public Builder setMaxInterBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMaxInterBreakDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -2523,23 +2114,19 @@ public Builder setMaxInterBreakDuration( return this; } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMaxInterBreakDuration(com.google.protobuf.Duration value) { if (maxInterBreakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && maxInterBreakDuration_ != null - && maxInterBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + maxInterBreakDuration_ != null && + maxInterBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxInterBreakDurationBuilder().mergeFrom(value); } else { maxInterBreakDuration_ = value; @@ -2552,17 +2139,13 @@ public Builder mergeMaxInterBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMaxInterBreakDuration() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2575,17 +2158,13 @@ public Builder clearMaxInterBreakDuration() { return this; } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Duration.Builder getMaxInterBreakDurationBuilder() { bitField0_ |= 0x00000002; @@ -2593,57 +2172,44 @@ public com.google.protobuf.Duration.Builder getMaxInterBreakDurationBuilder() { return getMaxInterBreakDurationFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder() { if (maxInterBreakDurationBuilder_ != null) { return maxInterBreakDurationBuilder_.getMessageOrBuilder(); } else { - return maxInterBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxInterBreakDuration_; + return maxInterBreakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; } } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxInterBreakDurationFieldBuilder() { if (maxInterBreakDurationBuilder_ == null) { - maxInterBreakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxInterBreakDuration(), getParentForChildren(), isClean()); + maxInterBreakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaxInterBreakDuration(), + getParentForChildren(), + isClean()); maxInterBreakDuration_ = null; } return maxInterBreakDurationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2656,44 +2222,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BreakRule.FrequencyConstraint) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BreakRule.FrequencyConstraint) - private static final com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint(); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint - getDefaultInstance() { + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FrequencyConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrequencyConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2705,19 +2268,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BREAK_REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List breakRequests_; /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2725,13 +2285,10 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override - public java.util.List - getBreakRequestsList() { + public java.util.List getBreakRequestsList() { return breakRequests_; } /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2739,13 +2296,11 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBreakRequestsOrBuilderList() { return breakRequests_; } /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2757,8 +2312,6 @@ public int getBreakRequestsCount() { return breakRequests_.size(); } /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2770,8 +2323,6 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest getBreakRequests( return breakRequests_.get(index); } /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2785,98 +2336,72 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder getBreak } public static final int FREQUENCY_CONSTRAINTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List - frequencyConstraints_; + private java.util.List frequencyConstraints_; /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override - public java.util.List - getFrequencyConstraintsList() { + public java.util.List getFrequencyConstraintsList() { return frequencyConstraints_; } /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> + public java.util.List getFrequencyConstraintsOrBuilderList() { return frequencyConstraints_; } /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override public int getFrequencyConstraintsCount() { return frequencyConstraints_.size(); } /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints( - int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints(int index) { return frequencyConstraints_.get(index); } /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder - getFrequencyConstraintsOrBuilder(int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( + int index) { return frequencyConstraints_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2888,7 +2413,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < breakRequests_.size(); i++) { output.writeMessage(1, breakRequests_.get(i)); } @@ -2905,11 +2431,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < breakRequests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, breakRequests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, breakRequests_.get(i)); } for (int i = 0; i < frequencyConstraints_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, frequencyConstraints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, frequencyConstraints_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2919,16 +2446,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.BreakRule)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BreakRule other = - (com.google.cloud.optimization.v1.BreakRule) obj; + com.google.cloud.optimization.v1.BreakRule other = (com.google.cloud.optimization.v1.BreakRule) obj; - if (!getBreakRequestsList().equals(other.getBreakRequestsList())) return false; - if (!getFrequencyConstraintsList().equals(other.getFrequencyConstraintsList())) return false; + if (!getBreakRequestsList() + .equals(other.getBreakRequestsList())) return false; + if (!getFrequencyConstraintsList() + .equals(other.getFrequencyConstraintsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2953,104 +2481,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.BreakRule parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.BreakRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BreakRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.BreakRule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BreakRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.BreakRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Rules to generate time breaks for a vehicle (e.g. lunch breaks). A break
    * is a contiguous period of time during which the vehicle remains idle at its
@@ -3066,32 +2589,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.BreakRule}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BreakRule)
       com.google.cloud.optimization.v1.BreakRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BreakRule.class,
-              com.google.cloud.optimization.v1.BreakRule.Builder.class);
+              com.google.cloud.optimization.v1.BreakRule.class, com.google.cloud.optimization.v1.BreakRule.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.BreakRule.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3114,9 +2638,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
     }
 
     @java.lang.Override
@@ -3135,12 +2659,9 @@ public com.google.cloud.optimization.v1.BreakRule build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.BreakRule buildPartial() {
-      com.google.cloud.optimization.v1.BreakRule result =
-          new com.google.cloud.optimization.v1.BreakRule(this);
+      com.google.cloud.optimization.v1.BreakRule result = new com.google.cloud.optimization.v1.BreakRule(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -3174,39 +2695,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.BreakRule result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.BreakRule) {
-        return mergeFrom((com.google.cloud.optimization.v1.BreakRule) other);
+        return mergeFrom((com.google.cloud.optimization.v1.BreakRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3233,10 +2753,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.BreakRule other) {
             breakRequestsBuilder_ = null;
             breakRequests_ = other.breakRequests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            breakRequestsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBreakRequestsFieldBuilder()
-                    : null;
+            breakRequestsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBreakRequestsFieldBuilder() : null;
           } else {
             breakRequestsBuilder_.addAllMessages(other.breakRequests_);
           }
@@ -3260,10 +2779,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.BreakRule other) {
             frequencyConstraintsBuilder_ = null;
             frequencyConstraints_ = other.frequencyConstraints_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            frequencyConstraintsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFrequencyConstraintsFieldBuilder()
-                    : null;
+            frequencyConstraintsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFrequencyConstraintsFieldBuilder() : null;
           } else {
             frequencyConstraintsBuilder_.addAllMessages(other.frequencyConstraints_);
           }
@@ -3295,41 +2813,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.optimization.v1.BreakRule.BreakRequest m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.BreakRule.BreakRequest.parser(),
-                        extensionRegistry);
-                if (breakRequestsBuilder_ == null) {
-                  ensureBreakRequestsIsMutable();
-                  breakRequests_.add(m);
-                } else {
-                  breakRequestsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.parser(),
-                        extensionRegistry);
-                if (frequencyConstraintsBuilder_ == null) {
-                  ensureFrequencyConstraintsIsMutable();
-                  frequencyConstraints_.add(m);
-                } else {
-                  frequencyConstraintsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.optimization.v1.BreakRule.BreakRequest m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.BreakRule.BreakRequest.parser(),
+                      extensionRegistry);
+              if (breakRequestsBuilder_ == null) {
+                ensureBreakRequestsIsMutable();
+                breakRequests_.add(m);
+              } else {
+                breakRequestsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.parser(),
+                      extensionRegistry);
+              if (frequencyConstraintsBuilder_ == null) {
+                ensureFrequencyConstraintsIsMutable();
+                frequencyConstraints_.add(m);
+              } else {
+                frequencyConstraintsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3339,39 +2854,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List breakRequests_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureBreakRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        breakRequests_ =
-            new java.util.ArrayList(
-                breakRequests_);
+        breakRequests_ = new java.util.ArrayList(breakRequests_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.BreakRule.BreakRequest,
-            com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder,
-            com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder>
-        breakRequestsBuilder_;
+        com.google.cloud.optimization.v1.BreakRule.BreakRequest, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> breakRequestsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - public java.util.List - getBreakRequestsList() { + public java.util.List getBreakRequestsList() { if (breakRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(breakRequests_); } else { @@ -3379,14 +2883,11 @@ private void ensureBreakRequestsIsMutable() { } } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public int getBreakRequestsCount() { if (breakRequestsBuilder_ == null) { @@ -3396,14 +2897,11 @@ public int getBreakRequestsCount() { } } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public com.google.cloud.optimization.v1.BreakRule.BreakRequest getBreakRequests(int index) { if (breakRequestsBuilder_ == null) { @@ -3413,14 +2911,11 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest getBreakRequests( } } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder setBreakRequests( int index, com.google.cloud.optimization.v1.BreakRule.BreakRequest value) { @@ -3437,18 +2932,14 @@ public Builder setBreakRequests( return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder setBreakRequests( - int index, - com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.set(index, builderForValue.build()); @@ -3459,14 +2950,11 @@ public Builder setBreakRequests( return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder addBreakRequests(com.google.cloud.optimization.v1.BreakRule.BreakRequest value) { if (breakRequestsBuilder_ == null) { @@ -3482,14 +2970,11 @@ public Builder addBreakRequests(com.google.cloud.optimization.v1.BreakRule.Break return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder addBreakRequests( int index, com.google.cloud.optimization.v1.BreakRule.BreakRequest value) { @@ -3506,14 +2991,11 @@ public Builder addBreakRequests( return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder addBreakRequests( com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { @@ -3527,18 +3009,14 @@ public Builder addBreakRequests( return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder addBreakRequests( - int index, - com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.add(index, builderForValue.build()); @@ -3549,21 +3027,18 @@ public Builder addBreakRequests( return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder addAllBreakRequests( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breakRequests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, breakRequests_); onChanged(); } else { breakRequestsBuilder_.addAllMessages(values); @@ -3571,14 +3046,11 @@ public Builder addAllBreakRequests( return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder clearBreakRequests() { if (breakRequestsBuilder_ == null) { @@ -3591,14 +3063,11 @@ public Builder clearBreakRequests() { return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public Builder removeBreakRequests(int index) { if (breakRequestsBuilder_ == null) { @@ -3611,50 +3080,39 @@ public Builder removeBreakRequests(int index) { return this; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder getBreakRequestsBuilder( int index) { return getBreakRequestsFieldBuilder().getBuilder(index); } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - public com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder - getBreakRequestsOrBuilder(int index) { + public com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder( + int index) { if (breakRequestsBuilder_ == null) { - return breakRequests_.get(index); - } else { + return breakRequests_.get(index); } else { return breakRequestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - public java.util.List< - ? extends com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> - getBreakRequestsOrBuilderList() { + public java.util.List + getBreakRequestsOrBuilderList() { if (breakRequestsBuilder_ != null) { return breakRequestsBuilder_.getMessageOrBuilderList(); } else { @@ -3662,62 +3120,45 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder getBreakR } } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder - addBreakRequestsBuilder() { - return getBreakRequestsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()); + public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder addBreakRequestsBuilder() { + return getBreakRequestsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()); } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder addBreakRequestsBuilder( int index) { - return getBreakRequestsFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()); + return getBreakRequestsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()); } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - public java.util.List - getBreakRequestsBuilderList() { + public java.util.List + getBreakRequestsBuilderList() { return getBreakRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.BreakRequest, - com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, - com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> + com.google.cloud.optimization.v1.BreakRule.BreakRequest, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> getBreakRequestsFieldBuilder() { if (breakRequestsBuilder_ == null) { - breakRequestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.BreakRequest, - com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, - com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder>( + breakRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.BreakRule.BreakRequest, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder>( breakRequests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3727,38 +3168,27 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder addBreakR return breakRequestsBuilder_; } - private java.util.List - frequencyConstraints_ = java.util.Collections.emptyList(); - + private java.util.List frequencyConstraints_ = + java.util.Collections.emptyList(); private void ensureFrequencyConstraintsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - frequencyConstraints_ = - new java.util.ArrayList( - frequencyConstraints_); + frequencyConstraints_ = new java.util.ArrayList(frequencyConstraints_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> - frequencyConstraintsBuilder_; + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> frequencyConstraintsBuilder_; /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public java.util.List - getFrequencyConstraintsList() { + public java.util.List getFrequencyConstraintsList() { if (frequencyConstraintsBuilder_ == null) { return java.util.Collections.unmodifiableList(frequencyConstraints_); } else { @@ -3766,16 +3196,12 @@ private void ensureFrequencyConstraintsIsMutable() { } } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public int getFrequencyConstraintsCount() { if (frequencyConstraintsBuilder_ == null) { @@ -3785,19 +3211,14 @@ public int getFrequencyConstraintsCount() { } } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints( - int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints(int index) { if (frequencyConstraintsBuilder_ == null) { return frequencyConstraints_.get(index); } else { @@ -3805,16 +3226,12 @@ public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequen } } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder setFrequencyConstraints( int index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint value) { @@ -3831,20 +3248,15 @@ public Builder setFrequencyConstraints( return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder setFrequencyConstraints( - int index, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.set(index, builderForValue.build()); @@ -3855,19 +3267,14 @@ public Builder setFrequencyConstraints( return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public Builder addFrequencyConstraints( - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint value) { + public Builder addFrequencyConstraints(com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint value) { if (frequencyConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3881,16 +3288,12 @@ public Builder addFrequencyConstraints( return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder addFrequencyConstraints( int index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint value) { @@ -3907,16 +3310,12 @@ public Builder addFrequencyConstraints( return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder addFrequencyConstraints( com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { @@ -3930,20 +3329,15 @@ public Builder addFrequencyConstraints( return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder addFrequencyConstraints( - int index, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.add(index, builderForValue.build()); @@ -3954,23 +3348,19 @@ public Builder addFrequencyConstraints( return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder addAllFrequencyConstraints( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frequencyConstraints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frequencyConstraints_); onChanged(); } else { frequencyConstraintsBuilder_.addAllMessages(values); @@ -3978,16 +3368,12 @@ public Builder addAllFrequencyConstraints( return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder clearFrequencyConstraints() { if (frequencyConstraintsBuilder_ == null) { @@ -4000,16 +3386,12 @@ public Builder clearFrequencyConstraints() { return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder removeFrequencyConstraints(int index) { if (frequencyConstraintsBuilder_ == null) { @@ -4022,56 +3404,42 @@ public Builder removeFrequencyConstraints(int index) { return this; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder - getFrequencyConstraintsBuilder(int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder getFrequencyConstraintsBuilder( + int index) { return getFrequencyConstraintsFieldBuilder().getBuilder(index); } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder - getFrequencyConstraintsOrBuilder(int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( + int index) { if (frequencyConstraintsBuilder_ == null) { - return frequencyConstraints_.get(index); - } else { + return frequencyConstraints_.get(index); } else { return frequencyConstraintsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public java.util.List< - ? extends com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> - getFrequencyConstraintsOrBuilderList() { + public java.util.List + getFrequencyConstraintsOrBuilderList() { if (frequencyConstraintsBuilder_ != null) { return frequencyConstraintsBuilder_.getMessageOrBuilderList(); } else { @@ -4079,70 +3447,48 @@ public Builder removeFrequencyConstraints(int index) { } } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder - addFrequencyConstraintsBuilder() { - return getFrequencyConstraintsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()); + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder() { + return getFrequencyConstraintsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()); } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder - addFrequencyConstraintsBuilder(int index) { - return getFrequencyConstraintsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()); + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder( + int index) { + return getFrequencyConstraintsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()); } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public java.util.List - getFrequencyConstraintsBuilderList() { + public java.util.List + getFrequencyConstraintsBuilderList() { return getFrequencyConstraintsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> getFrequencyConstraintsFieldBuilder() { if (frequencyConstraintsBuilder_ == null) { - frequencyConstraintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder>( + frequencyConstraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder>( frequencyConstraints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -4151,9 +3497,9 @@ public Builder removeFrequencyConstraints(int index) { } return frequencyConstraintsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4163,12 +3509,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BreakRule) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BreakRule) private static final com.google.cloud.optimization.v1.BreakRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BreakRule(); } @@ -4177,27 +3523,27 @@ public static com.google.cloud.optimization.v1.BreakRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BreakRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BreakRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4212,4 +3558,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.BreakRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java similarity index 66% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java index 7db4891a803a..d8985de38150 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface BreakRuleOrBuilder - extends +public interface BreakRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BreakRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
* * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - java.util.List getBreakRequestsList(); + java.util.List + getBreakRequestsList(); /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -44,8 +25,6 @@ public interface BreakRuleOrBuilder */ com.google.cloud.optimization.v1.BreakRule.BreakRequest getBreakRequests(int index); /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -54,19 +33,15 @@ public interface BreakRuleOrBuilder */ int getBreakRequestsCount(); /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
* * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - java.util.List + java.util.List getBreakRequestsOrBuilderList(); /** - * - * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -77,71 +52,51 @@ com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder getBreakRequest int index); /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - java.util.List + java.util.List getFrequencyConstraintsList(); /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints(int index); /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ int getFrequencyConstraintsCount(); /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - java.util.List + java.util.List getFrequencyConstraintsOrBuilderList(); /** - * - * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder - getFrequencyConstraintsOrBuilder(int index); + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( + int index); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java similarity index 65% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java index dce175e0f3a1..5442561ac255 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Deprecated: Use
  * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
@@ -29,49 +12,44 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.CapacityQuantity}
  */
-@java.lang.Deprecated
-public final class CapacityQuantity extends com.google.protobuf.GeneratedMessageV3
-    implements
+@java.lang.Deprecated public final class CapacityQuantity extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.CapacityQuantity)
     CapacityQuantityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CapacityQuantity.newBuilder() to construct.
   private CapacityQuantity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CapacityQuantity() {
     type_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CapacityQuantity();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.CapacityQuantity.class,
-            com.google.cloud.optimization.v1.CapacityQuantity.Builder.class);
+            com.google.cloud.optimization.v1.CapacityQuantity.class, com.google.cloud.optimization.v1.CapacityQuantity.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object type_ = "";
   /**
    * string type = 1;
-   *
    * @return The type.
    */
   @java.lang.Override
@@ -80,7 +58,8 @@ public java.lang.String getType() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       type_ = s;
       return s;
@@ -88,15 +67,16 @@ public java.lang.String getType() {
   }
   /**
    * string type = 1;
-   *
    * @return The bytes for type.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString getTypeBytes() {
+  public com.google.protobuf.ByteString
+      getTypeBytes() {
     java.lang.Object ref = type_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b =
-          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
       type_ = b;
       return b;
     } else {
@@ -108,7 +88,6 @@ public com.google.protobuf.ByteString getTypeBytes() {
   private long value_ = 0L;
   /**
    * int64 value = 2;
-   *
    * @return The value.
    */
   @java.lang.Override
@@ -117,7 +96,6 @@ public long getValue() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -129,7 +107,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
     }
@@ -149,7 +128,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
     }
     if (value_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, value_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, value_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -159,16 +139,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.CapacityQuantity)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.CapacityQuantity other =
-        (com.google.cloud.optimization.v1.CapacityQuantity) obj;
+    com.google.cloud.optimization.v1.CapacityQuantity other = (com.google.cloud.optimization.v1.CapacityQuantity) obj;
 
-    if (!getType().equals(other.getType())) return false;
-    if (getValue() != other.getValue()) return false;
+    if (!getType()
+        .equals(other.getType())) return false;
+    if (getValue()
+        != other.getValue()) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -183,110 +164,106 @@ public int hashCode() {
     hash = (37 * hash) + TYPE_FIELD_NUMBER;
     hash = (53 * hash) + getType().hashCode();
     hash = (37 * hash) + VALUE_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValue());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getValue());
     hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.CapacityQuantity parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.CapacityQuantity parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.CapacityQuantity parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.optimization.v1.CapacityQuantity prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
@@ -295,32 +272,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.CapacityQuantity}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.CapacityQuantity)
       com.google.cloud.optimization.v1.CapacityQuantityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.CapacityQuantity.class,
-              com.google.cloud.optimization.v1.CapacityQuantity.Builder.class);
+              com.google.cloud.optimization.v1.CapacityQuantity.class, com.google.cloud.optimization.v1.CapacityQuantity.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.CapacityQuantity.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -331,9 +309,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
     }
 
     @java.lang.Override
@@ -352,11 +330,8 @@ public com.google.cloud.optimization.v1.CapacityQuantity build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.CapacityQuantity buildPartial() {
-      com.google.cloud.optimization.v1.CapacityQuantity result =
-          new com.google.cloud.optimization.v1.CapacityQuantity(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.CapacityQuantity result = new com.google.cloud.optimization.v1.CapacityQuantity(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -375,39 +350,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.CapacityQuantity res
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.CapacityQuantity) {
-        return mergeFrom((com.google.cloud.optimization.v1.CapacityQuantity) other);
+        return mergeFrom((com.google.cloud.optimization.v1.CapacityQuantity)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -415,8 +389,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.CapacityQuantity other) {
-      if (other == com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()) return this;
       if (!other.getType().isEmpty()) {
         type_ = other.type_;
         bitField0_ |= 0x00000001;
@@ -451,25 +424,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                type_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                value_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              type_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              value_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -479,19 +449,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object type_ = "";
     /**
      * string type = 1;
-     *
      * @return The type.
      */
     public java.lang.String getType() {
       java.lang.Object ref = type_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         type_ = s;
         return s;
@@ -501,14 +470,15 @@ public java.lang.String getType() {
     }
     /**
      * string type = 1;
-     *
      * @return The bytes for type.
      */
-    public com.google.protobuf.ByteString getTypeBytes() {
+    public com.google.protobuf.ByteString
+        getTypeBytes() {
       java.lang.Object ref = type_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b =
-            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
         type_ = b;
         return b;
       } else {
@@ -517,14 +487,12 @@ public com.google.protobuf.ByteString getTypeBytes() {
     }
     /**
      * string type = 1;
-     *
      * @param value The type to set.
      * @return This builder for chaining.
      */
-    public Builder setType(java.lang.String value) {
-      if (value == null) {
-        throw new NullPointerException();
-      }
+    public Builder setType(
+        java.lang.String value) {
+      if (value == null) { throw new NullPointerException(); }
       type_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -532,7 +500,6 @@ public Builder setType(java.lang.String value) {
     }
     /**
      * string type = 1;
-     *
      * @return This builder for chaining.
      */
     public Builder clearType() {
@@ -543,14 +510,12 @@ public Builder clearType() {
     }
     /**
      * string type = 1;
-     *
      * @param value The bytes for type to set.
      * @return This builder for chaining.
      */
-    public Builder setTypeBytes(com.google.protobuf.ByteString value) {
-      if (value == null) {
-        throw new NullPointerException();
-      }
+    public Builder setTypeBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       type_ = value;
       bitField0_ |= 0x00000001;
@@ -558,10 +523,9 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
-    private long value_;
+    private long value_ ;
     /**
      * int64 value = 2;
-     *
      * @return The value.
      */
     @java.lang.Override
@@ -570,7 +534,6 @@ public long getValue() {
     }
     /**
      * int64 value = 2;
-     *
      * @param value The value to set.
      * @return This builder for chaining.
      */
@@ -583,7 +546,6 @@ public Builder setValue(long value) {
     }
     /**
      * int64 value = 2;
-     *
      * @return This builder for chaining.
      */
     public Builder clearValue() {
@@ -592,9 +554,9 @@ public Builder clearValue() {
       onChanged();
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -604,12 +566,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.CapacityQuantity)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.CapacityQuantity)
   private static final com.google.cloud.optimization.v1.CapacityQuantity DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.CapacityQuantity();
   }
@@ -618,27 +580,27 @@ public static com.google.cloud.optimization.v1.CapacityQuantity getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CapacityQuantity parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CapacityQuantity parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -653,4 +615,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.optimization.v1.CapacityQuantity getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
similarity index 68%
rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
index de247db82dc1..c7f303db1d8e 100644
--- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
- *
- *
  * 
  * Deprecated: Use
  * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
@@ -29,50 +12,45 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.CapacityQuantityInterval}
  */
-@java.lang.Deprecated
-public final class CapacityQuantityInterval extends com.google.protobuf.GeneratedMessageV3
-    implements
+@java.lang.Deprecated public final class CapacityQuantityInterval extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.CapacityQuantityInterval)
     CapacityQuantityIntervalOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CapacityQuantityInterval.newBuilder() to construct.
   private CapacityQuantityInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CapacityQuantityInterval() {
     type_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CapacityQuantityInterval();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.CapacityQuantityInterval.class,
-            com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder.class);
+            com.google.cloud.optimization.v1.CapacityQuantityInterval.class, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder.class);
   }
 
   private int bitField0_;
   public static final int TYPE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object type_ = "";
   /**
    * string type = 1;
-   *
    * @return The type.
    */
   @java.lang.Override
@@ -81,7 +59,8 @@ public java.lang.String getType() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       type_ = s;
       return s;
@@ -89,15 +68,16 @@ public java.lang.String getType() {
   }
   /**
    * string type = 1;
-   *
    * @return The bytes for type.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString getTypeBytes() {
+  public com.google.protobuf.ByteString
+      getTypeBytes() {
     java.lang.Object ref = type_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b =
-          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
       type_ = b;
       return b;
     } else {
@@ -109,7 +89,6 @@ public com.google.protobuf.ByteString getTypeBytes() {
   private long minValue_ = 0L;
   /**
    * optional int64 min_value = 2;
-   *
    * @return Whether the minValue field is set.
    */
   @java.lang.Override
@@ -118,7 +97,6 @@ public boolean hasMinValue() {
   }
   /**
    * optional int64 min_value = 2;
-   *
    * @return The minValue.
    */
   @java.lang.Override
@@ -130,7 +108,6 @@ public long getMinValue() {
   private long maxValue_ = 0L;
   /**
    * optional int64 max_value = 3;
-   *
    * @return Whether the maxValue field is set.
    */
   @java.lang.Override
@@ -139,7 +116,6 @@ public boolean hasMaxValue() {
   }
   /**
    * optional int64 max_value = 3;
-   *
    * @return The maxValue.
    */
   @java.lang.Override
@@ -148,7 +124,6 @@ public long getMaxValue() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -160,7 +135,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
     }
@@ -183,10 +159,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minValue_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, minValue_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, maxValue_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(3, maxValue_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -196,22 +174,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.CapacityQuantityInterval)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.CapacityQuantityInterval other =
-        (com.google.cloud.optimization.v1.CapacityQuantityInterval) obj;
+    com.google.cloud.optimization.v1.CapacityQuantityInterval other = (com.google.cloud.optimization.v1.CapacityQuantityInterval) obj;
 
-    if (!getType().equals(other.getType())) return false;
+    if (!getType()
+        .equals(other.getType())) return false;
     if (hasMinValue() != other.hasMinValue()) return false;
     if (hasMinValue()) {
-      if (getMinValue() != other.getMinValue()) return false;
+      if (getMinValue()
+          != other.getMinValue()) return false;
     }
     if (hasMaxValue() != other.hasMaxValue()) return false;
     if (hasMaxValue()) {
-      if (getMaxValue() != other.getMaxValue()) return false;
+      if (getMaxValue()
+          != other.getMaxValue()) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -228,11 +208,13 @@ public int hashCode() {
     hash = (53 * hash) + getType().hashCode();
     if (hasMinValue()) {
       hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinValue());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getMinValue());
     }
     if (hasMaxValue()) {
       hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxValue());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getMaxValue());
     }
     hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
@@ -240,104 +222,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.optimization.v1.CapacityQuantityInterval prototype) {
+  public static Builder newBuilder(com.google.cloud.optimization.v1.CapacityQuantityInterval prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
@@ -346,32 +322,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.CapacityQuantityInterval}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.CapacityQuantityInterval)
       com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.CapacityQuantityInterval.class,
-              com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder.class);
+              com.google.cloud.optimization.v1.CapacityQuantityInterval.class, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.CapacityQuantityInterval.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -383,9 +360,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
     }
 
     @java.lang.Override
@@ -404,11 +381,8 @@ public com.google.cloud.optimization.v1.CapacityQuantityInterval build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.CapacityQuantityInterval buildPartial() {
-      com.google.cloud.optimization.v1.CapacityQuantityInterval result =
-          new com.google.cloud.optimization.v1.CapacityQuantityInterval(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.CapacityQuantityInterval result = new com.google.cloud.optimization.v1.CapacityQuantityInterval(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -434,39 +408,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.CapacityQuantityInte
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.CapacityQuantityInterval) {
-        return mergeFrom((com.google.cloud.optimization.v1.CapacityQuantityInterval) other);
+        return mergeFrom((com.google.cloud.optimization.v1.CapacityQuantityInterval)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -474,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.CapacityQuantityInterval other) {
-      if (other == com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()) return this;
       if (!other.getType().isEmpty()) {
         type_ = other.type_;
         bitField0_ |= 0x00000001;
@@ -513,31 +485,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                type_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                minValue_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                maxValue_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              type_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              minValue_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              maxValue_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -547,19 +515,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object type_ = "";
     /**
      * string type = 1;
-     *
      * @return The type.
      */
     public java.lang.String getType() {
       java.lang.Object ref = type_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         type_ = s;
         return s;
@@ -569,14 +536,15 @@ public java.lang.String getType() {
     }
     /**
      * string type = 1;
-     *
      * @return The bytes for type.
      */
-    public com.google.protobuf.ByteString getTypeBytes() {
+    public com.google.protobuf.ByteString
+        getTypeBytes() {
       java.lang.Object ref = type_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b =
-            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
         type_ = b;
         return b;
       } else {
@@ -585,14 +553,12 @@ public com.google.protobuf.ByteString getTypeBytes() {
     }
     /**
      * string type = 1;
-     *
      * @param value The type to set.
      * @return This builder for chaining.
      */
-    public Builder setType(java.lang.String value) {
-      if (value == null) {
-        throw new NullPointerException();
-      }
+    public Builder setType(
+        java.lang.String value) {
+      if (value == null) { throw new NullPointerException(); }
       type_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -600,7 +566,6 @@ public Builder setType(java.lang.String value) {
     }
     /**
      * string type = 1;
-     *
      * @return This builder for chaining.
      */
     public Builder clearType() {
@@ -611,14 +576,12 @@ public Builder clearType() {
     }
     /**
      * string type = 1;
-     *
      * @param value The bytes for type to set.
      * @return This builder for chaining.
      */
-    public Builder setTypeBytes(com.google.protobuf.ByteString value) {
-      if (value == null) {
-        throw new NullPointerException();
-      }
+    public Builder setTypeBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) { throw new NullPointerException(); }
       checkByteStringIsUtf8(value);
       type_ = value;
       bitField0_ |= 0x00000001;
@@ -626,10 +589,9 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
-    private long minValue_;
+    private long minValue_ ;
     /**
      * optional int64 min_value = 2;
-     *
      * @return Whether the minValue field is set.
      */
     @java.lang.Override
@@ -638,7 +600,6 @@ public boolean hasMinValue() {
     }
     /**
      * optional int64 min_value = 2;
-     *
      * @return The minValue.
      */
     @java.lang.Override
@@ -647,7 +608,6 @@ public long getMinValue() {
     }
     /**
      * optional int64 min_value = 2;
-     *
      * @param value The minValue to set.
      * @return This builder for chaining.
      */
@@ -660,7 +620,6 @@ public Builder setMinValue(long value) {
     }
     /**
      * optional int64 min_value = 2;
-     *
      * @return This builder for chaining.
      */
     public Builder clearMinValue() {
@@ -670,10 +629,9 @@ public Builder clearMinValue() {
       return this;
     }
 
-    private long maxValue_;
+    private long maxValue_ ;
     /**
      * optional int64 max_value = 3;
-     *
      * @return Whether the maxValue field is set.
      */
     @java.lang.Override
@@ -682,7 +640,6 @@ public boolean hasMaxValue() {
     }
     /**
      * optional int64 max_value = 3;
-     *
      * @return The maxValue.
      */
     @java.lang.Override
@@ -691,7 +648,6 @@ public long getMaxValue() {
     }
     /**
      * optional int64 max_value = 3;
-     *
      * @param value The maxValue to set.
      * @return This builder for chaining.
      */
@@ -704,7 +660,6 @@ public Builder setMaxValue(long value) {
     }
     /**
      * optional int64 max_value = 3;
-     *
      * @return This builder for chaining.
      */
     public Builder clearMaxValue() {
@@ -713,9 +668,9 @@ public Builder clearMaxValue() {
       onChanged();
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -725,12 +680,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.CapacityQuantityInterval)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.CapacityQuantityInterval)
   private static final com.google.cloud.optimization.v1.CapacityQuantityInterval DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.CapacityQuantityInterval();
   }
@@ -739,27 +694,27 @@ public static com.google.cloud.optimization.v1.CapacityQuantityInterval getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CapacityQuantityInterval parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CapacityQuantityInterval parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -774,4 +729,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.optimization.v1.CapacityQuantityInterval getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
similarity index 56%
rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
index 9ba5b810f76c..c4bf3ddcd9cd 100644
--- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
@@ -1,64 +1,42 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
-@java.lang.Deprecated
-public interface CapacityQuantityIntervalOrBuilder
-    extends
+@java.lang.Deprecated public interface CapacityQuantityIntervalOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.CapacityQuantityInterval)
     com.google.protobuf.MessageOrBuilder {
 
   /**
    * string type = 1;
-   *
    * @return The type.
    */
   java.lang.String getType();
   /**
    * string type = 1;
-   *
    * @return The bytes for type.
    */
-  com.google.protobuf.ByteString getTypeBytes();
+  com.google.protobuf.ByteString
+      getTypeBytes();
 
   /**
    * optional int64 min_value = 2;
-   *
    * @return Whether the minValue field is set.
    */
   boolean hasMinValue();
   /**
    * optional int64 min_value = 2;
-   *
    * @return The minValue.
    */
   long getMinValue();
 
   /**
    * optional int64 max_value = 3;
-   *
    * @return Whether the maxValue field is set.
    */
   boolean hasMaxValue();
   /**
    * optional int64 max_value = 3;
-   *
    * @return The maxValue.
    */
   long getMaxValue();
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java
new file mode 100644
index 000000000000..8160e4f7631a
--- /dev/null
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java
@@ -0,0 +1,27 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/optimization/v1/fleet_routing.proto
+
+package com.google.cloud.optimization.v1;
+
+@java.lang.Deprecated public interface CapacityQuantityOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.CapacityQuantity)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * string type = 1;
+   * @return The type.
+   */
+  java.lang.String getType();
+  /**
+   * string type = 1;
+   * @return The bytes for type.
+   */
+  com.google.protobuf.ByteString
+      getTypeBytes();
+
+  /**
+   * int64 value = 2;
+   * @return The value.
+   */
+  long getValue();
+}
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
similarity index 66%
rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
index 69fa3077afae..edac4cb3b90c 100644
--- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
@@ -1,36 +1,18 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/async_model.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
- *
- *
  * 
  * Data formats for input and output files.
  * 
* * Protobuf enum {@code google.cloud.optimization.v1.DataFormat} */ -public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { +public enum DataFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Default value.
    * 
@@ -39,8 +21,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ DATA_FORMAT_UNSPECIFIED(0), /** - * - * *
    * Input data in json format.
    * 
@@ -49,8 +29,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ JSON(1), /** - * - * *
    * Input data in string format.
    * 
@@ -62,8 +40,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Default value.
    * 
@@ -72,8 +48,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Input data in json format.
    * 
@@ -82,8 +56,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JSON_VALUE = 1; /** - * - * *
    * Input data in string format.
    * 
@@ -92,6 +64,7 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STRING_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,49 @@ public static DataFormat valueOf(int value) { */ public static DataFormat forNumber(int value) { switch (value) { - case 0: - return DATA_FORMAT_UNSPECIFIED; - case 1: - return JSON; - case 2: - return STRING; - default: - return null; + case 0: return DATA_FORMAT_UNSPECIFIED; + case 1: return JSON; + case 2: return STRING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataFormat findValueByNumber(int number) { - return DataFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DataFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataFormat findValueByNumber(int number) { + return DataFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor().getEnumTypes().get(0); } private static final DataFormat[] VALUES = values(); - public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DataFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -174,3 +147,4 @@ private DataFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.optimization.v1.DataFormat) } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java similarity index 76% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java index 1390dd06f630..fa70d0c2b527 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * A limit defining a maximum distance which can be traveled. It can be either
  * hard or soft.
@@ -31,52 +14,48 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.DistanceLimit}
  */
-public final class DistanceLimit extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DistanceLimit extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.DistanceLimit)
     DistanceLimitOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DistanceLimit.newBuilder() to construct.
   private DistanceLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private DistanceLimit() {}
+  private DistanceLimit() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DistanceLimit();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.DistanceLimit.class,
-            com.google.cloud.optimization.v1.DistanceLimit.Builder.class);
+            com.google.cloud.optimization.v1.DistanceLimit.class, com.google.cloud.optimization.v1.DistanceLimit.Builder.class);
   }
 
   private int bitField0_;
   public static final int MAX_METERS_FIELD_NUMBER = 1;
   private long maxMeters_ = 0L;
   /**
-   *
-   *
    * 
    * A hard limit constraining the distance to be at most max_meters. The limit
    * must be nonnegative.
    * 
* * optional int64 max_meters = 1; - * * @return Whether the maxMeters field is set. */ @java.lang.Override @@ -84,15 +63,12 @@ public boolean hasMaxMeters() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * A hard limit constraining the distance to be at most max_meters. The limit
    * must be nonnegative.
    * 
* * optional int64 max_meters = 1; - * * @return The maxMeters. */ @java.lang.Override @@ -103,8 +79,6 @@ public long getMaxMeters() { public static final int SOFT_MAX_METERS_FIELD_NUMBER = 2; private long softMaxMeters_ = 0L; /** - * - * *
    * A soft limit not enforcing a maximum distance limit, but when violated
    * results in a cost which adds up to other costs defined in the model,
@@ -115,7 +89,6 @@ public long getMaxMeters() {
    * 
* * optional int64 soft_max_meters = 2; - * * @return Whether the softMaxMeters field is set. */ @java.lang.Override @@ -123,8 +96,6 @@ public boolean hasSoftMaxMeters() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * A soft limit not enforcing a maximum distance limit, but when violated
    * results in a cost which adds up to other costs defined in the model,
@@ -135,7 +106,6 @@ public boolean hasSoftMaxMeters() {
    * 
* * optional int64 soft_max_meters = 2; - * * @return The softMaxMeters. */ @java.lang.Override @@ -146,8 +116,6 @@ public long getSoftMaxMeters() { public static final int COST_PER_KILOMETER_BELOW_SOFT_MAX_FIELD_NUMBER = 4; private double costPerKilometerBelowSoftMax_ = 0D; /** - * - * *
    * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
    * formula:
@@ -159,7 +127,6 @@ public long getSoftMaxMeters() {
    * 
* * optional double cost_per_kilometer_below_soft_max = 4; - * * @return Whether the costPerKilometerBelowSoftMax field is set. */ @java.lang.Override @@ -167,8 +134,6 @@ public boolean hasCostPerKilometerBelowSoftMax() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
    * formula:
@@ -180,7 +145,6 @@ public boolean hasCostPerKilometerBelowSoftMax() {
    * 
* * optional double cost_per_kilometer_below_soft_max = 4; - * * @return The costPerKilometerBelowSoftMax. */ @java.lang.Override @@ -191,8 +155,6 @@ public double getCostPerKilometerBelowSoftMax() { public static final int COST_PER_KILOMETER_ABOVE_SOFT_MAX_FIELD_NUMBER = 3; private double costPerKilometerAboveSoftMax_ = 0D; /** - * - * *
    * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
    * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -205,7 +167,6 @@ public double getCostPerKilometerBelowSoftMax() {
    * 
* * optional double cost_per_kilometer_above_soft_max = 3; - * * @return Whether the costPerKilometerAboveSoftMax field is set. */ @java.lang.Override @@ -213,8 +174,6 @@ public boolean hasCostPerKilometerAboveSoftMax() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
    * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -227,7 +186,6 @@ public boolean hasCostPerKilometerAboveSoftMax() {
    * 
* * optional double cost_per_kilometer_above_soft_max = 3; - * * @return The costPerKilometerAboveSoftMax. */ @java.lang.Override @@ -236,7 +194,6 @@ public double getCostPerKilometerAboveSoftMax() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, maxMeters_); } @@ -271,18 +229,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxMeters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxMeters_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, softMaxMeters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, softMaxMeters_); } if (((bitField0_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(3, costPerKilometerAboveSoftMax_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, costPerKilometerAboveSoftMax_); } if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(4, costPerKilometerBelowSoftMax_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, costPerKilometerBelowSoftMax_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -292,33 +252,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.DistanceLimit)) { return super.equals(obj); } - com.google.cloud.optimization.v1.DistanceLimit other = - (com.google.cloud.optimization.v1.DistanceLimit) obj; + com.google.cloud.optimization.v1.DistanceLimit other = (com.google.cloud.optimization.v1.DistanceLimit) obj; if (hasMaxMeters() != other.hasMaxMeters()) return false; if (hasMaxMeters()) { - if (getMaxMeters() != other.getMaxMeters()) return false; + if (getMaxMeters() + != other.getMaxMeters()) return false; } if (hasSoftMaxMeters() != other.hasSoftMaxMeters()) return false; if (hasSoftMaxMeters()) { - if (getSoftMaxMeters() != other.getSoftMaxMeters()) return false; + if (getSoftMaxMeters() + != other.getSoftMaxMeters()) return false; } if (hasCostPerKilometerBelowSoftMax() != other.hasCostPerKilometerBelowSoftMax()) return false; if (hasCostPerKilometerBelowSoftMax()) { if (java.lang.Double.doubleToLongBits(getCostPerKilometerBelowSoftMax()) - != java.lang.Double.doubleToLongBits(other.getCostPerKilometerBelowSoftMax())) - return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerKilometerBelowSoftMax())) return false; } if (hasCostPerKilometerAboveSoftMax() != other.hasCostPerKilometerAboveSoftMax()) return false; if (hasCostPerKilometerAboveSoftMax()) { if (java.lang.Double.doubleToLongBits(getCostPerKilometerAboveSoftMax()) - != java.lang.Double.doubleToLongBits(other.getCostPerKilometerAboveSoftMax())) - return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerKilometerAboveSoftMax())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -333,129 +294,122 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasMaxMeters()) { hash = (37 * hash) + MAX_METERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxMeters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxMeters()); } if (hasSoftMaxMeters()) { hash = (37 * hash) + SOFT_MAX_METERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSoftMaxMeters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSoftMaxMeters()); } if (hasCostPerKilometerBelowSoftMax()) { hash = (37 * hash) + COST_PER_KILOMETER_BELOW_SOFT_MAX_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerKilometerBelowSoftMax())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerKilometerBelowSoftMax())); } if (hasCostPerKilometerAboveSoftMax()) { hash = (37 * hash) + COST_PER_KILOMETER_ABOVE_SOFT_MAX_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerKilometerAboveSoftMax())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerKilometerAboveSoftMax())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.DistanceLimit parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.DistanceLimit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.DistanceLimit parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.DistanceLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A limit defining a maximum distance which can be traveled. It can be either
    * hard or soft.
@@ -466,32 +420,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.DistanceLimit}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.DistanceLimit)
       com.google.cloud.optimization.v1.DistanceLimitOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.DistanceLimit.class,
-              com.google.cloud.optimization.v1.DistanceLimit.Builder.class);
+              com.google.cloud.optimization.v1.DistanceLimit.class, com.google.cloud.optimization.v1.DistanceLimit.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.DistanceLimit.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -504,9 +459,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
     }
 
     @java.lang.Override
@@ -525,11 +480,8 @@ public com.google.cloud.optimization.v1.DistanceLimit build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.DistanceLimit buildPartial() {
-      com.google.cloud.optimization.v1.DistanceLimit result =
-          new com.google.cloud.optimization.v1.DistanceLimit(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.DistanceLimit result = new com.google.cloud.optimization.v1.DistanceLimit(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -560,39 +512,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.DistanceLimit result
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.DistanceLimit) {
-        return mergeFrom((com.google.cloud.optimization.v1.DistanceLimit) other);
+        return mergeFrom((com.google.cloud.optimization.v1.DistanceLimit)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -639,37 +590,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                maxMeters_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                softMaxMeters_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 25:
-              {
-                costPerKilometerAboveSoftMax_ = input.readDouble();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 25
-            case 33:
-              {
-                costPerKilometerBelowSoftMax_ = input.readDouble();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 33
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              maxMeters_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              softMaxMeters_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 25: {
+              costPerKilometerAboveSoftMax_ = input.readDouble();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 25
+            case 33: {
+              costPerKilometerBelowSoftMax_ = input.readDouble();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 33
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -679,20 +625,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long maxMeters_;
+    private long maxMeters_ ;
     /**
-     *
-     *
      * 
      * A hard limit constraining the distance to be at most max_meters. The limit
      * must be nonnegative.
      * 
* * optional int64 max_meters = 1; - * * @return Whether the maxMeters field is set. */ @java.lang.Override @@ -700,15 +642,12 @@ public boolean hasMaxMeters() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * A hard limit constraining the distance to be at most max_meters. The limit
      * must be nonnegative.
      * 
* * optional int64 max_meters = 1; - * * @return The maxMeters. */ @java.lang.Override @@ -716,15 +655,12 @@ public long getMaxMeters() { return maxMeters_; } /** - * - * *
      * A hard limit constraining the distance to be at most max_meters. The limit
      * must be nonnegative.
      * 
* * optional int64 max_meters = 1; - * * @param value The maxMeters to set. * @return This builder for chaining. */ @@ -736,15 +672,12 @@ public Builder setMaxMeters(long value) { return this; } /** - * - * *
      * A hard limit constraining the distance to be at most max_meters. The limit
      * must be nonnegative.
      * 
* * optional int64 max_meters = 1; - * * @return This builder for chaining. */ public Builder clearMaxMeters() { @@ -754,10 +687,8 @@ public Builder clearMaxMeters() { return this; } - private long softMaxMeters_; + private long softMaxMeters_ ; /** - * - * *
      * A soft limit not enforcing a maximum distance limit, but when violated
      * results in a cost which adds up to other costs defined in the model,
@@ -768,7 +699,6 @@ public Builder clearMaxMeters() {
      * 
* * optional int64 soft_max_meters = 2; - * * @return Whether the softMaxMeters field is set. */ @java.lang.Override @@ -776,8 +706,6 @@ public boolean hasSoftMaxMeters() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * A soft limit not enforcing a maximum distance limit, but when violated
      * results in a cost which adds up to other costs defined in the model,
@@ -788,7 +716,6 @@ public boolean hasSoftMaxMeters() {
      * 
* * optional int64 soft_max_meters = 2; - * * @return The softMaxMeters. */ @java.lang.Override @@ -796,8 +723,6 @@ public long getSoftMaxMeters() { return softMaxMeters_; } /** - * - * *
      * A soft limit not enforcing a maximum distance limit, but when violated
      * results in a cost which adds up to other costs defined in the model,
@@ -808,7 +733,6 @@ public long getSoftMaxMeters() {
      * 
* * optional int64 soft_max_meters = 2; - * * @param value The softMaxMeters to set. * @return This builder for chaining. */ @@ -820,8 +744,6 @@ public Builder setSoftMaxMeters(long value) { return this; } /** - * - * *
      * A soft limit not enforcing a maximum distance limit, but when violated
      * results in a cost which adds up to other costs defined in the model,
@@ -832,7 +754,6 @@ public Builder setSoftMaxMeters(long value) {
      * 
* * optional int64 soft_max_meters = 2; - * * @return This builder for chaining. */ public Builder clearSoftMaxMeters() { @@ -842,10 +763,8 @@ public Builder clearSoftMaxMeters() { return this; } - private double costPerKilometerBelowSoftMax_; + private double costPerKilometerBelowSoftMax_ ; /** - * - * *
      * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
      * formula:
@@ -857,7 +776,6 @@ public Builder clearSoftMaxMeters() {
      * 
* * optional double cost_per_kilometer_below_soft_max = 4; - * * @return Whether the costPerKilometerBelowSoftMax field is set. */ @java.lang.Override @@ -865,8 +783,6 @@ public boolean hasCostPerKilometerBelowSoftMax() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
      * formula:
@@ -878,7 +794,6 @@ public boolean hasCostPerKilometerBelowSoftMax() {
      * 
* * optional double cost_per_kilometer_below_soft_max = 4; - * * @return The costPerKilometerBelowSoftMax. */ @java.lang.Override @@ -886,8 +801,6 @@ public double getCostPerKilometerBelowSoftMax() { return costPerKilometerBelowSoftMax_; } /** - * - * *
      * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
      * formula:
@@ -899,7 +812,6 @@ public double getCostPerKilometerBelowSoftMax() {
      * 
* * optional double cost_per_kilometer_below_soft_max = 4; - * * @param value The costPerKilometerBelowSoftMax to set. * @return This builder for chaining. */ @@ -911,8 +823,6 @@ public Builder setCostPerKilometerBelowSoftMax(double value) { return this; } /** - * - * *
      * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
      * formula:
@@ -924,7 +834,6 @@ public Builder setCostPerKilometerBelowSoftMax(double value) {
      * 
* * optional double cost_per_kilometer_below_soft_max = 4; - * * @return This builder for chaining. */ public Builder clearCostPerKilometerBelowSoftMax() { @@ -934,10 +843,8 @@ public Builder clearCostPerKilometerBelowSoftMax() { return this; } - private double costPerKilometerAboveSoftMax_; + private double costPerKilometerAboveSoftMax_ ; /** - * - * *
      * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
      * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -950,7 +857,6 @@ public Builder clearCostPerKilometerBelowSoftMax() {
      * 
* * optional double cost_per_kilometer_above_soft_max = 3; - * * @return Whether the costPerKilometerAboveSoftMax field is set. */ @java.lang.Override @@ -958,8 +864,6 @@ public boolean hasCostPerKilometerAboveSoftMax() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
      * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -972,7 +876,6 @@ public boolean hasCostPerKilometerAboveSoftMax() {
      * 
* * optional double cost_per_kilometer_above_soft_max = 3; - * * @return The costPerKilometerAboveSoftMax. */ @java.lang.Override @@ -980,8 +883,6 @@ public double getCostPerKilometerAboveSoftMax() { return costPerKilometerAboveSoftMax_; } /** - * - * *
      * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
      * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -994,7 +895,6 @@ public double getCostPerKilometerAboveSoftMax() {
      * 
* * optional double cost_per_kilometer_above_soft_max = 3; - * * @param value The costPerKilometerAboveSoftMax to set. * @return This builder for chaining. */ @@ -1006,8 +906,6 @@ public Builder setCostPerKilometerAboveSoftMax(double value) { return this; } /** - * - * *
      * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
      * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -1020,7 +918,6 @@ public Builder setCostPerKilometerAboveSoftMax(double value) {
      * 
* * optional double cost_per_kilometer_above_soft_max = 3; - * * @return This builder for chaining. */ public Builder clearCostPerKilometerAboveSoftMax() { @@ -1029,9 +926,9 @@ public Builder clearCostPerKilometerAboveSoftMax() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1041,12 +938,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.DistanceLimit) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.DistanceLimit) private static final com.google.cloud.optimization.v1.DistanceLimit DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.DistanceLimit(); } @@ -1055,27 +952,27 @@ public static com.google.cloud.optimization.v1.DistanceLimit getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistanceLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistanceLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1090,4 +987,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.DistanceLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java similarity index 83% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java index d4fba359ece7..bd091572a4ef 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java @@ -1,58 +1,34 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface DistanceLimitOrBuilder - extends +public interface DistanceLimitOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.DistanceLimit) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A hard limit constraining the distance to be at most max_meters. The limit
    * must be nonnegative.
    * 
* * optional int64 max_meters = 1; - * * @return Whether the maxMeters field is set. */ boolean hasMaxMeters(); /** - * - * *
    * A hard limit constraining the distance to be at most max_meters. The limit
    * must be nonnegative.
    * 
* * optional int64 max_meters = 1; - * * @return The maxMeters. */ long getMaxMeters(); /** - * - * *
    * A soft limit not enforcing a maximum distance limit, but when violated
    * results in a cost which adds up to other costs defined in the model,
@@ -63,13 +39,10 @@ public interface DistanceLimitOrBuilder
    * 
* * optional int64 soft_max_meters = 2; - * * @return Whether the softMaxMeters field is set. */ boolean hasSoftMaxMeters(); /** - * - * *
    * A soft limit not enforcing a maximum distance limit, but when violated
    * results in a cost which adds up to other costs defined in the model,
@@ -80,14 +53,11 @@ public interface DistanceLimitOrBuilder
    * 
* * optional int64 soft_max_meters = 2; - * * @return The softMaxMeters. */ long getSoftMaxMeters(); /** - * - * *
    * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
    * formula:
@@ -99,13 +69,10 @@ public interface DistanceLimitOrBuilder
    * 
* * optional double cost_per_kilometer_below_soft_max = 4; - * * @return Whether the costPerKilometerBelowSoftMax field is set. */ boolean hasCostPerKilometerBelowSoftMax(); /** - * - * *
    * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
    * formula:
@@ -117,14 +84,11 @@ public interface DistanceLimitOrBuilder
    * 
* * optional double cost_per_kilometer_below_soft_max = 4; - * * @return The costPerKilometerBelowSoftMax. */ double getCostPerKilometerBelowSoftMax(); /** - * - * *
    * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
    * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -137,13 +101,10 @@ public interface DistanceLimitOrBuilder
    * 
* * optional double cost_per_kilometer_above_soft_max = 3; - * * @return Whether the costPerKilometerAboveSoftMax field is set. */ boolean hasCostPerKilometerAboveSoftMax(); /** - * - * *
    * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
    * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -156,7 +117,6 @@ public interface DistanceLimitOrBuilder
    * 
* * optional double cost_per_kilometer_above_soft_max = 3; - * * @return The costPerKilometerAboveSoftMax. */ double getCostPerKilometerAboveSoftMax(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java new file mode 100644 index 000000000000..427a75b29621 --- /dev/null +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java @@ -0,0 +1,1153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/optimization/v1/fleet_routing.proto + +package com.google.cloud.optimization.v1; + +public final class FleetRoutingProto { + private FleetRoutingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_TimeWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Waypoint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Location_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BreakRule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/optimization/v1/fleet_rou" + + "ting.proto\022\034google.cloud.optimization.v1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032.google/cloud/optimization/v1/a" + + "sync_model.proto\032#google/longrunning/ope" + + "rations.proto\032\036google/protobuf/duration." + + "proto\032\037google/protobuf/timestamp.proto\032\030" + + "google/type/latlng.proto\"\245\t\n\024OptimizeTou" + + "rsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022*\n\007timeo" + + "ut\030\002 \001(\0132\031.google.protobuf.Duration\022:\n\005m" + + "odel\030\003 \001(\0132+.google.cloud.optimization.v" + + "1.ShipmentModel\022T\n\014solving_mode\030\004 \001(\0162>." + + "google.cloud.optimization.v1.OptimizeTou" + + "rsRequest.SolvingMode\022R\n\013search_mode\030\006 \001" + + "(\0162=.google.cloud.optimization.v1.Optimi" + + "zeToursRequest.SearchMode\022S\n\036injected_fi" + + "rst_solution_routes\030\007 \003(\0132+.google.cloud" + + ".optimization.v1.ShipmentRoute\022^\n\034inject" + + "ed_solution_constraint\030\010 \001(\01328.google.cl" + + "oud.optimization.v1.InjectedSolutionCons" + + "traint\022K\n\026refresh_details_routes\030\t \003(\0132+" + + ".google.cloud.optimization.v1.ShipmentRo" + + "ute\0221\n)interpret_injected_solutions_usin" + + "g_labels\030\n \001(\010\022\035\n\025consider_road_traffic\030" + + "\013 \001(\010\022\032\n\022populate_polylines\030\014 \001(\010\022%\n\035pop" + + "ulate_transition_polylines\030\r \001(\010\0226\n.allo" + + "w_large_deadline_despite_interruption_ri" + + "sk\030\016 \001(\010\022\036\n\026use_geodesic_distances\030\017 \001(\010" + + "\022\'\n\032geodesic_meters_per_second\030\020 \001(\001H\000\210\001" + + "\001\022\"\n\025max_validation_errors\030\005 \001(\005H\001\210\001\001\022\r\n" + + "\005label\030\021 \001(\t\022*\n\036populate_travel_step_pol" + + "ylines\030\024 \001(\010B\002\030\001\"Y\n\013SolvingMode\022\021\n\rDEFAU" + + "LT_SOLVE\020\000\022\021\n\rVALIDATE_ONLY\020\001\022$\n DETECT_" + + "SOME_INFEASIBLE_SHIPMENTS\020\002\"Z\n\nSearchMod" + + "e\022\033\n\027SEARCH_MODE_UNSPECIFIED\020\000\022\017\n\013RETURN" + + "_FAST\020\001\022\036\n\032CONSUME_ALL_AVAILABLE_TIME\020\002B" + + "\035\n\033_geodesic_meters_per_secondB\030\n\026_max_v" + + "alidation_errors\"\256\006\n\025OptimizeToursRespon" + + "se\022;\n\006routes\030\001 \003(\0132+.google.cloud.optimi" + + "zation.v1.ShipmentRoute\022\025\n\rrequest_label" + + "\030\003 \001(\t\022H\n\021skipped_shipments\030\004 \003(\0132-.goog" + + "le.cloud.optimization.v1.SkippedShipment" + + "\022U\n\021validation_errors\030\005 \003(\0132:.google.clo" + + "ud.optimization.v1.OptimizeToursValidati" + + "onError\022L\n\007metrics\030\006 \001(\0132;.google.cloud." + + "optimization.v1.OptimizeToursResponse.Me" + + "trics\022\026\n\ntotal_cost\030\002 \001(\001B\002\030\001\032\271\003\n\007Metric" + + "s\022Q\n\030aggregated_route_metrics\030\001 \001(\0132/.go" + + "ogle.cloud.optimization.v1.AggregatedMet" + + "rics\022(\n skipped_mandatory_shipment_count" + + "\030\002 \001(\005\022\032\n\022used_vehicle_count\030\003 \001(\005\022?\n\033ea" + + "rliest_vehicle_start_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\022;\n\027latest_vehicle_en" + + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "\022U\n\005costs\030\n \003(\0132F.google.cloud.optimizat" + + "ion.v1.OptimizeToursResponse.Metrics.Cos" + + "tsEntry\022\022\n\ntotal_cost\030\006 \001(\001\032,\n\nCostsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\357\002\n\031Ba" + + "tchOptimizeToursRequest\022\024\n\006parent\030\001 \001(\tB" + + "\004\342A\001\002\022e\n\rmodel_configs\030\002 \003(\0132H.google.cl" + + "oud.optimization.v1.BatchOptimizeToursRe" + + "quest.AsyncModelConfigB\004\342A\001\002\032\324\001\n\020AsyncMo" + + "delConfig\022\024\n\014display_name\030\001 \001(\t\022E\n\014input" + + "_config\030\002 \001(\0132).google.cloud.optimizatio" + + "n.v1.InputConfigB\004\342A\001\002\022G\n\routput_config\030" + + "\003 \001(\0132*.google.cloud.optimization.v1.Out" + + "putConfigB\004\342A\001\002\022\032\n\022enable_checkpoints\030\004 " + + "\001(\010\"\034\n\032BatchOptimizeToursResponse\"\237\017\n\rSh" + + "ipmentModel\0229\n\tshipments\030\001 \003(\0132&.google." + + "cloud.optimization.v1.Shipment\0227\n\010vehicl" + + "es\030\002 \003(\0132%.google.cloud.optimization.v1." + + "Vehicle\022 \n\023max_active_vehicles\030\004 \001(\005H\000\210\001" + + "\001\0225\n\021global_start_time\030\005 \001(\0132\032.google.pr" + + "otobuf.Timestamp\0223\n\017global_end_time\030\006 \001(" + + "\0132\032.google.protobuf.Timestamp\022%\n\035global_" + + "duration_cost_per_hour\030\007 \001(\001\022f\n\032duration" + + "_distance_matrices\030\010 \003(\0132B.google.cloud." + + "optimization.v1.ShipmentModel.DurationDi" + + "stanceMatrix\022)\n!duration_distance_matrix" + + "_src_tags\030\t \003(\t\022)\n!duration_distance_mat" + + "rix_dst_tags\030\n \003(\t\022Q\n\025transition_attribu" + + "tes\030\013 \003(\01322.google.cloud.optimization.v1" + + ".TransitionAttributes\022b\n\037shipment_type_i" + + "ncompatibilities\030\014 \003(\01329.google.cloud.op" + + "timization.v1.ShipmentTypeIncompatibilit" + + "y\022Y\n\032shipment_type_requirements\030\r \003(\01325." + + "google.cloud.optimization.v1.ShipmentTyp" + + "eRequirement\022T\n\020precedence_rules\030\016 \003(\0132:" + + ".google.cloud.optimization.v1.ShipmentMo" + + "del.PrecedenceRule\022N\n\013break_rules\030\017 \003(\0132" + + "5.google.cloud.optimization.v1.ShipmentM" + + "odel.BreakRuleB\002\030\001\032\316\001\n\026DurationDistanceM" + + "atrix\022T\n\004rows\030\001 \003(\0132F.google.cloud.optim" + + "ization.v1.ShipmentModel.DurationDistanc" + + "eMatrix.Row\022\031\n\021vehicle_start_tag\030\002 \001(\t\032C" + + "\n\003Row\022,\n\tdurations\030\001 \003(\0132\031.google.protob" + + "uf.Duration\022\016\n\006meters\030\002 \003(\001\032\321\001\n\016Preceden" + + "ceRule\022\030\n\013first_index\030\001 \001(\005H\000\210\001\001\022\031\n\021firs" + + "t_is_delivery\030\003 \001(\010\022\031\n\014second_index\030\002 \001(" + + "\005H\001\210\001\001\022\032\n\022second_is_delivery\030\004 \001(\010\0222\n\017of" + + "fset_duration\030\005 \001(\0132\031.google.protobuf.Du" + + "rationB\016\n\014_first_indexB\017\n\r_second_index\032" + + "\261\004\n\tBreakRule\022Z\n\016break_requests\030\001 \003(\0132B." + + "google.cloud.optimization.v1.ShipmentMod" + + "el.BreakRule.BreakRequest\022h\n\025frequency_c" + + "onstraints\030\002 \003(\0132I.google.cloud.optimiza" + + "tion.v1.ShipmentModel.BreakRule.Frequenc" + + "yConstraint\032\301\001\n\014BreakRequest\022=\n\023earliest" + + "_start_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\002\022;\n\021latest_start_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\002\0225\n\014min_" + + "duration\030\003 \001(\0132\031.google.protobuf.Duratio" + + "nB\004\342A\001\002\032\225\001\n\023FrequencyConstraint\022;\n\022min_b" + + "reak_duration\030\001 \001(\0132\031.google.protobuf.Du" + + "rationB\004\342A\001\002\022A\n\030max_inter_break_duration" + + "\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\002:" + + "\002\030\001B\026\n\024_max_active_vehicles\"\200\014\n\010Shipment" + + "\022D\n\007pickups\030\001 \003(\01323.google.cloud.optimiz" + + "ation.v1.Shipment.VisitRequest\022G\n\ndelive" + + "ries\030\002 \003(\01323.google.cloud.optimization.v" + + "1.Shipment.VisitRequest\022M\n\014load_demands\030" + + "\016 \003(\01327.google.cloud.optimization.v1.Shi" + + "pment.LoadDemandsEntry\022\031\n\014penalty_cost\030\004" + + " \001(\001H\000\210\001\001\022\037\n\027allowed_vehicle_indices\030\005 \003" + + "(\005\022\031\n\021costs_per_vehicle\030\006 \003(\001\022!\n\031costs_p" + + "er_vehicle_indices\030\007 \003(\005\0225\n(pickup_to_de" + + "livery_relative_detour_limit\030\010 \001(\001H\001\210\001\001\022" + + "K\n(pickup_to_delivery_absolute_detour_li" + + "mit\030\t \001(\0132\031.google.protobuf.Duration\022@\n\035" + + "pickup_to_delivery_time_limit\030\n \001(\0132\031.go" + + "ogle.protobuf.Duration\022\025\n\rshipment_type\030" + + "\013 \001(\t\022\r\n\005label\030\014 \001(\t\022\016\n\006ignore\030\r \001(\010\022C\n\007" + + "demands\030\003 \003(\0132..google.cloud.optimizatio" + + "n.v1.CapacityQuantityB\002\030\001\032\243\005\n\014VisitReque" + + "st\022-\n\020arrival_location\030\001 \001(\0132\023.google.ty" + + "pe.LatLng\022@\n\020arrival_waypoint\030\002 \001(\0132&.go" + + "ogle.cloud.optimization.v1.Waypoint\022/\n\022d" + + "eparture_location\030\003 \001(\0132\023.google.type.La" + + "tLng\022B\n\022departure_waypoint\030\004 \001(\0132&.googl" + + "e.cloud.optimization.v1.Waypoint\022\014\n\004tags" + + "\030\005 \003(\t\022>\n\014time_windows\030\006 \003(\0132(.google.cl" + + "oud.optimization.v1.TimeWindow\022+\n\010durati" + + "on\030\007 \001(\0132\031.google.protobuf.Duration\022\014\n\004c" + + "ost\030\010 \001(\001\022Z\n\014load_demands\030\014 \003(\0132D.google" + + ".cloud.optimization.v1.Shipment.VisitReq" + + "uest.LoadDemandsEntry\022\023\n\013visit_types\030\n \003" + + "(\t\022\r\n\005label\030\013 \001(\t\022C\n\007demands\030\t \003(\0132..goo" + + "gle.cloud.optimization.v1.CapacityQuanti" + + "tyB\002\030\001\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001 \001(\t\022" + + ":\n\005value\030\002 \001(\0132+.google.cloud.optimizati" + + "on.v1.Shipment.Load:\0028\001\032\026\n\004Load\022\016\n\006amoun" + + "t\030\002 \001(\003\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001 \001(\t" + + "\022:\n\005value\030\002 \001(\0132+.google.cloud.optimizat" + + "ion.v1.Shipment.Load:\0028\001B\017\n\r_penalty_cos" + + "tB+\n)_pickup_to_delivery_relative_detour" + + "_limit\"\242\002\n\033ShipmentTypeIncompatibility\022\r" + + "\n\005types\030\001 \003(\t\022k\n\024incompatibility_mode\030\002 " + + "\001(\0162M.google.cloud.optimization.v1.Shipm" + + "entTypeIncompatibility.IncompatibilityMo" + + "de\"\206\001\n\023IncompatibilityMode\022$\n INCOMPATIB" + + "ILITY_MODE_UNSPECIFIED\020\000\022!\n\035NOT_PERFORME" + + "D_BY_SAME_VEHICLE\020\001\022&\n\"NOT_IN_SAME_VEHIC" + + "LE_SIMULTANEOUSLY\020\002\"\350\002\n\027ShipmentTypeRequ" + + "irement\022+\n#required_shipment_type_altern" + + "atives\030\001 \003(\t\022 \n\030dependent_shipment_types" + + "\030\002 \003(\t\022_\n\020requirement_mode\030\003 \001(\0162E.googl" + + "e.cloud.optimization.v1.ShipmentTypeRequ" + + "irement.RequirementMode\"\234\001\n\017RequirementM" + + "ode\022 \n\034REQUIREMENT_MODE_UNSPECIFIED\020\000\022\035\n" + + "\031PERFORMED_BY_SAME_VEHICLE\020\001\022\"\n\036IN_SAME_" + + "VEHICLE_AT_PICKUP_TIME\020\002\022$\n IN_SAME_VEHI" + + "CLE_AT_DELIVERY_TIME\020\003\"p\n\016RouteModifiers" + + "\022\023\n\013avoid_tolls\030\002 \001(\010\022\026\n\016avoid_highways\030" + + "\003 \001(\010\022\025\n\ravoid_ferries\030\004 \001(\010\022\032\n\014avoid_in" + + "door\030\005 \001(\010B\004\342A\001\001\"\233\025\n\007Vehicle\022E\n\013travel_m" + + "ode\030\001 \001(\01620.google.cloud.optimization.v1" + + ".Vehicle.TravelMode\022K\n\017route_modifiers\030\002" + + " \001(\0132,.google.cloud.optimization.v1.Rout" + + "eModifiersB\004\342A\001\001\022+\n\016start_location\030\003 \001(\013" + + "2\023.google.type.LatLng\022>\n\016start_waypoint\030" + + "\004 \001(\0132&.google.cloud.optimization.v1.Way" + + "point\022)\n\014end_location\030\005 \001(\0132\023.google.typ" + + "e.LatLng\022<\n\014end_waypoint\030\006 \001(\0132&.google." + + "cloud.optimization.v1.Waypoint\022\022\n\nstart_" + + "tags\030\007 \003(\t\022\020\n\010end_tags\030\010 \003(\t\022D\n\022start_ti" + + "me_windows\030\t \003(\0132(.google.cloud.optimiza" + + "tion.v1.TimeWindow\022B\n\020end_time_windows\030\n" + + " \003(\0132(.google.cloud.optimization.v1.Time" + + "Window\022%\n\030travel_duration_multiple\030\013 \001(\001" + + "H\000\210\001\001\022O\n\020unloading_policy\030\014 \001(\01625.google" + + ".cloud.optimization.v1.Vehicle.Unloading" + + "Policy\022J\n\013load_limits\030\036 \003(\01325.google.clo" + + "ud.optimization.v1.Vehicle.LoadLimitsEnt" + + "ry\022\025\n\rcost_per_hour\030\020 \001(\001\022\036\n\026cost_per_tr" + + "aveled_hour\030\021 \001(\001\022\032\n\022cost_per_kilometer\030" + + "\022 \001(\001\022\022\n\nfixed_cost\030\023 \001(\001\022\036\n\026used_if_rou" + + "te_is_empty\030\024 \001(\010\022Q\n\024route_duration_limi" + + "t\030\025 \001(\01323.google.cloud.optimization.v1.V" + + "ehicle.DurationLimit\022R\n\025travel_duration_" + + "limit\030\026 \001(\01323.google.cloud.optimization." + + "v1.Vehicle.DurationLimit\022I\n\024route_distan" + + "ce_limit\030\027 \001(\0132+.google.cloud.optimizati" + + "on.v1.DistanceLimit\022v\n#extra_visit_durat" + + "ion_for_visit_type\030\030 \003(\0132I.google.cloud." + + "optimization.v1.Vehicle.ExtraVisitDurati" + + "onForVisitTypeEntry\022;\n\nbreak_rule\030\031 \001(\0132" + + "\'.google.cloud.optimization.v1.BreakRule" + + "\022\r\n\005label\030\033 \001(\t\022\016\n\006ignore\030\034 \001(\010\022\036\n\022break" + + "_rule_indices\030\035 \003(\005B\002\030\001\022F\n\ncapacities\030\r " + + "\003(\0132..google.cloud.optimization.v1.Capac" + + "ityQuantityB\002\030\001\022X\n\024start_load_intervals\030" + + "\016 \003(\01326.google.cloud.optimization.v1.Cap" + + "acityQuantityIntervalB\002\030\001\022V\n\022end_load_in" + + "tervals\030\017 \003(\01326.google.cloud.optimizatio" + + "n.v1.CapacityQuantityIntervalB\002\030\001\032\313\002\n\tLo" + + "adLimit\022\025\n\010max_load\030\001 \001(\003H\000\210\001\001\022\025\n\rsoft_m" + + "ax_load\030\002 \001(\003\022$\n\034cost_per_unit_above_sof" + + "t_max\030\003 \001(\001\022U\n\023start_load_interval\030\004 \001(\013" + + "28.google.cloud.optimization.v1.Vehicle." + + "LoadLimit.Interval\022S\n\021end_load_interval\030" + + "\005 \001(\01328.google.cloud.optimization.v1.Veh" + + "icle.LoadLimit.Interval\0321\n\010Interval\022\013\n\003m" + + "in\030\001 \001(\003\022\020\n\003max\030\002 \001(\003H\000\210\001\001B\006\n\004_maxB\013\n\t_m" + + "ax_load\032\360\002\n\rDurationLimit\022/\n\014max_duratio" + + "n\030\001 \001(\0132\031.google.protobuf.Duration\0224\n\021so" + + "ft_max_duration\030\002 \001(\0132\031.google.protobuf." + + "Duration\022)\n\034cost_per_hour_after_soft_max" + + "\030\003 \001(\001H\000\210\001\001\022>\n\033quadratic_soft_max_durati" + + "on\030\004 \001(\0132\031.google.protobuf.Duration\022:\n-c" + + "ost_per_square_hour_after_quadratic_soft" + + "_max\030\005 \001(\001H\001\210\001\001B\037\n\035_cost_per_hour_after_" + + "soft_maxB0\n._cost_per_square_hour_after_" + + "quadratic_soft_max\032b\n\017LoadLimitsEntry\022\013\n" + + "\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.cloud" + + ".optimization.v1.Vehicle.LoadLimit:\0028\001\032`" + + "\n#ExtraVisitDurationForVisitTypeEntry\022\013\n" + + "\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.google.proto" + + "buf.Duration:\0028\001\"C\n\nTravelMode\022\033\n\027TRAVEL" + + "_MODE_UNSPECIFIED\020\000\022\013\n\007DRIVING\020\001\022\013\n\007WALK" + + "ING\020\002\"b\n\017UnloadingPolicy\022 \n\034UNLOADING_PO" + + "LICY_UNSPECIFIED\020\000\022\025\n\021LAST_IN_FIRST_OUT\020" + + "\001\022\026\n\022FIRST_IN_FIRST_OUT\020\002B\033\n\031_travel_dur" + + "ation_multiple\"\204\003\n\nTimeWindow\022.\n\nstart_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\0223\n\017soft_start_time\030\003 \001(\0132\032.google.pr" + + "otobuf.Timestamp\0221\n\rsoft_end_time\030\004 \001(\0132" + + "\032.google.protobuf.Timestamp\0221\n$cost_per_" + + "hour_before_soft_start_time\030\005 \001(\001H\000\210\001\001\022." + + "\n!cost_per_hour_after_soft_end_time\030\006 \001(" + + "\001H\001\210\001\001B\'\n%_cost_per_hour_before_soft_sta" + + "rt_timeB$\n\"_cost_per_hour_after_soft_end" + + "_time\"3\n\020CapacityQuantity\022\014\n\004type\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\003:\002\030\001\"x\n\030CapacityQuantityIn" + + "terval\022\014\n\004type\030\001 \001(\t\022\026\n\tmin_value\030\002 \001(\003H" + + "\000\210\001\001\022\026\n\tmax_value\030\003 \001(\003H\001\210\001\001:\002\030\001B\014\n\n_min" + + "_valueB\014\n\n_max_value\"\225\002\n\rDistanceLimit\022\027" + + "\n\nmax_meters\030\001 \001(\003H\000\210\001\001\022\034\n\017soft_max_mete" + + "rs\030\002 \001(\003H\001\210\001\001\022.\n!cost_per_kilometer_belo" + + "w_soft_max\030\004 \001(\001H\002\210\001\001\022.\n!cost_per_kilome" + + "ter_above_soft_max\030\003 \001(\001H\003\210\001\001B\r\n\013_max_me" + + "tersB\022\n\020_soft_max_metersB$\n\"_cost_per_ki" + + "lometer_below_soft_maxB$\n\"_cost_per_kilo" + + "meter_above_soft_max\"\205\002\n\024TransitionAttri" + + "butes\022\017\n\007src_tag\030\001 \001(\t\022\030\n\020excluded_src_t" + + "ag\030\002 \001(\t\022\017\n\007dst_tag\030\003 \001(\t\022\030\n\020excluded_ds" + + "t_tag\030\004 \001(\t\022\014\n\004cost\030\005 \001(\001\022\032\n\022cost_per_ki" + + "lometer\030\006 \001(\001\022C\n\016distance_limit\030\007 \001(\0132+." + + "google.cloud.optimization.v1.DistanceLim" + + "it\022(\n\005delay\030\010 \001(\0132\031.google.protobuf.Dura" + + "tion\"\201\001\n\010Waypoint\022:\n\010location\030\001 \001(\0132&.go" + + "ogle.cloud.optimization.v1.LocationH\000\022\022\n" + + "\010place_id\030\002 \001(\tH\000\022\024\n\014side_of_road\030\003 \001(\010B" + + "\017\n\rlocation_type\"R\n\010Location\022$\n\007lat_lng\030" + + "\001 \001(\0132\023.google.type.LatLng\022\024\n\007heading\030\002 " + + "\001(\005H\000\210\001\001B\n\n\010_heading\"\221\004\n\tBreakRule\022L\n\016br" + + "eak_requests\030\001 \003(\01324.google.cloud.optimi" + + "zation.v1.BreakRule.BreakRequest\022Z\n\025freq" + + "uency_constraints\030\002 \003(\0132;.google.cloud.o" + + "ptimization.v1.BreakRule.FrequencyConstr" + + "aint\032\301\001\n\014BreakRequest\022=\n\023earliest_start_" + + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\002\022;\n\021latest_start_time\030\002 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\002\0225\n\014min_duratio" + + "n\030\003 \001(\0132\031.google.protobuf.DurationB\004\342A\001\002" + + "\032\225\001\n\023FrequencyConstraint\022;\n\022min_break_du" + + "ration\030\001 \001(\0132\031.google.protobuf.DurationB" + + "\004\342A\001\002\022A\n\030max_inter_break_duration\030\002 \001(\0132" + + "\031.google.protobuf.DurationB\004\342A\001\002\"\303\026\n\rShi" + + "pmentRoute\022\025\n\rvehicle_index\030\001 \001(\005\022\025\n\rveh" + + "icle_label\030\002 \001(\t\0226\n\022vehicle_start_time\030\005" + + " \001(\0132\032.google.protobuf.Timestamp\0224\n\020vehi" + + "cle_end_time\030\006 \001(\0132\032.google.protobuf.Tim" + + "estamp\022A\n\006visits\030\007 \003(\01321.google.cloud.op" + + "timization.v1.ShipmentRoute.Visit\022K\n\013tra" + + "nsitions\030\010 \003(\01326.google.cloud.optimizati" + + "on.v1.ShipmentRoute.Transition\022#\n\033has_tr" + + "affic_infeasibilities\030\t \001(\010\022S\n\016route_pol" + + "yline\030\n \001(\0132;.google.cloud.optimization." + + "v1.ShipmentRoute.EncodedPolyline\022A\n\006brea" + + "ks\030\013 \003(\01321.google.cloud.optimization.v1." + + "ShipmentRoute.Break\022@\n\007metrics\030\014 \001(\0132/.g" + + "oogle.cloud.optimization.v1.AggregatedMe" + + "trics\022P\n\013route_costs\030\021 \003(\0132;.google.clou" + + "d.optimization.v1.ShipmentRoute.RouteCos" + + "tsEntry\022\030\n\020route_total_cost\030\022 \001(\001\022E\n\tend" + + "_loads\030\r \003(\0132..google.cloud.optimization" + + ".v1.CapacityQuantityB\002\030\001\022P\n\014travel_steps" + + "\030\016 \003(\01326.google.cloud.optimization.v1.Sh" + + "ipmentRoute.TravelStepB\002\030\001\0225\n\016vehicle_de" + + "tour\030\017 \001(\0132\031.google.protobuf.DurationB\002\030" + + "\001\022W\n\030delay_before_vehicle_end\030\020 \001(\01321.go" + + "ogle.cloud.optimization.v1.ShipmentRoute" + + ".DelayB\002\030\001\032h\n\005Delay\022.\n\nstart_time\030\001 \001(\0132" + + "\032.google.protobuf.Timestamp\022+\n\010duration\030" + + "\002 \001(\0132\031.google.protobuf.Duration:\002\030\001\032\365\004\n" + + "\005Visit\022\026\n\016shipment_index\030\001 \001(\005\022\021\n\tis_pic" + + "kup\030\002 \001(\010\022\033\n\023visit_request_index\030\003 \001(\005\022." + + "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022X\n\014load_demands\030\013 \003(\0132B.google.cl" + + "oud.optimization.v1.ShipmentRoute.Visit." + + "LoadDemandsEntry\022)\n\006detour\030\006 \001(\0132\031.googl" + + "e.protobuf.Duration\022\026\n\016shipment_label\030\007 " + + "\001(\t\022\023\n\013visit_label\030\010 \001(\t\022I\n\rarrival_load" + + "s\030\t \003(\0132..google.cloud.optimization.v1.C" + + "apacityQuantityB\002\030\001\022Q\n\022delay_before_star" + + "t\030\n \001(\01321.google.cloud.optimization.v1.S" + + "hipmentRoute.DelayB\002\030\001\022C\n\007demands\030\005 \003(\0132" + + "..google.cloud.optimization.v1.CapacityQ" + + "uantityB\002\030\001\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001" + + " \001(\t\022:\n\005value\030\002 \001(\0132+.google.cloud.optim" + + "ization.v1.Shipment.Load:\0028\001\032\344\005\n\nTransit" + + "ion\0222\n\017travel_duration\030\001 \001(\0132\031.google.pr" + + "otobuf.Duration\022\036\n\026travel_distance_meter" + + "s\030\002 \001(\001\022 \n\030traffic_info_unavailable\030\003 \001(" + + "\010\0221\n\016delay_duration\030\004 \001(\0132\031.google.proto" + + "buf.Duration\0221\n\016break_duration\030\005 \001(\0132\031.g" + + "oogle.protobuf.Duration\0220\n\rwait_duration" + + "\030\006 \001(\0132\031.google.protobuf.Duration\0221\n\016tot" + + "al_duration\030\007 \001(\0132\031.google.protobuf.Dura" + + "tion\022.\n\nstart_time\030\010 \001(\0132\032.google.protob" + + "uf.Timestamp\022S\n\016route_polyline\030\t \001(\0132;.g" + + "oogle.cloud.optimization.v1.ShipmentRout" + + "e.EncodedPolyline\022_\n\rvehicle_loads\030\013 \003(\013" + + "2H.google.cloud.optimization.v1.Shipment" + + "Route.Transition.VehicleLoadsEntry\022A\n\005lo" + + "ads\030\n \003(\0132..google.cloud.optimization.v1" + + ".CapacityQuantityB\002\030\001\032l\n\021VehicleLoadsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google." + + "cloud.optimization.v1.ShipmentRoute.Vehi" + + "cleLoad:\0028\001\032\035\n\013VehicleLoad\022\016\n\006amount\030\001 \001" + + "(\003\032!\n\017EncodedPolyline\022\016\n\006points\030\001 \001(\t\032d\n" + + "\005Break\022.\n\nstart_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022+\n\010duration\030\002 \001(\0132\031.googl" + + "e.protobuf.Duration\032\315\001\n\nTravelStep\022+\n\010du" + + "ration\030\001 \001(\0132\031.google.protobuf.Duration\022" + + "\027\n\017distance_meters\030\002 \001(\001\022 \n\030traffic_info" + + "_unavailable\030\003 \001(\010\022S\n\016route_polyline\030\004 \001" + + "(\0132;.google.cloud.optimization.v1.Shipme" + + "ntRoute.EncodedPolyline:\002\030\001\0321\n\017RouteCost" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\376" + + "\004\n\017SkippedShipment\022\r\n\005index\030\001 \001(\005\022\r\n\005lab" + + "el\030\002 \001(\t\022E\n\007reasons\030\003 \003(\01324.google.cloud" + + ".optimization.v1.SkippedShipment.Reason\032" + + "\205\004\n\006Reason\022G\n\004code\030\001 \001(\01629.google.cloud." + + "optimization.v1.SkippedShipment.Reason.C" + + "ode\022\"\n\025example_vehicle_index\030\002 \001(\005H\000\210\001\001\022" + + "&\n\036example_exceeded_capacity_type\030\003 \001(\t\"" + + "\313\002\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\016\n\nNO_VEH" + + "ICLE\020\001\022#\n\037DEMAND_EXCEEDS_VEHICLE_CAPACIT" + + "Y\020\002\0225\n1CANNOT_BE_PERFORMED_WITHIN_VEHICL" + + "E_DISTANCE_LIMIT\020\003\0225\n1CANNOT_BE_PERFORME" + + "D_WITHIN_VEHICLE_DURATION_LIMIT\020\004\022<\n8CAN" + + "NOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_D" + + "URATION_LIMIT\020\005\0223\n/CANNOT_BE_PERFORMED_W" + + "ITHIN_VEHICLE_TIME_WINDOWS\020\006\022\027\n\023VEHICLE_" + + "NOT_ALLOWED\020\007B\030\n\026_example_vehicle_index\"" + + "\330\005\n\021AggregatedMetrics\022 \n\030performed_shipm" + + "ent_count\030\001 \001(\005\0222\n\017travel_duration\030\002 \001(\013" + + "2\031.google.protobuf.Duration\0220\n\rwait_dura" + + "tion\030\003 \001(\0132\031.google.protobuf.Duration\0221\n" + + "\016delay_duration\030\004 \001(\0132\031.google.protobuf." + + "Duration\0221\n\016break_duration\030\005 \001(\0132\031.googl" + + "e.protobuf.Duration\0221\n\016visit_duration\030\006 " + + "\001(\0132\031.google.protobuf.Duration\0221\n\016total_" + + "duration\030\007 \001(\0132\031.google.protobuf.Duratio" + + "n\022\036\n\026travel_distance_meters\030\010 \001(\001\022P\n\tmax" + + "_loads\030\t \003(\0132=.google.cloud.optimization" + + ".v1.AggregatedMetrics.MaxLoadsEntry\022M\n\005c" + + "osts\030\n \003(\0132:.google.cloud.optimization.v" + + "1.AggregatedMetrics.CostsEntryB\002\030\001\022\026\n\nto" + + "tal_cost\030\013 \001(\001B\002\030\001\032h\n\rMaxLoadsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.o" + + "ptimization.v1.ShipmentRoute.VehicleLoad" + + ":\0028\001\032,\n\nCostsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\001:\0028\001\"\237\006\n\032InjectedSolutionConstrain" + + "t\022;\n\006routes\030\001 \003(\0132+.google.cloud.optimiz" + + "ation.v1.ShipmentRoute\022H\n\021skipped_shipme" + + "nts\030\002 \003(\0132-.google.cloud.optimization.v1", + ".SkippedShipment\022m\n\026constraint_relaxatio" + + "ns\030\003 \003(\0132M.google.cloud.optimization.v1." + + "InjectedSolutionConstraint.ConstraintRel" + + "axation\032\212\004\n\024ConstraintRelaxation\022m\n\013rela" + + "xations\030\001 \003(\0132X.google.cloud.optimizatio" + + "n.v1.InjectedSolutionConstraint.Constrai" + + "ntRelaxation.Relaxation\022\027\n\017vehicle_indic" + + "es\030\002 \003(\005\032\351\002\n\nRelaxation\022m\n\005level\030\001 \001(\0162^" + + ".google.cloud.optimization.v1.InjectedSo" + + "lutionConstraint.ConstraintRelaxation.Re" + + "laxation.Level\0222\n\016threshold_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\022\035\n\025threshold_" + + "visit_count\030\003 \001(\005\"\230\001\n\005Level\022\025\n\021LEVEL_UNS" + + "PECIFIED\020\000\022%\n!RELAX_VISIT_TIMES_AFTER_TH" + + "RESHOLD\020\001\0222\n.RELAX_VISIT_TIMES_AND_SEQUE" + + "NCE_AFTER_THRESHOLD\020\002\022\035\n\031RELAX_ALL_AFTER" + + "_THRESHOLD\020\003\"\375\002\n\034OptimizeToursValidation" + + "Error\022\014\n\004code\030\001 \001(\005\022\024\n\014display_name\030\002 \001(" + + "\t\022Y\n\006fields\030\003 \003(\0132I.google.cloud.optimiz" + + "ation.v1.OptimizeToursValidationError.Fi" + + "eldReference\022\025\n\rerror_message\030\004 \001(\t\022\030\n\020o" + + "ffending_values\030\005 \001(\t\032\254\001\n\016FieldReference" + + "\022\014\n\004name\030\001 \001(\t\022\017\n\005index\030\002 \001(\005H\000\022\r\n\003key\030\004" + + " \001(\tH\000\022\\\n\tsub_field\030\003 \001(\0132I.google.cloud" + + ".optimization.v1.OptimizeToursValidation" + + "Error.FieldReferenceB\016\n\014index_or_key2\340\004\n" + + "\014FleetRouting\022\342\001\n\rOptimizeTours\0222.google" + + ".cloud.optimization.v1.OptimizeToursRequ" + + "est\0323.google.cloud.optimization.v1.Optim" + + "izeToursResponse\"h\202\323\344\223\002b\"1/v1/{parent=pr" + + "ojects/*/locations/*}:optimizeTours:\001*Z*" + + "\"%/v1/{parent=projects/*}:optimizeTours:" + + "\001*\022\224\002\n\022BatchOptimizeTours\0227.google.cloud" + + ".optimization.v1.BatchOptimizeToursReque" + + "st\032\035.google.longrunning.Operation\"\245\001\312A0\n" + + "\032BatchOptimizeToursResponse\022\022AsyncModelM" + + "etadata\202\323\344\223\002l\"6/v1/{parent=projects/*/lo" + + "cations/*}:batchOptimizeTours:\001*Z/\"*/v1/" + + "{parent=projects/*}:batchOptimizeTours:\001" + + "*\032T\312A cloudoptimization.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB}\n com.google.cloud.optimization" + + ".v1B\021FleetRoutingProtoP\001ZDcloud.google.c" + + "om/go/optimization/apiv1/optimizationpb;" + + "optimizationpbb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor, + new java.lang.String[] { "Parent", "Timeout", "Model", "SolvingMode", "SearchMode", "InjectedFirstSolutionRoutes", "InjectedSolutionConstraint", "RefreshDetailsRoutes", "InterpretInjectedSolutionsUsingLabels", "ConsiderRoadTraffic", "PopulatePolylines", "PopulateTransitionPolylines", "AllowLargeDeadlineDespiteInterruptionRisk", "UseGeodesicDistances", "GeodesicMetersPerSecond", "MaxValidationErrors", "Label", "PopulateTravelStepPolylines", "GeodesicMetersPerSecond", "MaxValidationErrors", }); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor, + new java.lang.String[] { "Routes", "RequestLabel", "SkippedShipments", "ValidationErrors", "Metrics", "TotalCost", }); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor = + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor, + new java.lang.String[] { "AggregatedRouteMetrics", "SkippedMandatoryShipmentCount", "UsedVehicleCount", "EarliestVehicleStartTime", "LatestVehicleEndTime", "Costs", "TotalCost", }); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor = + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor, + new java.lang.String[] { "Parent", "ModelConfigs", }); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor = + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor, + new java.lang.String[] { "DisplayName", "InputConfig", "OutputConfig", "EnableCheckpoints", }); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor, + new java.lang.String[] { "Shipments", "Vehicles", "MaxActiveVehicles", "GlobalStartTime", "GlobalEndTime", "GlobalDurationCostPerHour", "DurationDistanceMatrices", "DurationDistanceMatrixSrcTags", "DurationDistanceMatrixDstTags", "TransitionAttributes", "ShipmentTypeIncompatibilities", "ShipmentTypeRequirements", "PrecedenceRules", "BreakRules", "MaxActiveVehicles", }); + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor, + new java.lang.String[] { "Rows", "VehicleStartTag", }); + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor, + new java.lang.String[] { "Durations", "Meters", }); + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor, + new java.lang.String[] { "FirstIndex", "FirstIsDelivery", "SecondIndex", "SecondIsDelivery", "OffsetDuration", "FirstIndex", "SecondIndex", }); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor, + new java.lang.String[] { "BreakRequests", "FrequencyConstraints", }); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor, + new java.lang.String[] { "EarliestStartTime", "LatestStartTime", "MinDuration", }); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor, + new java.lang.String[] { "MinBreakDuration", "MaxInterBreakDuration", }); + internal_static_google_cloud_optimization_v1_Shipment_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_descriptor, + new java.lang.String[] { "Pickups", "Deliveries", "LoadDemands", "PenaltyCost", "AllowedVehicleIndices", "CostsPerVehicle", "CostsPerVehicleIndices", "PickupToDeliveryRelativeDetourLimit", "PickupToDeliveryAbsoluteDetourLimit", "PickupToDeliveryTimeLimit", "ShipmentType", "Label", "Ignore", "Demands", "PenaltyCost", "PickupToDeliveryRelativeDetourLimit", }); + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor = + internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor, + new java.lang.String[] { "ArrivalLocation", "ArrivalWaypoint", "DepartureLocation", "DepartureWaypoint", "Tags", "TimeWindows", "Duration", "Cost", "LoadDemands", "VisitTypes", "Label", "Demands", }); + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor = + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor = + internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor, + new java.lang.String[] { "Amount", }); + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor = + internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor, + new java.lang.String[] { "Types", "IncompatibilityMode", }); + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor, + new java.lang.String[] { "RequiredShipmentTypeAlternatives", "DependentShipmentTypes", "RequirementMode", }); + internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor, + new java.lang.String[] { "AvoidTolls", "AvoidHighways", "AvoidFerries", "AvoidIndoor", }); + internal_static_google_cloud_optimization_v1_Vehicle_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_descriptor, + new java.lang.String[] { "TravelMode", "RouteModifiers", "StartLocation", "StartWaypoint", "EndLocation", "EndWaypoint", "StartTags", "EndTags", "StartTimeWindows", "EndTimeWindows", "TravelDurationMultiple", "UnloadingPolicy", "LoadLimits", "CostPerHour", "CostPerTraveledHour", "CostPerKilometer", "FixedCost", "UsedIfRouteIsEmpty", "RouteDurationLimit", "TravelDurationLimit", "RouteDistanceLimit", "ExtraVisitDurationForVisitType", "BreakRule", "Label", "Ignore", "BreakRuleIndices", "Capacities", "StartLoadIntervals", "EndLoadIntervals", "TravelDurationMultiple", }); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor, + new java.lang.String[] { "MaxLoad", "SoftMaxLoad", "CostPerUnitAboveSoftMax", "StartLoadInterval", "EndLoadInterval", "MaxLoad", }); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor, + new java.lang.String[] { "Min", "Max", "Max", }); + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor, + new java.lang.String[] { "MaxDuration", "SoftMaxDuration", "CostPerHourAfterSoftMax", "QuadraticSoftMaxDuration", "CostPerSquareHourAfterQuadraticSoftMax", "CostPerHourAfterSoftMax", "CostPerSquareHourAfterQuadraticSoftMax", }); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_TimeWindow_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_TimeWindow_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "SoftStartTime", "SoftEndTime", "CostPerHourBeforeSoftStartTime", "CostPerHourAfterSoftEndTime", "CostPerHourBeforeSoftStartTime", "CostPerHourAfterSoftEndTime", }); + internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor, + new java.lang.String[] { "Type", "Value", }); + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor, + new java.lang.String[] { "Type", "MinValue", "MaxValue", "MinValue", "MaxValue", }); + internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor, + new java.lang.String[] { "MaxMeters", "SoftMaxMeters", "CostPerKilometerBelowSoftMax", "CostPerKilometerAboveSoftMax", "MaxMeters", "SoftMaxMeters", "CostPerKilometerBelowSoftMax", "CostPerKilometerAboveSoftMax", }); + internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor, + new java.lang.String[] { "SrcTag", "ExcludedSrcTag", "DstTag", "ExcludedDstTag", "Cost", "CostPerKilometer", "DistanceLimit", "Delay", }); + internal_static_google_cloud_optimization_v1_Waypoint_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Waypoint_descriptor, + new java.lang.String[] { "Location", "PlaceId", "SideOfRoad", "LocationType", }); + internal_static_google_cloud_optimization_v1_Location_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Location_descriptor, + new java.lang.String[] { "LatLng", "Heading", "Heading", }); + internal_static_google_cloud_optimization_v1_BreakRule_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BreakRule_descriptor, + new java.lang.String[] { "BreakRequests", "FrequencyConstraints", }); + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor = + internal_static_google_cloud_optimization_v1_BreakRule_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor, + new java.lang.String[] { "EarliestStartTime", "LatestStartTime", "MinDuration", }); + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor = + internal_static_google_cloud_optimization_v1_BreakRule_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor, + new java.lang.String[] { "MinBreakDuration", "MaxInterBreakDuration", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor, + new java.lang.String[] { "VehicleIndex", "VehicleLabel", "VehicleStartTime", "VehicleEndTime", "Visits", "Transitions", "HasTrafficInfeasibilities", "RoutePolyline", "Breaks", "Metrics", "RouteCosts", "RouteTotalCost", "EndLoads", "TravelSteps", "VehicleDetour", "DelayBeforeVehicleEnd", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor, + new java.lang.String[] { "StartTime", "Duration", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor, + new java.lang.String[] { "ShipmentIndex", "IsPickup", "VisitRequestIndex", "StartTime", "LoadDemands", "Detour", "ShipmentLabel", "VisitLabel", "ArrivalLoads", "DelayBeforeStart", "Demands", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor, + new java.lang.String[] { "TravelDuration", "TravelDistanceMeters", "TrafficInfoUnavailable", "DelayDuration", "BreakDuration", "WaitDuration", "TotalDuration", "StartTime", "RoutePolyline", "VehicleLoads", "Loads", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor, + new java.lang.String[] { "Amount", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor, + new java.lang.String[] { "Points", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor, + new java.lang.String[] { "StartTime", "Duration", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor, + new java.lang.String[] { "Duration", "DistanceMeters", "TrafficInfoUnavailable", "RoutePolyline", }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor, + new java.lang.String[] { "Index", "Label", "Reasons", }); + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor = + internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor, + new java.lang.String[] { "Code", "ExampleVehicleIndex", "ExampleExceededCapacityType", "ExampleVehicleIndex", }); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor, + new java.lang.String[] { "PerformedShipmentCount", "TravelDuration", "WaitDuration", "DelayDuration", "BreakDuration", "VisitDuration", "TotalDuration", "TravelDistanceMeters", "MaxLoads", "Costs", "TotalCost", }); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor = + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor = + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor, + new java.lang.String[] { "Routes", "SkippedShipments", "ConstraintRelaxations", }); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor = + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor, + new java.lang.String[] { "Relaxations", "VehicleIndices", }); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor = + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor, + new java.lang.String[] { "Level", "ThresholdTime", "ThresholdVisitCount", }); + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor, + new java.lang.String[] { "Code", "DisplayName", "Fields", "ErrorMessage", "OffendingValues", }); + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor = + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor, + new java.lang.String[] { "Name", "Index", "Key", "SubField", "IndexOrKey", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java similarity index 66% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java index d770d83185c5..ba94c4199f09 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** - * - * *
  * The Google Cloud Storage location where the output file will be written to.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.GcsDestination.class, - com.google.cloud.optimization.v1.GcsDestination.Builder.class); + com.google.cloud.optimization.v1.GcsDestination.class, com.google.cloud.optimization.v1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -114,7 +91,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -150,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.optimization.v1.GcsDestination other = - (com.google.cloud.optimization.v1.GcsDestination) obj; + com.google.cloud.optimization.v1.GcsDestination other = (com.google.cloud.optimization.v1.GcsDestination) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,136 +154,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the output file will be written to.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.GcsDestination) com.google.cloud.optimization.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.GcsDestination.class, - com.google.cloud.optimization.v1.GcsDestination.Builder.class); + com.google.cloud.optimization.v1.GcsDestination.class, com.google.cloud.optimization.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.optimization.v1.GcsDestination.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -316,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; } @java.lang.Override @@ -337,11 +310,8 @@ public com.google.cloud.optimization.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.optimization.v1.GcsDestination buildPartial() { - com.google.cloud.optimization.v1.GcsDestination result = - new com.google.cloud.optimization.v1.GcsDestination(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.GcsDestination result = new com.google.cloud.optimization.v1.GcsDestination(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -357,39 +327,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.GcsDestination resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.GcsDestination) { - return mergeFrom((com.google.cloud.optimization.v1.GcsDestination) other); + return mergeFrom((com.google.cloud.optimization.v1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -397,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.optimization.v1.GcsDestination other) { - if (other == com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; @@ -430,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -452,25 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uri_ = ""; /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -479,21 +442,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -501,35 +463,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -539,30 +494,26 @@ public Builder clearUri() { return this; } /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -572,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.GcsDestination) private static final com.google.cloud.optimization.v1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.GcsDestination(); } @@ -586,27 +537,27 @@ public static com.google.cloud.optimization.v1.GcsDestination getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -621,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java similarity index 50% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java index 29dc9aba3563..e40311e169fb 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java similarity index 65% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java index d49852fa485d..f8d75b9523a8 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** - * - * *
  * The Google Cloud Storage location where the input file will be read from.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.GcsSource} */ -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.GcsSource) GcsSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.GcsSource.class, - com.google.cloud.optimization.v1.GcsSource.Builder.class); + com.google.cloud.optimization.v1.GcsSource.class, com.google.cloud.optimization.v1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -83,29 +60,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -114,7 +91,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -150,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.GcsSource)) { return super.equals(obj); } - com.google.cloud.optimization.v1.GcsSource other = - (com.google.cloud.optimization.v1.GcsSource) obj; + com.google.cloud.optimization.v1.GcsSource other = (com.google.cloud.optimization.v1.GcsSource) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,136 +154,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Google Cloud Storage location where the input file will be read from.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.GcsSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.GcsSource) com.google.cloud.optimization.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.GcsSource.class, - com.google.cloud.optimization.v1.GcsSource.Builder.class); + com.google.cloud.optimization.v1.GcsSource.class, com.google.cloud.optimization.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.optimization.v1.GcsSource.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -316,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_descriptor; } @java.lang.Override @@ -337,11 +310,8 @@ public com.google.cloud.optimization.v1.GcsSource build() { @java.lang.Override public com.google.cloud.optimization.v1.GcsSource buildPartial() { - com.google.cloud.optimization.v1.GcsSource result = - new com.google.cloud.optimization.v1.GcsSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.GcsSource result = new com.google.cloud.optimization.v1.GcsSource(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -357,39 +327,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.GcsSource result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.GcsSource) { - return mergeFrom((com.google.cloud.optimization.v1.GcsSource) other); + return mergeFrom((com.google.cloud.optimization.v1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -429,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -451,25 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uri_ = ""; /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -478,21 +442,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -500,35 +463,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -538,30 +494,26 @@ public Builder clearUri() { return this; } /** - * - * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -571,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.GcsSource) private static final com.google.cloud.optimization.v1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.GcsSource(); } @@ -585,27 +537,27 @@ public static com.google.cloud.optimization.v1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -620,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java similarity index 50% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java index c05549b7960e..34e518e4230f 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java similarity index 68% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java index 00104813333c..6c87097ea288 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Solution injected in the request including information about which visits
  * must be constrained and how they must be constrained.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint}
  */
-public final class InjectedSolutionConstraint extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InjectedSolutionConstraint extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.InjectedSolutionConstraint)
     InjectedSolutionConstraintOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InjectedSolutionConstraint.newBuilder() to construct.
   private InjectedSolutionConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InjectedSolutionConstraint() {
     routes_ = java.util.Collections.emptyList();
     skippedShipments_ = java.util.Collections.emptyList();
@@ -46,109 +28,78 @@ private InjectedSolutionConstraint() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InjectedSolutionConstraint();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.InjectedSolutionConstraint.class,
-            com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder.class);
+            com.google.cloud.optimization.v1.InjectedSolutionConstraint.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder.class);
   }
 
-  public interface ConstraintRelaxationOrBuilder
-      extends
+  public interface ConstraintRelaxationOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation> + java.util.List getRelaxationsList(); /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation - getRelaxations(int index); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getRelaxations(int index); /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ int getRelaxationsCount(); /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - java.util.List< - ? extends - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder> + java.util.List getRelaxationsOrBuilderList(); /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder - getRelaxationsOrBuilder(int index); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder getRelaxationsOrBuilder( + int index); /** - * - * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -165,13 +116,10 @@ public interface ConstraintRelaxationOrBuilder
      * 
* * repeated int32 vehicle_indices = 2; - * * @return A list containing the vehicleIndices. */ java.util.List getVehicleIndicesList(); /** - * - * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -188,13 +136,10 @@ public interface ConstraintRelaxationOrBuilder
      * 
* * repeated int32 vehicle_indices = 2; - * * @return The count of vehicleIndices. */ int getVehicleIndicesCount(); /** - * - * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -211,15 +156,12 @@ public interface ConstraintRelaxationOrBuilder
      * 
* * repeated int32 vehicle_indices = 2; - * * @param index The index of the element to return. * @return The vehicleIndices at the given index. */ int getVehicleIndices(int index); } /** - * - * *
    * For a group of vehicles, specifies at what threshold(s) constraints on
    * visits will be relaxed and to which level. Shipments listed in
@@ -227,19 +169,17 @@ public interface ConstraintRelaxationOrBuilder
    * cannot be performed.
    * 
* - * Protobuf type {@code - * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation} + * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation} */ - public static final class ConstraintRelaxation extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConstraintRelaxation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) ConstraintRelaxationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConstraintRelaxation.newBuilder() to construct. private ConstraintRelaxation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConstraintRelaxation() { relaxations_ = java.util.Collections.emptyList(); vehicleIndices_ = emptyIntList(); @@ -247,94 +187,70 @@ private ConstraintRelaxation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConstraintRelaxation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .class, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Builder.class); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder.class); } - public interface RelaxationOrBuilder - extends + public interface RelaxationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The constraint relaxation level that applies when the conditions
        * at or after `threshold_time` AND at least `threshold_visit_count` are
        * satisfied.
        * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** - * - * *
        * The constraint relaxation level that applies when the conditions
        * at or after `threshold_time` AND at least `threshold_visit_count` are
        * satisfied.
        * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @return The level. */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation - .Level - getLevel(); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level getLevel(); /** - * - * *
        * The time at or after which the relaxation `level` may be applied.
        * 
* * .google.protobuf.Timestamp threshold_time = 2; - * * @return Whether the thresholdTime field is set. */ boolean hasThresholdTime(); /** - * - * *
        * The time at or after which the relaxation `level` may be applied.
        * 
* * .google.protobuf.Timestamp threshold_time = 2; - * * @return The thresholdTime. */ com.google.protobuf.Timestamp getThresholdTime(); /** - * - * *
        * The time at or after which the relaxation `level` may be applied.
        * 
@@ -344,8 +260,6 @@ public interface RelaxationOrBuilder com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder(); /** - * - * *
        * The number of visits at or after which the relaxation `level` may be
        * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -357,14 +271,11 @@ public interface RelaxationOrBuilder
        * 
* * int32 threshold_visit_count = 3; - * * @return The thresholdVisitCount. */ int getThresholdVisitCount(); } /** - * - * *
      * If `relaxations` is empty, the start time and sequence of all visits
      * on `routes` are fully constrained and no new visits may be inserted or
@@ -403,49 +314,42 @@ public interface RelaxationOrBuilder
      * relaxation the time is fixed, unless the vehicle is empty.
      * 
* - * Protobuf type {@code - * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation} + * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation} */ - public static final class Relaxation extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Relaxation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) RelaxationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Relaxation.newBuilder() to construct. private Relaxation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Relaxation() { level_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Relaxation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.class, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder.class); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder.class); } /** - * - * *
        * Expresses the different constraint relaxation levels, which are
        * applied for a visit and those that follow when it satisfies the
@@ -454,13 +358,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * The enumeration below is in order of increasing relaxation.
        * 
* - * Protobuf enum {@code - * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level} + * Protobuf enum {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level} */ - public enum Level implements com.google.protobuf.ProtocolMessageEnum { + public enum Level + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Implicit default relaxation level: no constraints are relaxed,
          * i.e., all visits are fully constrained.
@@ -472,8 +374,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
          */
         LEVEL_UNSPECIFIED(0),
         /**
-         *
-         *
          * 
          * Visit start times and vehicle start/end times will be relaxed, but
          * each visit remains bound to the same vehicle and the visit sequence
@@ -485,8 +385,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
          */
         RELAX_VISIT_TIMES_AFTER_THRESHOLD(1),
         /**
-         *
-         *
          * 
          * Same as `RELAX_VISIT_TIMES_AFTER_THRESHOLD`, but the visit sequence
          * is also relaxed: visits can only be performed by this vehicle, but
@@ -497,8 +395,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
          */
         RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD(2),
         /**
-         *
-         *
          * 
          * Same as `RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD`, but the
          * vehicle is also relaxed: visits are completely free at or after the
@@ -512,8 +408,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
         ;
 
         /**
-         *
-         *
          * 
          * Implicit default relaxation level: no constraints are relaxed,
          * i.e., all visits are fully constrained.
@@ -525,8 +419,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int LEVEL_UNSPECIFIED_VALUE = 0;
         /**
-         *
-         *
          * 
          * Visit start times and vehicle start/end times will be relaxed, but
          * each visit remains bound to the same vehicle and the visit sequence
@@ -538,8 +430,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int RELAX_VISIT_TIMES_AFTER_THRESHOLD_VALUE = 1;
         /**
-         *
-         *
          * 
          * Same as `RELAX_VISIT_TIMES_AFTER_THRESHOLD`, but the visit sequence
          * is also relaxed: visits can only be performed by this vehicle, but
@@ -550,8 +440,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD_VALUE = 2;
         /**
-         *
-         *
          * 
          * Same as `RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD`, but the
          * vehicle is also relaxed: visits are completely free at or after the
@@ -562,6 +450,7 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int RELAX_ALL_AFTER_THRESHOLD_VALUE = 3;
 
+
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -586,55 +475,50 @@ public static Level valueOf(int value) {
          */
         public static Level forNumber(int value) {
           switch (value) {
-            case 0:
-              return LEVEL_UNSPECIFIED;
-            case 1:
-              return RELAX_VISIT_TIMES_AFTER_THRESHOLD;
-            case 2:
-              return RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD;
-            case 3:
-              return RELAX_ALL_AFTER_THRESHOLD;
-            default:
-              return null;
+            case 0: return LEVEL_UNSPECIFIED;
+            case 1: return RELAX_VISIT_TIMES_AFTER_THRESHOLD;
+            case 2: return RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD;
+            case 3: return RELAX_ALL_AFTER_THRESHOLD;
+            default: return null;
           }
         }
 
-        public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+        public static com.google.protobuf.Internal.EnumLiteMap
+            internalGetValueMap() {
           return internalValueMap;
         }
+        private static final com.google.protobuf.Internal.EnumLiteMap<
+            Level> internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public Level findValueByNumber(int number) {
+                  return Level.forNumber(number);
+                }
+              };
 
-        private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public Level findValueByNumber(int number) {
-                return Level.forNumber(number);
-              }
-            };
-
-        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+        public final com.google.protobuf.Descriptors.EnumValueDescriptor
+            getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
-
-        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+        public final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptorForType() {
           return getDescriptor();
         }
-
-        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-          return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
-              .Relaxation.getDescriptor()
-              .getEnumTypes()
-              .get(0);
+        public static final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptor() {
+          return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDescriptor().getEnumTypes().get(0);
         }
 
         private static final Level[] VALUES = values();
 
-        public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+        public static Level valueOf(
+            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-                "EnumValueDescriptor is not for this type.");
+              "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -654,65 +538,41 @@ private Level(int value) {
       public static final int LEVEL_FIELD_NUMBER = 1;
       private int level_ = 0;
       /**
-       *
-       *
        * 
        * The constraint relaxation level that applies when the conditions
        * at or after `threshold_time` AND at least `threshold_visit_count` are
        * satisfied.
        * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
        * The constraint relaxation level that applies when the conditions
        * at or after `threshold_time` AND at least `threshold_visit_count` are
        * satisfied.
        * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @return The level. */ - @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level - getLevel() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation - .Level - result = - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level.forNumber(level_); - return result == null - ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level getLevel() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level result = com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.forNumber(level_); + return result == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.UNRECOGNIZED : result; } public static final int THRESHOLD_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp thresholdTime_; /** - * - * *
        * The time at or after which the relaxation `level` may be applied.
        * 
* * .google.protobuf.Timestamp threshold_time = 2; - * * @return Whether the thresholdTime field is set. */ @java.lang.Override @@ -720,25 +580,18 @@ public boolean hasThresholdTime() { return thresholdTime_ != null; } /** - * - * *
        * The time at or after which the relaxation `level` may be applied.
        * 
* * .google.protobuf.Timestamp threshold_time = 2; - * * @return The thresholdTime. */ @java.lang.Override public com.google.protobuf.Timestamp getThresholdTime() { - return thresholdTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : thresholdTime_; + return thresholdTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : thresholdTime_; } /** - * - * *
        * The time at or after which the relaxation `level` may be applied.
        * 
@@ -747,16 +600,12 @@ public com.google.protobuf.Timestamp getThresholdTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() { - return thresholdTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : thresholdTime_; + return thresholdTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : thresholdTime_; } public static final int THRESHOLD_VISIT_COUNT_FIELD_NUMBER = 3; private int thresholdVisitCount_ = 0; /** - * - * *
        * The number of visits at or after which the relaxation `level` may be
        * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -768,7 +617,6 @@ public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() {
        * 
* * int32 threshold_visit_count = 3; - * * @return The thresholdVisitCount. */ @java.lang.Override @@ -777,7 +625,6 @@ public int getThresholdVisitCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -789,11 +636,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (level_ - != com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level.LEVEL_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (level_ != com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(1, level_); } if (thresholdTime_ != null) { @@ -811,17 +656,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (level_ - != com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level.LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, level_); + if (level_ != com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, level_); } if (thresholdTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getThresholdTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getThresholdTime()); } if (thresholdVisitCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, thresholdVisitCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, thresholdVisitCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -831,26 +676,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation)) { + if (!(obj instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation)) { return super.equals(obj); } - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation - other = - (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation) - obj; + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation other = (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) obj; if (level_ != other.level_) return false; if (hasThresholdTime() != other.hasThresholdTime()) return false; if (hasThresholdTime()) { - if (!getThresholdTime().equals(other.getThresholdTime())) return false; + if (!getThresholdTime() + .equals(other.getThresholdTime())) return false; } - if (getThresholdVisitCount() != other.getThresholdVisitCount()) return false; + if (getThresholdVisitCount() + != other.getThresholdVisitCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -875,117 +715,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -995,8 +808,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * If `relaxations` is empty, the start time and sequence of all visits
        * on `routes` are fully constrained and no new visits may be inserted or
@@ -1035,40 +846,35 @@ protected Builder newBuilderForType(
        * relaxation the time is fixed, unless the vehicle is empty.
        * 
* - * Protobuf type {@code - * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation} + * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.class, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder.class); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder.class); } - // Construct using - // com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.newBuilder() - private Builder() {} + // Construct using com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1084,26 +890,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.getDefaultInstance(); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - build() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - result = buildPartial(); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation build() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1111,32 +910,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - buildPartial() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - result = - new com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxation.Relaxation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation buildPartial() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation result = new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - result) { + private void buildPartial0(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.level_ = level_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.thresholdTime_ = - thresholdTimeBuilder_ == null ? thresholdTime_ : thresholdTimeBuilder_.build(); + result.thresholdTime_ = thresholdTimeBuilder_ == null + ? thresholdTime_ + : thresholdTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.thresholdVisitCount_ = thresholdVisitCount_; @@ -1147,60 +936,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation) { - return mergeFrom( - (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation) - other); + if (other instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) { + return mergeFrom((com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - other) { - if (other - == com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation other) { + if (other == com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDefaultInstance()) return this; if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } @@ -1236,32 +1011,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - level_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - getThresholdTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - thresholdVisitCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + level_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getThresholdTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + thresholdVisitCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1271,42 +1043,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int level_ = 0; /** - * - * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ @@ -1317,54 +1077,32 @@ public Builder setLevelValue(int value) { return this; } /** - * - * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @return The level. */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level - getLevel() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level - result = - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level.forNumber(level_); - return result == null - ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level.UNRECOGNIZED - : result; + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level getLevel() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level result = com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.forNumber(level_); + return result == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.UNRECOGNIZED : result; } /** - * - * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @param value The level to set. * @return This builder for chaining. */ - public Builder setLevel( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Level - value) { + public Builder setLevel(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level value) { if (value == null) { throw new NullPointerException(); } @@ -1374,18 +1112,13 @@ public Builder setLevel( return this; } /** - * - * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; * @return This builder for chaining. */ public Builder clearLevel() { @@ -1397,47 +1130,34 @@ public Builder clearLevel() { private com.google.protobuf.Timestamp thresholdTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - thresholdTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> thresholdTimeBuilder_; /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
* * .google.protobuf.Timestamp threshold_time = 2; - * * @return Whether the thresholdTime field is set. */ public boolean hasThresholdTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
* * .google.protobuf.Timestamp threshold_time = 2; - * * @return The thresholdTime. */ public com.google.protobuf.Timestamp getThresholdTime() { if (thresholdTimeBuilder_ == null) { - return thresholdTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : thresholdTime_; + return thresholdTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : thresholdTime_; } else { return thresholdTimeBuilder_.getMessage(); } } /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1458,15 +1178,14 @@ public Builder setThresholdTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
* * .google.protobuf.Timestamp threshold_time = 2; */ - public Builder setThresholdTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setThresholdTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (thresholdTimeBuilder_ == null) { thresholdTime_ = builderForValue.build(); } else { @@ -1477,8 +1196,6 @@ public Builder setThresholdTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1487,9 +1204,9 @@ public Builder setThresholdTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeThresholdTime(com.google.protobuf.Timestamp value) { if (thresholdTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && thresholdTime_ != null - && thresholdTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + thresholdTime_ != null && + thresholdTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getThresholdTimeBuilder().mergeFrom(value); } else { thresholdTime_ = value; @@ -1502,8 +1219,6 @@ public Builder mergeThresholdTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1521,8 +1236,6 @@ public Builder clearThresholdTime() { return this; } /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1535,8 +1248,6 @@ public com.google.protobuf.Timestamp.Builder getThresholdTimeBuilder() { return getThresholdTimeFieldBuilder().getBuilder(); } /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1547,14 +1258,11 @@ public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() { if (thresholdTimeBuilder_ != null) { return thresholdTimeBuilder_.getMessageOrBuilder(); } else { - return thresholdTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : thresholdTime_; + return thresholdTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : thresholdTime_; } } /** - * - * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1562,26 +1270,21 @@ public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() { * .google.protobuf.Timestamp threshold_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getThresholdTimeFieldBuilder() { if (thresholdTimeBuilder_ == null) { - thresholdTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getThresholdTime(), getParentForChildren(), isClean()); + thresholdTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getThresholdTime(), + getParentForChildren(), + isClean()); thresholdTime_ = null; } return thresholdTimeBuilder_; } - private int thresholdVisitCount_; + private int thresholdVisitCount_ ; /** - * - * *
          * The number of visits at or after which the relaxation `level` may be
          * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -1593,7 +1296,6 @@ public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() {
          * 
* * int32 threshold_visit_count = 3; - * * @return The thresholdVisitCount. */ @java.lang.Override @@ -1601,8 +1303,6 @@ public int getThresholdVisitCount() { return thresholdVisitCount_; } /** - * - * *
          * The number of visits at or after which the relaxation `level` may be
          * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -1614,7 +1314,6 @@ public int getThresholdVisitCount() {
          * 
* * int32 threshold_visit_count = 3; - * * @param value The thresholdVisitCount to set. * @return This builder for chaining. */ @@ -1626,8 +1325,6 @@ public Builder setThresholdVisitCount(int value) { return this; } /** - * - * *
          * The number of visits at or after which the relaxation `level` may be
          * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -1639,7 +1336,6 @@ public Builder setThresholdVisitCount(int value) {
          * 
* * int32 threshold_visit_count = 3; - * * @return This builder for chaining. */ public Builder clearThresholdVisitCount() { @@ -1648,7 +1344,6 @@ public Builder clearThresholdVisitCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1661,48 +1356,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) - private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxation.Relaxation - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation(); + DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation(); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - getDefaultInstance() { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Relaxation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Relaxation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1714,119 +1402,82 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RELAXATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation> - relaxations_; + private java.util.List relaxations_; /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation> - getRelaxationsList() { + public java.util.List getRelaxationsList() { return relaxations_; } /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder> + public java.util.List getRelaxationsOrBuilderList() { return relaxations_; } /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ @java.lang.Override public int getRelaxationsCount() { return relaxations_.size(); } /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - getRelaxations(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getRelaxations(int index) { return relaxations_.get(index); } /** - * - * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder - getRelaxationsOrBuilder(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder getRelaxationsOrBuilder( + int index) { return relaxations_.get(index); } public static final int VEHICLE_INDICES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList vehicleIndices_; /** - * - * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -1843,16 +1494,14 @@ public int getRelaxationsCount() {
      * 
* * repeated int32 vehicle_indices = 2; - * * @return A list containing the vehicleIndices. */ @java.lang.Override - public java.util.List getVehicleIndicesList() { + public java.util.List + getVehicleIndicesList() { return vehicleIndices_; } /** - * - * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -1869,15 +1518,12 @@ public java.util.List getVehicleIndicesList() {
      * 
* * repeated int32 vehicle_indices = 2; - * * @return The count of vehicleIndices. */ public int getVehicleIndicesCount() { return vehicleIndices_.size(); } /** - * - * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -1894,18 +1540,15 @@ public int getVehicleIndicesCount() {
      * 
* * repeated int32 vehicle_indices = 2; - * * @param index The index of the element to return. * @return The vehicleIndices at the given index. */ public int getVehicleIndices(int index) { return vehicleIndices_.getInt(index); } - private int vehicleIndicesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1917,7 +1560,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < relaxations_.size(); i++) { output.writeMessage(1, relaxations_.get(i)); @@ -1939,19 +1583,20 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relaxations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, relaxations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, relaxations_.get(i)); } { int dataSize = 0; for (int i = 0; i < vehicleIndices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - vehicleIndices_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(vehicleIndices_.getInt(i)); } size += dataSize; if (!getVehicleIndicesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } vehicleIndicesMemoizedSerializedSize = dataSize; } @@ -1963,18 +1608,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)) { + if (!(obj instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)) { return super.equals(obj); } - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation other = - (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) obj; + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation other = (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) obj; - if (!getRelaxationsList().equals(other.getRelaxationsList())) return false; - if (!getVehicleIndicesList().equals(other.getVehicleIndicesList())) return false; + if (!getRelaxationsList() + .equals(other.getRelaxationsList())) return false; + if (!getVehicleIndicesList() + .equals(other.getVehicleIndicesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1999,102 +1643,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2104,8 +1736,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * For a group of vehicles, specifies at what threshold(s) constraints on
      * visits will be relaxed and to which level. Shipments listed in
@@ -2113,39 +1743,35 @@ protected Builder newBuilderForType(
      * cannot be performed.
      * 
* - * Protobuf type {@code - * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation} + * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .class, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Builder.class); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder.class); } - // Construct using - // com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.newBuilder() - private Builder() {} + // Construct using com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2162,23 +1788,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .getDefaultInstance(); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - build() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result = - buildPartial(); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation build() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2186,21 +1808,15 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - buildPartial() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result = - new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation( - this); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation buildPartial() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result = new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result) { + private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result) { if (relaxationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { relaxations_ = java.util.Collections.unmodifiableList(relaxations_); @@ -2217,8 +1833,7 @@ private void buildPartialRepeatedFields( result.vehicleIndices_ = vehicleIndices_; } - private void buildPartial0( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result) { + private void buildPartial0(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result) { int from_bitField0_ = bitField0_; } @@ -2226,56 +1841,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) { - return mergeFrom( - (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) - other); + if (other instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) { + return mergeFrom((com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation other) { - if (other - == com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation other) { + if (other == com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.getDefaultInstance()) return this; if (relaxationsBuilder_ == null) { if (!other.relaxations_.isEmpty()) { if (relaxations_.isEmpty()) { @@ -2294,10 +1899,9 @@ public Builder mergeFrom( relaxationsBuilder_ = null; relaxations_ = other.relaxations_; bitField0_ = (bitField0_ & ~0x00000001); - relaxationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRelaxationsFieldBuilder() - : null; + relaxationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRelaxationsFieldBuilder() : null; } else { relaxationsBuilder_.addAllMessages(other.relaxations_); } @@ -2339,48 +1943,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - m = - input.readMessage( - com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxation.Relaxation.parser(), - extensionRegistry); - if (relaxationsBuilder_ == null) { - ensureRelaxationsIsMutable(); - relaxations_.add(m); - } else { - relaxationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - int v = input.readInt32(); - ensureVehicleIndicesIsMutable(); - vehicleIndices_.addInt(v); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureVehicleIndicesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - vehicleIndices_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation m = + input.readMessage( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.parser(), + extensionRegistry); + if (relaxationsBuilder_ == null) { + ensureRelaxationsIsMutable(); + relaxations_.add(m); + } else { + relaxationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + int v = input.readInt32(); + ensureVehicleIndicesIsMutable(); + vehicleIndices_.addInt(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureVehicleIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + vehicleIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2390,49 +1987,29 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation> - relaxations_ = java.util.Collections.emptyList(); - + private java.util.List relaxations_ = + java.util.Collections.emptyList(); private void ensureRelaxationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relaxations_ = - new java.util.ArrayList< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation>(relaxations_); + relaxations_ = new java.util.ArrayList(relaxations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder> - relaxationsBuilder_; + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder> relaxationsBuilder_; /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation> - getRelaxationsList() { + public java.util.List getRelaxationsList() { if (relaxationsBuilder_ == null) { return java.util.Collections.unmodifiableList(relaxations_); } else { @@ -2440,16 +2017,12 @@ private void ensureRelaxationsIsMutable() { } } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public int getRelaxationsCount() { if (relaxationsBuilder_ == null) { @@ -2459,20 +2032,14 @@ public int getRelaxationsCount() { } } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - getRelaxations(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getRelaxations(int index) { if (relaxationsBuilder_ == null) { return relaxations_.get(index); } else { @@ -2480,22 +2047,15 @@ public int getRelaxationsCount() { } } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public Builder setRelaxations( - int index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - value) { + int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value) { if (relaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2509,22 +2069,15 @@ public Builder setRelaxations( return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public Builder setRelaxations( - int index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue) { if (relaxationsBuilder_ == null) { ensureRelaxationsIsMutable(); relaxations_.set(index, builderForValue.build()); @@ -2535,21 +2088,14 @@ public Builder setRelaxations( return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public Builder addRelaxations( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - value) { + public Builder addRelaxations(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value) { if (relaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2563,22 +2109,15 @@ public Builder addRelaxations( return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public Builder addRelaxations( - int index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation - value) { + int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value) { if (relaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2592,21 +2131,15 @@ public Builder addRelaxations( return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public Builder addRelaxations( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder - builderForValue) { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue) { if (relaxationsBuilder_ == null) { ensureRelaxationsIsMutable(); relaxations_.add(builderForValue.build()); @@ -2617,22 +2150,15 @@ public Builder addRelaxations( return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public Builder addRelaxations( - int index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue) { if (relaxationsBuilder_ == null) { ensureRelaxationsIsMutable(); relaxations_.add(index, builderForValue.build()); @@ -2643,26 +2169,19 @@ public Builder addRelaxations( return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public Builder addAllRelaxations( - java.lang.Iterable< - ? extends - com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxation.Relaxation> - values) { + java.lang.Iterable values) { if (relaxationsBuilder_ == null) { ensureRelaxationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relaxations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relaxations_); onChanged(); } else { relaxationsBuilder_.addAllMessages(values); @@ -2670,16 +2189,12 @@ public Builder addAllRelaxations( return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public Builder clearRelaxations() { if (relaxationsBuilder_ == null) { @@ -2692,16 +2207,12 @@ public Builder clearRelaxations() { return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ public Builder removeRelaxations(int index) { if (relaxationsBuilder_ == null) { @@ -2714,60 +2225,42 @@ public Builder removeRelaxations(int index) { return this; } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder - getRelaxationsBuilder(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder getRelaxationsBuilder( + int index) { return getRelaxationsFieldBuilder().getBuilder(index); } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder - getRelaxationsOrBuilder(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder getRelaxationsOrBuilder( + int index) { if (relaxationsBuilder_ == null) { - return relaxations_.get(index); - } else { + return relaxations_.get(index); } else { return relaxationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public java.util.List< - ? extends - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder> - getRelaxationsOrBuilderList() { + public java.util.List + getRelaxationsOrBuilderList() { if (relaxationsBuilder_ != null) { return relaxationsBuilder_.getMessageOrBuilderList(); } else { @@ -2775,82 +2268,48 @@ public Builder removeRelaxations(int index) { } } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder - addRelaxationsBuilder() { - return getRelaxationsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.getDefaultInstance()); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder addRelaxationsBuilder() { + return getRelaxationsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDefaultInstance()); } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder - addRelaxationsBuilder(int index) { - return getRelaxationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.getDefaultInstance()); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder addRelaxationsBuilder( + int index) { + return getRelaxationsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDefaultInstance()); } /** - * - * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; */ - public java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder> - getRelaxationsBuilderList() { + public java.util.List + getRelaxationsBuilderList() { return getRelaxationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder> + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder> getRelaxationsFieldBuilder() { if (relaxationsBuilder_ == null) { - relaxationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Relaxation.Builder, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .RelaxationOrBuilder>( + relaxationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder>( relaxations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2861,7 +2320,6 @@ public Builder removeRelaxations(int index) { } private com.google.protobuf.Internal.IntList vehicleIndices_ = emptyIntList(); - private void ensureVehicleIndicesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { vehicleIndices_ = mutableCopy(vehicleIndices_); @@ -2869,8 +2327,6 @@ private void ensureVehicleIndicesIsMutable() { } } /** - * - * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2887,17 +2343,14 @@ private void ensureVehicleIndicesIsMutable() {
        * 
* * repeated int32 vehicle_indices = 2; - * * @return A list containing the vehicleIndices. */ - public java.util.List getVehicleIndicesList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(vehicleIndices_) - : vehicleIndices_; + public java.util.List + getVehicleIndicesList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(vehicleIndices_) : vehicleIndices_; } /** - * - * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2914,15 +2367,12 @@ public java.util.List getVehicleIndicesList() {
        * 
* * repeated int32 vehicle_indices = 2; - * * @return The count of vehicleIndices. */ public int getVehicleIndicesCount() { return vehicleIndices_.size(); } /** - * - * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2939,7 +2389,6 @@ public int getVehicleIndicesCount() {
        * 
* * repeated int32 vehicle_indices = 2; - * * @param index The index of the element to return. * @return The vehicleIndices at the given index. */ @@ -2947,8 +2396,6 @@ public int getVehicleIndices(int index) { return vehicleIndices_.getInt(index); } /** - * - * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2965,12 +2412,12 @@ public int getVehicleIndices(int index) {
        * 
* * repeated int32 vehicle_indices = 2; - * * @param index The index to set the value at. * @param value The vehicleIndices to set. * @return This builder for chaining. */ - public Builder setVehicleIndices(int index, int value) { + public Builder setVehicleIndices( + int index, int value) { ensureVehicleIndicesIsMutable(); vehicleIndices_.setInt(index, value); @@ -2978,8 +2425,6 @@ public Builder setVehicleIndices(int index, int value) { return this; } /** - * - * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2996,7 +2441,6 @@ public Builder setVehicleIndices(int index, int value) {
        * 
* * repeated int32 vehicle_indices = 2; - * * @param value The vehicleIndices to add. * @return This builder for chaining. */ @@ -3008,8 +2452,6 @@ public Builder addVehicleIndices(int value) { return this; } /** - * - * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -3026,19 +2468,18 @@ public Builder addVehicleIndices(int value) {
        * 
* * repeated int32 vehicle_indices = 2; - * * @param values The vehicleIndices to add. * @return This builder for chaining. */ - public Builder addAllVehicleIndices(java.lang.Iterable values) { + public Builder addAllVehicleIndices( + java.lang.Iterable values) { ensureVehicleIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vehicleIndices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vehicleIndices_); onChanged(); return this; } /** - * - * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -3055,7 +2496,6 @@ public Builder addAllVehicleIndices(java.lang.Iterable
        *
        * repeated int32 vehicle_indices = 2;
-       *
        * @return This builder for chaining.
        */
       public Builder clearVehicleIndices() {
@@ -3064,7 +2504,6 @@ public Builder clearVehicleIndices() {
         onChanged();
         return this;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3077,46 +2516,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)
-    private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint
-            .ConstraintRelaxation
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation();
+      DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation();
     }
 
-    public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
-        getDefaultInstance() {
+    public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public ConstraintRelaxation parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public ConstraintRelaxation parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -3128,19 +2562,16 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
-        getDefaultInstanceForType() {
+    public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   public static final int ROUTES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List routes_;
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -3154,8 +2585,6 @@ public java.util.List getRoutesL
     return routes_;
   }
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -3165,13 +2594,11 @@ public java.util.List getRoutesL
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRoutesOrBuilderList() {
     return routes_;
   }
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -3185,8 +2612,6 @@ public int getRoutesCount() {
     return routes_.size();
   }
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -3200,8 +2625,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
     return routes_.get(index);
   }
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -3211,17 +2634,15 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index) {
+  public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
+      int index) {
     return routes_.get(index);
   }
 
   public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List skippedShipments_;
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -3230,13 +2651,10 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getSkippedShipmentsList() {
+  public java.util.List getSkippedShipmentsList() {
     return skippedShipments_;
   }
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -3245,13 +2663,11 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSkippedShipmentsOrBuilderList() {
     return skippedShipments_;
   }
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -3264,8 +2680,6 @@ public int getSkippedShipmentsCount() {
     return skippedShipments_.size();
   }
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -3278,8 +2692,6 @@ public com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int
     return skippedShipments_.get(index);
   }
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -3294,107 +2706,77 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
   }
 
   public static final int CONSTRAINT_RELAXATIONS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
-  private java.util.List<
-          com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation>
-      constraintRelaxations_;
+  private java.util.List constraintRelaxations_;
   /**
-   *
-   *
    * 
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ @java.lang.Override - public java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation> - getConstraintRelaxationsList() { + public java.util.List getConstraintRelaxationsList() { return constraintRelaxations_; } /** - * - * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxationOrBuilder> + public java.util.List getConstraintRelaxationsOrBuilderList() { return constraintRelaxations_; } /** - * - * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ @java.lang.Override public int getConstraintRelaxationsCount() { return constraintRelaxations_.size(); } /** - * - * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - getConstraintRelaxations(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index) { return constraintRelaxations_.get(index); } /** - * - * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder - getConstraintRelaxationsOrBuilder(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder( + int index) { return constraintRelaxations_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3406,7 +2788,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -3426,15 +2809,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, routes_.get(i)); } for (int i = 0; i < skippedShipments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, skippedShipments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, skippedShipments_.get(i)); } for (int i = 0; i < constraintRelaxations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, constraintRelaxations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, constraintRelaxations_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3444,17 +2828,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint)) { return super.equals(obj); } - com.google.cloud.optimization.v1.InjectedSolutionConstraint other = - (com.google.cloud.optimization.v1.InjectedSolutionConstraint) obj; + com.google.cloud.optimization.v1.InjectedSolutionConstraint other = (com.google.cloud.optimization.v1.InjectedSolutionConstraint) obj; - if (!getRoutesList().equals(other.getRoutesList())) return false; - if (!getSkippedShipmentsList().equals(other.getSkippedShipmentsList())) return false; - if (!getConstraintRelaxationsList().equals(other.getConstraintRelaxationsList())) return false; + if (!getRoutesList() + .equals(other.getRoutesList())) return false; + if (!getSkippedShipmentsList() + .equals(other.getSkippedShipmentsList())) return false; + if (!getConstraintRelaxationsList() + .equals(other.getConstraintRelaxationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3484,104 +2870,98 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.InjectedSolutionConstraint prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.InjectedSolutionConstraint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Solution injected in the request including information about which visits
    * must be constrained and how they must be constrained.
@@ -3589,32 +2969,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.InjectedSolutionConstraint)
       com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.InjectedSolutionConstraint.class,
-              com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder.class);
+              com.google.cloud.optimization.v1.InjectedSolutionConstraint.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.InjectedSolutionConstraint.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3644,9 +3025,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
     }
 
     @java.lang.Override
@@ -3665,18 +3046,14 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.InjectedSolutionConstraint buildPartial() {
-      com.google.cloud.optimization.v1.InjectedSolutionConstraint result =
-          new com.google.cloud.optimization.v1.InjectedSolutionConstraint(this);
+      com.google.cloud.optimization.v1.InjectedSolutionConstraint result = new com.google.cloud.optimization.v1.InjectedSolutionConstraint(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.optimization.v1.InjectedSolutionConstraint result) {
+    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.InjectedSolutionConstraint result) {
       if (routesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           routes_ = java.util.Collections.unmodifiableList(routes_);
@@ -3714,39 +3091,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.InjectedSolutionCons
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint) {
-        return mergeFrom((com.google.cloud.optimization.v1.InjectedSolutionConstraint) other);
+        return mergeFrom((com.google.cloud.optimization.v1.InjectedSolutionConstraint)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3754,8 +3130,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstraint other) {
-      if (other == com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance()) return this;
       if (routesBuilder_ == null) {
         if (!other.routes_.isEmpty()) {
           if (routes_.isEmpty()) {
@@ -3774,10 +3149,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstr
             routesBuilder_ = null;
             routes_ = other.routes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            routesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRoutesFieldBuilder()
-                    : null;
+            routesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRoutesFieldBuilder() : null;
           } else {
             routesBuilder_.addAllMessages(other.routes_);
           }
@@ -3801,10 +3175,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstr
             skippedShipmentsBuilder_ = null;
             skippedShipments_ = other.skippedShipments_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            skippedShipmentsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSkippedShipmentsFieldBuilder()
-                    : null;
+            skippedShipmentsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSkippedShipmentsFieldBuilder() : null;
           } else {
             skippedShipmentsBuilder_.addAllMessages(other.skippedShipments_);
           }
@@ -3828,10 +3201,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstr
             constraintRelaxationsBuilder_ = null;
             constraintRelaxations_ = other.constraintRelaxations_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            constraintRelaxationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConstraintRelaxationsFieldBuilder()
-                    : null;
+            constraintRelaxationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConstraintRelaxationsFieldBuilder() : null;
           } else {
             constraintRelaxationsBuilder_.addAllMessages(other.constraintRelaxations_);
           }
@@ -3863,55 +3235,51 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.optimization.v1.ShipmentRoute m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentRoute.parser(), extensionRegistry);
-                if (routesBuilder_ == null) {
-                  ensureRoutesIsMutable();
-                  routes_.add(m);
-                } else {
-                  routesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.optimization.v1.SkippedShipment m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.SkippedShipment.parser(),
-                        extensionRegistry);
-                if (skippedShipmentsBuilder_ == null) {
-                  ensureSkippedShipmentsIsMutable();
-                  skippedShipments_.add(m);
-                } else {
-                  skippedShipmentsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.InjectedSolutionConstraint
-                            .ConstraintRelaxation.parser(),
-                        extensionRegistry);
-                if (constraintRelaxationsBuilder_ == null) {
-                  ensureConstraintRelaxationsIsMutable();
-                  constraintRelaxations_.add(m);
-                } else {
-                  constraintRelaxationsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.optimization.v1.ShipmentRoute m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentRoute.parser(),
+                      extensionRegistry);
+              if (routesBuilder_ == null) {
+                ensureRoutesIsMutable();
+                routes_.add(m);
+              } else {
+                routesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.optimization.v1.SkippedShipment m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.SkippedShipment.parser(),
+                      extensionRegistry);
+              if (skippedShipmentsBuilder_ == null) {
+                ensureSkippedShipmentsIsMutable();
+                skippedShipments_.add(m);
+              } else {
+                skippedShipmentsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.parser(),
+                      extensionRegistry);
+              if (constraintRelaxationsBuilder_ == null) {
+                ensureConstraintRelaxationsIsMutable();
+                constraintRelaxations_.add(m);
+              } else {
+                constraintRelaxationsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3921,28 +3289,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List routes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRoutesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         routes_ = new java.util.ArrayList(routes_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute,
-            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
-            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
-        routesBuilder_;
+        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> routesBuilder_;
 
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3959,8 +3320,6 @@ public java.util.List getRoutesL
       }
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3977,8 +3336,6 @@ public int getRoutesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3995,8 +3352,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4005,7 +3360,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public Builder setRoutes(int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
+    public Builder setRoutes(
+        int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4019,8 +3375,6 @@ public Builder setRoutes(int index, com.google.cloud.optimization.v1.ShipmentRou
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4041,8 +3395,6 @@ public Builder setRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4065,8 +3417,6 @@ public Builder addRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4075,7 +3425,8 @@ public Builder addRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public Builder addRoutes(int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
+    public Builder addRoutes(
+        int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4089,8 +3440,6 @@ public Builder addRoutes(int index, com.google.cloud.optimization.v1.ShipmentRou
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4111,8 +3460,6 @@ public Builder addRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4133,8 +3480,6 @@ public Builder addRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4147,7 +3492,8 @@ public Builder addAllRoutes(
         java.lang.Iterable values) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, routes_);
         onChanged();
       } else {
         routesBuilder_.addAllMessages(values);
@@ -4155,8 +3501,6 @@ public Builder addAllRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4176,8 +3520,6 @@ public Builder clearRoutes() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4197,8 +3539,6 @@ public Builder removeRoutes(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4207,12 +3547,11 @@ public Builder removeRoutes(int index) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(int index) {
+    public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(
+        int index) {
       return getRoutesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4221,16 +3560,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(i
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index) {
+    public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
+        int index) {
       if (routesBuilder_ == null) {
-        return routes_.get(index);
-      } else {
+        return routes_.get(index);  } else {
         return routesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4239,8 +3576,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public java.util.List
-        getRoutesOrBuilderList() {
+    public java.util.List 
+         getRoutesOrBuilderList() {
       if (routesBuilder_ != null) {
         return routesBuilder_.getMessageOrBuilderList();
       } else {
@@ -4248,8 +3585,6 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4259,12 +3594,10 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder() {
-      return getRoutesFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+      return getRoutesFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4273,13 +3606,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder()
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(int index) {
-      return getRoutesFieldBuilder()
-          .addBuilder(index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+    public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(
+        int index) {
+      return getRoutesFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -4288,49 +3620,38 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(i
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public java.util.List
-        getRoutesBuilderList() {
+    public java.util.List 
+         getRoutesBuilderList() {
       return getRoutesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute,
-            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
-            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
+        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> 
         getRoutesFieldBuilder() {
       if (routesBuilder_ == null) {
-        routesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.ShipmentRoute,
-                com.google.cloud.optimization.v1.ShipmentRoute.Builder,
-                com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
-                routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
+                routes_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         routes_ = null;
       }
       return routesBuilder_;
     }
 
     private java.util.List skippedShipments_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSkippedShipmentsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        skippedShipments_ =
-            new java.util.ArrayList(
-                skippedShipments_);
+        skippedShipments_ = new java.util.ArrayList(skippedShipments_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.SkippedShipment,
-            com.google.cloud.optimization.v1.SkippedShipment.Builder,
-            com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>
-        skippedShipmentsBuilder_;
+        com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> skippedShipmentsBuilder_;
 
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4338,8 +3659,7 @@ private void ensureSkippedShipmentsIsMutable() {
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      */
-    public java.util.List
-        getSkippedShipmentsList() {
+    public java.util.List getSkippedShipmentsList() {
       if (skippedShipmentsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(skippedShipments_);
       } else {
@@ -4347,8 +3667,6 @@ private void ensureSkippedShipmentsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4364,8 +3682,6 @@ public int getSkippedShipmentsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4381,8 +3697,6 @@ public com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int
       }
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4405,8 +3719,6 @@ public Builder setSkippedShipments(
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4426,8 +3738,6 @@ public Builder setSkippedShipments(
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4449,8 +3759,6 @@ public Builder addSkippedShipments(com.google.cloud.optimization.v1.SkippedShipm
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4473,8 +3781,6 @@ public Builder addSkippedShipments(
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4494,8 +3800,6 @@ public Builder addSkippedShipments(
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4515,8 +3819,6 @@ public Builder addSkippedShipments(
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4528,7 +3830,8 @@ public Builder addAllSkippedShipments(
         java.lang.Iterable values) {
       if (skippedShipmentsBuilder_ == null) {
         ensureSkippedShipmentsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skippedShipments_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, skippedShipments_);
         onChanged();
       } else {
         skippedShipmentsBuilder_.addAllMessages(values);
@@ -4536,8 +3839,6 @@ public Builder addAllSkippedShipments(
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4556,8 +3857,6 @@ public Builder clearSkippedShipments() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4576,8 +3875,6 @@ public Builder removeSkippedShipments(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4590,8 +3887,6 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder getSkippedShipme
       return getSkippedShipmentsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4602,14 +3897,11 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder getSkippedShipme
     public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(
         int index) {
       if (skippedShipmentsBuilder_ == null) {
-        return skippedShipments_.get(index);
-      } else {
+        return skippedShipments_.get(index);  } else {
         return skippedShipmentsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4617,8 +3909,8 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      */
-    public java.util.List
-        getSkippedShipmentsOrBuilderList() {
+    public java.util.List 
+         getSkippedShipmentsOrBuilderList() {
       if (skippedShipmentsBuilder_ != null) {
         return skippedShipmentsBuilder_.getMessageOrBuilderList();
       } else {
@@ -4626,8 +3918,6 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
       }
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4636,12 +3926,10 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
      * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      */
     public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipmentsBuilder() {
-      return getSkippedShipmentsFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance());
+      return getSkippedShipmentsFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4651,12 +3939,10 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme
      */
     public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipmentsBuilder(
         int index) {
-      return getSkippedShipmentsFieldBuilder()
-          .addBuilder(index, com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance());
+      return getSkippedShipmentsFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -4664,22 +3950,16 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      */
-    public java.util.List
-        getSkippedShipmentsBuilderList() {
+    public java.util.List 
+         getSkippedShipmentsBuilderList() {
       return getSkippedShipmentsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.SkippedShipment,
-            com.google.cloud.optimization.v1.SkippedShipment.Builder,
-            com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>
+        com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> 
         getSkippedShipmentsFieldBuilder() {
       if (skippedShipmentsBuilder_ == null) {
-        skippedShipmentsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.SkippedShipment,
-                com.google.cloud.optimization.v1.SkippedShipment.Builder,
-                com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>(
+        skippedShipmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>(
                 skippedShipments_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -4689,44 +3969,28 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme
       return skippedShipmentsBuilder_;
     }
 
-    private java.util.List<
-            com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation>
-        constraintRelaxations_ = java.util.Collections.emptyList();
-
+    private java.util.List constraintRelaxations_ =
+      java.util.Collections.emptyList();
     private void ensureConstraintRelaxationsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        constraintRelaxations_ =
-            new java.util.ArrayList<
-                com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation>(
-                constraintRelaxations_);
+        constraintRelaxations_ = new java.util.ArrayList(constraintRelaxations_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation,
-            com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
-                .Builder,
-            com.google.cloud.optimization.v1.InjectedSolutionConstraint
-                .ConstraintRelaxationOrBuilder>
-        constraintRelaxationsBuilder_;
+        com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder> constraintRelaxationsBuilder_;
 
     /**
-     *
-     *
      * 
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation> - getConstraintRelaxationsList() { + public java.util.List getConstraintRelaxationsList() { if (constraintRelaxationsBuilder_ == null) { return java.util.Collections.unmodifiableList(constraintRelaxations_); } else { @@ -4734,17 +3998,13 @@ private void ensureConstraintRelaxationsIsMutable() { } } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public int getConstraintRelaxationsCount() { if (constraintRelaxationsBuilder_ == null) { @@ -4754,20 +4014,15 @@ public int getConstraintRelaxationsCount() { } } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - getConstraintRelaxations(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index) { if (constraintRelaxationsBuilder_ == null) { return constraintRelaxations_.get(index); } else { @@ -4775,21 +4030,16 @@ public int getConstraintRelaxationsCount() { } } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public Builder setConstraintRelaxations( - int index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { + int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { if (constraintRelaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4803,22 +4053,16 @@ public Builder setConstraintRelaxations( return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public Builder setConstraintRelaxations( - int index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue) { if (constraintRelaxationsBuilder_ == null) { ensureConstraintRelaxationsIsMutable(); constraintRelaxations_.set(index, builderForValue.build()); @@ -4829,20 +4073,15 @@ public Builder setConstraintRelaxations( return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public Builder addConstraintRelaxations( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { + public Builder addConstraintRelaxations(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { if (constraintRelaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4856,21 +4095,16 @@ public Builder addConstraintRelaxations( return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public Builder addConstraintRelaxations( - int index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { + int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { if (constraintRelaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4884,21 +4118,16 @@ public Builder addConstraintRelaxations( return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public Builder addConstraintRelaxations( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder - builderForValue) { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue) { if (constraintRelaxationsBuilder_ == null) { ensureConstraintRelaxationsIsMutable(); constraintRelaxations_.add(builderForValue.build()); @@ -4909,22 +4138,16 @@ public Builder addConstraintRelaxations( return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public Builder addConstraintRelaxations( - int index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue) { if (constraintRelaxationsBuilder_ == null) { ensureConstraintRelaxationsIsMutable(); constraintRelaxations_.add(index, builderForValue.build()); @@ -4935,27 +4158,20 @@ public Builder addConstraintRelaxations( return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public Builder addAllConstraintRelaxations( - java.lang.Iterable< - ? extends - com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxation> - values) { + java.lang.Iterable values) { if (constraintRelaxationsBuilder_ == null) { ensureConstraintRelaxationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, constraintRelaxations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, constraintRelaxations_); onChanged(); } else { constraintRelaxationsBuilder_.addAllMessages(values); @@ -4963,17 +4179,13 @@ public Builder addAllConstraintRelaxations( return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public Builder clearConstraintRelaxations() { if (constraintRelaxationsBuilder_ == null) { @@ -4986,17 +4198,13 @@ public Builder clearConstraintRelaxations() { return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ public Builder removeConstraintRelaxations(int index) { if (constraintRelaxationsBuilder_ == null) { @@ -5009,61 +4217,45 @@ public Builder removeConstraintRelaxations(int index) { return this; } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder - getConstraintRelaxationsBuilder(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder getConstraintRelaxationsBuilder( + int index) { return getConstraintRelaxationsFieldBuilder().getBuilder(index); } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder - getConstraintRelaxationsOrBuilder(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder( + int index) { if (constraintRelaxationsBuilder_ == null) { - return constraintRelaxations_.get(index); - } else { + return constraintRelaxations_.get(index); } else { return constraintRelaxationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public java.util.List< - ? extends - com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxationOrBuilder> - getConstraintRelaxationsOrBuilderList() { + public java.util.List + getConstraintRelaxationsOrBuilderList() { if (constraintRelaxationsBuilder_ != null) { return constraintRelaxationsBuilder_.getMessageOrBuilderList(); } else { @@ -5071,81 +4263,51 @@ public Builder removeConstraintRelaxations(int index) { } } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder - addConstraintRelaxationsBuilder() { - return getConstraintRelaxationsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .getDefaultInstance()); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder addConstraintRelaxationsBuilder() { + return getConstraintRelaxationsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.getDefaultInstance()); } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder - addConstraintRelaxationsBuilder(int index) { - return getConstraintRelaxationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .getDefaultInstance()); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder addConstraintRelaxationsBuilder( + int index) { + return getConstraintRelaxationsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.getDefaultInstance()); } /** - * - * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - public java.util.List< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Builder> - getConstraintRelaxationsBuilderList() { + public java.util.List + getConstraintRelaxationsBuilderList() { return getConstraintRelaxationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Builder, - com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxationOrBuilder> + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder> getConstraintRelaxationsFieldBuilder() { if (constraintRelaxationsBuilder_ == null) { - constraintRelaxationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - .Builder, - com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxationOrBuilder>( + constraintRelaxationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder>( constraintRelaxations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -5154,9 +4316,9 @@ public Builder removeConstraintRelaxations(int index) { } return constraintRelaxationsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5166,12 +4328,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.InjectedSolutionConstraint) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.InjectedSolutionConstraint) private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.InjectedSolutionConstraint(); } @@ -5180,27 +4342,27 @@ public static com.google.cloud.optimization.v1.InjectedSolutionConstraint getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InjectedSolutionConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InjectedSolutionConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5215,4 +4377,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.optimization.v1.InjectedSolutionConstraint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java similarity index 72% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java index 5d4a52359dd1..bc419260e7cd 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface InjectedSolutionConstraintOrBuilder - extends +public interface InjectedSolutionConstraintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.InjectedSolutionConstraint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -34,10 +16,9 @@ public interface InjectedSolutionConstraintOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  java.util.List getRoutesList();
+  java.util.List 
+      getRoutesList();
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -48,8 +29,6 @@ public interface InjectedSolutionConstraintOrBuilder
    */
   com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index);
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -60,8 +39,6 @@ public interface InjectedSolutionConstraintOrBuilder
    */
   int getRoutesCount();
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -70,11 +47,9 @@ public interface InjectedSolutionConstraintOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  java.util.List
+  java.util.List 
       getRoutesOrBuilderList();
   /**
-   *
-   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -83,11 +58,10 @@ public interface InjectedSolutionConstraintOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index);
+  com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -95,10 +69,9 @@ public interface InjectedSolutionConstraintOrBuilder
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
-  java.util.List getSkippedShipmentsList();
+  java.util.List 
+      getSkippedShipmentsList();
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -108,8 +81,6 @@ public interface InjectedSolutionConstraintOrBuilder
    */
   com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int index);
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -119,8 +90,6 @@ public interface InjectedSolutionConstraintOrBuilder
    */
   int getSkippedShipmentsCount();
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -128,11 +97,9 @@ public interface InjectedSolutionConstraintOrBuilder
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
-  java.util.List
+  java.util.List 
       getSkippedShipmentsOrBuilderList();
   /**
-   *
-   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -140,83 +107,60 @@ public interface InjectedSolutionConstraintOrBuilder
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
-  com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index);
+  com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - java.util.List + java.util.List getConstraintRelaxationsList(); /** - * - * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation - getConstraintRelaxations(int index); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index); /** - * - * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ int getConstraintRelaxationsCount(); /** - * - * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - java.util.List< - ? extends - com.google.cloud.optimization.v1.InjectedSolutionConstraint - .ConstraintRelaxationOrBuilder> + java.util.List getConstraintRelaxationsOrBuilderList(); /** - * - * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; - * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder - getConstraintRelaxationsOrBuilder(int index); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder( + int index); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java similarity index 69% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java index 56eb72739b3b..8e2442815772 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** - * - * *
  * The desired input location information.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { dataFormat_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InputConfig.class, - com.google.cloud.optimization.v1.InputConfig.Builder.class); + com.google.cloud.optimization.v1.InputConfig.class, com.google.cloud.optimization.v1.InputConfig.Builder.class); } private int sourceCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -90,35 +67,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** - * - * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
    * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -126,27 +98,22 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
    * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.optimization.v1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.optimization.v1.GcsSource) source_; + return (com.google.cloud.optimization.v1.GcsSource) source_; } return com.google.cloud.optimization.v1.GcsSource.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
@@ -157,7 +124,7 @@ public com.google.cloud.optimization.v1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-      return (com.google.cloud.optimization.v1.GcsSource) source_;
+       return (com.google.cloud.optimization.v1.GcsSource) source_;
     }
     return com.google.cloud.optimization.v1.GcsSource.getDefaultInstance();
   }
@@ -165,40 +132,30 @@ public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder
   public static final int DATA_FORMAT_FIELD_NUMBER = 2;
   private int dataFormat_ = 0;
   /**
-   *
-   *
    * 
    * The input data format that used to store the model in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override - public int getDataFormatValue() { + @java.lang.Override public int getDataFormatValue() { return dataFormat_; } /** - * - * *
    * The input data format that used to store the model in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The dataFormat. */ - @java.lang.Override - public com.google.cloud.optimization.v1.DataFormat getDataFormat() { - com.google.cloud.optimization.v1.DataFormat result = - com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); + @java.lang.Override public com.google.cloud.optimization.v1.DataFormat getDataFormat() { + com.google.cloud.optimization.v1.DataFormat result = com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.optimization.v1.DataFormat.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,12 +167,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.optimization.v1.GcsSource) source_); } - if (dataFormat_ - != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + if (dataFormat_ != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(2, dataFormat_); } getUnknownFields().writeTo(output); @@ -228,13 +185,12 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.optimization.v1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.optimization.v1.GcsSource) source_); } - if (dataFormat_ - != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataFormat_); + if (dataFormat_ != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dataFormat_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,19 +200,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.InputConfig)) { return super.equals(obj); } - com.google.cloud.optimization.v1.InputConfig other = - (com.google.cloud.optimization.v1.InputConfig) obj; + com.google.cloud.optimization.v1.InputConfig other = (com.google.cloud.optimization.v1.InputConfig) obj; if (dataFormat_ != other.dataFormat_) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 0: default: @@ -287,136 +243,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.InputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.InputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired input location information.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.InputConfig) com.google.cloud.optimization.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InputConfig.class, - com.google.cloud.optimization.v1.InputConfig.Builder.class); + com.google.cloud.optimization.v1.InputConfig.class, com.google.cloud.optimization.v1.InputConfig.Builder.class); } // Construct using com.google.cloud.optimization.v1.InputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_descriptor; } @java.lang.Override @@ -452,11 +404,8 @@ public com.google.cloud.optimization.v1.InputConfig build() { @java.lang.Override public com.google.cloud.optimization.v1.InputConfig buildPartial() { - com.google.cloud.optimization.v1.InputConfig result = - new com.google.cloud.optimization.v1.InputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.InputConfig result = new com.google.cloud.optimization.v1.InputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -472,7 +421,8 @@ private void buildPartial0(com.google.cloud.optimization.v1.InputConfig result) private void buildPartialOneofs(com.google.cloud.optimization.v1.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && + gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -481,39 +431,38 @@ private void buildPartialOneofs(com.google.cloud.optimization.v1.InputConfig res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.InputConfig) { - return mergeFrom((com.google.cloud.optimization.v1.InputConfig) other); + return mergeFrom((com.google.cloud.optimization.v1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -526,15 +475,13 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InputConfig other) { setDataFormatValue(other.getDataFormatValue()); } switch (other.getSourceCase()) { - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -562,25 +509,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - case 16: - { - dataFormat_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + case 16: { + dataFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -590,12 +536,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -608,20 +554,14 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.GcsSource, - com.google.cloud.optimization.v1.GcsSource.Builder, - com.google.cloud.optimization.v1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.optimization.v1.GcsSource, com.google.cloud.optimization.v1.GcsSource.Builder, com.google.cloud.optimization.v1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
      * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -629,15 +569,12 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
      * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ @java.lang.Override @@ -655,8 +592,6 @@ public com.google.cloud.optimization.v1.GcsSource getGcsSource() { } } /** - * - * *
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -678,8 +613,6 @@ public Builder setGcsSource(com.google.cloud.optimization.v1.GcsSource value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -699,8 +632,6 @@ public Builder setGcsSource(
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -710,13 +641,10 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.optimization.v1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1
-            && source_ != com.google.cloud.optimization.v1.GcsSource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.optimization.v1.GcsSource.newBuilder(
-                      (com.google.cloud.optimization.v1.GcsSource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 1 &&
+            source_ != com.google.cloud.optimization.v1.GcsSource.getDefaultInstance()) {
+          source_ = com.google.cloud.optimization.v1.GcsSource.newBuilder((com.google.cloud.optimization.v1.GcsSource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -732,8 +660,6 @@ public Builder mergeGcsSource(com.google.cloud.optimization.v1.GcsSource value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -758,8 +684,6 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -771,8 +695,6 @@ public com.google.cloud.optimization.v1.GcsSource.Builder getGcsSourceBuilder()
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -792,8 +714,6 @@ public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -802,19 +722,14 @@ public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder
      * .google.cloud.optimization.v1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.GcsSource,
-            com.google.cloud.optimization.v1.GcsSource.Builder,
-            com.google.cloud.optimization.v1.GcsSourceOrBuilder>
+        com.google.cloud.optimization.v1.GcsSource, com.google.cloud.optimization.v1.GcsSource.Builder, com.google.cloud.optimization.v1.GcsSourceOrBuilder> 
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.optimization.v1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.GcsSource,
-                com.google.cloud.optimization.v1.GcsSource.Builder,
-                com.google.cloud.optimization.v1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.GcsSource, com.google.cloud.optimization.v1.GcsSource.Builder, com.google.cloud.optimization.v1.GcsSourceOrBuilder>(
                 (com.google.cloud.optimization.v1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -827,29 +742,22 @@ public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder
 
     private int dataFormat_ = 0;
     /**
-     *
-     *
      * 
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override - public int getDataFormatValue() { + @java.lang.Override public int getDataFormatValue() { return dataFormat_; } /** - * - * *
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @param value The enum numeric value on the wire for dataFormat to set. * @return This builder for chaining. */ @@ -860,31 +768,24 @@ public Builder setDataFormatValue(int value) { return this; } /** - * - * *
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The dataFormat. */ @java.lang.Override public com.google.cloud.optimization.v1.DataFormat getDataFormat() { - com.google.cloud.optimization.v1.DataFormat result = - com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); + com.google.cloud.optimization.v1.DataFormat result = com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.optimization.v1.DataFormat.UNRECOGNIZED : result; } /** - * - * *
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @param value The dataFormat to set. * @return This builder for chaining. */ @@ -898,14 +799,11 @@ public Builder setDataFormat(com.google.cloud.optimization.v1.DataFormat value) return this; } /** - * - * *
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return This builder for chaining. */ public Builder clearDataFormat() { @@ -914,9 +812,9 @@ public Builder clearDataFormat() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -926,12 +824,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.InputConfig) private static final com.google.cloud.optimization.v1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.InputConfig(); } @@ -940,27 +838,27 @@ public static com.google.cloud.optimization.v1.InputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,4 +873,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java similarity index 71% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java index b23a267d1ee2..f46be165128d 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
    * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
    * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; - * * @return The gcsSource. */ com.google.cloud.optimization.v1.GcsSource getGcsSource(); /** - * - * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
@@ -62,26 +38,20 @@ public interface InputConfigOrBuilder
   com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * The input data format that used to store the model in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The enum numeric value on the wire for dataFormat. */ int getDataFormatValue(); /** - * - * *
    * The input data format that used to store the model in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The dataFormat. */ com.google.cloud.optimization.v1.DataFormat getDataFormat(); diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java similarity index 70% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java index 1285c0b15207..7cc47d0af35b 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java @@ -1,77 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Encapsulates a location (a geographic point, and an optional heading).
  * 
* * Protobuf type {@code google.cloud.optimization.v1.Location} */ -public final class Location extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Location extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Location) LocationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Location() {} + private Location() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Location(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.Location.class, - com.google.cloud.optimization.v1.Location.Builder.class); + com.google.cloud.optimization.v1.Location.class, com.google.cloud.optimization.v1.Location.Builder.class); } private int bitField0_; public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** - * - * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ @java.lang.Override @@ -79,14 +58,11 @@ public boolean hasLatLng() { return latLng_ != null; } /** - * - * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ @java.lang.Override @@ -94,8 +70,6 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** - * - * *
    * The waypoint's geographic coordinates.
    * 
@@ -110,8 +84,6 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { public static final int HEADING_FIELD_NUMBER = 2; private int heading_ = 0; /** - * - * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value is used to specify the side of the road to use for pickup and
@@ -120,7 +92,6 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() {
    * 
* * optional int32 heading = 2; - * * @return Whether the heading field is set. */ @java.lang.Override @@ -128,8 +99,6 @@ public boolean hasHeading() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value is used to specify the side of the road to use for pickup and
@@ -138,7 +107,6 @@ public boolean hasHeading() {
    * 
* * optional int32 heading = 2; - * * @return The heading. */ @java.lang.Override @@ -147,7 +115,6 @@ public int getHeading() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,7 +126,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -176,10 +144,12 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLatLng()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, heading_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, heading_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,21 +159,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Location)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Location other = - (com.google.cloud.optimization.v1.Location) obj; + com.google.cloud.optimization.v1.Location other = (com.google.cloud.optimization.v1.Location) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng().equals(other.getLatLng())) return false; + if (!getLatLng() + .equals(other.getLatLng())) return false; } if (hasHeading() != other.hasHeading()) return false; if (hasHeading()) { - if (getHeading() != other.getHeading()) return false; + if (getHeading() + != other.getHeading()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -229,136 +200,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.Location parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Location parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Location parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Location parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Location parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Location parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Location parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Location parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Location parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Location parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Location parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Location parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Location prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulates a location (a geographic point, and an optional heading).
    * 
* * Protobuf type {@code google.cloud.optimization.v1.Location} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Location) com.google.cloud.optimization.v1.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.Location.class, - com.google.cloud.optimization.v1.Location.Builder.class); + com.google.cloud.optimization.v1.Location.class, com.google.cloud.optimization.v1.Location.Builder.class); } // Construct using com.google.cloud.optimization.v1.Location.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +340,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_descriptor; } @java.lang.Override @@ -394,11 +361,8 @@ public com.google.cloud.optimization.v1.Location build() { @java.lang.Override public com.google.cloud.optimization.v1.Location buildPartial() { - com.google.cloud.optimization.v1.Location result = - new com.google.cloud.optimization.v1.Location(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.Location result = new com.google.cloud.optimization.v1.Location(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -406,7 +370,9 @@ public com.google.cloud.optimization.v1.Location buildPartial() { private void buildPartial0(com.google.cloud.optimization.v1.Location result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.latLng_ = latLngBuilder_ == null ? latLng_ : latLngBuilder_.build(); + result.latLng_ = latLngBuilder_ == null + ? latLng_ + : latLngBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -420,39 +386,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.Location result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.Location) { - return mergeFrom((com.google.cloud.optimization.v1.Location) other); + return mergeFrom((com.google.cloud.optimization.v1.Location)other); } else { super.mergeFrom(other); return this; @@ -493,25 +458,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getLatLngFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - heading_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getLatLngFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + heading_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,36 +485,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; /** - * - * *
      * The waypoint's geographic coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -561,8 +517,6 @@ public com.google.type.LatLng getLatLng() { } } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -583,15 +537,14 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng( + com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); } else { @@ -602,8 +555,6 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -612,9 +563,9 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { */ public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && latLng_ != null - && latLng_ != com.google.type.LatLng.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + latLng_ != null && + latLng_ != com.google.type.LatLng.getDefaultInstance()) { getLatLngBuilder().mergeFrom(value); } else { latLng_ = value; @@ -627,8 +578,6 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -646,8 +595,6 @@ public Builder clearLatLng() { return this; } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -660,8 +607,6 @@ public com.google.type.LatLng.Builder getLatLngBuilder() { return getLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -672,12 +617,11 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? + com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -685,23 +629,21 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( + getLatLng(), + getParentForChildren(), + isClean()); latLng_ = null; } return latLngBuilder_; } - private int heading_; + private int heading_ ; /** - * - * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value is used to specify the side of the road to use for pickup and
@@ -710,7 +652,6 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() {
      * 
* * optional int32 heading = 2; - * * @return Whether the heading field is set. */ @java.lang.Override @@ -718,8 +659,6 @@ public boolean hasHeading() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value is used to specify the side of the road to use for pickup and
@@ -728,7 +667,6 @@ public boolean hasHeading() {
      * 
* * optional int32 heading = 2; - * * @return The heading. */ @java.lang.Override @@ -736,8 +674,6 @@ public int getHeading() { return heading_; } /** - * - * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value is used to specify the side of the road to use for pickup and
@@ -746,7 +682,6 @@ public int getHeading() {
      * 
* * optional int32 heading = 2; - * * @param value The heading to set. * @return This builder for chaining. */ @@ -758,8 +693,6 @@ public Builder setHeading(int value) { return this; } /** - * - * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value is used to specify the side of the road to use for pickup and
@@ -768,7 +701,6 @@ public Builder setHeading(int value) {
      * 
* * optional int32 heading = 2; - * * @return This builder for chaining. */ public Builder clearHeading() { @@ -777,9 +709,9 @@ public Builder clearHeading() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -789,12 +721,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Location) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Location) private static final com.google.cloud.optimization.v1.Location DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Location(); } @@ -803,27 +735,27 @@ public static com.google.cloud.optimization.v1.Location getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -838,4 +770,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java similarity index 71% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java index d852339761d0..fdf4ba61a085 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface LocationOrBuilder - extends +public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Location) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** - * - * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** - * - * *
    * The waypoint's geographic coordinates.
    * 
@@ -59,8 +35,6 @@ public interface LocationOrBuilder com.google.type.LatLngOrBuilder getLatLngOrBuilder(); /** - * - * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value is used to specify the side of the road to use for pickup and
@@ -69,13 +43,10 @@ public interface LocationOrBuilder
    * 
* * optional int32 heading = 2; - * * @return Whether the heading field is set. */ boolean hasHeading(); /** - * - * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value is used to specify the side of the road to use for pickup and
@@ -84,7 +55,6 @@ public interface LocationOrBuilder
    * 
* * optional int32 heading = 2; - * * @return The heading. */ int getHeading(); diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java similarity index 83% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java index b172e8628b96..7a8f2fb91b54 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Request to be given to a tour optimization solver which defines the
  * shipment model to solve as well as optimization parameters.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursRequest}
  */
-public final class OptimizeToursRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class OptimizeToursRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursRequest)
     OptimizeToursRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use OptimizeToursRequest.newBuilder() to construct.
   private OptimizeToursRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private OptimizeToursRequest() {
     parent_ = "";
     solvingMode_ = 0;
@@ -49,28 +31,25 @@ private OptimizeToursRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new OptimizeToursRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.OptimizeToursRequest.class,
-            com.google.cloud.optimization.v1.OptimizeToursRequest.Builder.class);
+            com.google.cloud.optimization.v1.OptimizeToursRequest.class, com.google.cloud.optimization.v1.OptimizeToursRequest.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Defines how the solver should handle the request. In all modes but
    * `VALIDATE_ONLY`, if the request is invalid, you will receive an
@@ -81,10 +60,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode}
    */
-  public enum SolvingMode implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SolvingMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Solve the model.
      * 
@@ -93,8 +71,6 @@ public enum SolvingMode implements com.google.protobuf.ProtocolMessageEnum { */ DEFAULT_SOLVE(0), /** - * - * *
      * Only validates the model without solving it: populates as many
      * [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
@@ -105,8 +81,6 @@ public enum SolvingMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     VALIDATE_ONLY(1),
     /**
-     *
-     *
      * 
      * Only populates
      * [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
@@ -132,8 +106,6 @@ public enum SolvingMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Solve the model.
      * 
@@ -142,8 +114,6 @@ public enum SolvingMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEFAULT_SOLVE_VALUE = 0; /** - * - * *
      * Only validates the model without solving it: populates as many
      * [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
@@ -154,8 +124,6 @@ public enum SolvingMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int VALIDATE_ONLY_VALUE = 1;
     /**
-     *
-     *
      * 
      * Only populates
      * [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
@@ -178,6 +146,7 @@ public enum SolvingMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DETECT_SOME_INFEASIBLE_SHIPMENTS_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -202,51 +171,49 @@ public static SolvingMode valueOf(int value) {
      */
     public static SolvingMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return DEFAULT_SOLVE;
-        case 1:
-          return VALIDATE_ONLY;
-        case 2:
-          return DETECT_SOME_INFEASIBLE_SHIPMENTS;
-        default:
-          return null;
+        case 0: return DEFAULT_SOLVE;
+        case 1: return VALIDATE_ONLY;
+        case 2: return DETECT_SOME_INFEASIBLE_SHIPMENTS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        SolvingMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public SolvingMode findValueByNumber(int number) {
+              return SolvingMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public SolvingMode findValueByNumber(int number) {
-            return SolvingMode.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.OptimizeToursRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.OptimizeToursRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final SolvingMode[] VALUES = values();
 
-    public static SolvingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static SolvingMode valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -264,8 +231,6 @@ private SolvingMode(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Mode defining the behavior of the search, trading off latency versus
    * solution quality. In all modes, the global request deadline is enforced.
@@ -273,10 +238,9 @@ private SolvingMode(int value) {
    *
    * Protobuf enum {@code google.cloud.optimization.v1.OptimizeToursRequest.SearchMode}
    */
-  public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SearchMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified search mode, equivalent to `RETURN_FAST`.
      * 
@@ -285,8 +249,6 @@ public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { */ SEARCH_MODE_UNSPECIFIED(0), /** - * - * *
      * Stop the search after finding the first good solution.
      * 
@@ -295,8 +257,6 @@ public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { */ RETURN_FAST(1), /** - * - * *
      * Spend all the available time to search for better solutions.
      * 
@@ -308,8 +268,6 @@ public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified search mode, equivalent to `RETURN_FAST`.
      * 
@@ -318,8 +276,6 @@ public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEARCH_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Stop the search after finding the first good solution.
      * 
@@ -328,8 +284,6 @@ public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETURN_FAST_VALUE = 1; /** - * - * *
      * Spend all the available time to search for better solutions.
      * 
@@ -338,6 +292,7 @@ public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONSUME_ALL_AVAILABLE_TIME_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -362,51 +317,49 @@ public static SearchMode valueOf(int value) { */ public static SearchMode forNumber(int value) { switch (value) { - case 0: - return SEARCH_MODE_UNSPECIFIED; - case 1: - return RETURN_FAST; - case 2: - return CONSUME_ALL_AVAILABLE_TIME; - default: - return null; + case 0: return SEARCH_MODE_UNSPECIFIED; + case 1: return RETURN_FAST; + case 2: return CONSUME_ALL_AVAILABLE_TIME; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SearchMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SearchMode findValueByNumber(int number) { + return SearchMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SearchMode findValueByNumber(int number) { - return SearchMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.optimization.v1.OptimizeToursRequest.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.optimization.v1.OptimizeToursRequest.getDescriptor().getEnumTypes().get(1); } private static final SearchMode[] VALUES = values(); - public static SearchMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SearchMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -425,12 +378,9 @@ private SearchMode(int value) { private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Target project and location to make a call.
    *
@@ -440,7 +390,6 @@ private SearchMode(int value) {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -449,15 +398,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Target project and location to make a call.
    *
@@ -467,15 +415,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -486,8 +435,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeout_; /** - * - * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -498,7 +445,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.protobuf.Duration timeout = 2; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -506,8 +452,6 @@ public boolean hasTimeout() { return timeout_ != null; } /** - * - * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -518,7 +462,6 @@ public boolean hasTimeout() {
    * 
* * .google.protobuf.Duration timeout = 2; - * * @return The timeout. */ @java.lang.Override @@ -526,8 +469,6 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** - * - * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -547,14 +488,11 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
   public static final int MODEL_FIELD_NUMBER = 3;
   private com.google.cloud.optimization.v1.ShipmentModel model_;
   /**
-   *
-   *
    * 
    * Shipment model to solve.
    * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; - * * @return Whether the model field is set. */ @java.lang.Override @@ -562,25 +500,18 @@ public boolean hasModel() { return model_ != null; } /** - * - * *
    * Shipment model to solve.
    * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; - * * @return The model. */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentModel getModel() { - return model_ == null - ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() - : model_; + return model_ == null ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() : model_; } /** - * - * *
    * Shipment model to solve.
    * 
@@ -589,93 +520,65 @@ public com.google.cloud.optimization.v1.ShipmentModel getModel() { */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder() { - return model_ == null - ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() - : model_; + return model_ == null ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() : model_; } public static final int SOLVING_MODE_FIELD_NUMBER = 4; private int solvingMode_ = 0; /** - * - * *
    * By default, the solving mode is `DEFAULT_SOLVE` (0).
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @return The enum numeric value on the wire for solvingMode. */ - @java.lang.Override - public int getSolvingModeValue() { + @java.lang.Override public int getSolvingModeValue() { return solvingMode_; } /** - * - * *
    * By default, the solving mode is `DEFAULT_SOLVE` (0).
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @return The solvingMode. */ - @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode getSolvingMode() { - com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode result = - com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.forNumber(solvingMode_); - return result == null - ? com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode getSolvingMode() { + com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode result = com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.forNumber(solvingMode_); + return result == null ? com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.UNRECOGNIZED : result; } public static final int SEARCH_MODE_FIELD_NUMBER = 6; private int searchMode_ = 0; /** - * - * *
    * Search mode used to solve the request.
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @return The enum numeric value on the wire for searchMode. */ - @java.lang.Override - public int getSearchModeValue() { + @java.lang.Override public int getSearchModeValue() { return searchMode_; } /** - * - * *
    * Search mode used to solve the request.
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @return The searchMode. */ - @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearchMode() { - com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode result = - com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.forNumber(searchMode_); - return result == null - ? com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearchMode() { + com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode result = com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.forNumber(searchMode_); + return result == null ? com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.UNRECOGNIZED : result; } public static final int INJECTED_FIRST_SOLUTION_ROUTES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private java.util.List - injectedFirstSolutionRoutes_; + private java.util.List injectedFirstSolutionRoutes_; /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -708,17 +611,13 @@ public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearc
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ @java.lang.Override - public java.util.List - getInjectedFirstSolutionRoutesList() { + public java.util.List getInjectedFirstSolutionRoutesList() { return injectedFirstSolutionRoutes_; } /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -751,17 +650,14 @@ public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearc
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ @java.lang.Override - public java.util.List + public java.util.List getInjectedFirstSolutionRoutesOrBuilderList() { return injectedFirstSolutionRoutes_; } /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -794,16 +690,13 @@ public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearc
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ @java.lang.Override public int getInjectedFirstSolutionRoutesCount() { return injectedFirstSolutionRoutes_.size(); } /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -836,16 +729,13 @@ public int getInjectedFirstSolutionRoutesCount() {
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRoutes(int index) { return injectedFirstSolutionRoutes_.get(index); } /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -878,20 +768,17 @@ public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRo
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder - getInjectedFirstSolutionRoutesOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolutionRoutesOrBuilder( + int index) { return injectedFirstSolutionRoutes_.get(index); } public static final int INJECTED_SOLUTION_CONSTRAINT_FIELD_NUMBER = 8; private com.google.cloud.optimization.v1.InjectedSolutionConstraint injectedSolutionConstraint_; /** - * - * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -903,10 +790,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRo
    * instead.
    * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; * @return Whether the injectedSolutionConstraint field is set. */ @java.lang.Override @@ -914,8 +798,6 @@ public boolean hasInjectedSolutionConstraint() { return injectedSolutionConstraint_ != null; } /** - * - * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -927,22 +809,14 @@ public boolean hasInjectedSolutionConstraint() {
    * instead.
    * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; * @return The injectedSolutionConstraint. */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint - getInjectedSolutionConstraint() { - return injectedSolutionConstraint_ == null - ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() - : injectedSolutionConstraint_; + public com.google.cloud.optimization.v1.InjectedSolutionConstraint getInjectedSolutionConstraint() { + return injectedSolutionConstraint_ == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() : injectedSolutionConstraint_; } /** - * - * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -954,25 +828,17 @@ public boolean hasInjectedSolutionConstraint() {
    * instead.
    * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder - getInjectedSolutionConstraintOrBuilder() { - return injectedSolutionConstraint_ == null - ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() - : injectedSolutionConstraint_; + public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder getInjectedSolutionConstraintOrBuilder() { + return injectedSolutionConstraint_ == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() : injectedSolutionConstraint_; } public static final int REFRESH_DETAILS_ROUTES_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List refreshDetailsRoutes_; /** - * - * *
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -995,13 +861,10 @@ public boolean hasInjectedSolutionConstraint() {
    * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
    */
   @java.lang.Override
-  public java.util.List
-      getRefreshDetailsRoutesList() {
+  public java.util.List getRefreshDetailsRoutesList() {
     return refreshDetailsRoutes_;
   }
   /**
-   *
-   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -1024,13 +887,11 @@ public boolean hasInjectedSolutionConstraint() {
    * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRefreshDetailsRoutesOrBuilderList() {
     return refreshDetailsRoutes_;
   }
   /**
-   *
-   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -1057,8 +918,6 @@ public int getRefreshDetailsRoutesCount() {
     return refreshDetailsRoutes_.size();
   }
   /**
-   *
-   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -1085,8 +944,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRefreshDetailsRoutes(in
     return refreshDetailsRoutes_.get(index);
   }
   /**
-   *
-   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -1117,8 +974,6 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
   public static final int INTERPRET_INJECTED_SOLUTIONS_USING_LABELS_FIELD_NUMBER = 10;
   private boolean interpretInjectedSolutionsUsingLabels_ = false;
   /**
-   *
-   *
    * 
    * If true:
    *
@@ -1188,7 +1043,6 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
    * 
* * bool interpret_injected_solutions_using_labels = 10; - * * @return The interpretInjectedSolutionsUsingLabels. */ @java.lang.Override @@ -1199,8 +1053,6 @@ public boolean getInterpretInjectedSolutionsUsingLabels() { public static final int CONSIDER_ROAD_TRAFFIC_FIELD_NUMBER = 11; private boolean considerRoadTraffic_ = false; /** - * - * *
    * Consider traffic estimation in calculating `ShipmentRoute` fields
    * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -1213,7 +1065,6 @@ public boolean getInterpretInjectedSolutionsUsingLabels() {
    * 
* * bool consider_road_traffic = 11; - * * @return The considerRoadTraffic. */ @java.lang.Override @@ -1224,14 +1075,11 @@ public boolean getConsiderRoadTraffic() { public static final int POPULATE_POLYLINES_FIELD_NUMBER = 12; private boolean populatePolylines_ = false; /** - * - * *
    * If true, polylines will be populated in response `ShipmentRoute`s.
    * 
* * bool populate_polylines = 12; - * * @return The populatePolylines. */ @java.lang.Override @@ -1242,8 +1090,6 @@ public boolean getPopulatePolylines() { public static final int POPULATE_TRANSITION_POLYLINES_FIELD_NUMBER = 13; private boolean populateTransitionPolylines_ = false; /** - * - * *
    * If true, polylines will be populated in response
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -1252,7 +1098,6 @@ public boolean getPopulatePolylines() {
    * 
* * bool populate_transition_polylines = 13; - * * @return The populateTransitionPolylines. */ @java.lang.Override @@ -1263,8 +1108,6 @@ public boolean getPopulateTransitionPolylines() { public static final int ALLOW_LARGE_DEADLINE_DESPITE_INTERRUPTION_RISK_FIELD_NUMBER = 14; private boolean allowLargeDeadlineDespiteInterruptionRisk_ = false; /** - * - * *
    * If this is set, then the request can have a deadline
    * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -1274,7 +1117,6 @@ public boolean getPopulateTransitionPolylines() {
    * 
* * bool allow_large_deadline_despite_interruption_risk = 14; - * * @return The allowLargeDeadlineDespiteInterruptionRisk. */ @java.lang.Override @@ -1285,8 +1127,6 @@ public boolean getAllowLargeDeadlineDespiteInterruptionRisk() { public static final int USE_GEODESIC_DISTANCES_FIELD_NUMBER = 15; private boolean useGeodesicDistances_ = false; /** - * - * *
    * If true, travel distances will be computed using geodesic distances instead
    * of Google Maps distances, and travel times will be computed using geodesic
@@ -1294,7 +1134,6 @@ public boolean getAllowLargeDeadlineDespiteInterruptionRisk() {
    * 
* * bool use_geodesic_distances = 15; - * * @return The useGeodesicDistances. */ @java.lang.Override @@ -1305,8 +1144,6 @@ public boolean getUseGeodesicDistances() { public static final int GEODESIC_METERS_PER_SECOND_FIELD_NUMBER = 16; private double geodesicMetersPerSecond_ = 0D; /** - * - * *
    * When `use_geodesic_distances` is true, this field must be set and defines
    * the speed applied to compute travel times. Its value must be at least 1.0
@@ -1314,7 +1151,6 @@ public boolean getUseGeodesicDistances() {
    * 
* * optional double geodesic_meters_per_second = 16; - * * @return Whether the geodesicMetersPerSecond field is set. */ @java.lang.Override @@ -1322,8 +1158,6 @@ public boolean hasGeodesicMetersPerSecond() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * When `use_geodesic_distances` is true, this field must be set and defines
    * the speed applied to compute travel times. Its value must be at least 1.0
@@ -1331,7 +1165,6 @@ public boolean hasGeodesicMetersPerSecond() {
    * 
* * optional double geodesic_meters_per_second = 16; - * * @return The geodesicMetersPerSecond. */ @java.lang.Override @@ -1342,8 +1175,6 @@ public double getGeodesicMetersPerSecond() { public static final int MAX_VALIDATION_ERRORS_FIELD_NUMBER = 5; private int maxValidationErrors_ = 0; /** - * - * *
    * Truncates the number of validation errors returned. These errors are
    * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -1355,7 +1186,6 @@ public double getGeodesicMetersPerSecond() {
    * 
* * optional int32 max_validation_errors = 5; - * * @return Whether the maxValidationErrors field is set. */ @java.lang.Override @@ -1363,8 +1193,6 @@ public boolean hasMaxValidationErrors() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Truncates the number of validation errors returned. These errors are
    * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -1376,7 +1204,6 @@ public boolean hasMaxValidationErrors() {
    * 
* * optional int32 max_validation_errors = 5; - * * @return The maxValidationErrors. */ @java.lang.Override @@ -1385,19 +1212,15 @@ public int getMaxValidationErrors() { } public static final int LABEL_FIELD_NUMBER = 17; - @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** - * - * *
    * Label that may be used to identify this request, reported back in the
    * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
    * 
* * string label = 17; - * * @return The label. */ @java.lang.Override @@ -1406,30 +1229,30 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
    * Label that may be used to identify this request, reported back in the
    * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
    * 
* * string label = 17; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -1440,8 +1263,6 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int POPULATE_TRAVEL_STEP_POLYLINES_FIELD_NUMBER = 20; private boolean populateTravelStepPolylines_ = false; /** - * - * *
    * Deprecated: Use
    * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -1452,19 +1273,16 @@ public com.google.protobuf.ByteString getLabelBytes() {
    * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @return The populateTravelStepPolylines. */ @java.lang.Override - @java.lang.Deprecated - public boolean getPopulateTravelStepPolylines() { + @java.lang.Deprecated public boolean getPopulateTravelStepPolylines() { return populateTravelStepPolylines_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1476,7 +1294,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -1486,17 +1305,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (model_ != null) { output.writeMessage(3, getModel()); } - if (solvingMode_ - != com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.DEFAULT_SOLVE - .getNumber()) { + if (solvingMode_ != com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.DEFAULT_SOLVE.getNumber()) { output.writeEnum(4, solvingMode_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(5, maxValidationErrors_); } - if (searchMode_ - != com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.SEARCH_MODE_UNSPECIFIED - .getNumber()) { + if (searchMode_ != com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.SEARCH_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(6, searchMode_); } for (int i = 0; i < injectedFirstSolutionRoutes_.size(); i++) { @@ -1548,70 +1363,71 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimeout()); } if (model_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getModel()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getModel()); } - if (solvingMode_ - != com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.DEFAULT_SOLVE - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, solvingMode_); + if (solvingMode_ != com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.DEFAULT_SOLVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, solvingMode_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxValidationErrors_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxValidationErrors_); } - if (searchMode_ - != com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.SEARCH_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, searchMode_); + if (searchMode_ != com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.SEARCH_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, searchMode_); } for (int i = 0; i < injectedFirstSolutionRoutes_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, injectedFirstSolutionRoutes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, injectedFirstSolutionRoutes_.get(i)); } if (injectedSolutionConstraint_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getInjectedSolutionConstraint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getInjectedSolutionConstraint()); } for (int i = 0; i < refreshDetailsRoutes_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(9, refreshDetailsRoutes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, refreshDetailsRoutes_.get(i)); } if (interpretInjectedSolutionsUsingLabels_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 10, interpretInjectedSolutionsUsingLabels_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, interpretInjectedSolutionsUsingLabels_); } if (considerRoadTraffic_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, considerRoadTraffic_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, considerRoadTraffic_); } if (populatePolylines_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, populatePolylines_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, populatePolylines_); } if (populateTransitionPolylines_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(13, populateTransitionPolylines_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, populateTransitionPolylines_); } if (allowLargeDeadlineDespiteInterruptionRisk_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 14, allowLargeDeadlineDespiteInterruptionRisk_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, allowLargeDeadlineDespiteInterruptionRisk_); } if (useGeodesicDistances_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, useGeodesicDistances_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, useGeodesicDistances_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(16, geodesicMetersPerSecond_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(16, geodesicMetersPerSecond_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, label_); } if (populateTravelStepPolylines_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(20, populateTravelStepPolylines_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, populateTravelStepPolylines_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1621,52 +1437,63 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursRequest other = - (com.google.cloud.optimization.v1.OptimizeToursRequest) obj; + com.google.cloud.optimization.v1.OptimizeToursRequest other = (com.google.cloud.optimization.v1.OptimizeToursRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout().equals(other.getTimeout())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; } if (hasModel() != other.hasModel()) return false; if (hasModel()) { - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; } if (solvingMode_ != other.solvingMode_) return false; if (searchMode_ != other.searchMode_) return false; - if (!getInjectedFirstSolutionRoutesList().equals(other.getInjectedFirstSolutionRoutesList())) - return false; + if (!getInjectedFirstSolutionRoutesList() + .equals(other.getInjectedFirstSolutionRoutesList())) return false; if (hasInjectedSolutionConstraint() != other.hasInjectedSolutionConstraint()) return false; if (hasInjectedSolutionConstraint()) { - if (!getInjectedSolutionConstraint().equals(other.getInjectedSolutionConstraint())) - return false; + if (!getInjectedSolutionConstraint() + .equals(other.getInjectedSolutionConstraint())) return false; } - if (!getRefreshDetailsRoutesList().equals(other.getRefreshDetailsRoutesList())) return false; + if (!getRefreshDetailsRoutesList() + .equals(other.getRefreshDetailsRoutesList())) return false; if (getInterpretInjectedSolutionsUsingLabels() != other.getInterpretInjectedSolutionsUsingLabels()) return false; - if (getConsiderRoadTraffic() != other.getConsiderRoadTraffic()) return false; - if (getPopulatePolylines() != other.getPopulatePolylines()) return false; - if (getPopulateTransitionPolylines() != other.getPopulateTransitionPolylines()) return false; + if (getConsiderRoadTraffic() + != other.getConsiderRoadTraffic()) return false; + if (getPopulatePolylines() + != other.getPopulatePolylines()) return false; + if (getPopulateTransitionPolylines() + != other.getPopulateTransitionPolylines()) return false; if (getAllowLargeDeadlineDespiteInterruptionRisk() != other.getAllowLargeDeadlineDespiteInterruptionRisk()) return false; - if (getUseGeodesicDistances() != other.getUseGeodesicDistances()) return false; + if (getUseGeodesicDistances() + != other.getUseGeodesicDistances()) return false; if (hasGeodesicMetersPerSecond() != other.hasGeodesicMetersPerSecond()) return false; if (hasGeodesicMetersPerSecond()) { if (java.lang.Double.doubleToLongBits(getGeodesicMetersPerSecond()) - != java.lang.Double.doubleToLongBits(other.getGeodesicMetersPerSecond())) return false; + != java.lang.Double.doubleToLongBits( + other.getGeodesicMetersPerSecond())) return false; } if (hasMaxValidationErrors() != other.hasMaxValidationErrors()) return false; if (hasMaxValidationErrors()) { - if (getMaxValidationErrors() != other.getMaxValidationErrors()) return false; + if (getMaxValidationErrors() + != other.getMaxValidationErrors()) return false; } - if (!getLabel().equals(other.getLabel())) return false; - if (getPopulateTravelStepPolylines() != other.getPopulateTravelStepPolylines()) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (getPopulateTravelStepPolylines() + != other.getPopulateTravelStepPolylines()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1705,28 +1532,27 @@ public int hashCode() { hash = (53 * hash) + getRefreshDetailsRoutesList().hashCode(); } hash = (37 * hash) + INTERPRET_INJECTED_SOLUTIONS_USING_LABELS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getInterpretInjectedSolutionsUsingLabels()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterpretInjectedSolutionsUsingLabels()); hash = (37 * hash) + CONSIDER_ROAD_TRAFFIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConsiderRoadTraffic()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getConsiderRoadTraffic()); hash = (37 * hash) + POPULATE_POLYLINES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPopulatePolylines()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPopulatePolylines()); hash = (37 * hash) + POPULATE_TRANSITION_POLYLINES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPopulateTransitionPolylines()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPopulateTransitionPolylines()); hash = (37 * hash) + ALLOW_LARGE_DEADLINE_DESPITE_INTERRUPTION_RISK_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean( - getAllowLargeDeadlineDespiteInterruptionRisk()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowLargeDeadlineDespiteInterruptionRisk()); hash = (37 * hash) + USE_GEODESIC_DISTANCES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseGeodesicDistances()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseGeodesicDistances()); if (hasGeodesicMetersPerSecond()) { hash = (37 * hash) + GEODESIC_METERS_PER_SECOND_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getGeodesicMetersPerSecond())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGeodesicMetersPerSecond())); } if (hasMaxValidationErrors()) { hash = (37 * hash) + MAX_VALIDATION_ERRORS_FIELD_NUMBER; @@ -1735,111 +1561,106 @@ public int hashCode() { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + POPULATE_TRAVEL_STEP_POLYLINES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPopulateTravelStepPolylines()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPopulateTravelStepPolylines()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OptimizeToursRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.OptimizeToursRequest prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to be given to a tour optimization solver which defines the
    * shipment model to solve as well as optimization parameters.
@@ -1847,32 +1668,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursRequest)
       com.google.cloud.optimization.v1.OptimizeToursRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.OptimizeToursRequest.class,
-              com.google.cloud.optimization.v1.OptimizeToursRequest.Builder.class);
+              com.google.cloud.optimization.v1.OptimizeToursRequest.class, com.google.cloud.optimization.v1.OptimizeToursRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.OptimizeToursRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1923,9 +1745,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
     }
 
     @java.lang.Override
@@ -1944,22 +1766,17 @@ public com.google.cloud.optimization.v1.OptimizeToursRequest build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.OptimizeToursRequest buildPartial() {
-      com.google.cloud.optimization.v1.OptimizeToursRequest result =
-          new com.google.cloud.optimization.v1.OptimizeToursRequest(this);
+      com.google.cloud.optimization.v1.OptimizeToursRequest result = new com.google.cloud.optimization.v1.OptimizeToursRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.optimization.v1.OptimizeToursRequest result) {
+    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.OptimizeToursRequest result) {
       if (injectedFirstSolutionRoutesBuilder_ == null) {
         if (((bitField0_ & 0x00000020) != 0)) {
-          injectedFirstSolutionRoutes_ =
-              java.util.Collections.unmodifiableList(injectedFirstSolutionRoutes_);
+          injectedFirstSolutionRoutes_ = java.util.Collections.unmodifiableList(injectedFirstSolutionRoutes_);
           bitField0_ = (bitField0_ & ~0x00000020);
         }
         result.injectedFirstSolutionRoutes_ = injectedFirstSolutionRoutes_;
@@ -1983,10 +1800,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRequest
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build();
+        result.timeout_ = timeoutBuilder_ == null
+            ? timeout_
+            : timeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.model_ = modelBuilder_ == null ? model_ : modelBuilder_.build();
+        result.model_ = modelBuilder_ == null
+            ? model_
+            : modelBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.solvingMode_ = solvingMode_;
@@ -1995,10 +1816,9 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRequest
         result.searchMode_ = searchMode_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.injectedSolutionConstraint_ =
-            injectedSolutionConstraintBuilder_ == null
-                ? injectedSolutionConstraint_
-                : injectedSolutionConstraintBuilder_.build();
+        result.injectedSolutionConstraint_ = injectedSolutionConstraintBuilder_ == null
+            ? injectedSolutionConstraint_
+            : injectedSolutionConstraintBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
         result.interpretInjectedSolutionsUsingLabels_ = interpretInjectedSolutionsUsingLabels_;
@@ -2013,8 +1833,7 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRequest
         result.populateTransitionPolylines_ = populateTransitionPolylines_;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.allowLargeDeadlineDespiteInterruptionRisk_ =
-            allowLargeDeadlineDespiteInterruptionRisk_;
+        result.allowLargeDeadlineDespiteInterruptionRisk_ = allowLargeDeadlineDespiteInterruptionRisk_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
         result.useGeodesicDistances_ = useGeodesicDistances_;
@@ -2041,39 +1860,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.OptimizeToursRequest) {
-        return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursRequest) other);
+        return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2081,8 +1899,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursRequest other) {
-      if (other == com.google.cloud.optimization.v1.OptimizeToursRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.OptimizeToursRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -2118,10 +1935,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursRequest o
             injectedFirstSolutionRoutesBuilder_ = null;
             injectedFirstSolutionRoutes_ = other.injectedFirstSolutionRoutes_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            injectedFirstSolutionRoutesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getInjectedFirstSolutionRoutesFieldBuilder()
-                    : null;
+            injectedFirstSolutionRoutesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getInjectedFirstSolutionRoutesFieldBuilder() : null;
           } else {
             injectedFirstSolutionRoutesBuilder_.addAllMessages(other.injectedFirstSolutionRoutes_);
           }
@@ -2148,10 +1964,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursRequest o
             refreshDetailsRoutesBuilder_ = null;
             refreshDetailsRoutes_ = other.refreshDetailsRoutes_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            refreshDetailsRoutesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRefreshDetailsRoutesFieldBuilder()
-                    : null;
+            refreshDetailsRoutesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRefreshDetailsRoutesFieldBuilder() : null;
           } else {
             refreshDetailsRoutesBuilder_.addAllMessages(other.refreshDetailsRoutes_);
           }
@@ -2170,8 +1985,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursRequest o
         setPopulateTransitionPolylines(other.getPopulateTransitionPolylines());
       }
       if (other.getAllowLargeDeadlineDespiteInterruptionRisk() != false) {
-        setAllowLargeDeadlineDespiteInterruptionRisk(
-            other.getAllowLargeDeadlineDespiteInterruptionRisk());
+        setAllowLargeDeadlineDespiteInterruptionRisk(other.getAllowLargeDeadlineDespiteInterruptionRisk());
       }
       if (other.getUseGeodesicDistances() != false) {
         setUseGeodesicDistances(other.getUseGeodesicDistances());
@@ -2216,136 +2030,124 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getModelFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                solvingMode_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                maxValidationErrors_ = input.readInt32();
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 40
-            case 48:
-              {
-                searchMode_ = input.readEnum();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 48
-            case 58:
-              {
-                com.google.cloud.optimization.v1.ShipmentRoute m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentRoute.parser(), extensionRegistry);
-                if (injectedFirstSolutionRoutesBuilder_ == null) {
-                  ensureInjectedFirstSolutionRoutesIsMutable();
-                  injectedFirstSolutionRoutes_.add(m);
-                } else {
-                  injectedFirstSolutionRoutesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getInjectedSolutionConstraintFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 66
-            case 74:
-              {
-                com.google.cloud.optimization.v1.ShipmentRoute m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentRoute.parser(), extensionRegistry);
-                if (refreshDetailsRoutesBuilder_ == null) {
-                  ensureRefreshDetailsRoutesIsMutable();
-                  refreshDetailsRoutes_.add(m);
-                } else {
-                  refreshDetailsRoutesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 74
-            case 80:
-              {
-                interpretInjectedSolutionsUsingLabels_ = input.readBool();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 80
-            case 88:
-              {
-                considerRoadTraffic_ = input.readBool();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 88
-            case 96:
-              {
-                populatePolylines_ = input.readBool();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 96
-            case 104:
-              {
-                populateTransitionPolylines_ = input.readBool();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 104
-            case 112:
-              {
-                allowLargeDeadlineDespiteInterruptionRisk_ = input.readBool();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 112
-            case 120:
-              {
-                useGeodesicDistances_ = input.readBool();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 120
-            case 129:
-              {
-                geodesicMetersPerSecond_ = input.readDouble();
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 129
-            case 138:
-              {
-                label_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 138
-            case 160:
-              {
-                populateTravelStepPolylines_ = input.readBool();
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 160
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getModelFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              solvingMode_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              maxValidationErrors_ = input.readInt32();
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 40
+            case 48: {
+              searchMode_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 48
+            case 58: {
+              com.google.cloud.optimization.v1.ShipmentRoute m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentRoute.parser(),
+                      extensionRegistry);
+              if (injectedFirstSolutionRoutesBuilder_ == null) {
+                ensureInjectedFirstSolutionRoutesIsMutable();
+                injectedFirstSolutionRoutes_.add(m);
+              } else {
+                injectedFirstSolutionRoutesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getInjectedSolutionConstraintFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 66
+            case 74: {
+              com.google.cloud.optimization.v1.ShipmentRoute m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentRoute.parser(),
+                      extensionRegistry);
+              if (refreshDetailsRoutesBuilder_ == null) {
+                ensureRefreshDetailsRoutesIsMutable();
+                refreshDetailsRoutes_.add(m);
+              } else {
+                refreshDetailsRoutesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 74
+            case 80: {
+              interpretInjectedSolutionsUsingLabels_ = input.readBool();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 80
+            case 88: {
+              considerRoadTraffic_ = input.readBool();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 88
+            case 96: {
+              populatePolylines_ = input.readBool();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 96
+            case 104: {
+              populateTransitionPolylines_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 104
+            case 112: {
+              allowLargeDeadlineDespiteInterruptionRisk_ = input.readBool();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 112
+            case 120: {
+              useGeodesicDistances_ = input.readBool();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 120
+            case 129: {
+              geodesicMetersPerSecond_ = input.readDouble();
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 129
+            case 138: {
+              label_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 138
+            case 160: {
+              populateTravelStepPolylines_ = input.readBool();
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 160
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2355,13 +2157,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Target project and location to make a call.
      *
@@ -2371,13 +2170,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -2386,8 +2185,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Target project and location to make a call.
      *
@@ -2397,14 +2194,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -2412,8 +2210,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Target project and location to make a call.
      *
@@ -2423,22 +2219,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Target project and location to make a call.
      *
@@ -2448,7 +2240,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -2458,8 +2249,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Target project and location to make a call.
      *
@@ -2469,14 +2258,12 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -2486,13 +2273,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - timeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; /** - * - * *
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2503,15 +2285,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Duration timeout = 2; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2522,7 +2301,6 @@ public boolean hasTimeout() {
      * 
* * .google.protobuf.Duration timeout = 2; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -2533,8 +2311,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2560,8 +2336,6 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2573,7 +2347,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration timeout = 2;
      */
-    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTimeout(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (timeoutBuilder_ == null) {
         timeout_ = builderForValue.build();
       } else {
@@ -2584,8 +2359,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2599,9 +2372,9 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
      */
     public Builder mergeTimeout(com.google.protobuf.Duration value) {
       if (timeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && timeout_ != null
-            && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          timeout_ != null &&
+          timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTimeoutBuilder().mergeFrom(value);
         } else {
           timeout_ = value;
@@ -2614,8 +2387,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2638,8 +2409,6 @@ public Builder clearTimeout() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2657,8 +2426,6 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
       return getTimeoutFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2674,12 +2441,11 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
       if (timeoutBuilder_ != null) {
         return timeoutBuilder_.getMessageOrBuilder();
       } else {
-        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
+        return timeout_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
       }
     }
     /**
-     *
-     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2692,17 +2458,14 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * .google.protobuf.Duration timeout = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTimeoutFieldBuilder() {
       if (timeoutBuilder_ == null) {
-        timeoutBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getTimeout(), getParentForChildren(), isClean());
+        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTimeout(),
+                getParentForChildren(),
+                isClean());
         timeout_ = null;
       }
       return timeoutBuilder_;
@@ -2710,47 +2473,34 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
 
     private com.google.cloud.optimization.v1.ShipmentModel model_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentModel,
-            com.google.cloud.optimization.v1.ShipmentModel.Builder,
-            com.google.cloud.optimization.v1.ShipmentModelOrBuilder>
-        modelBuilder_;
+        com.google.cloud.optimization.v1.ShipmentModel, com.google.cloud.optimization.v1.ShipmentModel.Builder, com.google.cloud.optimization.v1.ShipmentModelOrBuilder> modelBuilder_;
     /**
-     *
-     *
      * 
      * Shipment model to solve.
      * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; - * * @return Whether the model field is set. */ public boolean hasModel() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Shipment model to solve.
      * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; - * * @return The model. */ public com.google.cloud.optimization.v1.ShipmentModel getModel() { if (modelBuilder_ == null) { - return model_ == null - ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() - : model_; + return model_ == null ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() : model_; } else { return modelBuilder_.getMessage(); } } /** - * - * *
      * Shipment model to solve.
      * 
@@ -2771,8 +2521,6 @@ public Builder setModel(com.google.cloud.optimization.v1.ShipmentModel value) { return this; } /** - * - * *
      * Shipment model to solve.
      * 
@@ -2791,8 +2539,6 @@ public Builder setModel( return this; } /** - * - * *
      * Shipment model to solve.
      * 
@@ -2801,9 +2547,9 @@ public Builder setModel( */ public Builder mergeModel(com.google.cloud.optimization.v1.ShipmentModel value) { if (modelBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && model_ != null - && model_ != com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + model_ != null && + model_ != com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance()) { getModelBuilder().mergeFrom(value); } else { model_ = value; @@ -2816,8 +2562,6 @@ public Builder mergeModel(com.google.cloud.optimization.v1.ShipmentModel value) return this; } /** - * - * *
      * Shipment model to solve.
      * 
@@ -2835,8 +2579,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Shipment model to solve.
      * 
@@ -2849,8 +2591,6 @@ public com.google.cloud.optimization.v1.ShipmentModel.Builder getModelBuilder() return getModelFieldBuilder().getBuilder(); } /** - * - * *
      * Shipment model to solve.
      * 
@@ -2861,14 +2601,11 @@ public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { - return model_ == null - ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() - : model_; + return model_ == null ? + com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() : model_; } } /** - * - * *
      * Shipment model to solve.
      * 
@@ -2876,17 +2613,14 @@ public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder * .google.cloud.optimization.v1.ShipmentModel model = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel, - com.google.cloud.optimization.v1.ShipmentModel.Builder, - com.google.cloud.optimization.v1.ShipmentModelOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel, com.google.cloud.optimization.v1.ShipmentModel.Builder, com.google.cloud.optimization.v1.ShipmentModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel, - com.google.cloud.optimization.v1.ShipmentModel.Builder, - com.google.cloud.optimization.v1.ShipmentModelOrBuilder>( - getModel(), getParentForChildren(), isClean()); + modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel, com.google.cloud.optimization.v1.ShipmentModel.Builder, com.google.cloud.optimization.v1.ShipmentModelOrBuilder>( + getModel(), + getParentForChildren(), + isClean()); model_ = null; } return modelBuilder_; @@ -2894,29 +2628,22 @@ public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder private int solvingMode_ = 0; /** - * - * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @return The enum numeric value on the wire for solvingMode. */ - @java.lang.Override - public int getSolvingModeValue() { + @java.lang.Override public int getSolvingModeValue() { return solvingMode_; } /** - * - * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @param value The enum numeric value on the wire for solvingMode to set. * @return This builder for chaining. */ @@ -2927,38 +2654,28 @@ public Builder setSolvingModeValue(int value) { return this; } /** - * - * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @return The solvingMode. */ @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode getSolvingMode() { - com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode result = - com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.forNumber(solvingMode_); - return result == null - ? com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.UNRECOGNIZED - : result; + com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode result = com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.forNumber(solvingMode_); + return result == null ? com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.UNRECOGNIZED : result; } /** - * - * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @param value The solvingMode to set. * @return This builder for chaining. */ - public Builder setSolvingMode( - com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode value) { + public Builder setSolvingMode(com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode value) { if (value == null) { throw new NullPointerException(); } @@ -2967,15 +2684,12 @@ public Builder setSolvingMode( onChanged(); return this; } - /** - * - * + /** *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @return This builder for chaining. */ public Builder clearSolvingMode() { @@ -2987,29 +2701,22 @@ public Builder clearSolvingMode() { private int searchMode_ = 0; /** - * - * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @return The enum numeric value on the wire for searchMode. */ - @java.lang.Override - public int getSearchModeValue() { + @java.lang.Override public int getSearchModeValue() { return searchMode_; } /** - * - * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @param value The enum numeric value on the wire for searchMode to set. * @return This builder for chaining. */ @@ -3020,38 +2727,28 @@ public Builder setSearchModeValue(int value) { return this; } /** - * - * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @return The searchMode. */ @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearchMode() { - com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode result = - com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.forNumber(searchMode_); - return result == null - ? com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.UNRECOGNIZED - : result; + com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode result = com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.forNumber(searchMode_); + return result == null ? com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.UNRECOGNIZED : result; } /** - * - * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @param value The searchMode to set. * @return This builder for chaining. */ - public Builder setSearchMode( - com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode value) { + public Builder setSearchMode(com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode value) { if (value == null) { throw new NullPointerException(); } @@ -3061,14 +2758,11 @@ public Builder setSearchMode( return this; } /** - * - * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @return This builder for chaining. */ public Builder clearSearchMode() { @@ -3078,27 +2772,19 @@ public Builder clearSearchMode() { return this; } - private java.util.List - injectedFirstSolutionRoutes_ = java.util.Collections.emptyList(); - + private java.util.List injectedFirstSolutionRoutes_ = + java.util.Collections.emptyList(); private void ensureInjectedFirstSolutionRoutesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - injectedFirstSolutionRoutes_ = - new java.util.ArrayList( - injectedFirstSolutionRoutes_); + injectedFirstSolutionRoutes_ = new java.util.ArrayList(injectedFirstSolutionRoutes_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute, - com.google.cloud.optimization.v1.ShipmentRoute.Builder, - com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> - injectedFirstSolutionRoutesBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> injectedFirstSolutionRoutesBuilder_; /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3131,12 +2817,9 @@ private void ensureInjectedFirstSolutionRoutesIsMutable() {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public java.util.List - getInjectedFirstSolutionRoutesList() { + public java.util.List getInjectedFirstSolutionRoutesList() { if (injectedFirstSolutionRoutesBuilder_ == null) { return java.util.Collections.unmodifiableList(injectedFirstSolutionRoutes_); } else { @@ -3144,8 +2827,6 @@ private void ensureInjectedFirstSolutionRoutesIsMutable() { } } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3178,9 +2859,7 @@ private void ensureInjectedFirstSolutionRoutesIsMutable() {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public int getInjectedFirstSolutionRoutesCount() { if (injectedFirstSolutionRoutesBuilder_ == null) { @@ -3190,8 +2869,6 @@ public int getInjectedFirstSolutionRoutesCount() { } } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3224,12 +2901,9 @@ public int getInjectedFirstSolutionRoutesCount() {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRoutes( - int index) { + public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRoutes(int index) { if (injectedFirstSolutionRoutesBuilder_ == null) { return injectedFirstSolutionRoutes_.get(index); } else { @@ -3237,8 +2911,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRo } } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3271,9 +2943,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRo
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public Builder setInjectedFirstSolutionRoutes( int index, com.google.cloud.optimization.v1.ShipmentRoute value) { @@ -3290,8 +2960,6 @@ public Builder setInjectedFirstSolutionRoutes( return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3324,9 +2992,7 @@ public Builder setInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public Builder setInjectedFirstSolutionRoutes( int index, com.google.cloud.optimization.v1.ShipmentRoute.Builder builderForValue) { @@ -3340,8 +3006,6 @@ public Builder setInjectedFirstSolutionRoutes( return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3374,12 +3038,9 @@ public Builder setInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public Builder addInjectedFirstSolutionRoutes( - com.google.cloud.optimization.v1.ShipmentRoute value) { + public Builder addInjectedFirstSolutionRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) { if (injectedFirstSolutionRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3393,8 +3054,6 @@ public Builder addInjectedFirstSolutionRoutes( return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3427,9 +3086,7 @@ public Builder addInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public Builder addInjectedFirstSolutionRoutes( int index, com.google.cloud.optimization.v1.ShipmentRoute value) { @@ -3446,8 +3103,6 @@ public Builder addInjectedFirstSolutionRoutes( return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3480,9 +3135,7 @@ public Builder addInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public Builder addInjectedFirstSolutionRoutes( com.google.cloud.optimization.v1.ShipmentRoute.Builder builderForValue) { @@ -3496,8 +3149,6 @@ public Builder addInjectedFirstSolutionRoutes( return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3530,9 +3181,7 @@ public Builder addInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public Builder addInjectedFirstSolutionRoutes( int index, com.google.cloud.optimization.v1.ShipmentRoute.Builder builderForValue) { @@ -3546,8 +3195,6 @@ public Builder addInjectedFirstSolutionRoutes( return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3580,9 +3227,7 @@ public Builder addInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public Builder addAllInjectedFirstSolutionRoutes( java.lang.Iterable values) { @@ -3597,8 +3242,6 @@ public Builder addAllInjectedFirstSolutionRoutes( return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3631,9 +3274,7 @@ public Builder addAllInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public Builder clearInjectedFirstSolutionRoutes() { if (injectedFirstSolutionRoutesBuilder_ == null) { @@ -3646,8 +3287,6 @@ public Builder clearInjectedFirstSolutionRoutes() { return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3680,9 +3319,7 @@ public Builder clearInjectedFirstSolutionRoutes() {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ public Builder removeInjectedFirstSolutionRoutes(int index) { if (injectedFirstSolutionRoutesBuilder_ == null) { @@ -3695,8 +3332,6 @@ public Builder removeInjectedFirstSolutionRoutes(int index) { return this; } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3729,17 +3364,13 @@ public Builder removeInjectedFirstSolutionRoutes(int index) {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public com.google.cloud.optimization.v1.ShipmentRoute.Builder - getInjectedFirstSolutionRoutesBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentRoute.Builder getInjectedFirstSolutionRoutesBuilder( + int index) { return getInjectedFirstSolutionRoutesFieldBuilder().getBuilder(index); } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3772,21 +3403,16 @@ public Builder removeInjectedFirstSolutionRoutes(int index) {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder - getInjectedFirstSolutionRoutesOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolutionRoutesOrBuilder( + int index) { if (injectedFirstSolutionRoutesBuilder_ == null) { - return injectedFirstSolutionRoutes_.get(index); - } else { + return injectedFirstSolutionRoutes_.get(index); } else { return injectedFirstSolutionRoutesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3819,12 +3445,10 @@ public Builder removeInjectedFirstSolutionRoutes(int index) {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public java.util.List - getInjectedFirstSolutionRoutesOrBuilderList() { + public java.util.List + getInjectedFirstSolutionRoutesOrBuilderList() { if (injectedFirstSolutionRoutesBuilder_ != null) { return injectedFirstSolutionRoutesBuilder_.getMessageOrBuilderList(); } else { @@ -3832,8 +3456,6 @@ public Builder removeInjectedFirstSolutionRoutes(int index) { } } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3866,18 +3488,13 @@ public Builder removeInjectedFirstSolutionRoutes(int index) {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public com.google.cloud.optimization.v1.ShipmentRoute.Builder - addInjectedFirstSolutionRoutesBuilder() { - return getInjectedFirstSolutionRoutesFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentRoute.Builder addInjectedFirstSolutionRoutesBuilder() { + return getInjectedFirstSolutionRoutesFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance()); } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3910,18 +3527,14 @@ public Builder removeInjectedFirstSolutionRoutes(int index) {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public com.google.cloud.optimization.v1.ShipmentRoute.Builder - addInjectedFirstSolutionRoutesBuilder(int index) { - return getInjectedFirstSolutionRoutesFieldBuilder() - .addBuilder(index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentRoute.Builder addInjectedFirstSolutionRoutesBuilder( + int index) { + return getInjectedFirstSolutionRoutesFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance()); } /** - * - * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3954,26 +3567,18 @@ public Builder removeInjectedFirstSolutionRoutes(int index) {
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - public java.util.List - getInjectedFirstSolutionRoutesBuilderList() { + public java.util.List + getInjectedFirstSolutionRoutesBuilderList() { return getInjectedFirstSolutionRoutesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute, - com.google.cloud.optimization.v1.ShipmentRoute.Builder, - com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> getInjectedFirstSolutionRoutesFieldBuilder() { if (injectedFirstSolutionRoutesBuilder_ == null) { - injectedFirstSolutionRoutesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute, - com.google.cloud.optimization.v1.ShipmentRoute.Builder, - com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>( + injectedFirstSolutionRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>( injectedFirstSolutionRoutes_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -3985,13 +3590,8 @@ public Builder removeInjectedFirstSolutionRoutes(int index) { private com.google.cloud.optimization.v1.InjectedSolutionConstraint injectedSolutionConstraint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, - com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder> - injectedSolutionConstraintBuilder_; + com.google.cloud.optimization.v1.InjectedSolutionConstraint, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder> injectedSolutionConstraintBuilder_; /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4003,18 +3603,13 @@ public Builder removeInjectedFirstSolutionRoutes(int index) {
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; * @return Whether the injectedSolutionConstraint field is set. */ public boolean hasInjectedSolutionConstraint() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4026,25 +3621,17 @@ public boolean hasInjectedSolutionConstraint() {
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; * @return The injectedSolutionConstraint. */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint - getInjectedSolutionConstraint() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint getInjectedSolutionConstraint() { if (injectedSolutionConstraintBuilder_ == null) { - return injectedSolutionConstraint_ == null - ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() - : injectedSolutionConstraint_; + return injectedSolutionConstraint_ == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() : injectedSolutionConstraint_; } else { return injectedSolutionConstraintBuilder_.getMessage(); } } /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4056,12 +3643,9 @@ public boolean hasInjectedSolutionConstraint() {
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ - public Builder setInjectedSolutionConstraint( - com.google.cloud.optimization.v1.InjectedSolutionConstraint value) { + public Builder setInjectedSolutionConstraint(com.google.cloud.optimization.v1.InjectedSolutionConstraint value) { if (injectedSolutionConstraintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4075,8 +3659,6 @@ public Builder setInjectedSolutionConstraint( return this; } /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4088,9 +3670,7 @@ public Builder setInjectedSolutionConstraint(
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ public Builder setInjectedSolutionConstraint( com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder builderForValue) { @@ -4104,8 +3684,6 @@ public Builder setInjectedSolutionConstraint( return this; } /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4117,18 +3695,13 @@ public Builder setInjectedSolutionConstraint(
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ - public Builder mergeInjectedSolutionConstraint( - com.google.cloud.optimization.v1.InjectedSolutionConstraint value) { + public Builder mergeInjectedSolutionConstraint(com.google.cloud.optimization.v1.InjectedSolutionConstraint value) { if (injectedSolutionConstraintBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && injectedSolutionConstraint_ != null - && injectedSolutionConstraint_ - != com.google.cloud.optimization.v1.InjectedSolutionConstraint - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + injectedSolutionConstraint_ != null && + injectedSolutionConstraint_ != com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance()) { getInjectedSolutionConstraintBuilder().mergeFrom(value); } else { injectedSolutionConstraint_ = value; @@ -4141,8 +3714,6 @@ public Builder mergeInjectedSolutionConstraint( return this; } /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4154,9 +3725,7 @@ public Builder mergeInjectedSolutionConstraint(
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ public Builder clearInjectedSolutionConstraint() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4169,8 +3738,6 @@ public Builder clearInjectedSolutionConstraint() { return this; } /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4182,19 +3749,14 @@ public Builder clearInjectedSolutionConstraint() {
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder - getInjectedSolutionConstraintBuilder() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder getInjectedSolutionConstraintBuilder() { bitField0_ |= 0x00000040; onChanged(); return getInjectedSolutionConstraintFieldBuilder().getBuilder(); } /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4206,23 +3768,17 @@ public Builder clearInjectedSolutionConstraint() {
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder - getInjectedSolutionConstraintOrBuilder() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder getInjectedSolutionConstraintOrBuilder() { if (injectedSolutionConstraintBuilder_ != null) { return injectedSolutionConstraintBuilder_.getMessageOrBuilder(); } else { - return injectedSolutionConstraint_ == null - ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() - : injectedSolutionConstraint_; + return injectedSolutionConstraint_ == null ? + com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() : injectedSolutionConstraint_; } } /** - * - * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -4234,48 +3790,35 @@ public Builder clearInjectedSolutionConstraint() {
      * instead.
      * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, - com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder> + com.google.cloud.optimization.v1.InjectedSolutionConstraint, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder> getInjectedSolutionConstraintFieldBuilder() { if (injectedSolutionConstraintBuilder_ == null) { - injectedSolutionConstraintBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint, - com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, - com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder>( - getInjectedSolutionConstraint(), getParentForChildren(), isClean()); + injectedSolutionConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.InjectedSolutionConstraint, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder>( + getInjectedSolutionConstraint(), + getParentForChildren(), + isClean()); injectedSolutionConstraint_ = null; } return injectedSolutionConstraintBuilder_; } private java.util.List refreshDetailsRoutes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRefreshDetailsRoutesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - refreshDetailsRoutes_ = - new java.util.ArrayList( - refreshDetailsRoutes_); + refreshDetailsRoutes_ = new java.util.ArrayList(refreshDetailsRoutes_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute, - com.google.cloud.optimization.v1.ShipmentRoute.Builder, - com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> - refreshDetailsRoutesBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> refreshDetailsRoutesBuilder_; /** - * - * *
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4297,8 +3840,7 @@ private void ensureRefreshDetailsRoutesIsMutable() {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
      */
-    public java.util.List
-        getRefreshDetailsRoutesList() {
+    public java.util.List getRefreshDetailsRoutesList() {
       if (refreshDetailsRoutesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(refreshDetailsRoutes_);
       } else {
@@ -4306,8 +3848,6 @@ private void ensureRefreshDetailsRoutesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4337,8 +3877,6 @@ public int getRefreshDetailsRoutesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4368,8 +3906,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRefreshDetailsRoutes(in
       }
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4406,8 +3942,6 @@ public Builder setRefreshDetailsRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4441,8 +3975,6 @@ public Builder setRefreshDetailsRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4478,8 +4010,6 @@ public Builder addRefreshDetailsRoutes(com.google.cloud.optimization.v1.Shipment
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4516,8 +4046,6 @@ public Builder addRefreshDetailsRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4551,8 +4079,6 @@ public Builder addRefreshDetailsRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4586,8 +4112,6 @@ public Builder addRefreshDetailsRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4613,7 +4137,8 @@ public Builder addAllRefreshDetailsRoutes(
         java.lang.Iterable values) {
       if (refreshDetailsRoutesBuilder_ == null) {
         ensureRefreshDetailsRoutesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, refreshDetailsRoutes_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, refreshDetailsRoutes_);
         onChanged();
       } else {
         refreshDetailsRoutesBuilder_.addAllMessages(values);
@@ -4621,8 +4146,6 @@ public Builder addAllRefreshDetailsRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4655,8 +4178,6 @@ public Builder clearRefreshDetailsRoutes() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4689,8 +4210,6 @@ public Builder removeRefreshDetailsRoutes(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4717,8 +4236,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRefreshDetailsR
       return getRefreshDetailsRoutesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4743,14 +4260,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRefreshDetailsR
     public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesOrBuilder(
         int index) {
       if (refreshDetailsRoutesBuilder_ == null) {
-        return refreshDetailsRoutes_.get(index);
-      } else {
+        return refreshDetailsRoutes_.get(index);  } else {
         return refreshDetailsRoutesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4772,8 +4286,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
      */
-    public java.util.List
-        getRefreshDetailsRoutesOrBuilderList() {
+    public java.util.List 
+         getRefreshDetailsRoutesOrBuilderList() {
       if (refreshDetailsRoutesBuilder_ != null) {
         return refreshDetailsRoutesBuilder_.getMessageOrBuilderList();
       } else {
@@ -4781,8 +4295,6 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
       }
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4805,12 +4317,10 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
      * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsRoutesBuilder() {
-      return getRefreshDetailsRoutesFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+      return getRefreshDetailsRoutesFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4834,12 +4344,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsR
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsRoutesBuilder(
         int index) {
-      return getRefreshDetailsRoutesFieldBuilder()
-          .addBuilder(index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+      return getRefreshDetailsRoutesFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4861,22 +4369,16 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsR
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
      */
-    public java.util.List
-        getRefreshDetailsRoutesBuilderList() {
+    public java.util.List 
+         getRefreshDetailsRoutesBuilderList() {
       return getRefreshDetailsRoutesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute,
-            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
-            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
+        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> 
         getRefreshDetailsRoutesFieldBuilder() {
       if (refreshDetailsRoutesBuilder_ == null) {
-        refreshDetailsRoutesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.ShipmentRoute,
-                com.google.cloud.optimization.v1.ShipmentRoute.Builder,
-                com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
+        refreshDetailsRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
                 refreshDetailsRoutes_,
                 ((bitField0_ & 0x00000080) != 0),
                 getParentForChildren(),
@@ -4886,10 +4388,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsR
       return refreshDetailsRoutesBuilder_;
     }
 
-    private boolean interpretInjectedSolutionsUsingLabels_;
+    private boolean interpretInjectedSolutionsUsingLabels_ ;
     /**
-     *
-     *
      * 
      * If true:
      *
@@ -4959,7 +4459,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsR
      * 
* * bool interpret_injected_solutions_using_labels = 10; - * * @return The interpretInjectedSolutionsUsingLabels. */ @java.lang.Override @@ -4967,8 +4466,6 @@ public boolean getInterpretInjectedSolutionsUsingLabels() { return interpretInjectedSolutionsUsingLabels_; } /** - * - * *
      * If true:
      *
@@ -5038,7 +4535,6 @@ public boolean getInterpretInjectedSolutionsUsingLabels() {
      * 
* * bool interpret_injected_solutions_using_labels = 10; - * * @param value The interpretInjectedSolutionsUsingLabels to set. * @return This builder for chaining. */ @@ -5050,8 +4546,6 @@ public Builder setInterpretInjectedSolutionsUsingLabels(boolean value) { return this; } /** - * - * *
      * If true:
      *
@@ -5121,7 +4615,6 @@ public Builder setInterpretInjectedSolutionsUsingLabels(boolean value) {
      * 
* * bool interpret_injected_solutions_using_labels = 10; - * * @return This builder for chaining. */ public Builder clearInterpretInjectedSolutionsUsingLabels() { @@ -5131,10 +4624,8 @@ public Builder clearInterpretInjectedSolutionsUsingLabels() { return this; } - private boolean considerRoadTraffic_; + private boolean considerRoadTraffic_ ; /** - * - * *
      * Consider traffic estimation in calculating `ShipmentRoute` fields
      * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -5147,7 +4638,6 @@ public Builder clearInterpretInjectedSolutionsUsingLabels() {
      * 
* * bool consider_road_traffic = 11; - * * @return The considerRoadTraffic. */ @java.lang.Override @@ -5155,8 +4645,6 @@ public boolean getConsiderRoadTraffic() { return considerRoadTraffic_; } /** - * - * *
      * Consider traffic estimation in calculating `ShipmentRoute` fields
      * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -5169,7 +4657,6 @@ public boolean getConsiderRoadTraffic() {
      * 
* * bool consider_road_traffic = 11; - * * @param value The considerRoadTraffic to set. * @return This builder for chaining. */ @@ -5181,8 +4668,6 @@ public Builder setConsiderRoadTraffic(boolean value) { return this; } /** - * - * *
      * Consider traffic estimation in calculating `ShipmentRoute` fields
      * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -5195,7 +4680,6 @@ public Builder setConsiderRoadTraffic(boolean value) {
      * 
* * bool consider_road_traffic = 11; - * * @return This builder for chaining. */ public Builder clearConsiderRoadTraffic() { @@ -5205,16 +4689,13 @@ public Builder clearConsiderRoadTraffic() { return this; } - private boolean populatePolylines_; + private boolean populatePolylines_ ; /** - * - * *
      * If true, polylines will be populated in response `ShipmentRoute`s.
      * 
* * bool populate_polylines = 12; - * * @return The populatePolylines. */ @java.lang.Override @@ -5222,14 +4703,11 @@ public boolean getPopulatePolylines() { return populatePolylines_; } /** - * - * *
      * If true, polylines will be populated in response `ShipmentRoute`s.
      * 
* * bool populate_polylines = 12; - * * @param value The populatePolylines to set. * @return This builder for chaining. */ @@ -5241,14 +4719,11 @@ public Builder setPopulatePolylines(boolean value) { return this; } /** - * - * *
      * If true, polylines will be populated in response `ShipmentRoute`s.
      * 
* * bool populate_polylines = 12; - * * @return This builder for chaining. */ public Builder clearPopulatePolylines() { @@ -5258,10 +4733,8 @@ public Builder clearPopulatePolylines() { return this; } - private boolean populateTransitionPolylines_; + private boolean populateTransitionPolylines_ ; /** - * - * *
      * If true, polylines will be populated in response
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -5270,7 +4743,6 @@ public Builder clearPopulatePolylines() {
      * 
* * bool populate_transition_polylines = 13; - * * @return The populateTransitionPolylines. */ @java.lang.Override @@ -5278,8 +4750,6 @@ public boolean getPopulateTransitionPolylines() { return populateTransitionPolylines_; } /** - * - * *
      * If true, polylines will be populated in response
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -5288,7 +4758,6 @@ public boolean getPopulateTransitionPolylines() {
      * 
* * bool populate_transition_polylines = 13; - * * @param value The populateTransitionPolylines to set. * @return This builder for chaining. */ @@ -5300,8 +4769,6 @@ public Builder setPopulateTransitionPolylines(boolean value) { return this; } /** - * - * *
      * If true, polylines will be populated in response
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -5310,7 +4777,6 @@ public Builder setPopulateTransitionPolylines(boolean value) {
      * 
* * bool populate_transition_polylines = 13; - * * @return This builder for chaining. */ public Builder clearPopulateTransitionPolylines() { @@ -5320,10 +4786,8 @@ public Builder clearPopulateTransitionPolylines() { return this; } - private boolean allowLargeDeadlineDespiteInterruptionRisk_; + private boolean allowLargeDeadlineDespiteInterruptionRisk_ ; /** - * - * *
      * If this is set, then the request can have a deadline
      * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -5333,7 +4797,6 @@ public Builder clearPopulateTransitionPolylines() {
      * 
* * bool allow_large_deadline_despite_interruption_risk = 14; - * * @return The allowLargeDeadlineDespiteInterruptionRisk. */ @java.lang.Override @@ -5341,8 +4804,6 @@ public boolean getAllowLargeDeadlineDespiteInterruptionRisk() { return allowLargeDeadlineDespiteInterruptionRisk_; } /** - * - * *
      * If this is set, then the request can have a deadline
      * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -5352,7 +4813,6 @@ public boolean getAllowLargeDeadlineDespiteInterruptionRisk() {
      * 
* * bool allow_large_deadline_despite_interruption_risk = 14; - * * @param value The allowLargeDeadlineDespiteInterruptionRisk to set. * @return This builder for chaining. */ @@ -5364,8 +4824,6 @@ public Builder setAllowLargeDeadlineDespiteInterruptionRisk(boolean value) { return this; } /** - * - * *
      * If this is set, then the request can have a deadline
      * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -5375,7 +4833,6 @@ public Builder setAllowLargeDeadlineDespiteInterruptionRisk(boolean value) {
      * 
* * bool allow_large_deadline_despite_interruption_risk = 14; - * * @return This builder for chaining. */ public Builder clearAllowLargeDeadlineDespiteInterruptionRisk() { @@ -5385,10 +4842,8 @@ public Builder clearAllowLargeDeadlineDespiteInterruptionRisk() { return this; } - private boolean useGeodesicDistances_; + private boolean useGeodesicDistances_ ; /** - * - * *
      * If true, travel distances will be computed using geodesic distances instead
      * of Google Maps distances, and travel times will be computed using geodesic
@@ -5396,7 +4851,6 @@ public Builder clearAllowLargeDeadlineDespiteInterruptionRisk() {
      * 
* * bool use_geodesic_distances = 15; - * * @return The useGeodesicDistances. */ @java.lang.Override @@ -5404,8 +4858,6 @@ public boolean getUseGeodesicDistances() { return useGeodesicDistances_; } /** - * - * *
      * If true, travel distances will be computed using geodesic distances instead
      * of Google Maps distances, and travel times will be computed using geodesic
@@ -5413,7 +4865,6 @@ public boolean getUseGeodesicDistances() {
      * 
* * bool use_geodesic_distances = 15; - * * @param value The useGeodesicDistances to set. * @return This builder for chaining. */ @@ -5425,8 +4876,6 @@ public Builder setUseGeodesicDistances(boolean value) { return this; } /** - * - * *
      * If true, travel distances will be computed using geodesic distances instead
      * of Google Maps distances, and travel times will be computed using geodesic
@@ -5434,7 +4883,6 @@ public Builder setUseGeodesicDistances(boolean value) {
      * 
* * bool use_geodesic_distances = 15; - * * @return This builder for chaining. */ public Builder clearUseGeodesicDistances() { @@ -5444,10 +4892,8 @@ public Builder clearUseGeodesicDistances() { return this; } - private double geodesicMetersPerSecond_; + private double geodesicMetersPerSecond_ ; /** - * - * *
      * When `use_geodesic_distances` is true, this field must be set and defines
      * the speed applied to compute travel times. Its value must be at least 1.0
@@ -5455,7 +4901,6 @@ public Builder clearUseGeodesicDistances() {
      * 
* * optional double geodesic_meters_per_second = 16; - * * @return Whether the geodesicMetersPerSecond field is set. */ @java.lang.Override @@ -5463,8 +4908,6 @@ public boolean hasGeodesicMetersPerSecond() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * When `use_geodesic_distances` is true, this field must be set and defines
      * the speed applied to compute travel times. Its value must be at least 1.0
@@ -5472,7 +4915,6 @@ public boolean hasGeodesicMetersPerSecond() {
      * 
* * optional double geodesic_meters_per_second = 16; - * * @return The geodesicMetersPerSecond. */ @java.lang.Override @@ -5480,8 +4922,6 @@ public double getGeodesicMetersPerSecond() { return geodesicMetersPerSecond_; } /** - * - * *
      * When `use_geodesic_distances` is true, this field must be set and defines
      * the speed applied to compute travel times. Its value must be at least 1.0
@@ -5489,7 +4929,6 @@ public double getGeodesicMetersPerSecond() {
      * 
* * optional double geodesic_meters_per_second = 16; - * * @param value The geodesicMetersPerSecond to set. * @return This builder for chaining. */ @@ -5501,8 +4940,6 @@ public Builder setGeodesicMetersPerSecond(double value) { return this; } /** - * - * *
      * When `use_geodesic_distances` is true, this field must be set and defines
      * the speed applied to compute travel times. Its value must be at least 1.0
@@ -5510,7 +4947,6 @@ public Builder setGeodesicMetersPerSecond(double value) {
      * 
* * optional double geodesic_meters_per_second = 16; - * * @return This builder for chaining. */ public Builder clearGeodesicMetersPerSecond() { @@ -5520,10 +4956,8 @@ public Builder clearGeodesicMetersPerSecond() { return this; } - private int maxValidationErrors_; + private int maxValidationErrors_ ; /** - * - * *
      * Truncates the number of validation errors returned. These errors are
      * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -5535,7 +4969,6 @@ public Builder clearGeodesicMetersPerSecond() {
      * 
* * optional int32 max_validation_errors = 5; - * * @return Whether the maxValidationErrors field is set. */ @java.lang.Override @@ -5543,8 +4976,6 @@ public boolean hasMaxValidationErrors() { return ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Truncates the number of validation errors returned. These errors are
      * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -5556,7 +4987,6 @@ public boolean hasMaxValidationErrors() {
      * 
* * optional int32 max_validation_errors = 5; - * * @return The maxValidationErrors. */ @java.lang.Override @@ -5564,8 +4994,6 @@ public int getMaxValidationErrors() { return maxValidationErrors_; } /** - * - * *
      * Truncates the number of validation errors returned. These errors are
      * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -5577,7 +5005,6 @@ public int getMaxValidationErrors() {
      * 
* * optional int32 max_validation_errors = 5; - * * @param value The maxValidationErrors to set. * @return This builder for chaining. */ @@ -5589,8 +5016,6 @@ public Builder setMaxValidationErrors(int value) { return this; } /** - * - * *
      * Truncates the number of validation errors returned. These errors are
      * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -5602,7 +5027,6 @@ public Builder setMaxValidationErrors(int value) {
      * 
* * optional int32 max_validation_errors = 5; - * * @return This builder for chaining. */ public Builder clearMaxValidationErrors() { @@ -5614,21 +5038,19 @@ public Builder clearMaxValidationErrors() { private java.lang.Object label_ = ""; /** - * - * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -5637,22 +5059,21 @@ public java.lang.String getLabel() { } } /** - * - * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -5660,37 +5081,30 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } label_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** - * - * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; - * * @return This builder for chaining. */ public Builder clearLabel() { @@ -5700,22 +5114,18 @@ public Builder clearLabel() { return this; } /** - * - * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00010000; @@ -5723,10 +5133,8 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { return this; } - private boolean populateTravelStepPolylines_; + private boolean populateTravelStepPolylines_ ; /** - * - * *
      * Deprecated: Use
      * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -5737,19 +5145,15 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines - * is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @return The populateTravelStepPolylines. */ @java.lang.Override - @java.lang.Deprecated - public boolean getPopulateTravelStepPolylines() { + @java.lang.Deprecated public boolean getPopulateTravelStepPolylines() { return populateTravelStepPolylines_; } /** - * - * *
      * Deprecated: Use
      * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -5760,14 +5164,12 @@ public boolean getPopulateTravelStepPolylines() {
      * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines - * is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @param value The populateTravelStepPolylines to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setPopulateTravelStepPolylines(boolean value) { + @java.lang.Deprecated public Builder setPopulateTravelStepPolylines(boolean value) { populateTravelStepPolylines_ = value; bitField0_ |= 0x00020000; @@ -5775,8 +5177,6 @@ public Builder setPopulateTravelStepPolylines(boolean value) { return this; } /** - * - * *
      * Deprecated: Use
      * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -5787,21 +5187,19 @@ public Builder setPopulateTravelStepPolylines(boolean value) {
      * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines - * is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearPopulateTravelStepPolylines() { + @java.lang.Deprecated public Builder clearPopulateTravelStepPolylines() { bitField0_ = (bitField0_ & ~0x00020000); populateTravelStepPolylines_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5811,12 +5209,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursRequest) private static final com.google.cloud.optimization.v1.OptimizeToursRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursRequest(); } @@ -5825,27 +5223,27 @@ public static com.google.cloud.optimization.v1.OptimizeToursRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizeToursRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizeToursRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5860,4 +5258,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.OptimizeToursRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java similarity index 93% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java index 9f9c47d579a8..9091a70a2573 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface OptimizeToursRequestOrBuilder - extends +public interface OptimizeToursRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Target project and location to make a call.
    *
@@ -35,13 +17,10 @@ public interface OptimizeToursRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Target project and location to make a call.
    *
@@ -51,14 +30,12 @@ public interface OptimizeToursRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -69,13 +46,10 @@ public interface OptimizeToursRequestOrBuilder
    * 
* * .google.protobuf.Duration timeout = 2; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -86,13 +60,10 @@ public interface OptimizeToursRequestOrBuilder
    * 
* * .google.protobuf.Duration timeout = 2; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -107,32 +78,24 @@ public interface OptimizeToursRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
 
   /**
-   *
-   *
    * 
    * Shipment model to solve.
    * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; - * * @return Whether the model field is set. */ boolean hasModel(); /** - * - * *
    * Shipment model to solve.
    * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; - * * @return The model. */ com.google.cloud.optimization.v1.ShipmentModel getModel(); /** - * - * *
    * Shipment model to solve.
    * 
@@ -142,58 +105,44 @@ public interface OptimizeToursRequestOrBuilder com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder(); /** - * - * *
    * By default, the solving mode is `DEFAULT_SOLVE` (0).
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @return The enum numeric value on the wire for solvingMode. */ int getSolvingModeValue(); /** - * - * *
    * By default, the solving mode is `DEFAULT_SOLVE` (0).
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; - * * @return The solvingMode. */ com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode getSolvingMode(); /** - * - * *
    * Search mode used to solve the request.
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @return The enum numeric value on the wire for searchMode. */ int getSearchModeValue(); /** - * - * *
    * Search mode used to solve the request.
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; - * * @return The searchMode. */ com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearchMode(); /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -226,14 +175,11 @@ public interface OptimizeToursRequestOrBuilder
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - java.util.List + java.util.List getInjectedFirstSolutionRoutesList(); /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -266,13 +212,10 @@ public interface OptimizeToursRequestOrBuilder
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRoutes(int index); /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -305,13 +248,10 @@ public interface OptimizeToursRequestOrBuilder
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ int getInjectedFirstSolutionRoutesCount(); /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -344,14 +284,11 @@ public interface OptimizeToursRequestOrBuilder
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ - java.util.List + java.util.List getInjectedFirstSolutionRoutesOrBuilderList(); /** - * - * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -384,15 +321,12 @@ public interface OptimizeToursRequestOrBuilder
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; */ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolutionRoutesOrBuilder( int index); /** - * - * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -404,16 +338,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    * instead.
    * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; * @return Whether the injectedSolutionConstraint field is set. */ boolean hasInjectedSolutionConstraint(); /** - * - * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -425,16 +354,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    * instead.
    * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; * @return The injectedSolutionConstraint. */ com.google.cloud.optimization.v1.InjectedSolutionConstraint getInjectedSolutionConstraint(); /** - * - * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -446,16 +370,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    * instead.
    * 
* - * - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; - * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; */ - com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder - getInjectedSolutionConstraintOrBuilder(); + com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder getInjectedSolutionConstraintOrBuilder(); /** - * - * *
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -477,10 +396,9 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
    */
-  java.util.List getRefreshDetailsRoutesList();
+  java.util.List 
+      getRefreshDetailsRoutesList();
   /**
-   *
-   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -504,8 +422,6 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    */
   com.google.cloud.optimization.v1.ShipmentRoute getRefreshDetailsRoutes(int index);
   /**
-   *
-   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -529,8 +445,6 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    */
   int getRefreshDetailsRoutesCount();
   /**
-   *
-   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -552,11 +466,9 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
    */
-  java.util.List
+  java.util.List 
       getRefreshDetailsRoutesOrBuilderList();
   /**
-   *
-   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -582,8 +494,6 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
       int index);
 
   /**
-   *
-   *
    * 
    * If true:
    *
@@ -653,14 +563,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool interpret_injected_solutions_using_labels = 10; - * * @return The interpretInjectedSolutionsUsingLabels. */ boolean getInterpretInjectedSolutionsUsingLabels(); /** - * - * *
    * Consider traffic estimation in calculating `ShipmentRoute` fields
    * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -673,27 +580,21 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool consider_road_traffic = 11; - * * @return The considerRoadTraffic. */ boolean getConsiderRoadTraffic(); /** - * - * *
    * If true, polylines will be populated in response `ShipmentRoute`s.
    * 
* * bool populate_polylines = 12; - * * @return The populatePolylines. */ boolean getPopulatePolylines(); /** - * - * *
    * If true, polylines will be populated in response
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -702,14 +603,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool populate_transition_polylines = 13; - * * @return The populateTransitionPolylines. */ boolean getPopulateTransitionPolylines(); /** - * - * *
    * If this is set, then the request can have a deadline
    * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -719,14 +617,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool allow_large_deadline_despite_interruption_risk = 14; - * * @return The allowLargeDeadlineDespiteInterruptionRisk. */ boolean getAllowLargeDeadlineDespiteInterruptionRisk(); /** - * - * *
    * If true, travel distances will be computed using geodesic distances instead
    * of Google Maps distances, and travel times will be computed using geodesic
@@ -734,14 +629,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool use_geodesic_distances = 15; - * * @return The useGeodesicDistances. */ boolean getUseGeodesicDistances(); /** - * - * *
    * When `use_geodesic_distances` is true, this field must be set and defines
    * the speed applied to compute travel times. Its value must be at least 1.0
@@ -749,13 +641,10 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * optional double geodesic_meters_per_second = 16; - * * @return Whether the geodesicMetersPerSecond field is set. */ boolean hasGeodesicMetersPerSecond(); /** - * - * *
    * When `use_geodesic_distances` is true, this field must be set and defines
    * the speed applied to compute travel times. Its value must be at least 1.0
@@ -763,14 +652,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * optional double geodesic_meters_per_second = 16; - * * @return The geodesicMetersPerSecond. */ double getGeodesicMetersPerSecond(); /** - * - * *
    * Truncates the number of validation errors returned. These errors are
    * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -782,13 +668,10 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * optional int32 max_validation_errors = 5; - * * @return Whether the maxValidationErrors field is set. */ boolean hasMaxValidationErrors(); /** - * - * *
    * Truncates the number of validation errors returned. These errors are
    * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -800,41 +683,33 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * optional int32 max_validation_errors = 5; - * * @return The maxValidationErrors. */ int getMaxValidationErrors(); /** - * - * *
    * Label that may be used to identify this request, reported back in the
    * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
    * 
* * string label = 17; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
    * Label that may be used to identify this request, reported back in the
    * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
    * 
* * string label = 17; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
    * Deprecated: Use
    * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -845,11 +720,9 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @return The populateTravelStepPolylines. */ - @java.lang.Deprecated - boolean getPopulateTravelStepPolylines(); + @java.lang.Deprecated boolean getPopulateTravelStepPolylines(); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java similarity index 74% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java index 92cf83f709ef..92f4470fa5ca 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Response after solving a tour optimization problem containing the routes
  * followed by each vehicle, the shipments which have been skipped and the
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursResponse}
  */
-public final class OptimizeToursResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class OptimizeToursResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursResponse)
     OptimizeToursResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use OptimizeToursResponse.newBuilder() to construct.
   private OptimizeToursResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private OptimizeToursResponse() {
     routes_ = java.util.Collections.emptyList();
     requestLabel_ = "";
@@ -48,33 +30,29 @@ private OptimizeToursResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new OptimizeToursResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.OptimizeToursResponse.class,
-            com.google.cloud.optimization.v1.OptimizeToursResponse.Builder.class);
+            com.google.cloud.optimization.v1.OptimizeToursResponse.class, com.google.cloud.optimization.v1.OptimizeToursResponse.Builder.class);
   }
 
-  public interface MetricsOrBuilder
-      extends
+  public interface MetricsOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursResponse.Metrics)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -83,13 +61,10 @@ public interface MetricsOrBuilder
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; - * * @return Whether the aggregatedRouteMetrics field is set. */ boolean hasAggregatedRouteMetrics(); /** - * - * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -98,13 +73,10 @@ public interface MetricsOrBuilder
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; - * * @return The aggregatedRouteMetrics. */ com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetrics(); /** - * - * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -114,25 +86,19 @@ public interface MetricsOrBuilder
      *
      * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
      */
-    com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder
-        getAggregatedRouteMetricsOrBuilder();
+    com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getAggregatedRouteMetricsOrBuilder();
 
     /**
-     *
-     *
      * 
      * Number of mandatory shipments skipped.
      * 
* * int32 skipped_mandatory_shipment_count = 2; - * * @return The skippedMandatoryShipmentCount. */ int getSkippedMandatoryShipmentCount(); /** - * - * *
      * Number of vehicles used. Note: if a vehicle route is empty and
      * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -140,14 +106,11 @@ public interface MetricsOrBuilder
      * 
* * int32 used_vehicle_count = 3; - * * @return The usedVehicleCount. */ int getUsedVehicleCount(); /** - * - * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -155,13 +118,10 @@ public interface MetricsOrBuilder
      * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; - * * @return Whether the earliestVehicleStartTime field is set. */ boolean hasEarliestVehicleStartTime(); /** - * - * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -169,13 +129,10 @@ public interface MetricsOrBuilder
      * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; - * * @return The earliestVehicleStartTime. */ com.google.protobuf.Timestamp getEarliestVehicleStartTime(); /** - * - * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -187,8 +144,6 @@ public interface MetricsOrBuilder
     com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -196,13 +151,10 @@ public interface MetricsOrBuilder
      * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; - * * @return Whether the latestVehicleEndTime field is set. */ boolean hasLatestVehicleEndTime(); /** - * - * *
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -210,13 +162,10 @@ public interface MetricsOrBuilder
      * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; - * * @return The latestVehicleEndTime. */ com.google.protobuf.Timestamp getLatestVehicleEndTime(); /** - * - * *
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -228,8 +177,6 @@ public interface MetricsOrBuilder
     com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -246,8 +193,6 @@ public interface MetricsOrBuilder
      */
     int getCostsCount();
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -262,13 +207,15 @@ public interface MetricsOrBuilder
      *
      * map<string, double> costs = 10;
      */
-    boolean containsCosts(java.lang.String key);
-    /** Use {@link #getCostsMap()} instead. */
+    boolean containsCosts(
+        java.lang.String key);
+    /**
+     * Use {@link #getCostsMap()} instead.
+     */
     @java.lang.Deprecated
-    java.util.Map getCosts();
+    java.util.Map
+    getCosts();
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -283,10 +230,9 @@ public interface MetricsOrBuilder
      *
      * map<string, double> costs = 10;
      */
-    java.util.Map getCostsMap();
+    java.util.Map
+    getCostsMap();
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -301,10 +247,10 @@ public interface MetricsOrBuilder
      *
      * map<string, double> costs = 10;
      */
-    double getCostsOrDefault(java.lang.String key, double defaultValue);
+    double getCostsOrDefault(
+        java.lang.String key,
+        double defaultValue);
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -319,79 +265,73 @@ public interface MetricsOrBuilder
      *
      * map<string, double> costs = 10;
      */
-    double getCostsOrThrow(java.lang.String key);
+    double getCostsOrThrow(
+        java.lang.String key);
 
     /**
-     *
-     *
      * 
      * Total cost of the solution. The sum of all values in the costs map.
      * 
* * double total_cost = 6; - * * @return The totalCost. */ double getTotalCost(); } /** - * - * *
    * Overall metrics, aggregated over all routes.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursResponse.Metrics} */ - public static final class Metrics extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Metrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursResponse.Metrics) MetricsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Metrics.newBuilder() to construct. private Metrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Metrics() {} + private Metrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Metrics(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.class, - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.class, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder.class); } public static final int AGGREGATED_ROUTE_METRICS_FIELD_NUMBER = 1; private com.google.cloud.optimization.v1.AggregatedMetrics aggregatedRouteMetrics_; /** - * - * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -400,7 +340,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; - * * @return Whether the aggregatedRouteMetrics field is set. */ @java.lang.Override @@ -408,8 +347,6 @@ public boolean hasAggregatedRouteMetrics() { return aggregatedRouteMetrics_ != null; } /** - * - * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -418,18 +355,13 @@ public boolean hasAggregatedRouteMetrics() {
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; - * * @return The aggregatedRouteMetrics. */ @java.lang.Override public com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetrics() { - return aggregatedRouteMetrics_ == null - ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() - : aggregatedRouteMetrics_; + return aggregatedRouteMetrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : aggregatedRouteMetrics_; } /** - * - * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -440,24 +372,18 @@ public com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetr
      * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
      */
     @java.lang.Override
-    public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder
-        getAggregatedRouteMetricsOrBuilder() {
-      return aggregatedRouteMetrics_ == null
-          ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()
-          : aggregatedRouteMetrics_;
+    public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getAggregatedRouteMetricsOrBuilder() {
+      return aggregatedRouteMetrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : aggregatedRouteMetrics_;
     }
 
     public static final int SKIPPED_MANDATORY_SHIPMENT_COUNT_FIELD_NUMBER = 2;
     private int skippedMandatoryShipmentCount_ = 0;
     /**
-     *
-     *
      * 
      * Number of mandatory shipments skipped.
      * 
* * int32 skipped_mandatory_shipment_count = 2; - * * @return The skippedMandatoryShipmentCount. */ @java.lang.Override @@ -468,8 +394,6 @@ public int getSkippedMandatoryShipmentCount() { public static final int USED_VEHICLE_COUNT_FIELD_NUMBER = 3; private int usedVehicleCount_ = 0; /** - * - * *
      * Number of vehicles used. Note: if a vehicle route is empty and
      * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -477,7 +401,6 @@ public int getSkippedMandatoryShipmentCount() {
      * 
* * int32 used_vehicle_count = 3; - * * @return The usedVehicleCount. */ @java.lang.Override @@ -488,8 +411,6 @@ public int getUsedVehicleCount() { public static final int EARLIEST_VEHICLE_START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp earliestVehicleStartTime_; /** - * - * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -497,7 +418,6 @@ public int getUsedVehicleCount() {
      * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; - * * @return Whether the earliestVehicleStartTime field is set. */ @java.lang.Override @@ -505,8 +425,6 @@ public boolean hasEarliestVehicleStartTime() { return earliestVehicleStartTime_ != null; } /** - * - * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -514,18 +432,13 @@ public boolean hasEarliestVehicleStartTime() {
      * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; - * * @return The earliestVehicleStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEarliestVehicleStartTime() { - return earliestVehicleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestVehicleStartTime_; + return earliestVehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVehicleStartTime_; } /** - * - * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -536,16 +449,12 @@ public com.google.protobuf.Timestamp getEarliestVehicleStartTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuilder() {
-      return earliestVehicleStartTime_ == null
-          ? com.google.protobuf.Timestamp.getDefaultInstance()
-          : earliestVehicleStartTime_;
+      return earliestVehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVehicleStartTime_;
     }
 
     public static final int LATEST_VEHICLE_END_TIME_FIELD_NUMBER = 5;
     private com.google.protobuf.Timestamp latestVehicleEndTime_;
     /**
-     *
-     *
      * 
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -553,7 +462,6 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
      * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; - * * @return Whether the latestVehicleEndTime field is set. */ @java.lang.Override @@ -561,8 +469,6 @@ public boolean hasLatestVehicleEndTime() { return latestVehicleEndTime_ != null; } /** - * - * *
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -570,18 +476,13 @@ public boolean hasLatestVehicleEndTime() {
      * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; - * * @return The latestVehicleEndTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLatestVehicleEndTime() { - return latestVehicleEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestVehicleEndTime_; + return latestVehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestVehicleEndTime_; } /** - * - * *
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -592,40 +493,36 @@ public com.google.protobuf.Timestamp getLatestVehicleEndTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder() {
-      return latestVehicleEndTime_ == null
-          ? com.google.protobuf.Timestamp.getDefaultInstance()
-          : latestVehicleEndTime_;
+      return latestVehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestVehicleEndTime_;
     }
 
     public static final int COSTS_FIELD_NUMBER = 10;
-
     private static final class CostsDefaultEntryHolder {
-      static final com.google.protobuf.MapEntry defaultEntry =
-          com.google.protobuf.MapEntry.newDefaultInstance(
-              com.google.cloud.optimization.v1.FleetRoutingProto
-                  .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor,
-              com.google.protobuf.WireFormat.FieldType.STRING,
-              "",
-              com.google.protobuf.WireFormat.FieldType.DOUBLE,
-              0D);
+      static final com.google.protobuf.MapEntry<
+          java.lang.String, java.lang.Double> defaultEntry =
+              com.google.protobuf.MapEntry
+              .newDefaultInstance(
+                  com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor, 
+                  com.google.protobuf.WireFormat.FieldType.STRING,
+                  "",
+                  com.google.protobuf.WireFormat.FieldType.DOUBLE,
+                  0D);
     }
-
     @SuppressWarnings("serial")
-    private com.google.protobuf.MapField costs_;
-
-    private com.google.protobuf.MapField internalGetCosts() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.Double> costs_;
+    private com.google.protobuf.MapField
+    internalGetCosts() {
       if (costs_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            CostsDefaultEntryHolder.defaultEntry);
       }
       return costs_;
     }
-
     public int getCostsCount() {
       return internalGetCosts().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -641,21 +538,20 @@ public int getCostsCount() {
      * map<string, double> costs = 10;
      */
     @java.lang.Override
-    public boolean containsCosts(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsCosts(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetCosts().getMap().containsKey(key);
     }
-    /** Use {@link #getCostsMap()} instead. */
+    /**
+     * Use {@link #getCostsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getCosts() {
       return getCostsMap();
     }
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -675,8 +571,6 @@ public java.util.Map getCostsMap() {
       return internalGetCosts().getMap();
     }
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -692,16 +586,15 @@ public java.util.Map getCostsMap() {
      * map<string, double> costs = 10;
      */
     @java.lang.Override
-    public double getCostsOrDefault(java.lang.String key, double defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetCosts().getMap();
+    public double getCostsOrDefault(
+        java.lang.String key,
+        double defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetCosts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -717,11 +610,11 @@ public double getCostsOrDefault(java.lang.String key, double defaultValue) {
      * map<string, double> costs = 10;
      */
     @java.lang.Override
-    public double getCostsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetCosts().getMap();
+    public double getCostsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetCosts().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -731,14 +624,11 @@ public double getCostsOrThrow(java.lang.String key) {
     public static final int TOTAL_COST_FIELD_NUMBER = 6;
     private double totalCost_ = 0D;
     /**
-     *
-     *
      * 
      * Total cost of the solution. The sum of all values in the costs map.
      * 
* * double total_cost = 6; - * * @return The totalCost. */ @java.lang.Override @@ -747,7 +637,6 @@ public double getTotalCost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -759,7 +648,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (aggregatedRouteMetrics_ != null) { output.writeMessage(1, getAggregatedRouteMetrics()); } @@ -778,8 +668,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { output.writeDouble(6, totalCost_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetCosts(), CostsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCosts(), + CostsDefaultEntryHolder.defaultEntry, + 10); getUnknownFields().writeTo(output); } @@ -790,39 +684,38 @@ public int getSerializedSize() { size = 0; if (aggregatedRouteMetrics_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getAggregatedRouteMetrics()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAggregatedRouteMetrics()); } if (skippedMandatoryShipmentCount_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, skippedMandatoryShipmentCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, skippedMandatoryShipmentCount_); } if (usedVehicleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, usedVehicleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, usedVehicleCount_); } if (earliestVehicleStartTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getEarliestVehicleStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEarliestVehicleStartTime()); } if (latestVehicleEndTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLatestVehicleEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLatestVehicleEndTime()); } if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, totalCost_); - } - for (java.util.Map.Entry entry : - internalGetCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry costs__ = - CostsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, costs__); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, totalCost_); + } + for (java.util.Map.Entry entry + : internalGetCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry + costs__ = CostsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, costs__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -832,33 +725,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics other = - (com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics) obj; + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics other = (com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics) obj; if (hasAggregatedRouteMetrics() != other.hasAggregatedRouteMetrics()) return false; if (hasAggregatedRouteMetrics()) { - if (!getAggregatedRouteMetrics().equals(other.getAggregatedRouteMetrics())) return false; + if (!getAggregatedRouteMetrics() + .equals(other.getAggregatedRouteMetrics())) return false; } - if (getSkippedMandatoryShipmentCount() != other.getSkippedMandatoryShipmentCount()) - return false; - if (getUsedVehicleCount() != other.getUsedVehicleCount()) return false; + if (getSkippedMandatoryShipmentCount() + != other.getSkippedMandatoryShipmentCount()) return false; + if (getUsedVehicleCount() + != other.getUsedVehicleCount()) return false; if (hasEarliestVehicleStartTime() != other.hasEarliestVehicleStartTime()) return false; if (hasEarliestVehicleStartTime()) { - if (!getEarliestVehicleStartTime().equals(other.getEarliestVehicleStartTime())) - return false; + if (!getEarliestVehicleStartTime() + .equals(other.getEarliestVehicleStartTime())) return false; } if (hasLatestVehicleEndTime() != other.hasLatestVehicleEndTime()) return false; if (hasLatestVehicleEndTime()) { - if (!getLatestVehicleEndTime().equals(other.getLatestVehicleEndTime())) return false; + if (!getLatestVehicleEndTime() + .equals(other.getLatestVehicleEndTime())) return false; } - if (!internalGetCosts().equals(other.internalGetCosts())) return false; + if (!internalGetCosts().equals( + other.internalGetCosts())) return false; if (java.lang.Double.doubleToLongBits(getTotalCost()) - != java.lang.Double.doubleToLongBits(other.getTotalCost())) return false; + != java.lang.Double.doubleToLongBits( + other.getTotalCost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -891,104 +788,97 @@ public int hashCode() { hash = (53 * hash) + internalGetCosts().hashCode(); } hash = (37 * hash) + TOTAL_COST_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTotalCost())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTotalCost())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -998,61 +888,61 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Overall metrics, aggregated over all routes.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursResponse.Metrics} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursResponse.Metrics) com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 10: return internalGetCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 10: return internalGetMutableCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.class, - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.class, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder.class); } // Construct using com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1080,14 +970,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getDefaultInstanceForType() { return com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance(); } @@ -1102,23 +991,18 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics build() { @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics buildPartial() { - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics result = - new com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics result = new com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics result) { + private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.aggregatedRouteMetrics_ = - aggregatedRouteMetricsBuilder_ == null - ? aggregatedRouteMetrics_ - : aggregatedRouteMetricsBuilder_.build(); + result.aggregatedRouteMetrics_ = aggregatedRouteMetricsBuilder_ == null + ? aggregatedRouteMetrics_ + : aggregatedRouteMetricsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.skippedMandatoryShipmentCount_ = skippedMandatoryShipmentCount_; @@ -1127,16 +1011,14 @@ private void buildPartial0( result.usedVehicleCount_ = usedVehicleCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.earliestVehicleStartTime_ = - earliestVehicleStartTimeBuilder_ == null - ? earliestVehicleStartTime_ - : earliestVehicleStartTimeBuilder_.build(); + result.earliestVehicleStartTime_ = earliestVehicleStartTimeBuilder_ == null + ? earliestVehicleStartTime_ + : earliestVehicleStartTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.latestVehicleEndTime_ = - latestVehicleEndTimeBuilder_ == null - ? latestVehicleEndTime_ - : latestVehicleEndTimeBuilder_.build(); + result.latestVehicleEndTime_ = latestVehicleEndTimeBuilder_ == null + ? latestVehicleEndTime_ + : latestVehicleEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.costs_ = internalGetCosts(); @@ -1151,52 +1033,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics) { - return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics) other); + return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics other) { - if (other - == com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics other) { + if (other == com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance()) return this; if (other.hasAggregatedRouteMetrics()) { mergeAggregatedRouteMetrics(other.getAggregatedRouteMetrics()); } @@ -1212,7 +1088,8 @@ public Builder mergeFrom( if (other.hasLatestVehicleEndTime()) { mergeLatestVehicleEndTime(other.getLatestVehicleEndTime()); } - internalGetMutableCosts().mergeFrom(other.internalGetCosts()); + internalGetMutableCosts().mergeFrom( + other.internalGetCosts()); bitField0_ |= 0x00000020; if (other.getTotalCost() != 0D) { setTotalCost(other.getTotalCost()); @@ -1243,64 +1120,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getAggregatedRouteMetricsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - skippedMandatoryShipmentCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - usedVehicleCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getEarliestVehicleStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getLatestVehicleEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 49: - { - totalCost_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 49 - case 82: - { - com.google.protobuf.MapEntry costs__ = - input.readMessage( - CostsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableCosts() - .getMutableMap() - .put(costs__.getKey(), costs__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getAggregatedRouteMetricsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + skippedMandatoryShipmentCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + usedVehicleCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getEarliestVehicleStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getLatestVehicleEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 49: { + totalCost_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 49 + case 82: { + com.google.protobuf.MapEntry + costs__ = input.readMessage( + CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCosts().getMutableMap().put( + costs__.getKey(), costs__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1310,18 +1180,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.optimization.v1.AggregatedMetrics aggregatedRouteMetrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.AggregatedMetrics, - com.google.cloud.optimization.v1.AggregatedMetrics.Builder, - com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> - aggregatedRouteMetricsBuilder_; + com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> aggregatedRouteMetricsBuilder_; /** - * - * *
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1330,15 +1194,12 @@ public Builder mergeFrom(
        * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; - * * @return Whether the aggregatedRouteMetrics field is set. */ public boolean hasAggregatedRouteMetrics() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1347,21 +1208,16 @@ public boolean hasAggregatedRouteMetrics() {
        * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; - * * @return The aggregatedRouteMetrics. */ public com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetrics() { if (aggregatedRouteMetricsBuilder_ == null) { - return aggregatedRouteMetrics_ == null - ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() - : aggregatedRouteMetrics_; + return aggregatedRouteMetrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : aggregatedRouteMetrics_; } else { return aggregatedRouteMetricsBuilder_.getMessage(); } } /** - * - * *
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1371,8 +1227,7 @@ public com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetr
        *
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
-      public Builder setAggregatedRouteMetrics(
-          com.google.cloud.optimization.v1.AggregatedMetrics value) {
+      public Builder setAggregatedRouteMetrics(com.google.cloud.optimization.v1.AggregatedMetrics value) {
         if (aggregatedRouteMetricsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1386,8 +1241,6 @@ public Builder setAggregatedRouteMetrics(
         return this;
       }
       /**
-       *
-       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1409,8 +1262,6 @@ public Builder setAggregatedRouteMetrics(
         return this;
       }
       /**
-       *
-       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1420,13 +1271,11 @@ public Builder setAggregatedRouteMetrics(
        *
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
-      public Builder mergeAggregatedRouteMetrics(
-          com.google.cloud.optimization.v1.AggregatedMetrics value) {
+      public Builder mergeAggregatedRouteMetrics(com.google.cloud.optimization.v1.AggregatedMetrics value) {
         if (aggregatedRouteMetricsBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && aggregatedRouteMetrics_ != null
-              && aggregatedRouteMetrics_
-                  != com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            aggregatedRouteMetrics_ != null &&
+            aggregatedRouteMetrics_ != com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) {
             getAggregatedRouteMetricsBuilder().mergeFrom(value);
           } else {
             aggregatedRouteMetrics_ = value;
@@ -1439,8 +1288,6 @@ public Builder mergeAggregatedRouteMetrics(
         return this;
       }
       /**
-       *
-       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1461,8 +1308,6 @@ public Builder clearAggregatedRouteMetrics() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1472,15 +1317,12 @@ public Builder clearAggregatedRouteMetrics() {
        *
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
-      public com.google.cloud.optimization.v1.AggregatedMetrics.Builder
-          getAggregatedRouteMetricsBuilder() {
+      public com.google.cloud.optimization.v1.AggregatedMetrics.Builder getAggregatedRouteMetricsBuilder() {
         bitField0_ |= 0x00000001;
         onChanged();
         return getAggregatedRouteMetricsFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1490,19 +1332,15 @@ public Builder clearAggregatedRouteMetrics() {
        *
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
-      public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder
-          getAggregatedRouteMetricsOrBuilder() {
+      public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getAggregatedRouteMetricsOrBuilder() {
         if (aggregatedRouteMetricsBuilder_ != null) {
           return aggregatedRouteMetricsBuilder_.getMessageOrBuilder();
         } else {
-          return aggregatedRouteMetrics_ == null
-              ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()
-              : aggregatedRouteMetrics_;
+          return aggregatedRouteMetrics_ == null ?
+              com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : aggregatedRouteMetrics_;
         }
       }
       /**
-       *
-       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1513,32 +1351,26 @@ public Builder clearAggregatedRouteMetrics() {
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.optimization.v1.AggregatedMetrics,
-              com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
-              com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>
+          com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> 
           getAggregatedRouteMetricsFieldBuilder() {
         if (aggregatedRouteMetricsBuilder_ == null) {
-          aggregatedRouteMetricsBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.optimization.v1.AggregatedMetrics,
-                  com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
-                  com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>(
-                  getAggregatedRouteMetrics(), getParentForChildren(), isClean());
+          aggregatedRouteMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>(
+                  getAggregatedRouteMetrics(),
+                  getParentForChildren(),
+                  isClean());
           aggregatedRouteMetrics_ = null;
         }
         return aggregatedRouteMetricsBuilder_;
       }
 
-      private int skippedMandatoryShipmentCount_;
+      private int skippedMandatoryShipmentCount_ ;
       /**
-       *
-       *
        * 
        * Number of mandatory shipments skipped.
        * 
* * int32 skipped_mandatory_shipment_count = 2; - * * @return The skippedMandatoryShipmentCount. */ @java.lang.Override @@ -1546,14 +1378,11 @@ public int getSkippedMandatoryShipmentCount() { return skippedMandatoryShipmentCount_; } /** - * - * *
        * Number of mandatory shipments skipped.
        * 
* * int32 skipped_mandatory_shipment_count = 2; - * * @param value The skippedMandatoryShipmentCount to set. * @return This builder for chaining. */ @@ -1565,14 +1394,11 @@ public Builder setSkippedMandatoryShipmentCount(int value) { return this; } /** - * - * *
        * Number of mandatory shipments skipped.
        * 
* * int32 skipped_mandatory_shipment_count = 2; - * * @return This builder for chaining. */ public Builder clearSkippedMandatoryShipmentCount() { @@ -1582,10 +1408,8 @@ public Builder clearSkippedMandatoryShipmentCount() { return this; } - private int usedVehicleCount_; + private int usedVehicleCount_ ; /** - * - * *
        * Number of vehicles used. Note: if a vehicle route is empty and
        * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -1593,7 +1417,6 @@ public Builder clearSkippedMandatoryShipmentCount() {
        * 
* * int32 used_vehicle_count = 3; - * * @return The usedVehicleCount. */ @java.lang.Override @@ -1601,8 +1424,6 @@ public int getUsedVehicleCount() { return usedVehicleCount_; } /** - * - * *
        * Number of vehicles used. Note: if a vehicle route is empty and
        * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -1610,7 +1431,6 @@ public int getUsedVehicleCount() {
        * 
* * int32 used_vehicle_count = 3; - * * @param value The usedVehicleCount to set. * @return This builder for chaining. */ @@ -1622,8 +1442,6 @@ public Builder setUsedVehicleCount(int value) { return this; } /** - * - * *
        * Number of vehicles used. Note: if a vehicle route is empty and
        * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -1631,7 +1449,6 @@ public Builder setUsedVehicleCount(int value) {
        * 
* * int32 used_vehicle_count = 3; - * * @return This builder for chaining. */ public Builder clearUsedVehicleCount() { @@ -1643,13 +1460,8 @@ public Builder clearUsedVehicleCount() { private com.google.protobuf.Timestamp earliestVehicleStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - earliestVehicleStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestVehicleStartTimeBuilder_; /** - * - * *
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1657,15 +1469,12 @@ public Builder clearUsedVehicleCount() {
        * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; - * * @return Whether the earliestVehicleStartTime field is set. */ public boolean hasEarliestVehicleStartTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1673,21 +1482,16 @@ public boolean hasEarliestVehicleStartTime() {
        * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; - * * @return The earliestVehicleStartTime. */ public com.google.protobuf.Timestamp getEarliestVehicleStartTime() { if (earliestVehicleStartTimeBuilder_ == null) { - return earliestVehicleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestVehicleStartTime_; + return earliestVehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVehicleStartTime_; } else { return earliestVehicleStartTimeBuilder_.getMessage(); } } /** - * - * *
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1710,8 +1514,6 @@ public Builder setEarliestVehicleStartTime(com.google.protobuf.Timestamp value)
         return this;
       }
       /**
-       *
-       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1732,8 +1534,6 @@ public Builder setEarliestVehicleStartTime(
         return this;
       }
       /**
-       *
-       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1744,9 +1544,9 @@ public Builder setEarliestVehicleStartTime(
        */
       public Builder mergeEarliestVehicleStartTime(com.google.protobuf.Timestamp value) {
         if (earliestVehicleStartTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0)
-              && earliestVehicleStartTime_ != null
-              && earliestVehicleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0) &&
+            earliestVehicleStartTime_ != null &&
+            earliestVehicleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getEarliestVehicleStartTimeBuilder().mergeFrom(value);
           } else {
             earliestVehicleStartTime_ = value;
@@ -1759,8 +1559,6 @@ public Builder mergeEarliestVehicleStartTime(com.google.protobuf.Timestamp value
         return this;
       }
       /**
-       *
-       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1780,8 +1578,6 @@ public Builder clearEarliestVehicleStartTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1796,8 +1592,6 @@ public com.google.protobuf.Timestamp.Builder getEarliestVehicleStartTimeBuilder(
         return getEarliestVehicleStartTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1810,14 +1604,11 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
         if (earliestVehicleStartTimeBuilder_ != null) {
           return earliestVehicleStartTimeBuilder_.getMessageOrBuilder();
         } else {
-          return earliestVehicleStartTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : earliestVehicleStartTime_;
+          return earliestVehicleStartTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : earliestVehicleStartTime_;
         }
       }
       /**
-       *
-       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1827,17 +1618,14 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
        * .google.protobuf.Timestamp earliest_vehicle_start_time = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getEarliestVehicleStartTimeFieldBuilder() {
         if (earliestVehicleStartTimeBuilder_ == null) {
-          earliestVehicleStartTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getEarliestVehicleStartTime(), getParentForChildren(), isClean());
+          earliestVehicleStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getEarliestVehicleStartTime(),
+                  getParentForChildren(),
+                  isClean());
           earliestVehicleStartTime_ = null;
         }
         return earliestVehicleStartTimeBuilder_;
@@ -1845,13 +1633,8 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
 
       private com.google.protobuf.Timestamp latestVehicleEndTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
-          latestVehicleEndTimeBuilder_;
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> latestVehicleEndTimeBuilder_;
       /**
-       *
-       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1859,15 +1642,12 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
        * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; - * * @return Whether the latestVehicleEndTime field is set. */ public boolean hasLatestVehicleEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1875,21 +1655,16 @@ public boolean hasLatestVehicleEndTime() {
        * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; - * * @return The latestVehicleEndTime. */ public com.google.protobuf.Timestamp getLatestVehicleEndTime() { if (latestVehicleEndTimeBuilder_ == null) { - return latestVehicleEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestVehicleEndTime_; + return latestVehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestVehicleEndTime_; } else { return latestVehicleEndTimeBuilder_.getMessage(); } } /** - * - * *
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1912,8 +1687,6 @@ public Builder setLatestVehicleEndTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1934,8 +1707,6 @@ public Builder setLatestVehicleEndTime(
         return this;
       }
       /**
-       *
-       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1946,9 +1717,9 @@ public Builder setLatestVehicleEndTime(
        */
       public Builder mergeLatestVehicleEndTime(com.google.protobuf.Timestamp value) {
         if (latestVehicleEndTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000010) != 0)
-              && latestVehicleEndTime_ != null
-              && latestVehicleEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000010) != 0) &&
+            latestVehicleEndTime_ != null &&
+            latestVehicleEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getLatestVehicleEndTimeBuilder().mergeFrom(value);
           } else {
             latestVehicleEndTime_ = value;
@@ -1961,8 +1732,6 @@ public Builder mergeLatestVehicleEndTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1982,8 +1751,6 @@ public Builder clearLatestVehicleEndTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1998,8 +1765,6 @@ public com.google.protobuf.Timestamp.Builder getLatestVehicleEndTimeBuilder() {
         return getLatestVehicleEndTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -2012,14 +1777,11 @@ public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder()
         if (latestVehicleEndTimeBuilder_ != null) {
           return latestVehicleEndTimeBuilder_.getMessageOrBuilder();
         } else {
-          return latestVehicleEndTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : latestVehicleEndTime_;
+          return latestVehicleEndTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : latestVehicleEndTime_;
         }
       }
       /**
-       *
-       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -2029,35 +1791,34 @@ public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder()
        * .google.protobuf.Timestamp latest_vehicle_end_time = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getLatestVehicleEndTimeFieldBuilder() {
         if (latestVehicleEndTimeBuilder_ == null) {
-          latestVehicleEndTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getLatestVehicleEndTime(), getParentForChildren(), isClean());
+          latestVehicleEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getLatestVehicleEndTime(),
+                  getParentForChildren(),
+                  isClean());
           latestVehicleEndTime_ = null;
         }
         return latestVehicleEndTimeBuilder_;
       }
 
-      private com.google.protobuf.MapField costs_;
-
-      private com.google.protobuf.MapField internalGetCosts() {
+      private com.google.protobuf.MapField<
+          java.lang.String, java.lang.Double> costs_;
+      private com.google.protobuf.MapField
+          internalGetCosts() {
         if (costs_ == null) {
-          return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry);
+          return com.google.protobuf.MapField.emptyMapField(
+              CostsDefaultEntryHolder.defaultEntry);
         }
         return costs_;
       }
-
       private com.google.protobuf.MapField
           internalGetMutableCosts() {
         if (costs_ == null) {
-          costs_ = com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry);
+          costs_ = com.google.protobuf.MapField.newMapField(
+              CostsDefaultEntryHolder.defaultEntry);
         }
         if (!costs_.isMutable()) {
           costs_ = costs_.copy();
@@ -2066,13 +1827,10 @@ private com.google.protobuf.MapField interna
         onChanged();
         return costs_;
       }
-
       public int getCostsCount() {
         return internalGetCosts().getMap().size();
       }
       /**
-       *
-       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -2088,21 +1846,20 @@ public int getCostsCount() {
        * map<string, double> costs = 10;
        */
       @java.lang.Override
-      public boolean containsCosts(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
+      public boolean containsCosts(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
         return internalGetCosts().getMap().containsKey(key);
       }
-      /** Use {@link #getCostsMap()} instead. */
+      /**
+       * Use {@link #getCostsMap()} instead.
+       */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getCosts() {
         return getCostsMap();
       }
       /**
-       *
-       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -2122,8 +1879,6 @@ public java.util.Map getCostsMap() {
         return internalGetCosts().getMap();
       }
       /**
-       *
-       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -2139,16 +1894,15 @@ public java.util.Map getCostsMap() {
        * map<string, double> costs = 10;
        */
       @java.lang.Override
-      public double getCostsOrDefault(java.lang.String key, double defaultValue) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        java.util.Map map = internalGetCosts().getMap();
+      public double getCostsOrDefault(
+          java.lang.String key,
+          double defaultValue) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        java.util.Map map =
+            internalGetCosts().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
-       *
-       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -2164,25 +1918,23 @@ public double getCostsOrDefault(java.lang.String key, double defaultValue) {
        * map<string, double> costs = 10;
        */
       @java.lang.Override
-      public double getCostsOrThrow(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        java.util.Map map = internalGetCosts().getMap();
+      public double getCostsOrThrow(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        java.util.Map map =
+            internalGetCosts().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
         return map.get(key);
       }
-
       public Builder clearCosts() {
         bitField0_ = (bitField0_ & ~0x00000020);
-        internalGetMutableCosts().getMutableMap().clear();
+        internalGetMutableCosts().getMutableMap()
+            .clear();
         return this;
       }
       /**
-       *
-       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -2197,22 +1949,23 @@ public Builder clearCosts() {
        *
        * map<string, double> costs = 10;
        */
-      public Builder removeCosts(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        internalGetMutableCosts().getMutableMap().remove(key);
+      public Builder removeCosts(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        internalGetMutableCosts().getMutableMap()
+            .remove(key);
         return this;
       }
-      /** Use alternate mutation accessors instead. */
+      /**
+       * Use alternate mutation accessors instead.
+       */
       @java.lang.Deprecated
-      public java.util.Map getMutableCosts() {
+      public java.util.Map
+          getMutableCosts() {
         bitField0_ |= 0x00000020;
         return internalGetMutableCosts().getMutableMap();
       }
       /**
-       *
-       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -2227,18 +1980,17 @@ public java.util.Map getMutableCosts() {
        *
        * map<string, double> costs = 10;
        */
-      public Builder putCosts(java.lang.String key, double value) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
+      public Builder putCosts(
+          java.lang.String key,
+          double value) {
+        if (key == null) { throw new NullPointerException("map key"); }
 
-        internalGetMutableCosts().getMutableMap().put(key, value);
+        internalGetMutableCosts().getMutableMap()
+            .put(key, value);
         bitField0_ |= 0x00000020;
         return this;
       }
       /**
-       *
-       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -2253,22 +2005,21 @@ public Builder putCosts(java.lang.String key, double value) {
        *
        * map<string, double> costs = 10;
        */
-      public Builder putAllCosts(java.util.Map values) {
-        internalGetMutableCosts().getMutableMap().putAll(values);
+      public Builder putAllCosts(
+          java.util.Map values) {
+        internalGetMutableCosts().getMutableMap()
+            .putAll(values);
         bitField0_ |= 0x00000020;
         return this;
       }
 
-      private double totalCost_;
+      private double totalCost_ ;
       /**
-       *
-       *
        * 
        * Total cost of the solution. The sum of all values in the costs map.
        * 
* * double total_cost = 6; - * * @return The totalCost. */ @java.lang.Override @@ -2276,14 +2027,11 @@ public double getTotalCost() { return totalCost_; } /** - * - * *
        * Total cost of the solution. The sum of all values in the costs map.
        * 
* * double total_cost = 6; - * * @param value The totalCost to set. * @return This builder for chaining. */ @@ -2295,14 +2043,11 @@ public Builder setTotalCost(double value) { return this; } /** - * - * *
        * Total cost of the solution. The sum of all values in the costs map.
        * 
* * double total_cost = 6; - * * @return This builder for chaining. */ public Builder clearTotalCost() { @@ -2311,7 +2056,6 @@ public Builder clearTotalCost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2324,44 +2068,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursResponse.Metrics) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursResponse.Metrics) - private static final com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics(); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics - getDefaultInstance() { + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2373,19 +2114,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ROUTES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List routes_; /** - * - * *
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2398,8 +2136,6 @@ public java.util.List getRoutesL
     return routes_;
   }
   /**
-   *
-   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2408,13 +2144,11 @@ public java.util.List getRoutesL
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRoutesOrBuilderList() {
     return routes_;
   }
   /**
-   *
-   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2427,8 +2161,6 @@ public int getRoutesCount() {
     return routes_.size();
   }
   /**
-   *
-   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2441,8 +2173,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
     return routes_.get(index);
   }
   /**
-   *
-   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2451,17 +2181,15 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index) {
+  public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
+      int index) {
     return routes_.get(index);
   }
 
   public static final int REQUEST_LABEL_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object requestLabel_ = "";
   /**
-   *
-   *
    * 
    * Copy of the
    * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -2469,7 +2197,6 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
    * 
* * string request_label = 3; - * * @return The requestLabel. */ @java.lang.Override @@ -2478,15 +2205,14 @@ public java.lang.String getRequestLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestLabel_ = s; return s; } } /** - * - * *
    * Copy of the
    * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -2494,15 +2220,16 @@ public java.lang.String getRequestLabel() {
    * 
* * string request_label = 3; - * * @return The bytes for requestLabel. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestLabelBytes() { + public com.google.protobuf.ByteString + getRequestLabelBytes() { java.lang.Object ref = requestLabel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestLabel_ = b; return b; } else { @@ -2511,12 +2238,9 @@ public com.google.protobuf.ByteString getRequestLabelBytes() { } public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List skippedShipments_; /** - * - * *
    * The list of all shipments skipped.
    * 
@@ -2524,13 +2248,10 @@ public com.google.protobuf.ByteString getRequestLabelBytes() { * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ @java.lang.Override - public java.util.List - getSkippedShipmentsList() { + public java.util.List getSkippedShipmentsList() { return skippedShipments_; } /** - * - * *
    * The list of all shipments skipped.
    * 
@@ -2538,13 +2259,11 @@ public com.google.protobuf.ByteString getRequestLabelBytes() { * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ @java.lang.Override - public java.util.List + public java.util.List getSkippedShipmentsOrBuilderList() { return skippedShipments_; } /** - * - * *
    * The list of all shipments skipped.
    * 
@@ -2556,8 +2275,6 @@ public int getSkippedShipmentsCount() { return skippedShipments_.size(); } /** - * - * *
    * The list of all shipments skipped.
    * 
@@ -2569,8 +2286,6 @@ public com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int return skippedShipments_.get(index); } /** - * - * *
    * The list of all shipments skipped.
    * 
@@ -2584,13 +2299,9 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm } public static final int VALIDATION_ERRORS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List - validationErrors_; + private java.util.List validationErrors_; /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2598,18 +2309,13 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ @java.lang.Override - public java.util.List - getValidationErrorsList() { + public java.util.List getValidationErrorsList() { return validationErrors_; } /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2617,19 +2323,14 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> + public java.util.List getValidationErrorsOrBuilderList() { return validationErrors_; } /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2637,17 +2338,13 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ @java.lang.Override public int getValidationErrorsCount() { return validationErrors_.size(); } /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2655,18 +2352,13 @@ public int getValidationErrorsCount() {
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors(int index) { return validationErrors_.get(index); } /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2674,27 +2366,22 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidati
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder - getValidationErrorsOrBuilder(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder getValidationErrorsOrBuilder( + int index) { return validationErrors_.get(index); } public static final int METRICS_FIELD_NUMBER = 6; private com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics_; /** - * - * *
    * Duration, distance and usage metrics for this solution.
    * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; - * * @return Whether the metrics field is set. */ @java.lang.Override @@ -2702,25 +2389,18 @@ public boolean hasMetrics() { return metrics_ != null; } /** - * - * *
    * Duration, distance and usage metrics for this solution.
    * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; - * * @return The metrics. */ @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics() { - return metrics_ == null - ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() - : metrics_; + return metrics_ == null ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() : metrics_; } /** - * - * *
    * Duration, distance and usage metrics for this solution.
    * 
@@ -2728,18 +2408,13 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder - getMetricsOrBuilder() { - return metrics_ == null - ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() - : metrics_; + public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder getMetricsOrBuilder() { + return metrics_ == null ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() : metrics_; } public static final int TOTAL_COST_FIELD_NUMBER = 2; private double totalCost_ = 0D; /** - * - * *
    * Deprecated: Use
    * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -2749,19 +2424,16 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics
    * 
* * double total_cost = 2 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=433 + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=433 * @return The totalCost. */ @java.lang.Override - @java.lang.Deprecated - public double getTotalCost() { + @java.lang.Deprecated public double getTotalCost() { return totalCost_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2773,7 +2445,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -2802,22 +2475,27 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, routes_.get(i)); } if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, totalCost_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, totalCost_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestLabel_); } for (int i = 0; i < skippedShipments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, skippedShipments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, skippedShipments_.get(i)); } for (int i = 0; i < validationErrors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, validationErrors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, validationErrors_.get(i)); } if (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetrics()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMetrics()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2827,24 +2505,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursResponse)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursResponse other = - (com.google.cloud.optimization.v1.OptimizeToursResponse) obj; + com.google.cloud.optimization.v1.OptimizeToursResponse other = (com.google.cloud.optimization.v1.OptimizeToursResponse) obj; - if (!getRoutesList().equals(other.getRoutesList())) return false; - if (!getRequestLabel().equals(other.getRequestLabel())) return false; - if (!getSkippedShipmentsList().equals(other.getSkippedShipmentsList())) return false; - if (!getValidationErrorsList().equals(other.getValidationErrorsList())) return false; + if (!getRoutesList() + .equals(other.getRoutesList())) return false; + if (!getRequestLabel() + .equals(other.getRequestLabel())) return false; + if (!getSkippedShipmentsList() + .equals(other.getSkippedShipmentsList())) return false; + if (!getValidationErrorsList() + .equals(other.getValidationErrorsList())) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { - if (!getMetrics().equals(other.getMetrics())) return false; + if (!getMetrics() + .equals(other.getMetrics())) return false; } if (java.lang.Double.doubleToLongBits(getTotalCost()) - != java.lang.Double.doubleToLongBits(other.getTotalCost())) return false; + != java.lang.Double.doubleToLongBits( + other.getTotalCost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2875,114 +2558,106 @@ public int hashCode() { hash = (53 * hash) + getMetrics().hashCode(); } hash = (37 * hash) + TOTAL_COST_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTotalCost())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTotalCost())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OptimizeToursResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.OptimizeToursResponse prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response after solving a tour optimization problem containing the routes
    * followed by each vehicle, the shipments which have been skipped and the
@@ -2991,32 +2666,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursResponse)
       com.google.cloud.optimization.v1.OptimizeToursResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.OptimizeToursResponse.class,
-              com.google.cloud.optimization.v1.OptimizeToursResponse.Builder.class);
+              com.google.cloud.optimization.v1.OptimizeToursResponse.class, com.google.cloud.optimization.v1.OptimizeToursResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.OptimizeToursResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3053,9 +2729,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
     }
 
     @java.lang.Override
@@ -3074,18 +2750,14 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.OptimizeToursResponse buildPartial() {
-      com.google.cloud.optimization.v1.OptimizeToursResponse result =
-          new com.google.cloud.optimization.v1.OptimizeToursResponse(this);
+      com.google.cloud.optimization.v1.OptimizeToursResponse result = new com.google.cloud.optimization.v1.OptimizeToursResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.optimization.v1.OptimizeToursResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.OptimizeToursResponse result) {
       if (routesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           routes_ = java.util.Collections.unmodifiableList(routes_);
@@ -3121,7 +2793,9 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRespons
         result.requestLabel_ = requestLabel_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build();
+        result.metrics_ = metricsBuilder_ == null
+            ? metrics_
+            : metricsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.totalCost_ = totalCost_;
@@ -3132,39 +2806,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRespons
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.OptimizeToursResponse) {
-        return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursResponse) other);
+        return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3172,8 +2845,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse other) {
-      if (other == com.google.cloud.optimization.v1.OptimizeToursResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.OptimizeToursResponse.getDefaultInstance()) return this;
       if (routesBuilder_ == null) {
         if (!other.routes_.isEmpty()) {
           if (routes_.isEmpty()) {
@@ -3192,10 +2864,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse
             routesBuilder_ = null;
             routes_ = other.routes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            routesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRoutesFieldBuilder()
-                    : null;
+            routesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRoutesFieldBuilder() : null;
           } else {
             routesBuilder_.addAllMessages(other.routes_);
           }
@@ -3224,10 +2895,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse
             skippedShipmentsBuilder_ = null;
             skippedShipments_ = other.skippedShipments_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            skippedShipmentsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSkippedShipmentsFieldBuilder()
-                    : null;
+            skippedShipmentsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSkippedShipmentsFieldBuilder() : null;
           } else {
             skippedShipmentsBuilder_.addAllMessages(other.skippedShipments_);
           }
@@ -3251,10 +2921,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse
             validationErrorsBuilder_ = null;
             validationErrors_ = other.validationErrors_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            validationErrorsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getValidationErrorsFieldBuilder()
-                    : null;
+            validationErrorsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getValidationErrorsFieldBuilder() : null;
           } else {
             validationErrorsBuilder_.addAllMessages(other.validationErrors_);
           }
@@ -3292,72 +2961,68 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.optimization.v1.ShipmentRoute m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentRoute.parser(), extensionRegistry);
-                if (routesBuilder_ == null) {
-                  ensureRoutesIsMutable();
-                  routes_.add(m);
-                } else {
-                  routesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 17:
-              {
-                totalCost_ = input.readDouble();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 17
-            case 26:
-              {
-                requestLabel_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.cloud.optimization.v1.SkippedShipment m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.SkippedShipment.parser(),
-                        extensionRegistry);
-                if (skippedShipmentsBuilder_ == null) {
-                  ensureSkippedShipmentsIsMutable();
-                  skippedShipments_.add(m);
-                } else {
-                  skippedShipmentsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.cloud.optimization.v1.OptimizeToursValidationError m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.OptimizeToursValidationError.parser(),
-                        extensionRegistry);
-                if (validationErrorsBuilder_ == null) {
-                  ensureValidationErrorsIsMutable();
-                  validationErrors_.add(m);
-                } else {
-                  validationErrorsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.optimization.v1.ShipmentRoute m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentRoute.parser(),
+                      extensionRegistry);
+              if (routesBuilder_ == null) {
+                ensureRoutesIsMutable();
+                routes_.add(m);
+              } else {
+                routesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 17: {
+              totalCost_ = input.readDouble();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 17
+            case 26: {
+              requestLabel_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 34: {
+              com.google.cloud.optimization.v1.SkippedShipment m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.SkippedShipment.parser(),
+                      extensionRegistry);
+              if (skippedShipmentsBuilder_ == null) {
+                ensureSkippedShipmentsIsMutable();
+                skippedShipments_.add(m);
+              } else {
+                skippedShipmentsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 34
+            case 42: {
+              com.google.cloud.optimization.v1.OptimizeToursValidationError m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.OptimizeToursValidationError.parser(),
+                      extensionRegistry);
+              if (validationErrorsBuilder_ == null) {
+                ensureValidationErrorsIsMutable();
+                validationErrors_.add(m);
+              } else {
+                validationErrorsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getMetricsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3367,28 +3032,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List routes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRoutesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         routes_ = new java.util.ArrayList(routes_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute,
-            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
-            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
-        routesBuilder_;
+        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> routesBuilder_;
 
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3404,8 +3062,6 @@ public java.util.List getRoutesL
       }
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3421,8 +3077,6 @@ public int getRoutesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3438,8 +3092,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3447,7 +3099,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public Builder setRoutes(int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
+    public Builder setRoutes(
+        int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3461,8 +3114,6 @@ public Builder setRoutes(int index, com.google.cloud.optimization.v1.ShipmentRou
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3482,8 +3133,6 @@ public Builder setRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3505,8 +3154,6 @@ public Builder addRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3514,7 +3161,8 @@ public Builder addRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public Builder addRoutes(int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
+    public Builder addRoutes(
+        int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3528,8 +3176,6 @@ public Builder addRoutes(int index, com.google.cloud.optimization.v1.ShipmentRou
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3549,8 +3195,6 @@ public Builder addRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3570,8 +3214,6 @@ public Builder addRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3583,7 +3225,8 @@ public Builder addAllRoutes(
         java.lang.Iterable values) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, routes_);
         onChanged();
       } else {
         routesBuilder_.addAllMessages(values);
@@ -3591,8 +3234,6 @@ public Builder addAllRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3611,8 +3252,6 @@ public Builder clearRoutes() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3631,8 +3270,6 @@ public Builder removeRoutes(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3640,12 +3277,11 @@ public Builder removeRoutes(int index) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(int index) {
+    public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(
+        int index) {
       return getRoutesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3653,16 +3289,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(i
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index) {
+    public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
+        int index) {
       if (routesBuilder_ == null) {
-        return routes_.get(index);
-      } else {
+        return routes_.get(index);  } else {
         return routesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3670,8 +3304,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public java.util.List
-        getRoutesOrBuilderList() {
+    public java.util.List 
+         getRoutesOrBuilderList() {
       if (routesBuilder_ != null) {
         return routesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3679,8 +3313,6 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3689,12 +3321,10 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder() {
-      return getRoutesFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+      return getRoutesFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3702,13 +3332,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder()
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(int index) {
-      return getRoutesFieldBuilder()
-          .addBuilder(index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+    public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(
+        int index) {
+      return getRoutesFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3716,23 +3345,20 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(i
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public java.util.List
-        getRoutesBuilderList() {
+    public java.util.List 
+         getRoutesBuilderList() {
       return getRoutesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute,
-            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
-            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
+        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> 
         getRoutesFieldBuilder() {
       if (routesBuilder_ == null) {
-        routesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.ShipmentRoute,
-                com.google.cloud.optimization.v1.ShipmentRoute.Builder,
-                com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
-                routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
+                routes_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         routes_ = null;
       }
       return routesBuilder_;
@@ -3740,8 +3366,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(i
 
     private java.lang.Object requestLabel_ = "";
     /**
-     *
-     *
      * 
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3749,13 +3373,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(i
      * 
* * string request_label = 3; - * * @return The requestLabel. */ public java.lang.String getRequestLabel() { java.lang.Object ref = requestLabel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestLabel_ = s; return s; @@ -3764,8 +3388,6 @@ public java.lang.String getRequestLabel() { } } /** - * - * *
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3773,14 +3395,15 @@ public java.lang.String getRequestLabel() {
      * 
* * string request_label = 3; - * * @return The bytes for requestLabel. */ - public com.google.protobuf.ByteString getRequestLabelBytes() { + public com.google.protobuf.ByteString + getRequestLabelBytes() { java.lang.Object ref = requestLabel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestLabel_ = b; return b; } else { @@ -3788,8 +3411,6 @@ public com.google.protobuf.ByteString getRequestLabelBytes() { } } /** - * - * *
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3797,22 +3418,18 @@ public com.google.protobuf.ByteString getRequestLabelBytes() {
      * 
* * string request_label = 3; - * * @param value The requestLabel to set. * @return This builder for chaining. */ - public Builder setRequestLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3820,7 +3437,6 @@ public Builder setRequestLabel(java.lang.String value) {
      * 
* * string request_label = 3; - * * @return This builder for chaining. */ public Builder clearRequestLabel() { @@ -3830,8 +3446,6 @@ public Builder clearRequestLabel() { return this; } /** - * - * *
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3839,14 +3453,12 @@ public Builder clearRequestLabel() {
      * 
* * string request_label = 3; - * * @param value The bytes for requestLabel to set. * @return This builder for chaining. */ - public Builder setRequestLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestLabel_ = value; bitField0_ |= 0x00000002; @@ -3855,34 +3467,25 @@ public Builder setRequestLabelBytes(com.google.protobuf.ByteString value) { } private java.util.List skippedShipments_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSkippedShipmentsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - skippedShipments_ = - new java.util.ArrayList( - skippedShipments_); + skippedShipments_ = new java.util.ArrayList(skippedShipments_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.SkippedShipment, - com.google.cloud.optimization.v1.SkippedShipment.Builder, - com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> - skippedShipmentsBuilder_; + com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> skippedShipmentsBuilder_; /** - * - * *
      * The list of all shipments skipped.
      * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - public java.util.List - getSkippedShipmentsList() { + public java.util.List getSkippedShipmentsList() { if (skippedShipmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(skippedShipments_); } else { @@ -3890,8 +3493,6 @@ private void ensureSkippedShipmentsIsMutable() { } } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -3906,8 +3507,6 @@ public int getSkippedShipmentsCount() { } } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -3922,8 +3521,6 @@ public com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int } } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -3945,8 +3542,6 @@ public Builder setSkippedShipments( return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -3965,8 +3560,6 @@ public Builder setSkippedShipments( return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -3987,8 +3580,6 @@ public Builder addSkippedShipments(com.google.cloud.optimization.v1.SkippedShipm return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4010,8 +3601,6 @@ public Builder addSkippedShipments( return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4030,8 +3619,6 @@ public Builder addSkippedShipments( return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4050,8 +3637,6 @@ public Builder addSkippedShipments( return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4062,7 +3647,8 @@ public Builder addAllSkippedShipments( java.lang.Iterable values) { if (skippedShipmentsBuilder_ == null) { ensureSkippedShipmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skippedShipments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, skippedShipments_); onChanged(); } else { skippedShipmentsBuilder_.addAllMessages(values); @@ -4070,8 +3656,6 @@ public Builder addAllSkippedShipments( return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4089,8 +3673,6 @@ public Builder clearSkippedShipments() { return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4108,8 +3690,6 @@ public Builder removeSkippedShipments(int index) { return this; } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4121,8 +3701,6 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder getSkippedShipme return getSkippedShipmentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4132,22 +3710,19 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder getSkippedShipme public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder( int index) { if (skippedShipmentsBuilder_ == null) { - return skippedShipments_.get(index); - } else { + return skippedShipments_.get(index); } else { return skippedShipmentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of all shipments skipped.
      * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - public java.util.List - getSkippedShipmentsOrBuilderList() { + public java.util.List + getSkippedShipmentsOrBuilderList() { if (skippedShipmentsBuilder_ != null) { return skippedShipmentsBuilder_.getMessageOrBuilderList(); } else { @@ -4155,8 +3730,6 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm } } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4164,12 +3737,10 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipmentsBuilder() { - return getSkippedShipmentsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()); + return getSkippedShipmentsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()); } /** - * - * *
      * The list of all shipments skipped.
      * 
@@ -4178,34 +3749,26 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme */ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipmentsBuilder( int index) { - return getSkippedShipmentsFieldBuilder() - .addBuilder(index, com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()); + return getSkippedShipmentsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()); } /** - * - * *
      * The list of all shipments skipped.
      * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - public java.util.List - getSkippedShipmentsBuilderList() { + public java.util.List + getSkippedShipmentsBuilderList() { return getSkippedShipmentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.SkippedShipment, - com.google.cloud.optimization.v1.SkippedShipment.Builder, - com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> + com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> getSkippedShipmentsFieldBuilder() { if (skippedShipmentsBuilder_ == null) { - skippedShipmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.SkippedShipment, - com.google.cloud.optimization.v1.SkippedShipment.Builder, - com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>( + skippedShipmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>( skippedShipments_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -4215,27 +3778,19 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme return skippedShipmentsBuilder_; } - private java.util.List - validationErrors_ = java.util.Collections.emptyList(); - + private java.util.List validationErrors_ = + java.util.Collections.emptyList(); private void ensureValidationErrorsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - validationErrors_ = - new java.util.ArrayList( - validationErrors_); + validationErrors_ = new java.util.ArrayList(validationErrors_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError, - com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> - validationErrorsBuilder_; + com.google.cloud.optimization.v1.OptimizeToursValidationError, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> validationErrorsBuilder_; /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4243,12 +3798,9 @@ private void ensureValidationErrorsIsMutable() {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public java.util.List - getValidationErrorsList() { + public java.util.List getValidationErrorsList() { if (validationErrorsBuilder_ == null) { return java.util.Collections.unmodifiableList(validationErrors_); } else { @@ -4256,8 +3808,6 @@ private void ensureValidationErrorsIsMutable() { } } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4265,9 +3815,7 @@ private void ensureValidationErrorsIsMutable() {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public int getValidationErrorsCount() { if (validationErrorsBuilder_ == null) { @@ -4277,8 +3825,6 @@ public int getValidationErrorsCount() { } } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4286,12 +3832,9 @@ public int getValidationErrorsCount() {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors(int index) { if (validationErrorsBuilder_ == null) { return validationErrors_.get(index); } else { @@ -4299,8 +3842,6 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidati } } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4308,9 +3849,7 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidati
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public Builder setValidationErrors( int index, com.google.cloud.optimization.v1.OptimizeToursValidationError value) { @@ -4327,8 +3866,6 @@ public Builder setValidationErrors( return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4336,13 +3873,10 @@ public Builder setValidationErrors(
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public Builder setValidationErrors( - int index, - com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.set(index, builderForValue.build()); @@ -4353,8 +3887,6 @@ public Builder setValidationErrors( return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4362,12 +3894,9 @@ public Builder setValidationErrors(
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public Builder addValidationErrors( - com.google.cloud.optimization.v1.OptimizeToursValidationError value) { + public Builder addValidationErrors(com.google.cloud.optimization.v1.OptimizeToursValidationError value) { if (validationErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4381,8 +3910,6 @@ public Builder addValidationErrors( return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4390,9 +3917,7 @@ public Builder addValidationErrors(
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public Builder addValidationErrors( int index, com.google.cloud.optimization.v1.OptimizeToursValidationError value) { @@ -4409,8 +3934,6 @@ public Builder addValidationErrors( return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4418,9 +3941,7 @@ public Builder addValidationErrors(
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public Builder addValidationErrors( com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { @@ -4434,8 +3955,6 @@ public Builder addValidationErrors( return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4443,13 +3962,10 @@ public Builder addValidationErrors(
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public Builder addValidationErrors( - int index, - com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.add(index, builderForValue.build()); @@ -4460,8 +3976,6 @@ public Builder addValidationErrors( return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4469,16 +3983,14 @@ public Builder addValidationErrors(
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public Builder addAllValidationErrors( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validationErrors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validationErrors_); onChanged(); } else { validationErrorsBuilder_.addAllMessages(values); @@ -4486,8 +3998,6 @@ public Builder addAllValidationErrors( return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4495,9 +4005,7 @@ public Builder addAllValidationErrors(
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public Builder clearValidationErrors() { if (validationErrorsBuilder_ == null) { @@ -4510,8 +4018,6 @@ public Builder clearValidationErrors() { return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4519,9 +4025,7 @@ public Builder clearValidationErrors() {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ public Builder removeValidationErrors(int index) { if (validationErrorsBuilder_ == null) { @@ -4534,8 +4038,6 @@ public Builder removeValidationErrors(int index) { return this; } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4543,17 +4045,13 @@ public Builder removeValidationErrors(int index) {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder - getValidationErrorsBuilder(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder getValidationErrorsBuilder( + int index) { return getValidationErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4561,21 +4059,16 @@ public Builder removeValidationErrors(int index) {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder - getValidationErrorsOrBuilder(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder getValidationErrorsOrBuilder( + int index) { if (validationErrorsBuilder_ == null) { - return validationErrors_.get(index); - } else { + return validationErrors_.get(index); } else { return validationErrorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4583,13 +4076,10 @@ public Builder removeValidationErrors(int index) {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public java.util.List< - ? extends com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> - getValidationErrorsOrBuilderList() { + public java.util.List + getValidationErrorsOrBuilderList() { if (validationErrorsBuilder_ != null) { return validationErrorsBuilder_.getMessageOrBuilderList(); } else { @@ -4597,8 +4087,6 @@ public Builder removeValidationErrors(int index) { } } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4606,19 +4094,13 @@ public Builder removeValidationErrors(int index) {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder - addValidationErrorsBuilder() { - return getValidationErrorsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder addValidationErrorsBuilder() { + return getValidationErrorsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()); } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4626,20 +4108,14 @@ public Builder removeValidationErrors(int index) {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder - addValidationErrorsBuilder(int index) { - return getValidationErrorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder addValidationErrorsBuilder( + int index) { + return getValidationErrorsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()); } /** - * - * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4647,26 +4123,18 @@ public Builder removeValidationErrors(int index) {
      * message.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - public java.util.List - getValidationErrorsBuilderList() { + public java.util.List + getValidationErrorsBuilderList() { return getValidationErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError, - com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> + com.google.cloud.optimization.v1.OptimizeToursValidationError, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> getValidationErrorsFieldBuilder() { if (validationErrorsBuilder_ == null) { - validationErrorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError, - com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder>( + validationErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.OptimizeToursValidationError, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder>( validationErrors_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -4678,55 +4146,41 @@ public Builder removeValidationErrors(int index) { private com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, - com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder> - metricsBuilder_; + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder> metricsBuilder_; /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; - * * @return Whether the metrics field is set. */ public boolean hasMetrics() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; - * * @return The metrics. */ public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics() { if (metricsBuilder_ == null) { - return metrics_ == null - ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() - : metrics_; + return metrics_ == null ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() : metrics_; } else { return metricsBuilder_.getMessage(); } } /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ - public Builder setMetrics( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics value) { + public Builder setMetrics(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4740,8 +4194,6 @@ public Builder setMetrics( return this; } /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
@@ -4760,22 +4212,17 @@ public Builder setMetrics( return this; } /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ - public Builder mergeMetrics( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics value) { + public Builder mergeMetrics(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics value) { if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && metrics_ != null - && metrics_ - != com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + metrics_ != null && + metrics_ != com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance()) { getMetricsBuilder().mergeFrom(value); } else { metrics_ = value; @@ -4788,8 +4235,6 @@ public Builder mergeMetrics( return this; } /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
@@ -4807,42 +4252,33 @@ public Builder clearMetrics() { return this; } /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ - public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder - getMetricsBuilder() { + public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder getMetricsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ - public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder - getMetricsOrBuilder() { + public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder getMetricsOrBuilder() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilder(); } else { - return metrics_ == null - ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() - : metrics_; + return metrics_ == null ? + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() : metrics_; } } /** - * - * *
      * Duration, distance and usage metrics for this solution.
      * 
@@ -4850,26 +4286,21 @@ public Builder clearMetrics() { * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, - com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder> + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, - com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder>( - getMetrics(), getParentForChildren(), isClean()); + metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder>( + getMetrics(), + getParentForChildren(), + isClean()); metrics_ = null; } return metricsBuilder_; } - private double totalCost_; + private double totalCost_ ; /** - * - * *
      * Deprecated: Use
      * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -4879,19 +4310,15 @@ public Builder clearMetrics() {
      * 
* * double total_cost = 2 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=433 + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=433 * @return The totalCost. */ @java.lang.Override - @java.lang.Deprecated - public double getTotalCost() { + @java.lang.Deprecated public double getTotalCost() { return totalCost_; } /** - * - * *
      * Deprecated: Use
      * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -4901,14 +4328,12 @@ public double getTotalCost() {
      * 
* * double total_cost = 2 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=433 + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=433 * @param value The totalCost to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setTotalCost(double value) { + @java.lang.Deprecated public Builder setTotalCost(double value) { totalCost_ = value; bitField0_ |= 0x00000020; @@ -4916,8 +4341,6 @@ public Builder setTotalCost(double value) { return this; } /** - * - * *
      * Deprecated: Use
      * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -4927,21 +4350,19 @@ public Builder setTotalCost(double value) {
      * 
* * double total_cost = 2 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=433 + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=433 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearTotalCost() { + @java.lang.Deprecated public Builder clearTotalCost() { bitField0_ = (bitField0_ & ~0x00000020); totalCost_ = 0D; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4951,12 +4372,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursResponse) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursResponse) private static final com.google.cloud.optimization.v1.OptimizeToursResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursResponse(); } @@ -4965,27 +4386,27 @@ public static com.google.cloud.optimization.v1.OptimizeToursResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizeToursResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizeToursResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5000,4 +4421,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.OptimizeToursResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java similarity index 77% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java index ad312261f3ff..20176820140d 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface OptimizeToursResponseOrBuilder - extends +public interface OptimizeToursResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -33,10 +15,9 @@ public interface OptimizeToursResponseOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  java.util.List getRoutesList();
+  java.util.List 
+      getRoutesList();
   /**
-   *
-   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -46,8 +27,6 @@ public interface OptimizeToursResponseOrBuilder
    */
   com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index);
   /**
-   *
-   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -57,8 +36,6 @@ public interface OptimizeToursResponseOrBuilder
    */
   int getRoutesCount();
   /**
-   *
-   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -66,11 +43,9 @@ public interface OptimizeToursResponseOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  java.util.List
+  java.util.List 
       getRoutesOrBuilderList();
   /**
-   *
-   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -78,11 +53,10 @@ public interface OptimizeToursResponseOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index);
+  com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Copy of the
    * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -90,13 +64,10 @@ public interface OptimizeToursResponseOrBuilder
    * 
* * string request_label = 3; - * * @return The requestLabel. */ java.lang.String getRequestLabel(); /** - * - * *
    * Copy of the
    * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -104,24 +75,21 @@ public interface OptimizeToursResponseOrBuilder
    * 
* * string request_label = 3; - * * @return The bytes for requestLabel. */ - com.google.protobuf.ByteString getRequestLabelBytes(); + com.google.protobuf.ByteString + getRequestLabelBytes(); /** - * - * *
    * The list of all shipments skipped.
    * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - java.util.List getSkippedShipmentsList(); + java.util.List + getSkippedShipmentsList(); /** - * - * *
    * The list of all shipments skipped.
    * 
@@ -130,8 +98,6 @@ public interface OptimizeToursResponseOrBuilder */ com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int index); /** - * - * *
    * The list of all shipments skipped.
    * 
@@ -140,30 +106,25 @@ public interface OptimizeToursResponseOrBuilder */ int getSkippedShipmentsCount(); /** - * - * *
    * The list of all shipments skipped.
    * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - java.util.List + java.util.List getSkippedShipmentsOrBuilderList(); /** - * - * *
    * The list of all shipments skipped.
    * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index); + com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder( + int index); /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -171,15 +132,11 @@ public interface OptimizeToursResponseOrBuilder
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - java.util.List + java.util.List getValidationErrorsList(); /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -187,14 +144,10 @@ public interface OptimizeToursResponseOrBuilder
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors(int index); /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -202,14 +155,10 @@ public interface OptimizeToursResponseOrBuilder
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ int getValidationErrorsCount(); /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -217,15 +166,11 @@ public interface OptimizeToursResponseOrBuilder
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - java.util.List + java.util.List getValidationErrorsOrBuilderList(); /** - * - * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -233,40 +178,30 @@ public interface OptimizeToursResponseOrBuilder
    * message.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; */ - com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder - getValidationErrorsOrBuilder(int index); + com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder getValidationErrorsOrBuilder( + int index); /** - * - * *
    * Duration, distance and usage metrics for this solution.
    * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; - * * @return Whether the metrics field is set. */ boolean hasMetrics(); /** - * - * *
    * Duration, distance and usage metrics for this solution.
    * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; - * * @return The metrics. */ com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics(); /** - * - * *
    * Duration, distance and usage metrics for this solution.
    * 
@@ -276,8 +211,6 @@ public interface OptimizeToursResponseOrBuilder com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder getMetricsOrBuilder(); /** - * - * *
    * Deprecated: Use
    * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -287,11 +220,9 @@ public interface OptimizeToursResponseOrBuilder
    * 
* * double total_cost = 2 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=433 + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=433 * @return The totalCost. */ - @java.lang.Deprecated - double getTotalCost(); + @java.lang.Deprecated double getTotalCost(); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java similarity index 77% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java index 914a5b43ce46..1075b082d500 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Describes an error encountered when validating an `OptimizeToursRequest`.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursValidationError} */ -public final class OptimizeToursValidationError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OptimizeToursValidationError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursValidationError) OptimizeToursValidationErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OptimizeToursValidationError.newBuilder() to construct. private OptimizeToursValidationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OptimizeToursValidationError() { displayName_ = ""; fields_ = java.util.Collections.emptyList(); @@ -46,165 +28,126 @@ private OptimizeToursValidationError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OptimizeToursValidationError(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursValidationError.class, - com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursValidationError.class, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder.class); } - public interface FieldReferenceOrBuilder - extends + public interface FieldReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Name of the field, e.g., "vehicles".
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Name of the field, e.g., "vehicles".
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Index of the field if repeated.
      * 
* * int32 index = 2; - * * @return Whether the index field is set. */ boolean hasIndex(); /** - * - * *
      * Index of the field if repeated.
      * 
* * int32 index = 2; - * * @return The index. */ int getIndex(); /** - * - * *
      * Key if the field is a map.
      * 
* * string key = 4; - * * @return Whether the key field is set. */ boolean hasKey(); /** - * - * *
      * Key if the field is a map.
      * 
* * string key = 4; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
      * Key if the field is a map.
      * 
* * string key = 4; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
      * Recursively nested sub-field, if needed.
      * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; * @return Whether the subField field is set. */ boolean hasSubField(); /** - * - * *
      * Recursively nested sub-field, if needed.
      * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; * @return The subField. */ com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getSubField(); /** - * - * *
      * Recursively nested sub-field, if needed.
      * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder - getSubFieldOrBuilder(); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getSubFieldOrBuilder(); - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.IndexOrKeyCase - getIndexOrKeyCase(); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.IndexOrKeyCase getIndexOrKeyCase(); } /** - * - * *
    * Specifies a context for the validation error. A `FieldReference` always
    * refers to a given field in this file and follows the same hierarchical
@@ -219,56 +162,49 @@ public interface FieldReferenceOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference}
    */
-  public static final class FieldReference extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class FieldReference extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference)
       FieldReferenceOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use FieldReference.newBuilder() to construct.
     private FieldReference(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private FieldReference() {
       name_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new FieldReference();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.class,
-              com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder
-                  .class);
+              com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.class, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder.class);
     }
 
     private int indexOrKeyCase_ = 0;
-
     @SuppressWarnings("serial")
     private java.lang.Object indexOrKey_;
-
     public enum IndexOrKeyCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       INDEX(2),
       KEY(4),
       INDEXORKEY_NOT_SET(0);
       private final int value;
-
       private IndexOrKeyCase(int value) {
         this.value = value;
       }
@@ -284,39 +220,32 @@ public static IndexOrKeyCase valueOf(int value) {
 
       public static IndexOrKeyCase forNumber(int value) {
         switch (value) {
-          case 2:
-            return INDEX;
-          case 4:
-            return KEY;
-          case 0:
-            return INDEXORKEY_NOT_SET;
-          default:
-            return null;
+          case 2: return INDEX;
+          case 4: return KEY;
+          case 0: return INDEXORKEY_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public IndexOrKeyCase getIndexOrKeyCase() {
-      return IndexOrKeyCase.forNumber(indexOrKeyCase_);
+    public IndexOrKeyCase
+    getIndexOrKeyCase() {
+      return IndexOrKeyCase.forNumber(
+          indexOrKeyCase_);
     }
 
     public static final int NAME_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Name of the field, e.g., "vehicles".
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -325,29 +254,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Name of the field, e.g., "vehicles".
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -357,14 +286,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INDEX_FIELD_NUMBER = 2; /** - * - * *
      * Index of the field if repeated.
      * 
* * int32 index = 2; - * * @return Whether the index field is set. */ @java.lang.Override @@ -372,14 +298,11 @@ public boolean hasIndex() { return indexOrKeyCase_ == 2; } /** - * - * *
      * Index of the field if repeated.
      * 
* * int32 index = 2; - * * @return The index. */ @java.lang.Override @@ -392,28 +315,22 @@ public int getIndex() { public static final int KEY_FIELD_NUMBER = 4; /** - * - * *
      * Key if the field is a map.
      * 
* * string key = 4; - * * @return Whether the key field is set. */ public boolean hasKey() { return indexOrKeyCase_ == 4; } /** - * - * *
      * Key if the field is a map.
      * 
* * string key = 4; - * * @return The key. */ public java.lang.String getKey() { @@ -424,7 +341,8 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (indexOrKeyCase_ == 4) { indexOrKey_ = s; @@ -433,24 +351,23 @@ public java.lang.String getKey() { } } /** - * - * *
      * Key if the field is a map.
      * 
* * string key = 4; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = ""; if (indexOrKeyCase_ == 4) { ref = indexOrKey_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (indexOrKeyCase_ == 4) { indexOrKey_ = b; } @@ -463,16 +380,11 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int SUB_FIELD_FIELD_NUMBER = 3; private com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference subField_; /** - * - * *
      * Recursively nested sub-field, if needed.
      * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; * @return Whether the subField field is set. */ @java.lang.Override @@ -480,48 +392,30 @@ public boolean hasSubField() { return subField_ != null; } /** - * - * *
      * Recursively nested sub-field, if needed.
      * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; * @return The subField. */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - getSubField() { - return subField_ == null - ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance() - : subField_; + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getSubField() { + return subField_ == null ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance() : subField_; } /** - * - * *
      * Recursively nested sub-field, if needed.
      * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder - getSubFieldOrBuilder() { - return subField_ == null - ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance() - : subField_; + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getSubFieldOrBuilder() { + return subField_ == null ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance() : subField_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -533,12 +427,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (indexOrKeyCase_ == 2) { - output.writeInt32(2, (int) ((java.lang.Integer) indexOrKey_)); + output.writeInt32( + 2, (int)((java.lang.Integer) indexOrKey_)); } if (subField_ != null) { output.writeMessage(3, getSubField()); @@ -559,12 +455,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (indexOrKeyCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, (int) ((java.lang.Integer) indexOrKey_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) indexOrKey_)); } if (subField_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubField()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSubField()); } if (indexOrKeyCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, indexOrKey_); @@ -577,28 +474,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference)) { + if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference other = - (com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) obj; + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference other = (com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasSubField() != other.hasSubField()) return false; if (hasSubField()) { - if (!getSubField().equals(other.getSubField())) return false; + if (!getSubField() + .equals(other.getSubField())) return false; } if (!getIndexOrKeyCase().equals(other.getIndexOrKeyCase())) return false; switch (indexOrKeyCase_) { case 2: - if (getIndex() != other.getIndex()) return false; + if (getIndex() + != other.getIndex()) return false; break; case 4: - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; break; case 0: default: @@ -637,101 +535,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -741,8 +628,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specifies a context for the validation error. A `FieldReference` always
      * refers to a given field in this file and follows the same hierarchical
@@ -755,38 +640,35 @@ protected Builder newBuilderForType(
      * `ShipmentModel` to avoid crowding the message.
      * 
* - * Protobuf type {@code - * google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference} + * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.class, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - .class); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.class, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder.class); } - // Construct using - // com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.newBuilder() - private Builder() {} + // Construct using com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -803,22 +685,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance(); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance(); } @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference build() { - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result = - buildPartial(); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -826,31 +705,27 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - buildPartial() { - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result = - new com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference buildPartial() { + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result = new com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result) { + private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.subField_ = subFieldBuilder_ == null ? subField_ : subFieldBuilder_.build(); + result.subField_ = subFieldBuilder_ == null + ? subField_ + : subFieldBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result) { + private void buildPartialOneofs(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result) { result.indexOrKeyCase_ = indexOrKeyCase_; result.indexOrKey_ = this.indexOrKey_; } @@ -859,55 +734,46 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) { - return mergeFrom( - (com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) other); + if (other instanceof com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) { + return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference other) { - if (other - == com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference other) { + if (other == com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -917,22 +783,19 @@ public Builder mergeFrom( mergeSubField(other.getSubField()); } switch (other.getIndexOrKeyCase()) { - case INDEX: - { - setIndex(other.getIndex()); - break; - } - case KEY: - { - indexOrKeyCase_ = 4; - indexOrKey_ = other.indexOrKey_; - onChanged(); - break; - } - case INDEXORKEY_NOT_SET: - { - break; - } + case INDEX: { + setIndex(other.getIndex()); + break; + } + case KEY: { + indexOrKeyCase_ = 4; + indexOrKey_ = other.indexOrKey_; + onChanged(); + break; + } + case INDEXORKEY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -960,38 +823,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - indexOrKey_ = input.readInt32(); - indexOrKeyCase_ = 2; - break; - } // case 16 - case 26: - { - input.readMessage(getSubFieldFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - indexOrKeyCase_ = 4; - indexOrKey_ = s; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + indexOrKey_ = input.readInt32(); + indexOrKeyCase_ = 2; + break; + } // case 16 + case 26: { + input.readMessage( + getSubFieldFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + indexOrKeyCase_ = 4; + indexOrKey_ = s; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1001,12 +861,12 @@ public Builder mergeFrom( } // finally return this; } - private int indexOrKeyCase_ = 0; private java.lang.Object indexOrKey_; - - public IndexOrKeyCase getIndexOrKeyCase() { - return IndexOrKeyCase.forNumber(indexOrKeyCase_); + public IndexOrKeyCase + getIndexOrKeyCase() { + return IndexOrKeyCase.forNumber( + indexOrKeyCase_); } public Builder clearIndexOrKey() { @@ -1020,20 +880,18 @@ public Builder clearIndexOrKey() { private java.lang.Object name_ = ""; /** - * - * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1042,21 +900,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1064,35 +921,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1102,21 +952,17 @@ public Builder clearName() { return this; } /** - * - * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1125,28 +971,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
        * Index of the field if repeated.
        * 
* * int32 index = 2; - * * @return Whether the index field is set. */ public boolean hasIndex() { return indexOrKeyCase_ == 2; } /** - * - * *
        * Index of the field if repeated.
        * 
* * int32 index = 2; - * * @return The index. */ public int getIndex() { @@ -1156,14 +996,11 @@ public int getIndex() { return 0; } /** - * - * *
        * Index of the field if repeated.
        * 
* * int32 index = 2; - * * @param value The index to set. * @return This builder for chaining. */ @@ -1175,14 +1012,11 @@ public Builder setIndex(int value) { return this; } /** - * - * *
        * Index of the field if repeated.
        * 
* * int32 index = 2; - * * @return This builder for chaining. */ public Builder clearIndex() { @@ -1195,14 +1029,11 @@ public Builder clearIndex() { } /** - * - * *
        * Key if the field is a map.
        * 
* * string key = 4; - * * @return Whether the key field is set. */ @java.lang.Override @@ -1210,14 +1041,11 @@ public boolean hasKey() { return indexOrKeyCase_ == 4; } /** - * - * *
        * Key if the field is a map.
        * 
* * string key = 4; - * * @return The key. */ @java.lang.Override @@ -1227,7 +1055,8 @@ public java.lang.String getKey() { ref = indexOrKey_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (indexOrKeyCase_ == 4) { indexOrKey_ = s; @@ -1238,25 +1067,24 @@ public java.lang.String getKey() { } } /** - * - * *
        * Key if the field is a map.
        * 
* * string key = 4; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = ""; if (indexOrKeyCase_ == 4) { ref = indexOrKey_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (indexOrKeyCase_ == 4) { indexOrKey_ = b; } @@ -1266,35 +1094,28 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
        * Key if the field is a map.
        * 
* * string key = 4; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } indexOrKeyCase_ = 4; indexOrKey_ = value; onChanged(); return this; } /** - * - * *
        * Key if the field is a map.
        * 
* * string key = 4; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -1306,21 +1127,17 @@ public Builder clearKey() { return this; } /** - * - * *
        * Key if the field is a map.
        * 
* * string key = 4; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); indexOrKeyCase_ = 4; indexOrKey_ = value; @@ -1328,66 +1145,43 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - subField_; + private com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference subField_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> - subFieldBuilder_; + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> subFieldBuilder_; /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; * @return Whether the subField field is set. */ public boolean hasSubField() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; * @return The subField. */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - getSubField() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getSubField() { if (subFieldBuilder_ == null) { - return subField_ == null - ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance() - : subField_; + return subField_ == null ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance() : subField_; } else { return subFieldBuilder_.getMessage(); } } /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ - public Builder setSubField( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + public Builder setSubField(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (subFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1401,19 +1195,14 @@ public Builder setSubField( return this; } /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ public Builder setSubField( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - builderForValue) { + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder builderForValue) { if (subFieldBuilder_ == null) { subField_ = builderForValue.build(); } else { @@ -1424,24 +1213,17 @@ public Builder setSubField( return this; } /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ - public Builder mergeSubField( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + public Builder mergeSubField(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (subFieldBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && subField_ != null - && subField_ - != com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + subField_ != null && + subField_ != com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance()) { getSubFieldBuilder().mergeFrom(value); } else { subField_ = value; @@ -1454,15 +1236,11 @@ public Builder mergeSubField( return this; } /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ public Builder clearSubField() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1475,73 +1253,52 @@ public Builder clearSubField() { return this; } /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - getSubFieldBuilder() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder getSubFieldBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSubFieldFieldBuilder().getBuilder(); } /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder - getSubFieldOrBuilder() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getSubFieldOrBuilder() { if (subFieldBuilder_ != null) { return subFieldBuilder_.getMessageOrBuilder(); } else { - return subField_ == null - ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance() - : subField_; + return subField_ == null ? + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance() : subField_; } } /** - * - * *
        * Recursively nested sub-field, if needed.
        * 
* - * - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; - * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> getSubFieldFieldBuilder() { if (subFieldBuilder_ == null) { - subFieldBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationError - .FieldReferenceOrBuilder>(getSubField(), getParentForChildren(), isClean()); + subFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder>( + getSubField(), + getParentForChildren(), + isClean()); subField_ = null; } return subFieldBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1554,46 +1311,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) - private static final com.google.cloud.optimization.v1.OptimizeToursValidationError - .FieldReference - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference(); + DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference(); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - getDefaultInstance() { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1605,17 +1357,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** - * - * *
    * A validation error is defined by the pair (`code`, `display_name`) which
    * are always present.
@@ -1809,6 +1559,13 @@ public com.google.protobuf.Parser 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;
@@ -1857,7 +1614,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * int32 code = 1; - * * @return The code. */ @java.lang.Override @@ -1866,18 +1622,14 @@ public int getCode() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * The error display name.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1886,29 +1638,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The error display name.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1917,14 +1669,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int FIELDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> - fields_; + private java.util.List fields_; /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -1937,19 +1684,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ @java.lang.Override - public java.util.List< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> - getFieldsList() { + public java.util.List getFieldsList() { return fields_; } /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -1962,20 +1703,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> + public java.util.List getFieldsOrBuilderList() { return fields_; } /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -1988,17 +1723,13 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -2011,18 +1742,13 @@ public int getFieldsCount() {
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields(int index) { return fields_.get(index); } /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -2035,23 +1761,18 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder - getFieldsOrBuilder(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getFieldsOrBuilder( + int index) { return fields_.get(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** - * - * *
    * Human-readable string describing the error. There is a 1:1 mapping
    * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -2062,7 +1783,6 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
    * 
* * string error_message = 4; - * * @return The errorMessage. */ @java.lang.Override @@ -2071,15 +1791,14 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * Human-readable string describing the error. There is a 1:1 mapping
    * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -2090,15 +1809,16 @@ public java.lang.String getErrorMessage() {
    * 
* * string error_message = 4; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -2107,12 +1827,9 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } public static final int OFFENDING_VALUES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object offendingValues_ = ""; /** - * - * *
    * May contain the value(s) of the field(s). This is not always available. You
    * should absolutely not rely on it and use it only for manual model
@@ -2120,7 +1837,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() {
    * 
* * string offending_values = 5; - * * @return The offendingValues. */ @java.lang.Override @@ -2129,15 +1845,14 @@ public java.lang.String getOffendingValues() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); offendingValues_ = s; return s; } } /** - * - * *
    * May contain the value(s) of the field(s). This is not always available. You
    * should absolutely not rely on it and use it only for manual model
@@ -2145,15 +1860,16 @@ public java.lang.String getOffendingValues() {
    * 
* * string offending_values = 5; - * * @return The bytes for offendingValues. */ @java.lang.Override - public com.google.protobuf.ByteString getOffendingValuesBytes() { + public com.google.protobuf.ByteString + getOffendingValuesBytes() { java.lang.Object ref = offendingValues_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); offendingValues_ = b; return b; } else { @@ -2162,7 +1878,6 @@ public com.google.protobuf.ByteString getOffendingValuesBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2174,7 +1889,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (code_ != 0) { output.writeInt32(1, code_); } @@ -2200,13 +1916,15 @@ public int getSerializedSize() { size = 0; if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, code_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, fields_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, errorMessage_); @@ -2222,19 +1940,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursValidationError)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursValidationError other = - (com.google.cloud.optimization.v1.OptimizeToursValidationError) obj; - - if (getCode() != other.getCode()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!getOffendingValues().equals(other.getOffendingValues())) return false; + com.google.cloud.optimization.v1.OptimizeToursValidationError other = (com.google.cloud.optimization.v1.OptimizeToursValidationError) obj; + + if (getCode() + != other.getCode()) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (!getOffendingValues() + .equals(other.getOffendingValues())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2264,136 +1986,131 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.OptimizeToursValidationError prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursValidationError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes an error encountered when validating an `OptimizeToursRequest`.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursValidationError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursValidationError) com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursValidationError.class, - com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursValidationError.class, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder.class); } // Construct using com.google.cloud.optimization.v1.OptimizeToursValidationError.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2413,14 +2130,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError getDefaultInstanceForType() { return com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance(); } @@ -2435,18 +2151,14 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError build() { @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursValidationError buildPartial() { - com.google.cloud.optimization.v1.OptimizeToursValidationError result = - new com.google.cloud.optimization.v1.OptimizeToursValidationError(this); + com.google.cloud.optimization.v1.OptimizeToursValidationError result = new com.google.cloud.optimization.v1.OptimizeToursValidationError(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.optimization.v1.OptimizeToursValidationError result) { + private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.OptimizeToursValidationError result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); @@ -2458,8 +2170,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.optimization.v1.OptimizeToursValidationError result) { + private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursValidationError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; @@ -2479,39 +2190,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.OptimizeToursValidationError) { - return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursValidationError) other); + return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursValidationError)other); } else { super.mergeFrom(other); return this; @@ -2519,9 +2229,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursValidationError other) { - if (other - == com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()) - return this; + if (other == com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()) return this; if (other.getCode() != 0) { setCode(other.getCode()); } @@ -2548,10 +2256,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursValidatio fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000004); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFieldsFieldBuilder() - : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -2593,52 +2300,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - code_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference m = - input.readMessage( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - offendingValues_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + code_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference m = + input.readMessage( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + offendingValues_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2648,13 +2348,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int code_; + private int code_ ; /** - * - * *
      * A validation error is defined by the pair (`code`, `display_name`) which
      * are always present.
@@ -2848,6 +2545,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;
@@ -2896,7 +2600,6 @@ public Builder mergeFrom(
      * 
* * int32 code = 1; - * * @return The code. */ @java.lang.Override @@ -2904,8 +2607,6 @@ public int getCode() { return code_; } /** - * - * *
      * A validation error is defined by the pair (`code`, `display_name`) which
      * are always present.
@@ -3099,6 +2800,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;
@@ -3147,7 +2855,6 @@ public int getCode() {
      * 
* * int32 code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -3159,8 +2866,6 @@ public Builder setCode(int value) { return this; } /** - * - * *
      * A validation error is defined by the pair (`code`, `display_name`) which
      * are always present.
@@ -3354,6 +3059,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;
@@ -3402,7 +3114,6 @@ public Builder setCode(int value) {
      * 
* * int32 code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -3414,20 +3125,18 @@ public Builder clearCode() { private java.lang.Object displayName_ = ""; /** - * - * *
      * The error display name.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3436,21 +3145,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The error display name.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3458,35 +3166,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The error display name.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The error display name.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3496,21 +3197,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * The error display name.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3518,29 +3215,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> - fields_ = java.util.Collections.emptyList(); - + private java.util.List fields_ = + java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - fields_ = - new java.util.ArrayList< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference>( - fields_); + fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> - fieldsBuilder_; + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> fieldsBuilder_; /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3553,13 +3240,9 @@ private void ensureFieldsIsMutable() {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public java.util.List< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> - getFieldsList() { + public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { @@ -3567,8 +3250,6 @@ private void ensureFieldsIsMutable() { } } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3581,9 +3262,7 @@ private void ensureFieldsIsMutable() {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { @@ -3593,8 +3272,6 @@ public int getFieldsCount() { } } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3607,12 +3284,9 @@ public int getFieldsCount() {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { @@ -3620,8 +3294,6 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere } } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3634,13 +3306,10 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public Builder setFields( - int index, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3654,8 +3323,6 @@ public Builder setFields( return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3668,14 +3335,10 @@ public Builder setFields(
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public Builder setFields( - int index, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); @@ -3686,8 +3349,6 @@ public Builder setFields( return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3700,12 +3361,9 @@ public Builder setFields(
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public Builder addFields( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + public Builder addFields(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3719,8 +3377,6 @@ public Builder addFields( return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3733,13 +3389,10 @@ public Builder addFields(
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public Builder addFields( - int index, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3753,8 +3406,6 @@ public Builder addFields( return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3767,13 +3418,10 @@ public Builder addFields(
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public Builder addFields( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - builderForValue) { + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); @@ -3784,8 +3432,6 @@ public Builder addFields( return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3798,14 +3444,10 @@ public Builder addFields(
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public Builder addFields( - int index, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); @@ -3816,8 +3458,6 @@ public Builder addFields( return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3830,18 +3470,14 @@ public Builder addFields(
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public Builder addAllFields( - java.lang.Iterable< - ? extends - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> - values) { + java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -3849,8 +3485,6 @@ public Builder addAllFields( return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3863,9 +3497,7 @@ public Builder addAllFields(
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public Builder clearFields() { if (fieldsBuilder_ == null) { @@ -3878,8 +3510,6 @@ public Builder clearFields() { return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3892,9 +3522,7 @@ public Builder clearFields() {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { @@ -3907,8 +3535,6 @@ public Builder removeFields(int index) { return this; } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3921,17 +3547,13 @@ public Builder removeFields(int index) {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - getFieldsBuilder(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder getFieldsBuilder( + int index) { return getFieldsFieldBuilder().getBuilder(index); } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3944,21 +3566,16 @@ public Builder removeFields(int index) {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder - getFieldsOrBuilder(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getFieldsOrBuilder( + int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { + return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3971,15 +3588,10 @@ public Builder removeFields(int index) {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public java.util.List< - ? extends - com.google.cloud.optimization.v1.OptimizeToursValidationError - .FieldReferenceOrBuilder> - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -3987,8 +3599,6 @@ public Builder removeFields(int index) { } } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -4001,20 +3611,13 @@ public Builder removeFields(int index) {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - addFieldsBuilder() { - return getFieldsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance()); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder addFieldsBuilder() { + return getFieldsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance()); } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -4027,21 +3630,14 @@ public Builder removeFields(int index) {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder - addFieldsBuilder(int index) { - return getFieldsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .getDefaultInstance()); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance()); } /** - * - * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -4054,30 +3650,22 @@ public Builder removeFields(int index) {
      * given error code.
      * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - public java.util.List< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder> - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference - .Builder, - com.google.cloud.optimization.v1.OptimizeToursValidationError - .FieldReferenceOrBuilder>( - fields_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder>( + fields_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); fields_ = null; } return fieldsBuilder_; @@ -4085,8 +3673,6 @@ public Builder removeFields(int index) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -4097,13 +3683,13 @@ public Builder removeFields(int index) {
      * 
* * string error_message = 4; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -4112,8 +3698,6 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -4124,14 +3708,15 @@ public java.lang.String getErrorMessage() {
      * 
* * string error_message = 4; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -4139,8 +3724,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -4151,22 +3734,18 @@ public com.google.protobuf.ByteString getErrorMessageBytes() {
      * 
* * string error_message = 4; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -4177,7 +3756,6 @@ public Builder setErrorMessage(java.lang.String value) {
      * 
* * string error_message = 4; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -4187,8 +3765,6 @@ public Builder clearErrorMessage() { return this; } /** - * - * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -4199,14 +3775,12 @@ public Builder clearErrorMessage() {
      * 
* * string error_message = 4; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000008; @@ -4216,8 +3790,6 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { private java.lang.Object offendingValues_ = ""; /** - * - * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -4225,13 +3797,13 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * string offending_values = 5; - * * @return The offendingValues. */ public java.lang.String getOffendingValues() { java.lang.Object ref = offendingValues_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); offendingValues_ = s; return s; @@ -4240,8 +3812,6 @@ public java.lang.String getOffendingValues() { } } /** - * - * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -4249,14 +3819,15 @@ public java.lang.String getOffendingValues() {
      * 
* * string offending_values = 5; - * * @return The bytes for offendingValues. */ - public com.google.protobuf.ByteString getOffendingValuesBytes() { + public com.google.protobuf.ByteString + getOffendingValuesBytes() { java.lang.Object ref = offendingValues_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); offendingValues_ = b; return b; } else { @@ -4264,8 +3835,6 @@ public com.google.protobuf.ByteString getOffendingValuesBytes() { } } /** - * - * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -4273,22 +3842,18 @@ public com.google.protobuf.ByteString getOffendingValuesBytes() {
      * 
* * string offending_values = 5; - * * @param value The offendingValues to set. * @return This builder for chaining. */ - public Builder setOffendingValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOffendingValues( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } offendingValues_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -4296,7 +3861,6 @@ public Builder setOffendingValues(java.lang.String value) {
      * 
* * string offending_values = 5; - * * @return This builder for chaining. */ public Builder clearOffendingValues() { @@ -4306,8 +3870,6 @@ public Builder clearOffendingValues() { return this; } /** - * - * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -4315,23 +3877,21 @@ public Builder clearOffendingValues() {
      * 
* * string offending_values = 5; - * * @param value The bytes for offendingValues to set. * @return This builder for chaining. */ - public Builder setOffendingValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOffendingValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); offendingValues_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4341,13 +3901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursValidationError) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursValidationError) - private static final com.google.cloud.optimization.v1.OptimizeToursValidationError - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.OptimizeToursValidationError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursValidationError(); } @@ -4356,27 +3915,27 @@ public static com.google.cloud.optimization.v1.OptimizeToursValidationError getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizeToursValidationError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizeToursValidationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4391,4 +3950,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.optimization.v1.OptimizeToursValidationError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java similarity index 90% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java index bd0f8d69a5c4..59dc6f964bf6 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface OptimizeToursValidationErrorOrBuilder - extends +public interface OptimizeToursValidationErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursValidationError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A validation error is defined by the pair (`code`, `display_name`) which
    * are always present.
@@ -219,6 +201,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;
@@ -267,39 +256,31 @@ public interface OptimizeToursValidationErrorOrBuilder
    * 
* * int32 code = 1; - * * @return The code. */ int getCode(); /** - * - * *
    * The error display name.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The error display name.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -312,15 +293,11 @@ public interface OptimizeToursValidationErrorOrBuilder
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - java.util.List + java.util.List getFieldsList(); /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -333,14 +310,10 @@ public interface OptimizeToursValidationErrorOrBuilder
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields(int index); /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -353,14 +326,10 @@ public interface OptimizeToursValidationErrorOrBuilder
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ int getFieldsCount(); /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -373,17 +342,11 @@ public interface OptimizeToursValidationErrorOrBuilder
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - java.util.List< - ? extends - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> + java.util.List getFieldsOrBuilderList(); /** - * - * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -396,16 +359,12 @@ public interface OptimizeToursValidationErrorOrBuilder
    * given error code.
    * 
* - * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; - * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; */ - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder - getFieldsOrBuilder(int index); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getFieldsOrBuilder( + int index); /** - * - * *
    * Human-readable string describing the error. There is a 1:1 mapping
    * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -416,13 +375,10 @@ public interface OptimizeToursValidationErrorOrBuilder
    * 
* * string error_message = 4; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * Human-readable string describing the error. There is a 1:1 mapping
    * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -433,14 +389,12 @@ public interface OptimizeToursValidationErrorOrBuilder
    * 
* * string error_message = 4; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); /** - * - * *
    * May contain the value(s) of the field(s). This is not always available. You
    * should absolutely not rely on it and use it only for manual model
@@ -448,13 +402,10 @@ public interface OptimizeToursValidationErrorOrBuilder
    * 
* * string offending_values = 5; - * * @return The offendingValues. */ java.lang.String getOffendingValues(); /** - * - * *
    * May contain the value(s) of the field(s). This is not always available. You
    * should absolutely not rely on it and use it only for manual model
@@ -462,8 +413,8 @@ public interface OptimizeToursValidationErrorOrBuilder
    * 
* * string offending_values = 5; - * * @return The bytes for offendingValues. */ - com.google.protobuf.ByteString getOffendingValuesBytes(); + com.google.protobuf.ByteString + getOffendingValuesBytes(); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java similarity index 69% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java index aa951b135062..b9c5a831bb37 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** - * - * *
  * The desired output location.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { dataFormat_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OutputConfig.class, - com.google.cloud.optimization.v1.OutputConfig.Builder.class); + com.google.cloud.optimization.v1.OutputConfig.class, com.google.cloud.optimization.v1.OutputConfig.Builder.class); } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -90,34 +67,29 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
    * The Google Cloud Storage location to write the output to.
    * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -125,26 +97,21 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * The Google Cloud Storage location to write the output to.
    * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.optimization.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.optimization.v1.GcsDestination) destination_; + return (com.google.cloud.optimization.v1.GcsDestination) destination_; } return com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * The Google Cloud Storage location to write the output to.
    * 
@@ -154,7 +121,7 @@ public com.google.cloud.optimization.v1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.optimization.v1.GcsDestination) destination_; + return (com.google.cloud.optimization.v1.GcsDestination) destination_; } return com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance(); } @@ -162,40 +129,30 @@ public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinatio public static final int DATA_FORMAT_FIELD_NUMBER = 2; private int dataFormat_ = 0; /** - * - * *
    * The output data format that used to store the results in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override - public int getDataFormatValue() { + @java.lang.Override public int getDataFormatValue() { return dataFormat_; } /** - * - * *
    * The output data format that used to store the results in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The dataFormat. */ - @java.lang.Override - public com.google.cloud.optimization.v1.DataFormat getDataFormat() { - com.google.cloud.optimization.v1.DataFormat result = - com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); + @java.lang.Override public com.google.cloud.optimization.v1.DataFormat getDataFormat() { + com.google.cloud.optimization.v1.DataFormat result = com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.optimization.v1.DataFormat.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,12 +164,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.optimization.v1.GcsDestination) destination_); } - if (dataFormat_ - != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + if (dataFormat_ != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(2, dataFormat_); } getUnknownFields().writeTo(output); @@ -225,13 +182,12 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.optimization.v1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.optimization.v1.GcsDestination) destination_); } - if (dataFormat_ - != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataFormat_); + if (dataFormat_ != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dataFormat_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -241,19 +197,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OutputConfig other = - (com.google.cloud.optimization.v1.OutputConfig) obj; + com.google.cloud.optimization.v1.OutputConfig other = (com.google.cloud.optimization.v1.OutputConfig) obj; if (dataFormat_ != other.dataFormat_) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: @@ -284,136 +240,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The desired output location.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OutputConfig) com.google.cloud.optimization.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OutputConfig.class, - com.google.cloud.optimization.v1.OutputConfig.Builder.class); + com.google.cloud.optimization.v1.OutputConfig.class, com.google.cloud.optimization.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.optimization.v1.OutputConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto - .internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; } @java.lang.Override @@ -449,11 +401,8 @@ public com.google.cloud.optimization.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.optimization.v1.OutputConfig buildPartial() { - com.google.cloud.optimization.v1.OutputConfig result = - new com.google.cloud.optimization.v1.OutputConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.OutputConfig result = new com.google.cloud.optimization.v1.OutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -469,7 +418,8 @@ private void buildPartial0(com.google.cloud.optimization.v1.OutputConfig result) private void buildPartialOneofs(com.google.cloud.optimization.v1.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && + gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -478,39 +428,38 @@ private void buildPartialOneofs(com.google.cloud.optimization.v1.OutputConfig re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.OutputConfig) { - return mergeFrom((com.google.cloud.optimization.v1.OutputConfig) other); + return mergeFrom((com.google.cloud.optimization.v1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -523,15 +472,13 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OutputConfig other) { setDataFormatValue(other.getDataFormatValue()); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -559,25 +506,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 16: - { - dataFormat_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 16: { + dataFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,12 +533,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -605,19 +551,13 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.GcsDestination, - com.google.cloud.optimization.v1.GcsDestination.Builder, - com.google.cloud.optimization.v1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.optimization.v1.GcsDestination, com.google.cloud.optimization.v1.GcsDestination.Builder, com.google.cloud.optimization.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -625,14 +565,11 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -650,8 +587,6 @@ public com.google.cloud.optimization.v1.GcsDestination getGcsDestination() { } } /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -672,8 +607,6 @@ public Builder setGcsDestination(com.google.cloud.optimization.v1.GcsDestination return this; } /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -692,8 +625,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -702,14 +633,10 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.optimization.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.optimization.v1.GcsDestination.newBuilder( - (com.google.cloud.optimization.v1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.optimization.v1.GcsDestination.newBuilder((com.google.cloud.optimization.v1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -725,8 +652,6 @@ public Builder mergeGcsDestination(com.google.cloud.optimization.v1.GcsDestinati return this; } /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -750,8 +675,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -762,8 +685,6 @@ public com.google.cloud.optimization.v1.GcsDestination.Builder getGcsDestination return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -782,8 +703,6 @@ public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinatio } } /** - * - * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -791,19 +710,14 @@ public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinatio * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.GcsDestination, - com.google.cloud.optimization.v1.GcsDestination.Builder, - com.google.cloud.optimization.v1.GcsDestinationOrBuilder> + com.google.cloud.optimization.v1.GcsDestination, com.google.cloud.optimization.v1.GcsDestination.Builder, com.google.cloud.optimization.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.GcsDestination, - com.google.cloud.optimization.v1.GcsDestination.Builder, - com.google.cloud.optimization.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.GcsDestination, com.google.cloud.optimization.v1.GcsDestination.Builder, com.google.cloud.optimization.v1.GcsDestinationOrBuilder>( (com.google.cloud.optimization.v1.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -816,29 +730,22 @@ public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinatio private int dataFormat_ = 0; /** - * - * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override - public int getDataFormatValue() { + @java.lang.Override public int getDataFormatValue() { return dataFormat_; } /** - * - * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @param value The enum numeric value on the wire for dataFormat to set. * @return This builder for chaining. */ @@ -849,31 +756,24 @@ public Builder setDataFormatValue(int value) { return this; } /** - * - * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The dataFormat. */ @java.lang.Override public com.google.cloud.optimization.v1.DataFormat getDataFormat() { - com.google.cloud.optimization.v1.DataFormat result = - com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); + com.google.cloud.optimization.v1.DataFormat result = com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.optimization.v1.DataFormat.UNRECOGNIZED : result; } /** - * - * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @param value The dataFormat to set. * @return This builder for chaining. */ @@ -887,14 +787,11 @@ public Builder setDataFormat(com.google.cloud.optimization.v1.DataFormat value) return this; } /** - * - * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return This builder for chaining. */ public Builder clearDataFormat() { @@ -903,9 +800,9 @@ public Builder clearDataFormat() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -915,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OutputConfig) private static final com.google.cloud.optimization.v1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OutputConfig(); } @@ -929,27 +826,27 @@ public static com.google.cloud.optimization.v1.OutputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,4 +861,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java similarity index 71% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java index 882932c83c01..6aec66b20e57 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Google Cloud Storage location to write the output to.
    * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output to.
    * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.optimization.v1.GcsDestination getGcsDestination(); /** - * - * *
    * The Google Cloud Storage location to write the output to.
    * 
@@ -59,26 +35,20 @@ public interface OutputConfigOrBuilder com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
    * The output data format that used to store the results in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The enum numeric value on the wire for dataFormat. */ int getDataFormatValue(); /** - * - * *
    * The output data format that used to store the results in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; - * * @return The dataFormat. */ com.google.cloud.optimization.v1.DataFormat getDataFormat(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java new file mode 100644 index 000000000000..748209835dc1 --- /dev/null +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java @@ -0,0 +1,783 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/optimization/v1/fleet_routing.proto + +package com.google.cloud.optimization.v1; + +/** + *
+ * Encapsulates a set of optional conditions to satisfy when calculating
+ * vehicle routes. This is similar to `RouteModifiers` in the Google Maps
+ * Platform API; see:
+ * https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers.
+ * 
+ * + * Protobuf type {@code google.cloud.optimization.v1.RouteModifiers} + */ +public final class RouteModifiers extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.RouteModifiers) + RouteModifiersOrBuilder { +private static final long serialVersionUID = 0L; + // Use RouteModifiers.newBuilder() to construct. + private RouteModifiers(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteModifiers() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteModifiers(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.optimization.v1.RouteModifiers.class, com.google.cloud.optimization.v1.RouteModifiers.Builder.class); + } + + public static final int AVOID_TOLLS_FIELD_NUMBER = 2; + private boolean avoidTolls_ = false; + /** + *
+   * Specifies whether to avoid toll roads where reasonable. Preference will be
+   * given to routes not containing toll roads. Applies only to motorized travel
+   * modes.
+   * 
+ * + * bool avoid_tolls = 2; + * @return The avoidTolls. + */ + @java.lang.Override + public boolean getAvoidTolls() { + return avoidTolls_; + } + + public static final int AVOID_HIGHWAYS_FIELD_NUMBER = 3; + private boolean avoidHighways_ = false; + /** + *
+   * Specifies whether to avoid highways where reasonable. Preference will be
+   * given to routes not containing highways. Applies only to motorized travel
+   * modes.
+   * 
+ * + * bool avoid_highways = 3; + * @return The avoidHighways. + */ + @java.lang.Override + public boolean getAvoidHighways() { + return avoidHighways_; + } + + public static final int AVOID_FERRIES_FIELD_NUMBER = 4; + private boolean avoidFerries_ = false; + /** + *
+   * Specifies whether to avoid ferries where reasonable. Preference will be
+   * given to routes not containing travel by ferries. Applies only to motorized
+   * travel modes.
+   * 
+ * + * bool avoid_ferries = 4; + * @return The avoidFerries. + */ + @java.lang.Override + public boolean getAvoidFerries() { + return avoidFerries_; + } + + public static final int AVOID_INDOOR_FIELD_NUMBER = 5; + private boolean avoidIndoor_ = false; + /** + *
+   * Optional. Specifies whether to avoid navigating indoors where reasonable.
+   * Preference will be given to routes not containing indoor navigation.
+   * Applies only to the `WALKING` travel mode.
+   * 
+ * + * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The avoidIndoor. + */ + @java.lang.Override + public boolean getAvoidIndoor() { + return avoidIndoor_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (avoidTolls_ != false) { + output.writeBool(2, avoidTolls_); + } + if (avoidHighways_ != false) { + output.writeBool(3, avoidHighways_); + } + if (avoidFerries_ != false) { + output.writeBool(4, avoidFerries_); + } + if (avoidIndoor_ != false) { + output.writeBool(5, avoidIndoor_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (avoidTolls_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, avoidTolls_); + } + if (avoidHighways_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, avoidHighways_); + } + if (avoidFerries_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, avoidFerries_); + } + if (avoidIndoor_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, avoidIndoor_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.optimization.v1.RouteModifiers)) { + return super.equals(obj); + } + com.google.cloud.optimization.v1.RouteModifiers other = (com.google.cloud.optimization.v1.RouteModifiers) obj; + + if (getAvoidTolls() + != other.getAvoidTolls()) return false; + if (getAvoidHighways() + != other.getAvoidHighways()) return false; + if (getAvoidFerries() + != other.getAvoidFerries()) return false; + if (getAvoidIndoor() + != other.getAvoidIndoor()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AVOID_TOLLS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAvoidTolls()); + hash = (37 * hash) + AVOID_HIGHWAYS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAvoidHighways()); + hash = (37 * hash) + AVOID_FERRIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAvoidFerries()); + hash = (37 * hash) + AVOID_INDOOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAvoidIndoor()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.cloud.optimization.v1.RouteModifiers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.optimization.v1.RouteModifiers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.optimization.v1.RouteModifiers prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Encapsulates a set of optional conditions to satisfy when calculating
+   * vehicle routes. This is similar to `RouteModifiers` in the Google Maps
+   * Platform API; see:
+   * https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers.
+   * 
+ * + * Protobuf type {@code google.cloud.optimization.v1.RouteModifiers} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.RouteModifiers) + com.google.cloud.optimization.v1.RouteModifiersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.optimization.v1.RouteModifiers.class, com.google.cloud.optimization.v1.RouteModifiers.Builder.class); + } + + // Construct using com.google.cloud.optimization.v1.RouteModifiers.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + avoidTolls_ = false; + avoidHighways_ = false; + avoidFerries_ = false; + avoidIndoor_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor; + } + + @java.lang.Override + public com.google.cloud.optimization.v1.RouteModifiers getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.optimization.v1.RouteModifiers build() { + com.google.cloud.optimization.v1.RouteModifiers result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.optimization.v1.RouteModifiers buildPartial() { + com.google.cloud.optimization.v1.RouteModifiers result = new com.google.cloud.optimization.v1.RouteModifiers(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.optimization.v1.RouteModifiers result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.avoidTolls_ = avoidTolls_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.avoidHighways_ = avoidHighways_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.avoidFerries_ = avoidFerries_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.avoidIndoor_ = avoidIndoor_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.optimization.v1.RouteModifiers) { + return mergeFrom((com.google.cloud.optimization.v1.RouteModifiers)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.optimization.v1.RouteModifiers other) { + if (other == com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance()) return this; + if (other.getAvoidTolls() != false) { + setAvoidTolls(other.getAvoidTolls()); + } + if (other.getAvoidHighways() != false) { + setAvoidHighways(other.getAvoidHighways()); + } + if (other.getAvoidFerries() != false) { + setAvoidFerries(other.getAvoidFerries()); + } + if (other.getAvoidIndoor() != false) { + setAvoidIndoor(other.getAvoidIndoor()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + avoidTolls_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: { + avoidHighways_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + avoidFerries_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + avoidIndoor_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean avoidTolls_ ; + /** + *
+     * Specifies whether to avoid toll roads where reasonable. Preference will be
+     * given to routes not containing toll roads. Applies only to motorized travel
+     * modes.
+     * 
+ * + * bool avoid_tolls = 2; + * @return The avoidTolls. + */ + @java.lang.Override + public boolean getAvoidTolls() { + return avoidTolls_; + } + /** + *
+     * Specifies whether to avoid toll roads where reasonable. Preference will be
+     * given to routes not containing toll roads. Applies only to motorized travel
+     * modes.
+     * 
+ * + * bool avoid_tolls = 2; + * @param value The avoidTolls to set. + * @return This builder for chaining. + */ + public Builder setAvoidTolls(boolean value) { + + avoidTolls_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Specifies whether to avoid toll roads where reasonable. Preference will be
+     * given to routes not containing toll roads. Applies only to motorized travel
+     * modes.
+     * 
+ * + * bool avoid_tolls = 2; + * @return This builder for chaining. + */ + public Builder clearAvoidTolls() { + bitField0_ = (bitField0_ & ~0x00000001); + avoidTolls_ = false; + onChanged(); + return this; + } + + private boolean avoidHighways_ ; + /** + *
+     * Specifies whether to avoid highways where reasonable. Preference will be
+     * given to routes not containing highways. Applies only to motorized travel
+     * modes.
+     * 
+ * + * bool avoid_highways = 3; + * @return The avoidHighways. + */ + @java.lang.Override + public boolean getAvoidHighways() { + return avoidHighways_; + } + /** + *
+     * Specifies whether to avoid highways where reasonable. Preference will be
+     * given to routes not containing highways. Applies only to motorized travel
+     * modes.
+     * 
+ * + * bool avoid_highways = 3; + * @param value The avoidHighways to set. + * @return This builder for chaining. + */ + public Builder setAvoidHighways(boolean value) { + + avoidHighways_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Specifies whether to avoid highways where reasonable. Preference will be
+     * given to routes not containing highways. Applies only to motorized travel
+     * modes.
+     * 
+ * + * bool avoid_highways = 3; + * @return This builder for chaining. + */ + public Builder clearAvoidHighways() { + bitField0_ = (bitField0_ & ~0x00000002); + avoidHighways_ = false; + onChanged(); + return this; + } + + private boolean avoidFerries_ ; + /** + *
+     * Specifies whether to avoid ferries where reasonable. Preference will be
+     * given to routes not containing travel by ferries. Applies only to motorized
+     * travel modes.
+     * 
+ * + * bool avoid_ferries = 4; + * @return The avoidFerries. + */ + @java.lang.Override + public boolean getAvoidFerries() { + return avoidFerries_; + } + /** + *
+     * Specifies whether to avoid ferries where reasonable. Preference will be
+     * given to routes not containing travel by ferries. Applies only to motorized
+     * travel modes.
+     * 
+ * + * bool avoid_ferries = 4; + * @param value The avoidFerries to set. + * @return This builder for chaining. + */ + public Builder setAvoidFerries(boolean value) { + + avoidFerries_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Specifies whether to avoid ferries where reasonable. Preference will be
+     * given to routes not containing travel by ferries. Applies only to motorized
+     * travel modes.
+     * 
+ * + * bool avoid_ferries = 4; + * @return This builder for chaining. + */ + public Builder clearAvoidFerries() { + bitField0_ = (bitField0_ & ~0x00000004); + avoidFerries_ = false; + onChanged(); + return this; + } + + private boolean avoidIndoor_ ; + /** + *
+     * Optional. Specifies whether to avoid navigating indoors where reasonable.
+     * Preference will be given to routes not containing indoor navigation.
+     * Applies only to the `WALKING` travel mode.
+     * 
+ * + * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The avoidIndoor. + */ + @java.lang.Override + public boolean getAvoidIndoor() { + return avoidIndoor_; + } + /** + *
+     * Optional. Specifies whether to avoid navigating indoors where reasonable.
+     * Preference will be given to routes not containing indoor navigation.
+     * Applies only to the `WALKING` travel mode.
+     * 
+ * + * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The avoidIndoor to set. + * @return This builder for chaining. + */ + public Builder setAvoidIndoor(boolean value) { + + avoidIndoor_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies whether to avoid navigating indoors where reasonable.
+     * Preference will be given to routes not containing indoor navigation.
+     * Applies only to the `WALKING` travel mode.
+     * 
+ * + * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearAvoidIndoor() { + bitField0_ = (bitField0_ & ~0x00000008); + avoidIndoor_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.RouteModifiers) + } + + // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.RouteModifiers) + private static final com.google.cloud.optimization.v1.RouteModifiers DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.RouteModifiers(); + } + + public static com.google.cloud.optimization.v1.RouteModifiers getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteModifiers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.optimization.v1.RouteModifiers getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java new file mode 100644 index 000000000000..8e386a58a812 --- /dev/null +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/optimization/v1/fleet_routing.proto + +package com.google.cloud.optimization.v1; + +public interface RouteModifiersOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.RouteModifiers) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Specifies whether to avoid toll roads where reasonable. Preference will be
+   * given to routes not containing toll roads. Applies only to motorized travel
+   * modes.
+   * 
+ * + * bool avoid_tolls = 2; + * @return The avoidTolls. + */ + boolean getAvoidTolls(); + + /** + *
+   * Specifies whether to avoid highways where reasonable. Preference will be
+   * given to routes not containing highways. Applies only to motorized travel
+   * modes.
+   * 
+ * + * bool avoid_highways = 3; + * @return The avoidHighways. + */ + boolean getAvoidHighways(); + + /** + *
+   * Specifies whether to avoid ferries where reasonable. Preference will be
+   * given to routes not containing travel by ferries. Applies only to motorized
+   * travel modes.
+   * 
+ * + * bool avoid_ferries = 4; + * @return The avoidFerries. + */ + boolean getAvoidFerries(); + + /** + *
+   * Optional. Specifies whether to avoid navigating indoors where reasonable.
+   * Preference will be given to routes not containing indoor navigation.
+   * Applies only to the `WALKING` travel mode.
+   * 
+ * + * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The avoidIndoor. + */ + boolean getAvoidIndoor(); +} diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java similarity index 78% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java index 2cacf25aa36a..22b71b21848d 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * The shipment of a single item, from one of its pickups to one of its
  * deliveries. For the shipment to be considered as performed, a unique vehicle
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.Shipment}
  */
-public final class Shipment extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Shipment extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Shipment)
     ShipmentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Shipment.newBuilder() to construct.
   private Shipment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Shipment() {
     pickups_ = java.util.Collections.emptyList();
     deliveries_ = java.util.Collections.emptyList();
@@ -54,44 +36,41 @@ private Shipment() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Shipment();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_Shipment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 14:
         return internalGetLoadDemands();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.Shipment.class,
-            com.google.cloud.optimization.v1.Shipment.Builder.class);
+            com.google.cloud.optimization.v1.Shipment.class, com.google.cloud.optimization.v1.Shipment.Builder.class);
   }
 
-  public interface VisitRequestOrBuilder
-      extends
+  public interface VisitRequestOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Shipment.VisitRequest)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -99,13 +78,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.type.LatLng arrival_location = 1; - * * @return Whether the arrivalLocation field is set. */ boolean hasArrivalLocation(); /** - * - * *
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -113,13 +89,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.type.LatLng arrival_location = 1; - * * @return The arrivalLocation. */ com.google.type.LatLng getArrivalLocation(); /** - * - * *
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -131,8 +104,6 @@ public interface VisitRequestOrBuilder
     com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder();
 
     /**
-     *
-     *
      * 
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -140,13 +111,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; - * * @return Whether the arrivalWaypoint field is set. */ boolean hasArrivalWaypoint(); /** - * - * *
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -154,13 +122,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; - * * @return The arrivalWaypoint. */ com.google.cloud.optimization.v1.Waypoint getArrivalWaypoint(); /** - * - * *
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -172,8 +137,6 @@ public interface VisitRequestOrBuilder
     com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBuilder();
 
     /**
-     *
-     *
      * 
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -182,13 +145,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.type.LatLng departure_location = 3; - * * @return Whether the departureLocation field is set. */ boolean hasDepartureLocation(); /** - * - * *
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -197,13 +157,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.type.LatLng departure_location = 3; - * * @return The departureLocation. */ com.google.type.LatLng getDepartureLocation(); /** - * - * *
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -216,8 +173,6 @@ public interface VisitRequestOrBuilder
     com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder();
 
     /**
-     *
-     *
      * 
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -226,13 +181,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; - * * @return Whether the departureWaypoint field is set. */ boolean hasDepartureWaypoint(); /** - * - * *
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -241,13 +193,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; - * * @return The departureWaypoint. */ com.google.cloud.optimization.v1.Waypoint getDepartureWaypoint(); /** - * - * *
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -260,63 +209,51 @@ public interface VisitRequestOrBuilder
     com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOrBuilder();
 
     /**
-     *
-     *
      * 
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; - * * @return A list containing the tags. */ - java.util.List getTagsList(); + java.util.List + getTagsList(); /** - * - * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; - * * @return The count of tags. */ int getTagsCount(); /** - * - * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; - * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** - * - * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString getTagsBytes(int index); + com.google.protobuf.ByteString + getTagsBytes(int index); /** - * - * *
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -336,10 +273,9 @@ public interface VisitRequestOrBuilder
      *
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
-    java.util.List getTimeWindowsList();
+    java.util.List 
+        getTimeWindowsList();
     /**
-     *
-     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -361,8 +297,6 @@ public interface VisitRequestOrBuilder
      */
     com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index);
     /**
-     *
-     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -384,8 +318,6 @@ public interface VisitRequestOrBuilder
      */
     int getTimeWindowsCount();
     /**
-     *
-     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -405,11 +337,9 @@ public interface VisitRequestOrBuilder
      *
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
-    java.util.List
+    java.util.List 
         getTimeWindowsOrBuilderList();
     /**
-     *
-     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -429,11 +359,10 @@ public interface VisitRequestOrBuilder
      *
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
-    com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(int index);
+    com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
+        int index);
 
     /**
-     *
-     *
      * 
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -441,13 +370,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.protobuf.Duration duration = 7; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -455,13 +381,10 @@ public interface VisitRequestOrBuilder
      * 
* * .google.protobuf.Duration duration = 7; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -473,8 +396,6 @@ public interface VisitRequestOrBuilder
     com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
     /**
-     *
-     *
      * 
      * Cost to service this visit request on a vehicle route. This can be used
      * to pay different costs for each alternative pickup or delivery of a
@@ -483,14 +404,11 @@ public interface VisitRequestOrBuilder
      * 
* * double cost = 8; - * * @return The cost. */ double getCost(); /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -501,13 +419,10 @@ public interface VisitRequestOrBuilder
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ int getLoadDemandsCount(); /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -518,17 +433,17 @@ public interface VisitRequestOrBuilder
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + */ + boolean containsLoadDemands( + java.lang.String key); + /** + * Use {@link #getLoadDemandsMap()} instead. */ - boolean containsLoadDemands(java.lang.String key); - /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Deprecated java.util.Map - getLoadDemands(); + getLoadDemands(); /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -539,14 +454,11 @@ public interface VisitRequestOrBuilder
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ java.util.Map - getLoadDemandsMap(); + getLoadDemandsMap(); /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -557,17 +469,14 @@ public interface VisitRequestOrBuilder
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( +com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load defaultValue); +com.google.cloud.optimization.v1.Shipment.Load defaultValue); /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -578,14 +487,12 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ - com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(java.lang.String key); + com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( + java.lang.String key); /** - * - * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -595,13 +502,11 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * repeated string visit_types = 10; - * * @return A list containing the visitTypes. */ - java.util.List getVisitTypesList(); + java.util.List + getVisitTypesList(); /** - * - * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -611,13 +516,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * repeated string visit_types = 10; - * * @return The count of visitTypes. */ int getVisitTypesCount(); /** - * - * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -627,14 +529,11 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * repeated string visit_types = 10; - * * @param index The index of the element to return. * @return The visitTypes at the given index. */ java.lang.String getVisitTypes(int index); /** - * - * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -644,15 +543,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * repeated string visit_types = 10; - * * @param index The index of the value to return. * @return The bytes of the visitTypes at the given index. */ - com.google.protobuf.ByteString getVisitTypesBytes(int index); + com.google.protobuf.ByteString + getVisitTypesBytes(int index); /** - * - * *
      * Specifies a label for this `VisitRequest`. This label is reported in the
      * response as `visit_label` in the corresponding
@@ -660,13 +557,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * string label = 11; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
      * Specifies a label for this `VisitRequest`. This label is reported in the
      * response as `visit_label` in the corresponding
@@ -674,91 +568,66 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * string label = 11; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getDemandsList(); + @java.lang.Deprecated java.util.List + getDemandsList(); /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - int getDemandsCount(); + @java.lang.Deprecated int getDemandsCount(); /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getDemandsOrBuilderList(); /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + int index); } /** - * - * *
    * Request for a visit which can be done by a vehicle: it has a geo-location
    * (or two, see below), opening and closing times represented by time windows,
@@ -768,61 +637,60 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    *
    * Protobuf type {@code google.cloud.optimization.v1.Shipment.VisitRequest}
    */
-  public static final class VisitRequest extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class VisitRequest extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Shipment.VisitRequest)
       VisitRequestOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use VisitRequest.newBuilder() to construct.
     private VisitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private VisitRequest() {
-      tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      tags_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       timeWindows_ = java.util.Collections.emptyList();
-      visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      visitTypes_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       label_ = "";
       demands_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new VisitRequest();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
     @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 12:
           return internalGetLoadDemands();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Shipment.VisitRequest.class,
-              com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder.class);
+              com.google.cloud.optimization.v1.Shipment.VisitRequest.class, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder.class);
     }
 
     public static final int ARRIVAL_LOCATION_FIELD_NUMBER = 1;
     private com.google.type.LatLng arrivalLocation_;
     /**
-     *
-     *
      * 
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -830,7 +698,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
      * 
* * .google.type.LatLng arrival_location = 1; - * * @return Whether the arrivalLocation field is set. */ @java.lang.Override @@ -838,8 +705,6 @@ public boolean hasArrivalLocation() { return arrivalLocation_ != null; } /** - * - * *
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -847,18 +712,13 @@ public boolean hasArrivalLocation() {
      * 
* * .google.type.LatLng arrival_location = 1; - * * @return The arrivalLocation. */ @java.lang.Override public com.google.type.LatLng getArrivalLocation() { - return arrivalLocation_ == null - ? com.google.type.LatLng.getDefaultInstance() - : arrivalLocation_; + return arrivalLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : arrivalLocation_; } /** - * - * *
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -869,16 +729,12 @@ public com.google.type.LatLng getArrivalLocation() {
      */
     @java.lang.Override
     public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
-      return arrivalLocation_ == null
-          ? com.google.type.LatLng.getDefaultInstance()
-          : arrivalLocation_;
+      return arrivalLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : arrivalLocation_;
     }
 
     public static final int ARRIVAL_WAYPOINT_FIELD_NUMBER = 2;
     private com.google.cloud.optimization.v1.Waypoint arrivalWaypoint_;
     /**
-     *
-     *
      * 
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -886,7 +742,6 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
      * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; - * * @return Whether the arrivalWaypoint field is set. */ @java.lang.Override @@ -894,8 +749,6 @@ public boolean hasArrivalWaypoint() { return arrivalWaypoint_ != null; } /** - * - * *
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -903,18 +756,13 @@ public boolean hasArrivalWaypoint() {
      * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; - * * @return The arrivalWaypoint. */ @java.lang.Override public com.google.cloud.optimization.v1.Waypoint getArrivalWaypoint() { - return arrivalWaypoint_ == null - ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() - : arrivalWaypoint_; + return arrivalWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : arrivalWaypoint_; } /** - * - * *
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -925,16 +773,12 @@ public com.google.cloud.optimization.v1.Waypoint getArrivalWaypoint() {
      */
     @java.lang.Override
     public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBuilder() {
-      return arrivalWaypoint_ == null
-          ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
-          : arrivalWaypoint_;
+      return arrivalWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : arrivalWaypoint_;
     }
 
     public static final int DEPARTURE_LOCATION_FIELD_NUMBER = 3;
     private com.google.type.LatLng departureLocation_;
     /**
-     *
-     *
      * 
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -943,7 +787,6 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
      * 
* * .google.type.LatLng departure_location = 3; - * * @return Whether the departureLocation field is set. */ @java.lang.Override @@ -951,8 +794,6 @@ public boolean hasDepartureLocation() { return departureLocation_ != null; } /** - * - * *
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -961,18 +802,13 @@ public boolean hasDepartureLocation() {
      * 
* * .google.type.LatLng departure_location = 3; - * * @return The departureLocation. */ @java.lang.Override public com.google.type.LatLng getDepartureLocation() { - return departureLocation_ == null - ? com.google.type.LatLng.getDefaultInstance() - : departureLocation_; + return departureLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : departureLocation_; } /** - * - * *
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -984,16 +820,12 @@ public com.google.type.LatLng getDepartureLocation() {
      */
     @java.lang.Override
     public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
-      return departureLocation_ == null
-          ? com.google.type.LatLng.getDefaultInstance()
-          : departureLocation_;
+      return departureLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : departureLocation_;
     }
 
     public static final int DEPARTURE_WAYPOINT_FIELD_NUMBER = 4;
     private com.google.cloud.optimization.v1.Waypoint departureWaypoint_;
     /**
-     *
-     *
      * 
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -1002,7 +834,6 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
      * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; - * * @return Whether the departureWaypoint field is set. */ @java.lang.Override @@ -1010,8 +841,6 @@ public boolean hasDepartureWaypoint() { return departureWaypoint_ != null; } /** - * - * *
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -1020,18 +849,13 @@ public boolean hasDepartureWaypoint() {
      * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; - * * @return The departureWaypoint. */ @java.lang.Override public com.google.cloud.optimization.v1.Waypoint getDepartureWaypoint() { - return departureWaypoint_ == null - ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() - : departureWaypoint_; + return departureWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : departureWaypoint_; } /** - * - * *
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -1043,56 +867,45 @@ public com.google.cloud.optimization.v1.Waypoint getDepartureWaypoint() {
      */
     @java.lang.Override
     public com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOrBuilder() {
-      return departureWaypoint_ == null
-          ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
-          : departureWaypoint_;
+      return departureWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : departureWaypoint_;
     }
 
     public static final int TAGS_FIELD_NUMBER = 5;
-
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList tags_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
-     *
-     *
      * 
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_; } /** - * - * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -1100,29 +913,24 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } public static final int TIME_WINDOWS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private java.util.List timeWindows_; /** - * - * *
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -1147,8 +955,6 @@ public java.util.List getTimeWindow
       return timeWindows_;
     }
     /**
-     *
-     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -1169,13 +975,11 @@ public java.util.List getTimeWindow
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
     @java.lang.Override
-    public java.util.List
+    public java.util.List 
         getTimeWindowsOrBuilderList() {
       return timeWindows_;
     }
     /**
-     *
-     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -1200,8 +1004,6 @@ public int getTimeWindowsCount() {
       return timeWindows_.size();
     }
     /**
-     *
-     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -1226,8 +1028,6 @@ public com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index) {
       return timeWindows_.get(index);
     }
     /**
-     *
-     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -1248,15 +1048,14 @@ public com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index) {
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
     @java.lang.Override
-    public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(int index) {
+    public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
+        int index) {
       return timeWindows_.get(index);
     }
 
     public static final int DURATION_FIELD_NUMBER = 7;
     private com.google.protobuf.Duration duration_;
     /**
-     *
-     *
      * 
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -1264,7 +1063,6 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuil
      * 
* * .google.protobuf.Duration duration = 7; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -1272,8 +1070,6 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -1281,7 +1077,6 @@ public boolean hasDuration() {
      * 
* * .google.protobuf.Duration duration = 7; - * * @return The duration. */ @java.lang.Override @@ -1289,8 +1084,6 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -1307,8 +1100,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
     public static final int COST_FIELD_NUMBER = 8;
     private double cost_ = 0D;
     /**
-     *
-     *
      * 
      * Cost to service this visit request on a vehicle route. This can be used
      * to pay different costs for each alternative pickup or delivery of a
@@ -1317,7 +1108,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
      * 
* * double cost = 8; - * * @return The cost. */ @java.lang.Override @@ -1326,43 +1116,32 @@ public double getCost() { } public static final int LOAD_DEMANDS_FIELD_NUMBER = 12; - private static final class LoadDemandsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> - defaultEntry = + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> - loadDemands_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> - internalGetLoadDemands() { + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_; + private com.google.protobuf.MapField + internalGetLoadDemands() { if (loadDemands_ == null) { return com.google.protobuf.MapField.emptyMapField( LoadDemandsDefaultEntryHolder.defaultEntry); } return loadDemands_; } - public int getLoadDemandsCount() { return internalGetLoadDemands().getMap().size(); } /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -1373,26 +1152,23 @@ public int getLoadDemandsCount() {
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ @java.lang.Override - public boolean containsLoadDemands(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLoadDemands( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLoadDemands().getMap().containsKey(key); } - /** Use {@link #getLoadDemandsMap()} instead. */ + /** + * Use {@link #getLoadDemandsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getLoadDemands() { + public java.util.Map getLoadDemands() { return getLoadDemandsMap(); } /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -1403,17 +1179,13 @@ public boolean containsLoadDemands(java.lang.String key) {
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ @java.lang.Override - public java.util.Map - getLoadDemandsMap() { + public java.util.Map getLoadDemandsMap() { return internalGetLoadDemands().getMap(); } /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -1424,24 +1196,20 @@ public boolean containsLoadDemands(java.lang.String key) {
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( + public /* nullable */ +com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.optimization.v1.Shipment.Load defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -1452,15 +1220,12 @@ public boolean containsLoadDemands(java.lang.String key) {
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -1470,13 +1235,10 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( } public static final int VISIT_TYPES_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -1486,15 +1248,13 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * repeated string visit_types = 10; - * * @return A list containing the visitTypes. */ - public com.google.protobuf.ProtocolStringList getVisitTypesList() { + public com.google.protobuf.ProtocolStringList + getVisitTypesList() { return visitTypes_; } /** - * - * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -1504,15 +1264,12 @@ public com.google.protobuf.ProtocolStringList getVisitTypesList() {
      * 
* * repeated string visit_types = 10; - * * @return The count of visitTypes. */ public int getVisitTypesCount() { return visitTypes_.size(); } /** - * - * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -1522,7 +1279,6 @@ public int getVisitTypesCount() {
      * 
* * repeated string visit_types = 10; - * * @param index The index of the element to return. * @return The visitTypes at the given index. */ @@ -1530,8 +1286,6 @@ public java.lang.String getVisitTypes(int index) { return visitTypes_.get(index); } /** - * - * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -1541,21 +1295,18 @@ public java.lang.String getVisitTypes(int index) {
      * 
* * repeated string visit_types = 10; - * * @param index The index of the value to return. * @return The bytes of the visitTypes at the given index. */ - public com.google.protobuf.ByteString getVisitTypesBytes(int index) { + public com.google.protobuf.ByteString + getVisitTypesBytes(int index) { return visitTypes_.getByteString(index); } public static final int LABEL_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** - * - * *
      * Specifies a label for this `VisitRequest`. This label is reported in the
      * response as `visit_label` in the corresponding
@@ -1563,7 +1314,6 @@ public com.google.protobuf.ByteString getVisitTypesBytes(int index) {
      * 
* * string label = 11; - * * @return The label. */ @java.lang.Override @@ -1572,15 +1322,14 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
      * Specifies a label for this `VisitRequest`. This label is reported in the
      * response as `visit_label` in the corresponding
@@ -1588,15 +1337,16 @@ public java.lang.String getLabel() {
      * 
* * string label = 11; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -1605,104 +1355,77 @@ public com.google.protobuf.ByteString getLabelBytes() { } public static final int DEMANDS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List demands_; /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getDemandsList() { + @java.lang.Deprecated public java.util.List getDemandsList() { return demands_; } /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getDemandsOrBuilderList() { return demands_; } /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getDemandsCount() { + @java.lang.Deprecated public int getDemandsCount() { return demands_.size(); } /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { return demands_.get(index); } /** - * - * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { return demands_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1714,7 +1437,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (arrivalLocation_ != null) { output.writeMessage(1, getArrivalLocation()); } @@ -1748,8 +1472,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, label_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLoadDemands(), LoadDemandsDefaultEntryHolder.defaultEntry, 12); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLoadDemands(), + LoadDemandsDefaultEntryHolder.defaultEntry, + 12); getUnknownFields().writeTo(output); } @@ -1760,16 +1488,20 @@ public int getSerializedSize() { size = 0; if (arrivalLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArrivalLocation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getArrivalLocation()); } if (arrivalWaypoint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArrivalWaypoint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getArrivalWaypoint()); } if (departureLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDepartureLocation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDepartureLocation()); } if (departureWaypoint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDepartureWaypoint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDepartureWaypoint()); } { int dataSize = 0; @@ -1780,16 +1512,20 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } for (int i = 0; i < timeWindows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, timeWindows_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, timeWindows_.get(i)); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDuration()); } if (java.lang.Double.doubleToRawLongBits(cost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, cost_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, cost_); } for (int i = 0; i < demands_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, demands_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, demands_.get(i)); } { int dataSize = 0; @@ -1802,17 +1538,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, label_); } - for (java.util.Map.Entry - entry : internalGetLoadDemands().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> - loadDemands__ = - LoadDemandsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, loadDemands__); + for (java.util.Map.Entry entry + : internalGetLoadDemands().getMap().entrySet()) { + com.google.protobuf.MapEntry + loadDemands__ = LoadDemandsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, loadDemands__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1822,42 +1556,53 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Shipment.VisitRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Shipment.VisitRequest other = - (com.google.cloud.optimization.v1.Shipment.VisitRequest) obj; + com.google.cloud.optimization.v1.Shipment.VisitRequest other = (com.google.cloud.optimization.v1.Shipment.VisitRequest) obj; if (hasArrivalLocation() != other.hasArrivalLocation()) return false; if (hasArrivalLocation()) { - if (!getArrivalLocation().equals(other.getArrivalLocation())) return false; + if (!getArrivalLocation() + .equals(other.getArrivalLocation())) return false; } if (hasArrivalWaypoint() != other.hasArrivalWaypoint()) return false; if (hasArrivalWaypoint()) { - if (!getArrivalWaypoint().equals(other.getArrivalWaypoint())) return false; + if (!getArrivalWaypoint() + .equals(other.getArrivalWaypoint())) return false; } if (hasDepartureLocation() != other.hasDepartureLocation()) return false; if (hasDepartureLocation()) { - if (!getDepartureLocation().equals(other.getDepartureLocation())) return false; + if (!getDepartureLocation() + .equals(other.getDepartureLocation())) return false; } if (hasDepartureWaypoint() != other.hasDepartureWaypoint()) return false; if (hasDepartureWaypoint()) { - if (!getDepartureWaypoint().equals(other.getDepartureWaypoint())) return false; + if (!getDepartureWaypoint() + .equals(other.getDepartureWaypoint())) return false; } - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getTimeWindowsList().equals(other.getTimeWindowsList())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getTimeWindowsList() + .equals(other.getTimeWindowsList())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (java.lang.Double.doubleToLongBits(getCost()) - != java.lang.Double.doubleToLongBits(other.getCost())) return false; - if (!internalGetLoadDemands().equals(other.internalGetLoadDemands())) return false; - if (!getVisitTypesList().equals(other.getVisitTypesList())) return false; - if (!getLabel().equals(other.getLabel())) return false; - if (!getDemandsList().equals(other.getDemandsList())) return false; + != java.lang.Double.doubleToLongBits( + other.getCost())) return false; + if (!internalGetLoadDemands().equals( + other.internalGetLoadDemands())) return false; + if (!getVisitTypesList() + .equals(other.getVisitTypesList())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (!getDemandsList() + .equals(other.getDemandsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1898,9 +1643,8 @@ public int hashCode() { hash = (53 * hash) + getDuration().hashCode(); } hash = (37 * hash) + COST_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getCost())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCost())); if (!internalGetLoadDemands().getMap().isEmpty()) { hash = (37 * hash) + LOAD_DEMANDS_FIELD_NUMBER; hash = (53 * hash) + internalGetLoadDemands().hashCode(); @@ -1921,94 +1665,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.Shipment.VisitRequest prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.Shipment.VisitRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2018,8 +1757,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request for a visit which can be done by a vehicle: it has a geo-location
      * (or two, see below), opening and closing times represented by time windows,
@@ -2029,53 +1766,55 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.Shipment.VisitRequest}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Shipment.VisitRequest)
         com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMapField(
+          int number) {
         switch (number) {
           case 12:
             return internalGetLoadDemands();
           default:
-            throw new RuntimeException("Invalid map field number: " + number);
+            throw new RuntimeException(
+                "Invalid map field number: " + number);
         }
       }
-
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMutableMapField(
+          int number) {
         switch (number) {
           case 12:
             return internalGetMutableLoadDemands();
           default:
-            throw new RuntimeException("Invalid map field number: " + number);
+            throw new RuntimeException(
+                "Invalid map field number: " + number);
         }
       }
-
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.Shipment.VisitRequest.class,
-                com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder.class);
+                com.google.cloud.optimization.v1.Shipment.VisitRequest.class, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.Shipment.VisitRequest.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2100,7 +1839,8 @@ public Builder clear() {
           departureWaypointBuilder_.dispose();
           departureWaypointBuilder_ = null;
         }
-        tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        tags_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
         if (timeWindowsBuilder_ == null) {
           timeWindows_ = java.util.Collections.emptyList();
         } else {
@@ -2115,7 +1855,8 @@ public Builder clear() {
         }
         cost_ = 0D;
         internalGetMutableLoadDemands().clear();
-        visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        visitTypes_ =
+            com.google.protobuf.LazyStringArrayList.emptyList();
         label_ = "";
         if (demandsBuilder_ == null) {
           demands_ = java.util.Collections.emptyList();
@@ -2128,9 +1869,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
       }
 
       @java.lang.Override
@@ -2149,18 +1890,14 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.Shipment.VisitRequest buildPartial() {
-        com.google.cloud.optimization.v1.Shipment.VisitRequest result =
-            new com.google.cloud.optimization.v1.Shipment.VisitRequest(this);
+        com.google.cloud.optimization.v1.Shipment.VisitRequest result = new com.google.cloud.optimization.v1.Shipment.VisitRequest(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.optimization.v1.Shipment.VisitRequest result) {
+      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipment.VisitRequest result) {
         if (timeWindowsBuilder_ == null) {
           if (((bitField0_ & 0x00000020) != 0)) {
             timeWindows_ = java.util.Collections.unmodifiableList(timeWindows_);
@@ -2184,31 +1921,33 @@ private void buildPartialRepeatedFields(
       private void buildPartial0(com.google.cloud.optimization.v1.Shipment.VisitRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.arrivalLocation_ =
-              arrivalLocationBuilder_ == null ? arrivalLocation_ : arrivalLocationBuilder_.build();
+          result.arrivalLocation_ = arrivalLocationBuilder_ == null
+              ? arrivalLocation_
+              : arrivalLocationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.arrivalWaypoint_ =
-              arrivalWaypointBuilder_ == null ? arrivalWaypoint_ : arrivalWaypointBuilder_.build();
+          result.arrivalWaypoint_ = arrivalWaypointBuilder_ == null
+              ? arrivalWaypoint_
+              : arrivalWaypointBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.departureLocation_ =
-              departureLocationBuilder_ == null
-                  ? departureLocation_
-                  : departureLocationBuilder_.build();
+          result.departureLocation_ = departureLocationBuilder_ == null
+              ? departureLocation_
+              : departureLocationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.departureWaypoint_ =
-              departureWaypointBuilder_ == null
-                  ? departureWaypoint_
-                  : departureWaypointBuilder_.build();
+          result.departureWaypoint_ = departureWaypointBuilder_ == null
+              ? departureWaypoint_
+              : departureWaypointBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
           tags_.makeImmutable();
           result.tags_ = tags_;
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
-          result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
+          result.duration_ = durationBuilder_ == null
+              ? duration_
+              : durationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000080) != 0)) {
           result.cost_ = cost_;
@@ -2230,41 +1969,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.Shipment.VisitReques
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.Shipment.VisitRequest) {
-          return mergeFrom((com.google.cloud.optimization.v1.Shipment.VisitRequest) other);
+          return mergeFrom((com.google.cloud.optimization.v1.Shipment.VisitRequest)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2272,8 +2008,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.VisitRequest other) {
-        if (other == com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance()) return this;
         if (other.hasArrivalLocation()) {
           mergeArrivalLocation(other.getArrivalLocation());
         }
@@ -2314,10 +2049,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.VisitRequest
               timeWindowsBuilder_ = null;
               timeWindows_ = other.timeWindows_;
               bitField0_ = (bitField0_ & ~0x00000020);
-              timeWindowsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getTimeWindowsFieldBuilder()
-                      : null;
+              timeWindowsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getTimeWindowsFieldBuilder() : null;
             } else {
               timeWindowsBuilder_.addAllMessages(other.timeWindows_);
             }
@@ -2329,7 +2063,8 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.VisitRequest
         if (other.getCost() != 0D) {
           setCost(other.getCost());
         }
-        internalGetMutableLoadDemands().mergeFrom(other.internalGetLoadDemands());
+        internalGetMutableLoadDemands().mergeFrom(
+            other.internalGetLoadDemands());
         bitField0_ |= 0x00000100;
         if (!other.visitTypes_.isEmpty()) {
           if (visitTypes_.isEmpty()) {
@@ -2364,10 +2099,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.VisitRequest
               demandsBuilder_ = null;
               demands_ = other.demands_;
               bitField0_ = (bitField0_ & ~0x00000800);
-              demandsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getDemandsFieldBuilder()
-                      : null;
+              demandsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getDemandsFieldBuilder() : null;
             } else {
               demandsBuilder_.addAllMessages(other.demands_);
             }
@@ -2399,114 +2133,104 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(
-                      getArrivalLocationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getArrivalWaypointFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  input.readMessage(
-                      getDepartureLocationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              case 34:
-                {
-                  input.readMessage(
-                      getDepartureWaypointFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              case 42:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureTagsIsMutable();
-                  tags_.add(s);
-                  break;
-                } // case 42
-              case 50:
-                {
-                  com.google.cloud.optimization.v1.TimeWindow m =
-                      input.readMessage(
-                          com.google.cloud.optimization.v1.TimeWindow.parser(), extensionRegistry);
-                  if (timeWindowsBuilder_ == null) {
-                    ensureTimeWindowsIsMutable();
-                    timeWindows_.add(m);
-                  } else {
-                    timeWindowsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 50
-              case 58:
-                {
-                  input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000040;
-                  break;
-                } // case 58
-              case 65:
-                {
-                  cost_ = input.readDouble();
-                  bitField0_ |= 0x00000080;
-                  break;
-                } // case 65
-              case 74:
-                {
-                  com.google.cloud.optimization.v1.CapacityQuantity m =
-                      input.readMessage(
-                          com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                          extensionRegistry);
-                  if (demandsBuilder_ == null) {
-                    ensureDemandsIsMutable();
-                    demands_.add(m);
-                  } else {
-                    demandsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 74
-              case 82:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  ensureVisitTypesIsMutable();
-                  visitTypes_.add(s);
-                  break;
-                } // case 82
-              case 90:
-                {
-                  label_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000400;
-                  break;
-                } // case 90
-              case 98:
-                {
-                  com.google.protobuf.MapEntry<
-                          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-                      loadDemands__ =
-                          input.readMessage(
-                              LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(),
-                              extensionRegistry);
-                  internalGetMutableLoadDemands()
-                      .getMutableMap()
-                      .put(loadDemands__.getKey(), loadDemands__.getValue());
-                  bitField0_ |= 0x00000100;
-                  break;
-                } // case 98
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getArrivalLocationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getArrivalWaypointFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                input.readMessage(
+                    getDepartureLocationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              case 34: {
+                input.readMessage(
+                    getDepartureWaypointFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              case 42: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureTagsIsMutable();
+                tags_.add(s);
+                break;
+              } // case 42
+              case 50: {
+                com.google.cloud.optimization.v1.TimeWindow m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.TimeWindow.parser(),
+                        extensionRegistry);
+                if (timeWindowsBuilder_ == null) {
+                  ensureTimeWindowsIsMutable();
+                  timeWindows_.add(m);
+                } else {
+                  timeWindowsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+              case 58: {
+                input.readMessage(
+                    getDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+              case 65: {
+                cost_ = input.readDouble();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 65
+              case 74: {
+                com.google.cloud.optimization.v1.CapacityQuantity m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                        extensionRegistry);
+                if (demandsBuilder_ == null) {
+                  ensureDemandsIsMutable();
+                  demands_.add(m);
+                } else {
+                  demandsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 74
+              case 82: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureVisitTypesIsMutable();
+                visitTypes_.add(s);
+                break;
+              } // case 82
+              case 90: {
+                label_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+              case 98: {
+                com.google.protobuf.MapEntry
+                loadDemands__ = input.readMessage(
+                    LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+                internalGetMutableLoadDemands().getMutableMap().put(
+                    loadDemands__.getKey(), loadDemands__.getValue());
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 98
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2516,18 +2240,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.type.LatLng arrivalLocation_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LatLng,
-              com.google.type.LatLng.Builder,
-              com.google.type.LatLngOrBuilder>
-          arrivalLocationBuilder_;
+          com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> arrivalLocationBuilder_;
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2535,15 +2253,12 @@ public Builder mergeFrom(
        * 
* * .google.type.LatLng arrival_location = 1; - * * @return Whether the arrivalLocation field is set. */ public boolean hasArrivalLocation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2551,21 +2266,16 @@ public boolean hasArrivalLocation() {
        * 
* * .google.type.LatLng arrival_location = 1; - * * @return The arrivalLocation. */ public com.google.type.LatLng getArrivalLocation() { if (arrivalLocationBuilder_ == null) { - return arrivalLocation_ == null - ? com.google.type.LatLng.getDefaultInstance() - : arrivalLocation_; + return arrivalLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : arrivalLocation_; } else { return arrivalLocationBuilder_.getMessage(); } } /** - * - * *
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2588,8 +2298,6 @@ public Builder setArrivalLocation(com.google.type.LatLng value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2598,7 +2306,8 @@ public Builder setArrivalLocation(com.google.type.LatLng value) {
        *
        * .google.type.LatLng arrival_location = 1;
        */
-      public Builder setArrivalLocation(com.google.type.LatLng.Builder builderForValue) {
+      public Builder setArrivalLocation(
+          com.google.type.LatLng.Builder builderForValue) {
         if (arrivalLocationBuilder_ == null) {
           arrivalLocation_ = builderForValue.build();
         } else {
@@ -2609,8 +2318,6 @@ public Builder setArrivalLocation(com.google.type.LatLng.Builder builderForValue
         return this;
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2621,9 +2328,9 @@ public Builder setArrivalLocation(com.google.type.LatLng.Builder builderForValue
        */
       public Builder mergeArrivalLocation(com.google.type.LatLng value) {
         if (arrivalLocationBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && arrivalLocation_ != null
-              && arrivalLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            arrivalLocation_ != null &&
+            arrivalLocation_ != com.google.type.LatLng.getDefaultInstance()) {
             getArrivalLocationBuilder().mergeFrom(value);
           } else {
             arrivalLocation_ = value;
@@ -2636,8 +2343,6 @@ public Builder mergeArrivalLocation(com.google.type.LatLng value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2657,8 +2362,6 @@ public Builder clearArrivalLocation() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2673,8 +2376,6 @@ public com.google.type.LatLng.Builder getArrivalLocationBuilder() {
         return getArrivalLocationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2687,14 +2388,11 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
         if (arrivalLocationBuilder_ != null) {
           return arrivalLocationBuilder_.getMessageOrBuilder();
         } else {
-          return arrivalLocation_ == null
-              ? com.google.type.LatLng.getDefaultInstance()
-              : arrivalLocation_;
+          return arrivalLocation_ == null ?
+              com.google.type.LatLng.getDefaultInstance() : arrivalLocation_;
         }
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2704,17 +2402,14 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
        * .google.type.LatLng arrival_location = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LatLng,
-              com.google.type.LatLng.Builder,
-              com.google.type.LatLngOrBuilder>
+          com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> 
           getArrivalLocationFieldBuilder() {
         if (arrivalLocationBuilder_ == null) {
-          arrivalLocationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.type.LatLng,
-                  com.google.type.LatLng.Builder,
-                  com.google.type.LatLngOrBuilder>(
-                  getArrivalLocation(), getParentForChildren(), isClean());
+          arrivalLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
+                  getArrivalLocation(),
+                  getParentForChildren(),
+                  isClean());
           arrivalLocation_ = null;
         }
         return arrivalLocationBuilder_;
@@ -2722,13 +2417,8 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
 
       private com.google.cloud.optimization.v1.Waypoint arrivalWaypoint_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.optimization.v1.Waypoint,
-              com.google.cloud.optimization.v1.Waypoint.Builder,
-              com.google.cloud.optimization.v1.WaypointOrBuilder>
-          arrivalWaypointBuilder_;
+          com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> arrivalWaypointBuilder_;
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2736,15 +2426,12 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
        * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; - * * @return Whether the arrivalWaypoint field is set. */ public boolean hasArrivalWaypoint() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2752,21 +2439,16 @@ public boolean hasArrivalWaypoint() {
        * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; - * * @return The arrivalWaypoint. */ public com.google.cloud.optimization.v1.Waypoint getArrivalWaypoint() { if (arrivalWaypointBuilder_ == null) { - return arrivalWaypoint_ == null - ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() - : arrivalWaypoint_; + return arrivalWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : arrivalWaypoint_; } else { return arrivalWaypointBuilder_.getMessage(); } } /** - * - * *
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2789,8 +2471,6 @@ public Builder setArrivalWaypoint(com.google.cloud.optimization.v1.Waypoint valu
         return this;
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2811,8 +2491,6 @@ public Builder setArrivalWaypoint(
         return this;
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2823,10 +2501,9 @@ public Builder setArrivalWaypoint(
        */
       public Builder mergeArrivalWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
         if (arrivalWaypointBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && arrivalWaypoint_ != null
-              && arrivalWaypoint_
-                  != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            arrivalWaypoint_ != null &&
+            arrivalWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
             getArrivalWaypointBuilder().mergeFrom(value);
           } else {
             arrivalWaypoint_ = value;
@@ -2839,8 +2516,6 @@ public Builder mergeArrivalWaypoint(com.google.cloud.optimization.v1.Waypoint va
         return this;
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2860,8 +2535,6 @@ public Builder clearArrivalWaypoint() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2876,8 +2549,6 @@ public com.google.cloud.optimization.v1.Waypoint.Builder getArrivalWaypointBuild
         return getArrivalWaypointFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2890,14 +2561,11 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
         if (arrivalWaypointBuilder_ != null) {
           return arrivalWaypointBuilder_.getMessageOrBuilder();
         } else {
-          return arrivalWaypoint_ == null
-              ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
-              : arrivalWaypoint_;
+          return arrivalWaypoint_ == null ?
+              com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : arrivalWaypoint_;
         }
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2907,17 +2575,14 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
        * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.optimization.v1.Waypoint,
-              com.google.cloud.optimization.v1.Waypoint.Builder,
-              com.google.cloud.optimization.v1.WaypointOrBuilder>
+          com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> 
           getArrivalWaypointFieldBuilder() {
         if (arrivalWaypointBuilder_ == null) {
-          arrivalWaypointBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.optimization.v1.Waypoint,
-                  com.google.cloud.optimization.v1.Waypoint.Builder,
-                  com.google.cloud.optimization.v1.WaypointOrBuilder>(
-                  getArrivalWaypoint(), getParentForChildren(), isClean());
+          arrivalWaypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder>(
+                  getArrivalWaypoint(),
+                  getParentForChildren(),
+                  isClean());
           arrivalWaypoint_ = null;
         }
         return arrivalWaypointBuilder_;
@@ -2925,13 +2590,8 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
 
       private com.google.type.LatLng departureLocation_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LatLng,
-              com.google.type.LatLng.Builder,
-              com.google.type.LatLngOrBuilder>
-          departureLocationBuilder_;
+          com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> departureLocationBuilder_;
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2940,15 +2600,12 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
        * 
* * .google.type.LatLng departure_location = 3; - * * @return Whether the departureLocation field is set. */ public boolean hasDepartureLocation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2957,21 +2614,16 @@ public boolean hasDepartureLocation() {
        * 
* * .google.type.LatLng departure_location = 3; - * * @return The departureLocation. */ public com.google.type.LatLng getDepartureLocation() { if (departureLocationBuilder_ == null) { - return departureLocation_ == null - ? com.google.type.LatLng.getDefaultInstance() - : departureLocation_; + return departureLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : departureLocation_; } else { return departureLocationBuilder_.getMessage(); } } /** - * - * *
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2995,8 +2647,6 @@ public Builder setDepartureLocation(com.google.type.LatLng value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -3006,7 +2656,8 @@ public Builder setDepartureLocation(com.google.type.LatLng value) {
        *
        * .google.type.LatLng departure_location = 3;
        */
-      public Builder setDepartureLocation(com.google.type.LatLng.Builder builderForValue) {
+      public Builder setDepartureLocation(
+          com.google.type.LatLng.Builder builderForValue) {
         if (departureLocationBuilder_ == null) {
           departureLocation_ = builderForValue.build();
         } else {
@@ -3017,8 +2668,6 @@ public Builder setDepartureLocation(com.google.type.LatLng.Builder builderForVal
         return this;
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -3030,9 +2679,9 @@ public Builder setDepartureLocation(com.google.type.LatLng.Builder builderForVal
        */
       public Builder mergeDepartureLocation(com.google.type.LatLng value) {
         if (departureLocationBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0)
-              && departureLocation_ != null
-              && departureLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0) &&
+            departureLocation_ != null &&
+            departureLocation_ != com.google.type.LatLng.getDefaultInstance()) {
             getDepartureLocationBuilder().mergeFrom(value);
           } else {
             departureLocation_ = value;
@@ -3045,8 +2694,6 @@ public Builder mergeDepartureLocation(com.google.type.LatLng value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -3067,8 +2714,6 @@ public Builder clearDepartureLocation() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -3084,8 +2729,6 @@ public com.google.type.LatLng.Builder getDepartureLocationBuilder() {
         return getDepartureLocationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -3099,14 +2742,11 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
         if (departureLocationBuilder_ != null) {
           return departureLocationBuilder_.getMessageOrBuilder();
         } else {
-          return departureLocation_ == null
-              ? com.google.type.LatLng.getDefaultInstance()
-              : departureLocation_;
+          return departureLocation_ == null ?
+              com.google.type.LatLng.getDefaultInstance() : departureLocation_;
         }
       }
       /**
-       *
-       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -3117,17 +2757,14 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
        * .google.type.LatLng departure_location = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LatLng,
-              com.google.type.LatLng.Builder,
-              com.google.type.LatLngOrBuilder>
+          com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> 
           getDepartureLocationFieldBuilder() {
         if (departureLocationBuilder_ == null) {
-          departureLocationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.type.LatLng,
-                  com.google.type.LatLng.Builder,
-                  com.google.type.LatLngOrBuilder>(
-                  getDepartureLocation(), getParentForChildren(), isClean());
+          departureLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
+                  getDepartureLocation(),
+                  getParentForChildren(),
+                  isClean());
           departureLocation_ = null;
         }
         return departureLocationBuilder_;
@@ -3135,13 +2772,8 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
 
       private com.google.cloud.optimization.v1.Waypoint departureWaypoint_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.optimization.v1.Waypoint,
-              com.google.cloud.optimization.v1.Waypoint.Builder,
-              com.google.cloud.optimization.v1.WaypointOrBuilder>
-          departureWaypointBuilder_;
+          com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> departureWaypointBuilder_;
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3150,15 +2782,12 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
        * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; - * * @return Whether the departureWaypoint field is set. */ public boolean hasDepartureWaypoint() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3167,21 +2796,16 @@ public boolean hasDepartureWaypoint() {
        * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; - * * @return The departureWaypoint. */ public com.google.cloud.optimization.v1.Waypoint getDepartureWaypoint() { if (departureWaypointBuilder_ == null) { - return departureWaypoint_ == null - ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() - : departureWaypoint_; + return departureWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : departureWaypoint_; } else { return departureWaypointBuilder_.getMessage(); } } /** - * - * *
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3205,8 +2829,6 @@ public Builder setDepartureWaypoint(com.google.cloud.optimization.v1.Waypoint va
         return this;
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3228,8 +2850,6 @@ public Builder setDepartureWaypoint(
         return this;
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3241,10 +2861,9 @@ public Builder setDepartureWaypoint(
        */
       public Builder mergeDepartureWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
         if (departureWaypointBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0)
-              && departureWaypoint_ != null
-              && departureWaypoint_
-                  != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0) &&
+            departureWaypoint_ != null &&
+            departureWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
             getDepartureWaypointBuilder().mergeFrom(value);
           } else {
             departureWaypoint_ = value;
@@ -3257,8 +2876,6 @@ public Builder mergeDepartureWaypoint(com.google.cloud.optimization.v1.Waypoint
         return this;
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3279,8 +2896,6 @@ public Builder clearDepartureWaypoint() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3296,8 +2911,6 @@ public com.google.cloud.optimization.v1.Waypoint.Builder getDepartureWaypointBui
         return getDepartureWaypointFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3311,14 +2924,11 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOr
         if (departureWaypointBuilder_ != null) {
           return departureWaypointBuilder_.getMessageOrBuilder();
         } else {
-          return departureWaypoint_ == null
-              ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
-              : departureWaypoint_;
+          return departureWaypoint_ == null ?
+              com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : departureWaypoint_;
         }
       }
       /**
-       *
-       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -3329,17 +2939,14 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOr
        * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.optimization.v1.Waypoint,
-              com.google.cloud.optimization.v1.Waypoint.Builder,
-              com.google.cloud.optimization.v1.WaypointOrBuilder>
+          com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> 
           getDepartureWaypointFieldBuilder() {
         if (departureWaypointBuilder_ == null) {
-          departureWaypointBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.optimization.v1.Waypoint,
-                  com.google.cloud.optimization.v1.Waypoint.Builder,
-                  com.google.cloud.optimization.v1.WaypointOrBuilder>(
-                  getDepartureWaypoint(), getParentForChildren(), isClean());
+          departureWaypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder>(
+                  getDepartureWaypoint(),
+                  getParentForChildren(),
+                  isClean());
           departureWaypoint_ = null;
         }
         return departureWaypointBuilder_;
@@ -3347,7 +2954,6 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOr
 
       private com.google.protobuf.LazyStringArrayList tags_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
-
       private void ensureTagsIsMutable() {
         if (!tags_.isModifiable()) {
           tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
@@ -3355,46 +2961,38 @@ private void ensureTagsIsMutable() {
         bitField0_ |= 0x00000010;
       }
       /**
-       *
-       *
        * 
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { tags_.makeImmutable(); return tags_; } /** - * - * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -3402,39 +3000,33 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } /** - * - * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000010; @@ -3442,22 +3034,18 @@ public Builder setTags(int index, java.lang.String value) { return this; } /** - * - * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000010; @@ -3465,61 +3053,53 @@ public Builder addTags(java.lang.String value) { return this; } /** - * - * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags(java.lang.Iterable values) { + public Builder addAllTags( + java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @return This builder for chaining. */ public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; - * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -3529,25 +3109,18 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { } private java.util.List timeWindows_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTimeWindowsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - timeWindows_ = - new java.util.ArrayList(timeWindows_); + timeWindows_ = new java.util.ArrayList(timeWindows_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TimeWindow, - com.google.cloud.optimization.v1.TimeWindow.Builder, - com.google.cloud.optimization.v1.TimeWindowOrBuilder> - timeWindowsBuilder_; + com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> timeWindowsBuilder_; /** - * - * *
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3575,8 +3148,6 @@ public java.util.List getTimeWindow
         }
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3604,8 +3175,6 @@ public int getTimeWindowsCount() {
         }
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3633,8 +3202,6 @@ public com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index) {
         }
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3654,7 +3221,8 @@ public com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index) {
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public Builder setTimeWindows(int index, com.google.cloud.optimization.v1.TimeWindow value) {
+      public Builder setTimeWindows(
+          int index, com.google.cloud.optimization.v1.TimeWindow value) {
         if (timeWindowsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3668,8 +3236,6 @@ public Builder setTimeWindows(int index, com.google.cloud.optimization.v1.TimeWi
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3701,8 +3267,6 @@ public Builder setTimeWindows(
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3736,8 +3300,6 @@ public Builder addTimeWindows(com.google.cloud.optimization.v1.TimeWindow value)
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3757,7 +3319,8 @@ public Builder addTimeWindows(com.google.cloud.optimization.v1.TimeWindow value)
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public Builder addTimeWindows(int index, com.google.cloud.optimization.v1.TimeWindow value) {
+      public Builder addTimeWindows(
+          int index, com.google.cloud.optimization.v1.TimeWindow value) {
         if (timeWindowsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3771,8 +3334,6 @@ public Builder addTimeWindows(int index, com.google.cloud.optimization.v1.TimeWi
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3804,8 +3365,6 @@ public Builder addTimeWindows(
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3837,8 +3396,6 @@ public Builder addTimeWindows(
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3862,7 +3419,8 @@ public Builder addAllTimeWindows(
           java.lang.Iterable values) {
         if (timeWindowsBuilder_ == null) {
           ensureTimeWindowsIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeWindows_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(
+              values, timeWindows_);
           onChanged();
         } else {
           timeWindowsBuilder_.addAllMessages(values);
@@ -3870,8 +3428,6 @@ public Builder addAllTimeWindows(
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3902,8 +3458,6 @@ public Builder clearTimeWindows() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3934,8 +3488,6 @@ public Builder removeTimeWindows(int index) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3955,12 +3507,11 @@ public Builder removeTimeWindows(int index) {
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public com.google.cloud.optimization.v1.TimeWindow.Builder getTimeWindowsBuilder(int index) {
+      public com.google.cloud.optimization.v1.TimeWindow.Builder getTimeWindowsBuilder(
+          int index) {
         return getTimeWindowsFieldBuilder().getBuilder(index);
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3983,14 +3534,11 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder getTimeWindowsBuilder
       public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
           int index) {
         if (timeWindowsBuilder_ == null) {
-          return timeWindows_.get(index);
-        } else {
+          return timeWindows_.get(index);  } else {
           return timeWindowsBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -4010,8 +3558,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuil
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public java.util.List
-          getTimeWindowsOrBuilderList() {
+      public java.util.List 
+           getTimeWindowsOrBuilderList() {
         if (timeWindowsBuilder_ != null) {
           return timeWindowsBuilder_.getMessageOrBuilderList();
         } else {
@@ -4019,8 +3567,6 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuil
         }
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -4041,12 +3587,10 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuil
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
       public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder() {
-        return getTimeWindowsFieldBuilder()
-            .addBuilder(com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+        return getTimeWindowsFieldBuilder().addBuilder(
+            com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -4066,13 +3610,12 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder(int index) {
-        return getTimeWindowsFieldBuilder()
-            .addBuilder(index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+      public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder(
+          int index) {
+        return getTimeWindowsFieldBuilder().addBuilder(
+            index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -4092,22 +3635,16 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public java.util.List
-          getTimeWindowsBuilderList() {
+      public java.util.List 
+           getTimeWindowsBuilderList() {
         return getTimeWindowsFieldBuilder().getBuilderList();
       }
-
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.optimization.v1.TimeWindow,
-              com.google.cloud.optimization.v1.TimeWindow.Builder,
-              com.google.cloud.optimization.v1.TimeWindowOrBuilder>
+          com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> 
           getTimeWindowsFieldBuilder() {
         if (timeWindowsBuilder_ == null) {
-          timeWindowsBuilder_ =
-              new com.google.protobuf.RepeatedFieldBuilderV3<
-                  com.google.cloud.optimization.v1.TimeWindow,
-                  com.google.cloud.optimization.v1.TimeWindow.Builder,
-                  com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
+          timeWindowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+              com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
                   timeWindows_,
                   ((bitField0_ & 0x00000020) != 0),
                   getParentForChildren(),
@@ -4119,13 +3656,8 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder
 
       private com.google.protobuf.Duration duration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          durationBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_;
       /**
-       *
-       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4133,15 +3665,12 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder
        * 
* * .google.protobuf.Duration duration = 7; - * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4149,7 +3678,6 @@ public boolean hasDuration() {
        * 
* * .google.protobuf.Duration duration = 7; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -4160,8 +3688,6 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4184,8 +3710,6 @@ public Builder setDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4194,7 +3718,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration duration = 7;
        */
-      public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setDuration(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (durationBuilder_ == null) {
           duration_ = builderForValue.build();
         } else {
@@ -4205,8 +3730,6 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4217,9 +3740,9 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
        */
       public Builder mergeDuration(com.google.protobuf.Duration value) {
         if (durationBuilder_ == null) {
-          if (((bitField0_ & 0x00000040) != 0)
-              && duration_ != null
-              && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000040) != 0) &&
+            duration_ != null &&
+            duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getDurationBuilder().mergeFrom(value);
           } else {
             duration_ = value;
@@ -4232,8 +3755,6 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4253,8 +3774,6 @@ public Builder clearDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4269,8 +3788,6 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
         return getDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4283,12 +3800,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
         if (durationBuilder_ != null) {
           return durationBuilder_.getMessageOrBuilder();
         } else {
-          return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+          return duration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : duration_;
         }
       }
       /**
-       *
-       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -4298,26 +3814,21 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
        * .google.protobuf.Duration duration = 7;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getDurationFieldBuilder() {
         if (durationBuilder_ == null) {
-          durationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getDuration(), getParentForChildren(), isClean());
+          durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getDuration(),
+                  getParentForChildren(),
+                  isClean());
           duration_ = null;
         }
         return durationBuilder_;
       }
 
-      private double cost_;
+      private double cost_ ;
       /**
-       *
-       *
        * 
        * Cost to service this visit request on a vehicle route. This can be used
        * to pay different costs for each alternative pickup or delivery of a
@@ -4326,7 +3837,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
        * 
* * double cost = 8; - * * @return The cost. */ @java.lang.Override @@ -4334,8 +3844,6 @@ public double getCost() { return cost_; } /** - * - * *
        * Cost to service this visit request on a vehicle route. This can be used
        * to pay different costs for each alternative pickup or delivery of a
@@ -4344,7 +3852,6 @@ public double getCost() {
        * 
* * double cost = 8; - * * @param value The cost to set. * @return This builder for chaining. */ @@ -4356,8 +3863,6 @@ public Builder setCost(double value) { return this; } /** - * - * *
        * Cost to service this visit request on a vehicle route. This can be used
        * to pay different costs for each alternative pickup or delivery of a
@@ -4366,7 +3871,6 @@ public Builder setCost(double value) {
        * 
* * double cost = 8; - * * @return This builder for chaining. */ public Builder clearCost() { @@ -4377,11 +3881,8 @@ public Builder clearCost() { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> - loadDemands_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_; + private com.google.protobuf.MapField internalGetLoadDemands() { if (loadDemands_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -4389,13 +3890,11 @@ public Builder clearCost() { } return loadDemands_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> + private com.google.protobuf.MapField internalGetMutableLoadDemands() { if (loadDemands_ == null) { - loadDemands_ = - com.google.protobuf.MapField.newMapField(LoadDemandsDefaultEntryHolder.defaultEntry); + loadDemands_ = com.google.protobuf.MapField.newMapField( + LoadDemandsDefaultEntryHolder.defaultEntry); } if (!loadDemands_.isMutable()) { loadDemands_ = loadDemands_.copy(); @@ -4404,13 +3903,10 @@ public Builder clearCost() { onChanged(); return loadDemands_; } - public int getLoadDemandsCount() { return internalGetLoadDemands().getMap().size(); } /** - * - * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4421,26 +3917,23 @@ public int getLoadDemandsCount() {
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ @java.lang.Override - public boolean containsLoadDemands(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLoadDemands( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLoadDemands().getMap().containsKey(key); } - /** Use {@link #getLoadDemandsMap()} instead. */ + /** + * Use {@link #getLoadDemandsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getLoadDemands() { + public java.util.Map getLoadDemands() { return getLoadDemandsMap(); } /** - * - * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4451,17 +3944,13 @@ public boolean containsLoadDemands(java.lang.String key) {
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ @java.lang.Override - public java.util.Map - getLoadDemandsMap() { + public java.util.Map getLoadDemandsMap() { return internalGetLoadDemands().getMap(); } /** - * - * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4472,24 +3961,20 @@ public boolean containsLoadDemands(java.lang.String key) {
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( + public /* nullable */ +com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.optimization.v1.Shipment.Load defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4500,15 +3985,12 @@ public boolean containsLoadDemands(java.lang.String key) {
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -4516,15 +3998,13 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( } return map.get(key); } - public Builder clearLoadDemands() { bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableLoadDemands().getMutableMap().clear(); + internalGetMutableLoadDemands().getMutableMap() + .clear(); return this; } /** - * - * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4535,17 +4015,18 @@ public Builder clearLoadDemands() {
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ - public Builder removeLoadDemands(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLoadDemands().getMutableMap().remove(key); + public Builder removeLoadDemands( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLoadDemands().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableLoadDemands() { @@ -4553,8 +4034,6 @@ public Builder removeLoadDemands(java.lang.String key) { return internalGetMutableLoadDemands().getMutableMap(); } /** - * - * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4565,24 +4044,19 @@ public Builder removeLoadDemands(java.lang.String key) {
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ public Builder putLoadDemands( - java.lang.String key, com.google.cloud.optimization.v1.Shipment.Load value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLoadDemands().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.optimization.v1.Shipment.Load value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLoadDemands().getMutableMap() + .put(key, value); bitField0_ |= 0x00000100; return this; } /** - * - * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4593,19 +4067,18 @@ public Builder putLoadDemands(
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; */ public Builder putAllLoadDemands( java.util.Map values) { - internalGetMutableLoadDemands().getMutableMap().putAll(values); + internalGetMutableLoadDemands().getMutableMap() + .putAll(values); bitField0_ |= 0x00000100; return this; } private com.google.protobuf.LazyStringArrayList visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureVisitTypesIsMutable() { if (!visitTypes_.isModifiable()) { visitTypes_ = new com.google.protobuf.LazyStringArrayList(visitTypes_); @@ -4613,8 +4086,6 @@ private void ensureVisitTypesIsMutable() { bitField0_ |= 0x00000200; } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4624,16 +4095,14 @@ private void ensureVisitTypesIsMutable() {
        * 
* * repeated string visit_types = 10; - * * @return A list containing the visitTypes. */ - public com.google.protobuf.ProtocolStringList getVisitTypesList() { + public com.google.protobuf.ProtocolStringList + getVisitTypesList() { visitTypes_.makeImmutable(); return visitTypes_; } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4643,15 +4112,12 @@ public com.google.protobuf.ProtocolStringList getVisitTypesList() {
        * 
* * repeated string visit_types = 10; - * * @return The count of visitTypes. */ public int getVisitTypesCount() { return visitTypes_.size(); } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4661,7 +4127,6 @@ public int getVisitTypesCount() {
        * 
* * repeated string visit_types = 10; - * * @param index The index of the element to return. * @return The visitTypes at the given index. */ @@ -4669,8 +4134,6 @@ public java.lang.String getVisitTypes(int index) { return visitTypes_.get(index); } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4680,16 +4143,14 @@ public java.lang.String getVisitTypes(int index) {
        * 
* * repeated string visit_types = 10; - * * @param index The index of the value to return. * @return The bytes of the visitTypes at the given index. */ - public com.google.protobuf.ByteString getVisitTypesBytes(int index) { + public com.google.protobuf.ByteString + getVisitTypesBytes(int index) { return visitTypes_.getByteString(index); } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4699,15 +4160,13 @@ public com.google.protobuf.ByteString getVisitTypesBytes(int index) {
        * 
* * repeated string visit_types = 10; - * * @param index The index to set the value at. * @param value The visitTypes to set. * @return This builder for chaining. */ - public Builder setVisitTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVisitTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureVisitTypesIsMutable(); visitTypes_.set(index, value); bitField0_ |= 0x00000200; @@ -4715,8 +4174,6 @@ public Builder setVisitTypes(int index, java.lang.String value) { return this; } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4726,14 +4183,12 @@ public Builder setVisitTypes(int index, java.lang.String value) {
        * 
* * repeated string visit_types = 10; - * * @param value The visitTypes to add. * @return This builder for chaining. */ - public Builder addVisitTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addVisitTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureVisitTypesIsMutable(); visitTypes_.add(value); bitField0_ |= 0x00000200; @@ -4741,8 +4196,6 @@ public Builder addVisitTypes(java.lang.String value) { return this; } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4752,20 +4205,19 @@ public Builder addVisitTypes(java.lang.String value) {
        * 
* * repeated string visit_types = 10; - * * @param values The visitTypes to add. * @return This builder for chaining. */ - public Builder addAllVisitTypes(java.lang.Iterable values) { + public Builder addAllVisitTypes( + java.lang.Iterable values) { ensureVisitTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visitTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, visitTypes_); bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4775,19 +4227,16 @@ public Builder addAllVisitTypes(java.lang.Iterable values) {
        * 
* * repeated string visit_types = 10; - * * @return This builder for chaining. */ public Builder clearVisitTypes() { - visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - ; + visitTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** - * - * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4797,14 +4246,12 @@ public Builder clearVisitTypes() {
        * 
* * repeated string visit_types = 10; - * * @param value The bytes of the visitTypes to add. * @return This builder for chaining. */ - public Builder addVisitTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addVisitTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureVisitTypesIsMutable(); visitTypes_.add(value); @@ -4815,8 +4262,6 @@ public Builder addVisitTypesBytes(com.google.protobuf.ByteString value) { private java.lang.Object label_ = ""; /** - * - * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4824,13 +4269,13 @@ public Builder addVisitTypesBytes(com.google.protobuf.ByteString value) {
        * 
* * string label = 11; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4839,8 +4284,6 @@ public java.lang.String getLabel() { } } /** - * - * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4848,14 +4291,15 @@ public java.lang.String getLabel() {
        * 
* * string label = 11; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -4863,8 +4307,6 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4872,22 +4314,18 @@ public com.google.protobuf.ByteString getLabelBytes() {
        * 
* * string label = 11; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } label_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4895,7 +4333,6 @@ public Builder setLabel(java.lang.String value) {
        * 
* * string label = 11; - * * @return This builder for chaining. */ public Builder clearLabel() { @@ -4905,8 +4342,6 @@ public Builder clearLabel() { return this; } /** - * - * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4914,14 +4349,12 @@ public Builder clearLabel() {
        * 
* * string label = 11; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000400; @@ -4930,37 +4363,27 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { } private java.util.List demands_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDemandsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - demands_ = - new java.util.ArrayList(demands_); + demands_ = new java.util.ArrayList(demands_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> - demandsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> demandsBuilder_; /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List getDemandsList() { + @java.lang.Deprecated public java.util.List getDemandsList() { if (demandsBuilder_ == null) { return java.util.Collections.unmodifiableList(demands_); } else { @@ -4968,20 +4391,15 @@ public java.util.List getDema } } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public int getDemandsCount() { + @java.lang.Deprecated public int getDemandsCount() { if (demandsBuilder_ == null) { return demands_.size(); } else { @@ -4989,20 +4407,15 @@ public int getDemandsCount() { } } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { if (demandsBuilder_ == null) { return demands_.get(index); } else { @@ -5010,20 +4423,15 @@ public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { } } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDemands( + @java.lang.Deprecated public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { @@ -5038,20 +4446,15 @@ public Builder setDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDemands( + @java.lang.Deprecated public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -5063,20 +4466,15 @@ public Builder setDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5090,20 +4488,15 @@ public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity valu return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands( + @java.lang.Deprecated public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { @@ -5118,20 +4511,15 @@ public Builder addDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands( + @java.lang.Deprecated public Builder addDemands( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -5143,20 +4531,15 @@ public Builder addDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands( + @java.lang.Deprecated public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -5168,24 +4551,20 @@ public Builder addDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllDemands( + @java.lang.Deprecated public Builder addAllDemands( java.lang.Iterable values) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, demands_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, demands_); onChanged(); } else { demandsBuilder_.addAllMessages(values); @@ -5193,20 +4572,15 @@ public Builder addAllDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearDemands() { + @java.lang.Deprecated public Builder clearDemands() { if (demandsBuilder_ == null) { demands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); @@ -5217,20 +4591,15 @@ public Builder clearDemands() { return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeDemands(int index) { + @java.lang.Deprecated public Builder removeDemands(int index) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); demands_.remove(index); @@ -5241,61 +4610,45 @@ public Builder removeDemands(int index) { return this; } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( int index) { return getDemandsFieldBuilder().getBuilder(index); } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { if (demandsBuilder_ == null) { - return demands_.get(index); - } else { + return demands_.get(index); } else { return demandsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getDemandsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getDemandsOrBuilderList() { if (demandsBuilder_ != null) { return demandsBuilder_.getMessageOrBuilderList(); } else { @@ -5303,79 +4656,59 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBu } } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { - return getDemandsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { + return getDemandsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( int index) { - return getDemandsFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + return getDemandsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getDemandsBuilderList() { + @java.lang.Deprecated public java.util.List + getDemandsBuilderList() { return getDemandsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getDemandsFieldBuilder() { if (demandsBuilder_ == null) { - demandsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - demands_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + demandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + demands_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); demands_ = null; } return demandsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5388,12 +4721,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Shipment.VisitRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Shipment.VisitRequest) private static final com.google.cloud.optimization.v1.Shipment.VisitRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Shipment.VisitRequest(); } @@ -5402,28 +4735,27 @@ public static com.google.cloud.optimization.v1.Shipment.VisitRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VisitRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VisitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5438,16 +4770,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Shipment.VisitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LoadOrBuilder - extends + public interface LoadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Shipment.Load) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The amount by which the load of the vehicle performing the corresponding
      * visit will vary. Since it is an integer, users are advised to choose an
@@ -5455,14 +4785,11 @@ public interface LoadOrBuilder
      * 
* * int64 amount = 2; - * * @return The amount. */ long getAmount(); } /** - * - * *
    * When performing a visit, a predefined amount may be added to the vehicle
    * load if it's a pickup, or subtracted if it's a delivery. This message
@@ -5472,44 +4799,41 @@ public interface LoadOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.Shipment.Load}
    */
-  public static final class Load extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Load extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Shipment.Load)
       LoadOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Load.newBuilder() to construct.
     private Load(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private Load() {}
+    private Load() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Load();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Shipment.Load.class,
-              com.google.cloud.optimization.v1.Shipment.Load.Builder.class);
+              com.google.cloud.optimization.v1.Shipment.Load.class, com.google.cloud.optimization.v1.Shipment.Load.Builder.class);
     }
 
     public static final int AMOUNT_FIELD_NUMBER = 2;
     private long amount_ = 0L;
     /**
-     *
-     *
      * 
      * The amount by which the load of the vehicle performing the corresponding
      * visit will vary. Since it is an integer, users are advised to choose an
@@ -5517,7 +4841,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int64 amount = 2; - * * @return The amount. */ @java.lang.Override @@ -5526,7 +4849,6 @@ public long getAmount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5538,7 +4860,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (amount_ != 0L) { output.writeInt64(2, amount_); } @@ -5552,7 +4875,8 @@ public int getSerializedSize() { size = 0; if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5562,15 +4886,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Shipment.Load)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Shipment.Load other = - (com.google.cloud.optimization.v1.Shipment.Load) obj; + com.google.cloud.optimization.v1.Shipment.Load other = (com.google.cloud.optimization.v1.Shipment.Load) obj; - if (getAmount() != other.getAmount()) return false; + if (getAmount() + != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5583,100 +4907,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.Load parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Shipment.Load parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Shipment.Load parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Shipment.Load prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5686,8 +5007,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * When performing a visit, a predefined amount may be added to the vehicle
      * load if it's a pickup, or subtracted if it's a delivery. This message
@@ -5697,33 +5016,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.Shipment.Load}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Shipment.Load)
         com.google.cloud.optimization.v1.Shipment.LoadOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.Shipment.Load.class,
-                com.google.cloud.optimization.v1.Shipment.Load.Builder.class);
+                com.google.cloud.optimization.v1.Shipment.Load.class, com.google.cloud.optimization.v1.Shipment.Load.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.Shipment.Load.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5733,9 +5052,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
       }
 
       @java.lang.Override
@@ -5754,11 +5073,8 @@ public com.google.cloud.optimization.v1.Shipment.Load build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.Shipment.Load buildPartial() {
-        com.google.cloud.optimization.v1.Shipment.Load result =
-            new com.google.cloud.optimization.v1.Shipment.Load(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.Shipment.Load result = new com.google.cloud.optimization.v1.Shipment.Load(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -5774,41 +5090,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.Shipment.Load result
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.Shipment.Load) {
-          return mergeFrom((com.google.cloud.optimization.v1.Shipment.Load) other);
+          return mergeFrom((com.google.cloud.optimization.v1.Shipment.Load)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -5816,8 +5129,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.Load other) {
-        if (other == com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance()) return this;
         if (other.getAmount() != 0L) {
           setAmount(other.getAmount());
         }
@@ -5847,19 +5159,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 16:
-                {
-                  amount_ = input.readInt64();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 16: {
+                amount_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 16
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5869,13 +5179,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private long amount_;
+      private long amount_ ;
       /**
-       *
-       *
        * 
        * The amount by which the load of the vehicle performing the corresponding
        * visit will vary. Since it is an integer, users are advised to choose an
@@ -5883,7 +5190,6 @@ public Builder mergeFrom(
        * 
* * int64 amount = 2; - * * @return The amount. */ @java.lang.Override @@ -5891,8 +5197,6 @@ public long getAmount() { return amount_; } /** - * - * *
        * The amount by which the load of the vehicle performing the corresponding
        * visit will vary. Since it is an integer, users are advised to choose an
@@ -5900,7 +5204,6 @@ public long getAmount() {
        * 
* * int64 amount = 2; - * * @param value The amount to set. * @return This builder for chaining. */ @@ -5912,8 +5215,6 @@ public Builder setAmount(long value) { return this; } /** - * - * *
        * The amount by which the load of the vehicle performing the corresponding
        * visit will vary. Since it is an integer, users are advised to choose an
@@ -5921,7 +5222,6 @@ public Builder setAmount(long value) {
        * 
* * int64 amount = 2; - * * @return This builder for chaining. */ public Builder clearAmount() { @@ -5930,7 +5230,6 @@ public Builder clearAmount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5943,12 +5242,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Shipment.Load) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Shipment.Load) private static final com.google.cloud.optimization.v1.Shipment.Load DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Shipment.Load(); } @@ -5957,28 +5256,27 @@ public static com.google.cloud.optimization.v1.Shipment.Load getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Load parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Load parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5993,16 +5291,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Shipment.Load getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int PICKUPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List pickups_; /** - * - * *
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -6015,8 +5311,6 @@ public java.util.List ge
     return pickups_;
   }
   /**
-   *
-   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -6025,13 +5319,11 @@ public java.util.List ge
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPickupsOrBuilderList() {
     return pickups_;
   }
   /**
-   *
-   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -6044,8 +5336,6 @@ public int getPickupsCount() {
     return pickups_.size();
   }
   /**
-   *
-   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -6058,8 +5348,6 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest getPickups(int ind
     return pickups_.get(index);
   }
   /**
-   *
-   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -6074,12 +5362,9 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
   }
 
   public static final int DELIVERIES_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List deliveries_;
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -6088,13 +5373,10 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getDeliveriesList() {
+  public java.util.List getDeliveriesList() {
     return deliveries_;
   }
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -6103,13 +5385,11 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getDeliveriesOrBuilderList() {
     return deliveries_;
   }
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -6122,8 +5402,6 @@ public int getDeliveriesCount() {
     return deliveries_.size();
   }
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -6136,8 +5414,6 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest getDeliveries(int
     return deliveries_.get(index);
   }
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -6152,42 +5428,32 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDelive
   }
 
   public static final int LOAD_DEMANDS_FIELD_NUMBER = 14;
-
   private static final class LoadDemandsDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-        defaultEntry =
+        java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.optimization.v1.FleetRoutingProto
-                            .internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-      loadDemands_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-      internalGetLoadDemands() {
+      java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_;
+  private com.google.protobuf.MapField
+  internalGetLoadDemands() {
     if (loadDemands_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(LoadDemandsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          LoadDemandsDefaultEntryHolder.defaultEntry);
     }
     return loadDemands_;
   }
-
   public int getLoadDemandsCount() {
     return internalGetLoadDemands().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -6200,22 +5466,20 @@ public int getLoadDemandsCount() {
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   @java.lang.Override
-  public boolean containsLoadDemands(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLoadDemands(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLoadDemands().getMap().containsKey(key);
   }
-  /** Use {@link #getLoadDemandsMap()} instead. */
+  /**
+   * Use {@link #getLoadDemandsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map
-      getLoadDemands() {
+  public java.util.Map getLoadDemands() {
     return getLoadDemandsMap();
   }
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -6228,13 +5492,10 @@ public boolean containsLoadDemands(java.lang.String key) {
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   @java.lang.Override
-  public java.util.Map
-      getLoadDemandsMap() {
+  public java.util.Map getLoadDemandsMap() {
     return internalGetLoadDemands().getMap();
   }
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -6247,20 +5508,17 @@ public boolean containsLoadDemands(java.lang.String key) {
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   @java.lang.Override
-  public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+  public /* nullable */
+com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetLoadDemands().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -6275,9 +5533,7 @@ public boolean containsLoadDemands(java.lang.String key) {
   @java.lang.Override
   public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
       java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetLoadDemands().getMap();
     if (!map.containsKey(key)) {
@@ -6289,8 +5545,6 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
   public static final int PENALTY_COST_FIELD_NUMBER = 4;
   private double penaltyCost_ = 0D;
   /**
-   *
-   *
    * 
    * If the shipment is not completed, this penalty is added to the overall
    * cost of the routes. A shipment is considered completed if one of its pickup
@@ -6303,7 +5557,6 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * optional double penalty_cost = 4; - * * @return Whether the penaltyCost field is set. */ @java.lang.Override @@ -6311,8 +5564,6 @@ public boolean hasPenaltyCost() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * If the shipment is not completed, this penalty is added to the overall
    * cost of the routes. A shipment is considered completed if one of its pickup
@@ -6325,7 +5576,6 @@ public boolean hasPenaltyCost() {
    * 
* * optional double penalty_cost = 4; - * * @return The penaltyCost. */ @java.lang.Override @@ -6334,12 +5584,9 @@ public double getPenaltyCost() { } public static final int ALLOWED_VEHICLE_INDICES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList allowedVehicleIndices_; /** - * - * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -6347,16 +5594,14 @@ public double getPenaltyCost() {
    * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @return A list containing the allowedVehicleIndices. */ @java.lang.Override - public java.util.List getAllowedVehicleIndicesList() { + public java.util.List + getAllowedVehicleIndicesList() { return allowedVehicleIndices_; } /** - * - * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -6364,15 +5609,12 @@ public java.util.List getAllowedVehicleIndicesList() {
    * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @return The count of allowedVehicleIndices. */ public int getAllowedVehicleIndicesCount() { return allowedVehicleIndices_.size(); } /** - * - * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -6380,23 +5622,18 @@ public int getAllowedVehicleIndicesCount() {
    * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @param index The index of the element to return. * @return The allowedVehicleIndices at the given index. */ public int getAllowedVehicleIndices(int index) { return allowedVehicleIndices_.getInt(index); } - private int allowedVehicleIndicesMemoizedSerializedSize = -1; public static final int COSTS_PER_VEHICLE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList costsPerVehicle_; /** - * - * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -6412,16 +5649,14 @@ public int getAllowedVehicleIndices(int index) {
    * 
* * repeated double costs_per_vehicle = 6; - * * @return A list containing the costsPerVehicle. */ @java.lang.Override - public java.util.List getCostsPerVehicleList() { + public java.util.List + getCostsPerVehicleList() { return costsPerVehicle_; } /** - * - * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -6437,15 +5672,12 @@ public java.util.List getCostsPerVehicleList() {
    * 
* * repeated double costs_per_vehicle = 6; - * * @return The count of costsPerVehicle. */ public int getCostsPerVehicleCount() { return costsPerVehicle_.size(); } /** - * - * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -6461,23 +5693,18 @@ public int getCostsPerVehicleCount() {
    * 
* * repeated double costs_per_vehicle = 6; - * * @param index The index of the element to return. * @return The costsPerVehicle at the given index. */ public double getCostsPerVehicle(int index) { return costsPerVehicle_.getDouble(index); } - private int costsPerVehicleMemoizedSerializedSize = -1; public static final int COSTS_PER_VEHICLE_INDICES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList costsPerVehicleIndices_; /** - * - * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -6486,16 +5713,14 @@ public double getCostsPerVehicle(int index) {
    * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @return A list containing the costsPerVehicleIndices. */ @java.lang.Override - public java.util.List getCostsPerVehicleIndicesList() { + public java.util.List + getCostsPerVehicleIndicesList() { return costsPerVehicleIndices_; } /** - * - * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -6504,15 +5729,12 @@ public java.util.List getCostsPerVehicleIndicesList() {
    * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @return The count of costsPerVehicleIndices. */ public int getCostsPerVehicleIndicesCount() { return costsPerVehicleIndices_.size(); } /** - * - * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -6521,21 +5743,17 @@ public int getCostsPerVehicleIndicesCount() {
    * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @param index The index of the element to return. * @return The costsPerVehicleIndices at the given index. */ public int getCostsPerVehicleIndices(int index) { return costsPerVehicleIndices_.getInt(index); } - private int costsPerVehicleIndicesMemoizedSerializedSize = -1; public static final int PICKUP_TO_DELIVERY_RELATIVE_DETOUR_LIMIT_FIELD_NUMBER = 8; private double pickupToDeliveryRelativeDetourLimit_ = 0D; /** - * - * *
    * Specifies the maximum relative detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -6557,7 +5775,6 @@ public int getCostsPerVehicleIndices(int index) {
    * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; - * * @return Whether the pickupToDeliveryRelativeDetourLimit field is set. */ @java.lang.Override @@ -6565,8 +5782,6 @@ public boolean hasPickupToDeliveryRelativeDetourLimit() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Specifies the maximum relative detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -6588,7 +5803,6 @@ public boolean hasPickupToDeliveryRelativeDetourLimit() {
    * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; - * * @return The pickupToDeliveryRelativeDetourLimit. */ @java.lang.Override @@ -6599,8 +5813,6 @@ public double getPickupToDeliveryRelativeDetourLimit() { public static final int PICKUP_TO_DELIVERY_ABSOLUTE_DETOUR_LIMIT_FIELD_NUMBER = 9; private com.google.protobuf.Duration pickupToDeliveryAbsoluteDetourLimit_; /** - * - * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -6622,7 +5834,6 @@ public double getPickupToDeliveryRelativeDetourLimit() {
    * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; - * * @return Whether the pickupToDeliveryAbsoluteDetourLimit field is set. */ @java.lang.Override @@ -6630,8 +5841,6 @@ public boolean hasPickupToDeliveryAbsoluteDetourLimit() { return pickupToDeliveryAbsoluteDetourLimit_ != null; } /** - * - * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -6653,18 +5862,13 @@ public boolean hasPickupToDeliveryAbsoluteDetourLimit() {
    * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; - * * @return The pickupToDeliveryAbsoluteDetourLimit. */ @java.lang.Override public com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit() { - return pickupToDeliveryAbsoluteDetourLimit_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : pickupToDeliveryAbsoluteDetourLimit_; + return pickupToDeliveryAbsoluteDetourLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryAbsoluteDetourLimit_; } /** - * - * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -6689,16 +5893,12 @@ public com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLimitOrBuilder() {
-    return pickupToDeliveryAbsoluteDetourLimit_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : pickupToDeliveryAbsoluteDetourLimit_;
+    return pickupToDeliveryAbsoluteDetourLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryAbsoluteDetourLimit_;
   }
 
   public static final int PICKUP_TO_DELIVERY_TIME_LIMIT_FIELD_NUMBER = 10;
   private com.google.protobuf.Duration pickupToDeliveryTimeLimit_;
   /**
-   *
-   *
    * 
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -6709,7 +5909,6 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
    * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; - * * @return Whether the pickupToDeliveryTimeLimit field is set. */ @java.lang.Override @@ -6717,8 +5916,6 @@ public boolean hasPickupToDeliveryTimeLimit() { return pickupToDeliveryTimeLimit_ != null; } /** - * - * *
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -6729,18 +5926,13 @@ public boolean hasPickupToDeliveryTimeLimit() {
    * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; - * * @return The pickupToDeliveryTimeLimit. */ @java.lang.Override public com.google.protobuf.Duration getPickupToDeliveryTimeLimit() { - return pickupToDeliveryTimeLimit_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : pickupToDeliveryTimeLimit_; + return pickupToDeliveryTimeLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryTimeLimit_; } /** - * - * *
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -6754,18 +5946,13 @@ public com.google.protobuf.Duration getPickupToDeliveryTimeLimit() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuilder() {
-    return pickupToDeliveryTimeLimit_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : pickupToDeliveryTimeLimit_;
+    return pickupToDeliveryTimeLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryTimeLimit_;
   }
 
   public static final int SHIPMENT_TYPE_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object shipmentType_ = "";
   /**
-   *
-   *
    * 
    * Non-empty string specifying a "type" for this shipment.
    * This feature can be used to define incompatibilities or requirements
@@ -6778,7 +5965,6 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
    * 
* * string shipment_type = 11; - * * @return The shipmentType. */ @java.lang.Override @@ -6787,15 +5973,14 @@ public java.lang.String getShipmentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shipmentType_ = s; return s; } } /** - * - * *
    * Non-empty string specifying a "type" for this shipment.
    * This feature can be used to define incompatibilities or requirements
@@ -6808,15 +5993,16 @@ public java.lang.String getShipmentType() {
    * 
* * string shipment_type = 11; - * * @return The bytes for shipmentType. */ @java.lang.Override - public com.google.protobuf.ByteString getShipmentTypeBytes() { + public com.google.protobuf.ByteString + getShipmentTypeBytes() { java.lang.Object ref = shipmentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shipmentType_ = b; return b; } else { @@ -6825,12 +6011,9 @@ public com.google.protobuf.ByteString getShipmentTypeBytes() { } public static final int LABEL_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** - * - * *
    * Specifies a label for this shipment. This label is reported in the response
    * in the `shipment_label` of the corresponding
@@ -6838,7 +6021,6 @@ public com.google.protobuf.ByteString getShipmentTypeBytes() {
    * 
* * string label = 12; - * * @return The label. */ @java.lang.Override @@ -6847,15 +6029,14 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
    * Specifies a label for this shipment. This label is reported in the response
    * in the `shipment_label` of the corresponding
@@ -6863,15 +6044,16 @@ public java.lang.String getLabel() {
    * 
* * string label = 12; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -6882,8 +6064,6 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int IGNORE_FIELD_NUMBER = 13; private boolean ignore_ = false; /** - * - * *
    * If true, skip this shipment, but don't apply a `penalty_cost`.
    *
@@ -6897,7 +6077,6 @@ public com.google.protobuf.ByteString getLabelBytes() {
    * 
* * bool ignore = 13; - * * @return The ignore. */ @java.lang.Override @@ -6906,98 +6085,77 @@ public boolean getIgnore() { } public static final int DEMANDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List demands_; /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getDemandsList() { + @java.lang.Deprecated public java.util.List getDemandsList() { return demands_; } /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getDemandsOrBuilderList() { return demands_; } /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getDemandsCount() { + @java.lang.Deprecated public int getDemandsCount() { return demands_.size(); } /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { return demands_.get(index); } /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + int index) { return demands_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7009,7 +6167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < pickups_.size(); i++) { output.writeMessage(1, pickups_.get(i)); @@ -7062,8 +6221,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (ignore_ != false) { output.writeBool(13, ignore_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLoadDemands(), LoadDemandsDefaultEntryHolder.defaultEntry, 14); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLoadDemands(), + LoadDemandsDefaultEntryHolder.defaultEntry, + 14); getUnknownFields().writeTo(output); } @@ -7074,28 +6237,32 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pickups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pickups_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, pickups_.get(i)); } for (int i = 0; i < deliveries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, deliveries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, deliveries_.get(i)); } for (int i = 0; i < demands_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, demands_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, demands_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, penaltyCost_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, penaltyCost_); } { int dataSize = 0; for (int i = 0; i < allowedVehicleIndices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - allowedVehicleIndices_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(allowedVehicleIndices_.getInt(i)); } size += dataSize; if (!getAllowedVehicleIndicesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } allowedVehicleIndicesMemoizedSerializedSize = dataSize; } @@ -7105,38 +6272,36 @@ public int getSerializedSize() { size += dataSize; if (!getCostsPerVehicleList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } costsPerVehicleMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < costsPerVehicleIndices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - costsPerVehicleIndices_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(costsPerVehicleIndices_.getInt(i)); } size += dataSize; if (!getCostsPerVehicleIndicesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } costsPerVehicleIndicesMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 8, pickupToDeliveryRelativeDetourLimit_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, pickupToDeliveryRelativeDetourLimit_); } if (pickupToDeliveryAbsoluteDetourLimit_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, getPickupToDeliveryAbsoluteDetourLimit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getPickupToDeliveryAbsoluteDetourLimit()); } if (pickupToDeliveryTimeLimit_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getPickupToDeliveryTimeLimit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getPickupToDeliveryTimeLimit()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shipmentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, shipmentType_); @@ -7145,18 +6310,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, label_); } if (ignore_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, ignore_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, ignore_); } - for (java.util.Map.Entry - entry : internalGetLoadDemands().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetLoadDemands().getMap().entrySet()) { com.google.protobuf.MapEntry - loadDemands__ = - LoadDemandsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, loadDemands__); + loadDemands__ = LoadDemandsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, loadDemands__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7166,48 +6331,55 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Shipment)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Shipment other = - (com.google.cloud.optimization.v1.Shipment) obj; + com.google.cloud.optimization.v1.Shipment other = (com.google.cloud.optimization.v1.Shipment) obj; - if (!getPickupsList().equals(other.getPickupsList())) return false; - if (!getDeliveriesList().equals(other.getDeliveriesList())) return false; - if (!internalGetLoadDemands().equals(other.internalGetLoadDemands())) return false; + if (!getPickupsList() + .equals(other.getPickupsList())) return false; + if (!getDeliveriesList() + .equals(other.getDeliveriesList())) return false; + if (!internalGetLoadDemands().equals( + other.internalGetLoadDemands())) return false; if (hasPenaltyCost() != other.hasPenaltyCost()) return false; if (hasPenaltyCost()) { if (java.lang.Double.doubleToLongBits(getPenaltyCost()) - != java.lang.Double.doubleToLongBits(other.getPenaltyCost())) return false; - } - if (!getAllowedVehicleIndicesList().equals(other.getAllowedVehicleIndicesList())) return false; - if (!getCostsPerVehicleList().equals(other.getCostsPerVehicleList())) return false; - if (!getCostsPerVehicleIndicesList().equals(other.getCostsPerVehicleIndicesList())) - return false; - if (hasPickupToDeliveryRelativeDetourLimit() != other.hasPickupToDeliveryRelativeDetourLimit()) - return false; + != java.lang.Double.doubleToLongBits( + other.getPenaltyCost())) return false; + } + if (!getAllowedVehicleIndicesList() + .equals(other.getAllowedVehicleIndicesList())) return false; + if (!getCostsPerVehicleList() + .equals(other.getCostsPerVehicleList())) return false; + if (!getCostsPerVehicleIndicesList() + .equals(other.getCostsPerVehicleIndicesList())) return false; + if (hasPickupToDeliveryRelativeDetourLimit() != other.hasPickupToDeliveryRelativeDetourLimit()) return false; if (hasPickupToDeliveryRelativeDetourLimit()) { if (java.lang.Double.doubleToLongBits(getPickupToDeliveryRelativeDetourLimit()) - != java.lang.Double.doubleToLongBits(other.getPickupToDeliveryRelativeDetourLimit())) - return false; + != java.lang.Double.doubleToLongBits( + other.getPickupToDeliveryRelativeDetourLimit())) return false; } - if (hasPickupToDeliveryAbsoluteDetourLimit() != other.hasPickupToDeliveryAbsoluteDetourLimit()) - return false; + if (hasPickupToDeliveryAbsoluteDetourLimit() != other.hasPickupToDeliveryAbsoluteDetourLimit()) return false; if (hasPickupToDeliveryAbsoluteDetourLimit()) { if (!getPickupToDeliveryAbsoluteDetourLimit() .equals(other.getPickupToDeliveryAbsoluteDetourLimit())) return false; } if (hasPickupToDeliveryTimeLimit() != other.hasPickupToDeliveryTimeLimit()) return false; if (hasPickupToDeliveryTimeLimit()) { - if (!getPickupToDeliveryTimeLimit().equals(other.getPickupToDeliveryTimeLimit())) - return false; - } - if (!getShipmentType().equals(other.getShipmentType())) return false; - if (!getLabel().equals(other.getLabel())) return false; - if (getIgnore() != other.getIgnore()) return false; - if (!getDemandsList().equals(other.getDemandsList())) return false; + if (!getPickupToDeliveryTimeLimit() + .equals(other.getPickupToDeliveryTimeLimit())) return false; + } + if (!getShipmentType() + .equals(other.getShipmentType())) return false; + if (!getLabel() + .equals(other.getLabel())) return false; + if (getIgnore() + != other.getIgnore()) return false; + if (!getDemandsList() + .equals(other.getDemandsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7233,10 +6405,8 @@ public int hashCode() { } if (hasPenaltyCost()) { hash = (37 * hash) + PENALTY_COST_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPenaltyCost())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPenaltyCost())); } if (getAllowedVehicleIndicesCount() > 0) { hash = (37 * hash) + ALLOWED_VEHICLE_INDICES_FIELD_NUMBER; @@ -7252,10 +6422,8 @@ public int hashCode() { } if (hasPickupToDeliveryRelativeDetourLimit()) { hash = (37 * hash) + PICKUP_TO_DELIVERY_RELATIVE_DETOUR_LIMIT_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPickupToDeliveryRelativeDetourLimit())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPickupToDeliveryRelativeDetourLimit())); } if (hasPickupToDeliveryAbsoluteDetourLimit()) { hash = (37 * hash) + PICKUP_TO_DELIVERY_ABSOLUTE_DETOUR_LIMIT_FIELD_NUMBER; @@ -7270,7 +6438,8 @@ public int hashCode() { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + IGNORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnore()); if (getDemandsCount() > 0) { hash = (37 * hash) + DEMANDS_FIELD_NUMBER; hash = (53 * hash) + getDemandsList().hashCode(); @@ -7280,104 +6449,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.Shipment parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Shipment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Shipment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Shipment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Shipment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Shipment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Shipment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Shipment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The shipment of a single item, from one of its pickups to one of its
    * deliveries. For the shipment to be considered as performed, a unique vehicle
@@ -7388,52 +6552,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.Shipment}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Shipment)
       com.google.cloud.optimization.v1.ShipmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Shipment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 14:
           return internalGetLoadDemands();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 14:
           return internalGetMutableLoadDemands();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Shipment.class,
-              com.google.cloud.optimization.v1.Shipment.Builder.class);
+              com.google.cloud.optimization.v1.Shipment.class, com.google.cloud.optimization.v1.Shipment.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.Shipment.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -7482,9 +6649,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Shipment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_descriptor;
     }
 
     @java.lang.Override
@@ -7503,12 +6670,9 @@ public com.google.cloud.optimization.v1.Shipment build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.Shipment buildPartial() {
-      com.google.cloud.optimization.v1.Shipment result =
-          new com.google.cloud.optimization.v1.Shipment(this);
+      com.google.cloud.optimization.v1.Shipment result = new com.google.cloud.optimization.v1.Shipment(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -7574,16 +6738,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.Shipment result) {
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.pickupToDeliveryAbsoluteDetourLimit_ =
-            pickupToDeliveryAbsoluteDetourLimitBuilder_ == null
-                ? pickupToDeliveryAbsoluteDetourLimit_
-                : pickupToDeliveryAbsoluteDetourLimitBuilder_.build();
+        result.pickupToDeliveryAbsoluteDetourLimit_ = pickupToDeliveryAbsoluteDetourLimitBuilder_ == null
+            ? pickupToDeliveryAbsoluteDetourLimit_
+            : pickupToDeliveryAbsoluteDetourLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.pickupToDeliveryTimeLimit_ =
-            pickupToDeliveryTimeLimitBuilder_ == null
-                ? pickupToDeliveryTimeLimit_
-                : pickupToDeliveryTimeLimitBuilder_.build();
+        result.pickupToDeliveryTimeLimit_ = pickupToDeliveryTimeLimitBuilder_ == null
+            ? pickupToDeliveryTimeLimit_
+            : pickupToDeliveryTimeLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.shipmentType_ = shipmentType_;
@@ -7601,39 +6763,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.Shipment result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.Shipment) {
-        return mergeFrom((com.google.cloud.optimization.v1.Shipment) other);
+        return mergeFrom((com.google.cloud.optimization.v1.Shipment)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -7660,10 +6821,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment other) {
             pickupsBuilder_ = null;
             pickups_ = other.pickups_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pickupsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPickupsFieldBuilder()
-                    : null;
+            pickupsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPickupsFieldBuilder() : null;
           } else {
             pickupsBuilder_.addAllMessages(other.pickups_);
           }
@@ -7687,16 +6847,16 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment other) {
             deliveriesBuilder_ = null;
             deliveries_ = other.deliveries_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            deliveriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getDeliveriesFieldBuilder()
-                    : null;
+            deliveriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getDeliveriesFieldBuilder() : null;
           } else {
             deliveriesBuilder_.addAllMessages(other.deliveries_);
           }
         }
       }
-      internalGetMutableLoadDemands().mergeFrom(other.internalGetLoadDemands());
+      internalGetMutableLoadDemands().mergeFrom(
+          other.internalGetLoadDemands());
       bitField0_ |= 0x00000004;
       if (other.hasPenaltyCost()) {
         setPenaltyCost(other.getPenaltyCost());
@@ -7771,10 +6931,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment other) {
             demandsBuilder_ = null;
             demands_ = other.demands_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            demandsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getDemandsFieldBuilder()
-                    : null;
+            demandsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getDemandsFieldBuilder() : null;
           } else {
             demandsBuilder_.addAllMessages(other.demands_);
           }
@@ -7806,168 +6965,147 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.optimization.v1.Shipment.VisitRequest m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.Shipment.VisitRequest.parser(),
-                        extensionRegistry);
-                if (pickupsBuilder_ == null) {
-                  ensurePickupsIsMutable();
-                  pickups_.add(m);
-                } else {
-                  pickupsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.optimization.v1.Shipment.VisitRequest m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.Shipment.VisitRequest.parser(),
-                        extensionRegistry);
-                if (deliveriesBuilder_ == null) {
-                  ensureDeliveriesIsMutable();
-                  deliveries_.add(m);
-                } else {
-                  deliveriesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.optimization.v1.CapacityQuantity m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                        extensionRegistry);
-                if (demandsBuilder_ == null) {
-                  ensureDemandsIsMutable();
-                  demands_.add(m);
-                } else {
-                  demandsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 33:
-              {
-                penaltyCost_ = input.readDouble();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 33
-            case 40:
-              {
-                int v = input.readInt32();
-                ensureAllowedVehicleIndicesIsMutable();
-                allowedVehicleIndices_.addInt(v);
-                break;
-              } // case 40
-            case 42:
-              {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                ensureAllowedVehicleIndicesIsMutable();
-                while (input.getBytesUntilLimit() > 0) {
-                  allowedVehicleIndices_.addInt(input.readInt32());
-                }
-                input.popLimit(limit);
-                break;
-              } // case 42
-            case 49:
-              {
-                double v = input.readDouble();
-                ensureCostsPerVehicleIsMutable();
-                costsPerVehicle_.addDouble(v);
-                break;
-              } // case 49
-            case 50:
-              {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                ensureCostsPerVehicleIsMutable();
-                while (input.getBytesUntilLimit() > 0) {
-                  costsPerVehicle_.addDouble(input.readDouble());
-                }
-                input.popLimit(limit);
-                break;
-              } // case 50
-            case 56:
-              {
-                int v = input.readInt32();
-                ensureCostsPerVehicleIndicesIsMutable();
-                costsPerVehicleIndices_.addInt(v);
-                break;
-              } // case 56
-            case 58:
-              {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                ensureCostsPerVehicleIndicesIsMutable();
-                while (input.getBytesUntilLimit() > 0) {
-                  costsPerVehicleIndices_.addInt(input.readInt32());
-                }
-                input.popLimit(limit);
-                break;
-              } // case 58
-            case 65:
-              {
-                pickupToDeliveryRelativeDetourLimit_ = input.readDouble();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 65
-            case 74:
-              {
-                input.readMessage(
-                    getPickupToDeliveryAbsoluteDetourLimitFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(
-                    getPickupToDeliveryTimeLimitFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 90:
-              {
-                shipmentType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-            case 98:
-              {
-                label_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 98
-            case 104:
-              {
-                ignore_ = input.readBool();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 104
-            case 114:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-                    loadDemands__ =
-                        input.readMessage(
-                            LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableLoadDemands()
-                    .getMutableMap()
-                    .put(loadDemands__.getKey(), loadDemands__.getValue());
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 114
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.optimization.v1.Shipment.VisitRequest m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.Shipment.VisitRequest.parser(),
+                      extensionRegistry);
+              if (pickupsBuilder_ == null) {
+                ensurePickupsIsMutable();
+                pickups_.add(m);
+              } else {
+                pickupsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.optimization.v1.Shipment.VisitRequest m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.Shipment.VisitRequest.parser(),
+                      extensionRegistry);
+              if (deliveriesBuilder_ == null) {
+                ensureDeliveriesIsMutable();
+                deliveries_.add(m);
+              } else {
+                deliveriesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.optimization.v1.CapacityQuantity m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                      extensionRegistry);
+              if (demandsBuilder_ == null) {
+                ensureDemandsIsMutable();
+                demands_.add(m);
+              } else {
+                demandsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 33: {
+              penaltyCost_ = input.readDouble();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 33
+            case 40: {
+              int v = input.readInt32();
+              ensureAllowedVehicleIndicesIsMutable();
+              allowedVehicleIndices_.addInt(v);
+              break;
+            } // case 40
+            case 42: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureAllowedVehicleIndicesIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                allowedVehicleIndices_.addInt(input.readInt32());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 42
+            case 49: {
+              double v = input.readDouble();
+              ensureCostsPerVehicleIsMutable();
+              costsPerVehicle_.addDouble(v);
+              break;
+            } // case 49
+            case 50: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureCostsPerVehicleIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                costsPerVehicle_.addDouble(input.readDouble());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 50
+            case 56: {
+              int v = input.readInt32();
+              ensureCostsPerVehicleIndicesIsMutable();
+              costsPerVehicleIndices_.addInt(v);
+              break;
+            } // case 56
+            case 58: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureCostsPerVehicleIndicesIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                costsPerVehicleIndices_.addInt(input.readInt32());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 58
+            case 65: {
+              pickupToDeliveryRelativeDetourLimit_ = input.readDouble();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 65
+            case 74: {
+              input.readMessage(
+                  getPickupToDeliveryAbsoluteDetourLimitFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getPickupToDeliveryTimeLimitFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 90: {
+              shipmentType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 90
+            case 98: {
+              label_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 98
+            case 104: {
+              ignore_ = input.readBool();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 104
+            case 114: {
+              com.google.protobuf.MapEntry
+              loadDemands__ = input.readMessage(
+                  LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLoadDemands().getMutableMap().put(
+                  loadDemands__.getKey(), loadDemands__.getValue());
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 114
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7977,30 +7115,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List pickups_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensurePickupsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        pickups_ =
-            new java.util.ArrayList(
-                pickups_);
+        pickups_ = new java.util.ArrayList(pickups_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.Shipment.VisitRequest,
-            com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
-            com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>
-        pickupsBuilder_;
+        com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder> pickupsBuilder_;
 
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8016,8 +7145,6 @@ public java.util.List ge
       }
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8033,8 +7160,6 @@ public int getPickupsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8050,8 +7175,6 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest getPickups(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8074,8 +7197,6 @@ public Builder setPickups(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8095,8 +7216,6 @@ public Builder setPickups(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8118,8 +7237,6 @@ public Builder addPickups(com.google.cloud.optimization.v1.Shipment.VisitRequest
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8142,8 +7259,6 @@ public Builder addPickups(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8163,8 +7278,6 @@ public Builder addPickups(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8184,8 +7297,6 @@ public Builder addPickups(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8194,11 +7305,11 @@ public Builder addPickups(
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
      */
     public Builder addAllPickups(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (pickupsBuilder_ == null) {
         ensurePickupsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pickups_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, pickups_);
         onChanged();
       } else {
         pickupsBuilder_.addAllMessages(values);
@@ -8206,8 +7317,6 @@ public Builder addAllPickups(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8226,8 +7335,6 @@ public Builder clearPickups() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8246,8 +7353,6 @@ public Builder removePickups(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8260,8 +7365,6 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder getPickups
       return getPickupsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8272,14 +7375,11 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder getPickups
     public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuilder(
         int index) {
       if (pickupsBuilder_ == null) {
-        return pickups_.get(index);
-      } else {
+        return pickups_.get(index);  } else {
         return pickupsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8287,8 +7387,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
      */
-    public java.util.List
-        getPickupsOrBuilderList() {
+    public java.util.List 
+         getPickupsOrBuilderList() {
       if (pickupsBuilder_ != null) {
         return pickupsBuilder_.getMessageOrBuilderList();
       } else {
@@ -8296,8 +7396,6 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
       }
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8306,12 +7404,10 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
      */
     public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addPickupsBuilder() {
-      return getPickupsFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
+      return getPickupsFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8321,13 +7417,10 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addPickups
      */
     public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addPickupsBuilder(
         int index) {
-      return getPickupsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
+      return getPickupsFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -8335,49 +7428,38 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addPickups
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
      */
-    public java.util.List
-        getPickupsBuilderList() {
+    public java.util.List 
+         getPickupsBuilderList() {
       return getPickupsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.Shipment.VisitRequest,
-            com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
-            com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>
+        com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder> 
         getPickupsFieldBuilder() {
       if (pickupsBuilder_ == null) {
-        pickupsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.Shipment.VisitRequest,
-                com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
-                com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>(
-                pickups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        pickupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>(
+                pickups_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         pickups_ = null;
       }
       return pickupsBuilder_;
     }
 
     private java.util.List deliveries_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureDeliveriesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        deliveries_ =
-            new java.util.ArrayList(
-                deliveries_);
+        deliveries_ = new java.util.ArrayList(deliveries_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.Shipment.VisitRequest,
-            com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
-            com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>
-        deliveriesBuilder_;
+        com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder> deliveriesBuilder_;
 
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8385,8 +7467,7 @@ private void ensureDeliveriesIsMutable() {
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
-    public java.util.List
-        getDeliveriesList() {
+    public java.util.List getDeliveriesList() {
       if (deliveriesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(deliveries_);
       } else {
@@ -8394,8 +7475,6 @@ private void ensureDeliveriesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8411,8 +7490,6 @@ public int getDeliveriesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8428,8 +7505,6 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest getDeliveries(int
       }
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8452,8 +7527,6 @@ public Builder setDeliveries(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8473,8 +7546,6 @@ public Builder setDeliveries(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8496,8 +7567,6 @@ public Builder addDeliveries(com.google.cloud.optimization.v1.Shipment.VisitRequ
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8520,8 +7589,6 @@ public Builder addDeliveries(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8541,8 +7608,6 @@ public Builder addDeliveries(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8562,8 +7627,6 @@ public Builder addDeliveries(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8572,11 +7635,11 @@ public Builder addDeliveries(
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
     public Builder addAllDeliveries(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (deliveriesBuilder_ == null) {
         ensureDeliveriesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deliveries_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, deliveries_);
         onChanged();
       } else {
         deliveriesBuilder_.addAllMessages(values);
@@ -8584,8 +7647,6 @@ public Builder addAllDeliveries(
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8604,8 +7665,6 @@ public Builder clearDeliveries() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8624,8 +7683,6 @@ public Builder removeDeliveries(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8638,8 +7695,6 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder getDeliver
       return getDeliveriesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8650,14 +7705,11 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder getDeliver
     public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDeliveriesOrBuilder(
         int index) {
       if (deliveriesBuilder_ == null) {
-        return deliveries_.get(index);
-      } else {
+        return deliveries_.get(index);  } else {
         return deliveriesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8665,8 +7717,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDelive
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
-    public java.util.List
-        getDeliveriesOrBuilderList() {
+    public java.util.List 
+         getDeliveriesOrBuilderList() {
       if (deliveriesBuilder_ != null) {
         return deliveriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -8674,8 +7726,6 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDelive
       }
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8684,12 +7734,10 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDelive
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
     public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliveriesBuilder() {
-      return getDeliveriesFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
+      return getDeliveriesFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8699,13 +7747,10 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliver
      */
     public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliveriesBuilder(
         int index) {
-      return getDeliveriesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
+      return getDeliveriesFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -8713,34 +7758,28 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliver
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
-    public java.util.List
-        getDeliveriesBuilderList() {
+    public java.util.List 
+         getDeliveriesBuilderList() {
       return getDeliveriesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.Shipment.VisitRequest,
-            com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
-            com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>
+        com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder> 
         getDeliveriesFieldBuilder() {
       if (deliveriesBuilder_ == null) {
-        deliveriesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.Shipment.VisitRequest,
-                com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
-                com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>(
-                deliveries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        deliveriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>(
+                deliveries_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         deliveries_ = null;
       }
       return deliveriesBuilder_;
     }
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-        loadDemands_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+        java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_;
+    private com.google.protobuf.MapField
         internalGetLoadDemands() {
       if (loadDemands_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -8748,13 +7787,11 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliver
       }
       return loadDemands_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+    private com.google.protobuf.MapField
         internalGetMutableLoadDemands() {
       if (loadDemands_ == null) {
-        loadDemands_ =
-            com.google.protobuf.MapField.newMapField(LoadDemandsDefaultEntryHolder.defaultEntry);
+        loadDemands_ = com.google.protobuf.MapField.newMapField(
+            LoadDemandsDefaultEntryHolder.defaultEntry);
       }
       if (!loadDemands_.isMutable()) {
         loadDemands_ = loadDemands_.copy();
@@ -8763,13 +7800,10 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliver
       onChanged();
       return loadDemands_;
     }
-
     public int getLoadDemandsCount() {
       return internalGetLoadDemands().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -8779,26 +7813,23 @@ public int getLoadDemandsCount() {
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; */ @java.lang.Override - public boolean containsLoadDemands(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLoadDemands( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLoadDemands().getMap().containsKey(key); } - /** Use {@link #getLoadDemandsMap()} instead. */ + /** + * Use {@link #getLoadDemandsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getLoadDemands() { + public java.util.Map getLoadDemands() { return getLoadDemandsMap(); } /** - * - * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -8808,17 +7839,13 @@ public boolean containsLoadDemands(java.lang.String key) {
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; */ @java.lang.Override - public java.util.Map - getLoadDemandsMap() { + public java.util.Map getLoadDemandsMap() { return internalGetLoadDemands().getMap(); } /** - * - * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -8828,24 +7855,20 @@ public boolean containsLoadDemands(java.lang.String key) {
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( + public /* nullable */ +com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.optimization.v1.Shipment.Load defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -8855,15 +7878,12 @@ public boolean containsLoadDemands(java.lang.String key) {
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -8871,15 +7891,13 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( } return map.get(key); } - public Builder clearLoadDemands() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableLoadDemands().getMutableMap().clear(); + internalGetMutableLoadDemands().getMutableMap() + .clear(); return this; } /** - * - * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -8889,17 +7907,18 @@ public Builder clearLoadDemands() {
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; */ - public Builder removeLoadDemands(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLoadDemands().getMutableMap().remove(key); + public Builder removeLoadDemands( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLoadDemands().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableLoadDemands() { @@ -8907,8 +7926,6 @@ public Builder removeLoadDemands(java.lang.String key) { return internalGetMutableLoadDemands().getMutableMap(); } /** - * - * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -8918,24 +7935,19 @@ public Builder removeLoadDemands(java.lang.String key) {
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; */ - public Builder putLoadDemands( - java.lang.String key, com.google.cloud.optimization.v1.Shipment.Load value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLoadDemands().getMutableMap().put(key, value); + public Builder putLoadDemands( + java.lang.String key, + com.google.cloud.optimization.v1.Shipment.Load value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLoadDemands().getMutableMap() + .put(key, value); bitField0_ |= 0x00000004; return this; } /** - * - * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -8945,20 +7957,18 @@ public Builder putLoadDemands(
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; */ public Builder putAllLoadDemands( java.util.Map values) { - internalGetMutableLoadDemands().getMutableMap().putAll(values); + internalGetMutableLoadDemands().getMutableMap() + .putAll(values); bitField0_ |= 0x00000004; return this; } - private double penaltyCost_; + private double penaltyCost_ ; /** - * - * *
      * If the shipment is not completed, this penalty is added to the overall
      * cost of the routes. A shipment is considered completed if one of its pickup
@@ -8971,7 +7981,6 @@ public Builder putAllLoadDemands(
      * 
* * optional double penalty_cost = 4; - * * @return Whether the penaltyCost field is set. */ @java.lang.Override @@ -8979,8 +7988,6 @@ public boolean hasPenaltyCost() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * If the shipment is not completed, this penalty is added to the overall
      * cost of the routes. A shipment is considered completed if one of its pickup
@@ -8993,7 +8000,6 @@ public boolean hasPenaltyCost() {
      * 
* * optional double penalty_cost = 4; - * * @return The penaltyCost. */ @java.lang.Override @@ -9001,8 +8007,6 @@ public double getPenaltyCost() { return penaltyCost_; } /** - * - * *
      * If the shipment is not completed, this penalty is added to the overall
      * cost of the routes. A shipment is considered completed if one of its pickup
@@ -9015,7 +8019,6 @@ public double getPenaltyCost() {
      * 
* * optional double penalty_cost = 4; - * * @param value The penaltyCost to set. * @return This builder for chaining. */ @@ -9027,8 +8030,6 @@ public Builder setPenaltyCost(double value) { return this; } /** - * - * *
      * If the shipment is not completed, this penalty is added to the overall
      * cost of the routes. A shipment is considered completed if one of its pickup
@@ -9041,7 +8042,6 @@ public Builder setPenaltyCost(double value) {
      * 
* * optional double penalty_cost = 4; - * * @return This builder for chaining. */ public Builder clearPenaltyCost() { @@ -9052,7 +8052,6 @@ public Builder clearPenaltyCost() { } private com.google.protobuf.Internal.IntList allowedVehicleIndices_ = emptyIntList(); - private void ensureAllowedVehicleIndicesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { allowedVehicleIndices_ = mutableCopy(allowedVehicleIndices_); @@ -9060,8 +8059,6 @@ private void ensureAllowedVehicleIndicesIsMutable() { } } /** - * - * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -9069,17 +8066,14 @@ private void ensureAllowedVehicleIndicesIsMutable() {
      * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @return A list containing the allowedVehicleIndices. */ - public java.util.List getAllowedVehicleIndicesList() { - return ((bitField0_ & 0x00000010) != 0) - ? java.util.Collections.unmodifiableList(allowedVehicleIndices_) - : allowedVehicleIndices_; + public java.util.List + getAllowedVehicleIndicesList() { + return ((bitField0_ & 0x00000010) != 0) ? + java.util.Collections.unmodifiableList(allowedVehicleIndices_) : allowedVehicleIndices_; } /** - * - * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -9087,15 +8081,12 @@ public java.util.List getAllowedVehicleIndicesList() {
      * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @return The count of allowedVehicleIndices. */ public int getAllowedVehicleIndicesCount() { return allowedVehicleIndices_.size(); } /** - * - * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -9103,7 +8094,6 @@ public int getAllowedVehicleIndicesCount() {
      * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @param index The index of the element to return. * @return The allowedVehicleIndices at the given index. */ @@ -9111,8 +8101,6 @@ public int getAllowedVehicleIndices(int index) { return allowedVehicleIndices_.getInt(index); } /** - * - * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -9120,12 +8108,12 @@ public int getAllowedVehicleIndices(int index) {
      * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @param index The index to set the value at. * @param value The allowedVehicleIndices to set. * @return This builder for chaining. */ - public Builder setAllowedVehicleIndices(int index, int value) { + public Builder setAllowedVehicleIndices( + int index, int value) { ensureAllowedVehicleIndicesIsMutable(); allowedVehicleIndices_.setInt(index, value); @@ -9133,8 +8121,6 @@ public Builder setAllowedVehicleIndices(int index, int value) { return this; } /** - * - * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -9142,7 +8128,6 @@ public Builder setAllowedVehicleIndices(int index, int value) {
      * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @param value The allowedVehicleIndices to add. * @return This builder for chaining. */ @@ -9154,8 +8139,6 @@ public Builder addAllowedVehicleIndices(int value) { return this; } /** - * - * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -9163,20 +8146,18 @@ public Builder addAllowedVehicleIndices(int value) {
      * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @param values The allowedVehicleIndices to add. * @return This builder for chaining. */ public Builder addAllAllowedVehicleIndices( java.lang.Iterable values) { ensureAllowedVehicleIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedVehicleIndices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedVehicleIndices_); onChanged(); return this; } /** - * - * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -9184,7 +8165,6 @@ public Builder addAllAllowedVehicleIndices(
      * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @return This builder for chaining. */ public Builder clearAllowedVehicleIndices() { @@ -9195,7 +8175,6 @@ public Builder clearAllowedVehicleIndices() { } private com.google.protobuf.Internal.DoubleList costsPerVehicle_ = emptyDoubleList(); - private void ensureCostsPerVehicleIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { costsPerVehicle_ = mutableCopy(costsPerVehicle_); @@ -9203,8 +8182,6 @@ private void ensureCostsPerVehicleIsMutable() { } } /** - * - * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -9220,17 +8197,14 @@ private void ensureCostsPerVehicleIsMutable() {
      * 
* * repeated double costs_per_vehicle = 6; - * * @return A list containing the costsPerVehicle. */ - public java.util.List getCostsPerVehicleList() { - return ((bitField0_ & 0x00000020) != 0) - ? java.util.Collections.unmodifiableList(costsPerVehicle_) - : costsPerVehicle_; + public java.util.List + getCostsPerVehicleList() { + return ((bitField0_ & 0x00000020) != 0) ? + java.util.Collections.unmodifiableList(costsPerVehicle_) : costsPerVehicle_; } /** - * - * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -9246,15 +8220,12 @@ public java.util.List getCostsPerVehicleList() {
      * 
* * repeated double costs_per_vehicle = 6; - * * @return The count of costsPerVehicle. */ public int getCostsPerVehicleCount() { return costsPerVehicle_.size(); } /** - * - * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -9270,7 +8241,6 @@ public int getCostsPerVehicleCount() {
      * 
* * repeated double costs_per_vehicle = 6; - * * @param index The index of the element to return. * @return The costsPerVehicle at the given index. */ @@ -9278,8 +8248,6 @@ public double getCostsPerVehicle(int index) { return costsPerVehicle_.getDouble(index); } /** - * - * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -9295,12 +8263,12 @@ public double getCostsPerVehicle(int index) {
      * 
* * repeated double costs_per_vehicle = 6; - * * @param index The index to set the value at. * @param value The costsPerVehicle to set. * @return This builder for chaining. */ - public Builder setCostsPerVehicle(int index, double value) { + public Builder setCostsPerVehicle( + int index, double value) { ensureCostsPerVehicleIsMutable(); costsPerVehicle_.setDouble(index, value); @@ -9308,8 +8276,6 @@ public Builder setCostsPerVehicle(int index, double value) { return this; } /** - * - * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -9325,7 +8291,6 @@ public Builder setCostsPerVehicle(int index, double value) {
      * 
* * repeated double costs_per_vehicle = 6; - * * @param value The costsPerVehicle to add. * @return This builder for chaining. */ @@ -9337,8 +8302,6 @@ public Builder addCostsPerVehicle(double value) { return this; } /** - * - * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -9354,19 +8317,18 @@ public Builder addCostsPerVehicle(double value) {
      * 
* * repeated double costs_per_vehicle = 6; - * * @param values The costsPerVehicle to add. * @return This builder for chaining. */ - public Builder addAllCostsPerVehicle(java.lang.Iterable values) { + public Builder addAllCostsPerVehicle( + java.lang.Iterable values) { ensureCostsPerVehicleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, costsPerVehicle_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, costsPerVehicle_); onChanged(); return this; } /** - * - * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -9382,7 +8344,6 @@ public Builder addAllCostsPerVehicle(java.lang.Iterable
      *
      * repeated double costs_per_vehicle = 6;
-     *
      * @return This builder for chaining.
      */
     public Builder clearCostsPerVehicle() {
@@ -9393,7 +8354,6 @@ public Builder clearCostsPerVehicle() {
     }
 
     private com.google.protobuf.Internal.IntList costsPerVehicleIndices_ = emptyIntList();
-
     private void ensureCostsPerVehicleIndicesIsMutable() {
       if (!((bitField0_ & 0x00000040) != 0)) {
         costsPerVehicleIndices_ = mutableCopy(costsPerVehicleIndices_);
@@ -9401,8 +8361,6 @@ private void ensureCostsPerVehicleIndicesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -9411,17 +8369,14 @@ private void ensureCostsPerVehicleIndicesIsMutable() {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @return A list containing the costsPerVehicleIndices. */ - public java.util.List getCostsPerVehicleIndicesList() { - return ((bitField0_ & 0x00000040) != 0) - ? java.util.Collections.unmodifiableList(costsPerVehicleIndices_) - : costsPerVehicleIndices_; + public java.util.List + getCostsPerVehicleIndicesList() { + return ((bitField0_ & 0x00000040) != 0) ? + java.util.Collections.unmodifiableList(costsPerVehicleIndices_) : costsPerVehicleIndices_; } /** - * - * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -9430,15 +8385,12 @@ public java.util.List getCostsPerVehicleIndicesList() {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @return The count of costsPerVehicleIndices. */ public int getCostsPerVehicleIndicesCount() { return costsPerVehicleIndices_.size(); } /** - * - * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -9447,7 +8399,6 @@ public int getCostsPerVehicleIndicesCount() {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @param index The index of the element to return. * @return The costsPerVehicleIndices at the given index. */ @@ -9455,8 +8406,6 @@ public int getCostsPerVehicleIndices(int index) { return costsPerVehicleIndices_.getInt(index); } /** - * - * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -9465,12 +8414,12 @@ public int getCostsPerVehicleIndices(int index) {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @param index The index to set the value at. * @param value The costsPerVehicleIndices to set. * @return This builder for chaining. */ - public Builder setCostsPerVehicleIndices(int index, int value) { + public Builder setCostsPerVehicleIndices( + int index, int value) { ensureCostsPerVehicleIndicesIsMutable(); costsPerVehicleIndices_.setInt(index, value); @@ -9478,8 +8427,6 @@ public Builder setCostsPerVehicleIndices(int index, int value) { return this; } /** - * - * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -9488,7 +8435,6 @@ public Builder setCostsPerVehicleIndices(int index, int value) {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @param value The costsPerVehicleIndices to add. * @return This builder for chaining. */ @@ -9500,8 +8446,6 @@ public Builder addCostsPerVehicleIndices(int value) { return this; } /** - * - * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -9510,20 +8454,18 @@ public Builder addCostsPerVehicleIndices(int value) {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @param values The costsPerVehicleIndices to add. * @return This builder for chaining. */ public Builder addAllCostsPerVehicleIndices( java.lang.Iterable values) { ensureCostsPerVehicleIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, costsPerVehicleIndices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, costsPerVehicleIndices_); onChanged(); return this; } /** - * - * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -9532,7 +8474,6 @@ public Builder addAllCostsPerVehicleIndices(
      * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @return This builder for chaining. */ public Builder clearCostsPerVehicleIndices() { @@ -9542,10 +8483,8 @@ public Builder clearCostsPerVehicleIndices() { return this; } - private double pickupToDeliveryRelativeDetourLimit_; + private double pickupToDeliveryRelativeDetourLimit_ ; /** - * - * *
      * Specifies the maximum relative detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9567,7 +8506,6 @@ public Builder clearCostsPerVehicleIndices() {
      * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; - * * @return Whether the pickupToDeliveryRelativeDetourLimit field is set. */ @java.lang.Override @@ -9575,8 +8513,6 @@ public boolean hasPickupToDeliveryRelativeDetourLimit() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Specifies the maximum relative detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9598,7 +8534,6 @@ public boolean hasPickupToDeliveryRelativeDetourLimit() {
      * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; - * * @return The pickupToDeliveryRelativeDetourLimit. */ @java.lang.Override @@ -9606,8 +8541,6 @@ public double getPickupToDeliveryRelativeDetourLimit() { return pickupToDeliveryRelativeDetourLimit_; } /** - * - * *
      * Specifies the maximum relative detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9629,7 +8562,6 @@ public double getPickupToDeliveryRelativeDetourLimit() {
      * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; - * * @param value The pickupToDeliveryRelativeDetourLimit to set. * @return This builder for chaining. */ @@ -9641,8 +8573,6 @@ public Builder setPickupToDeliveryRelativeDetourLimit(double value) { return this; } /** - * - * *
      * Specifies the maximum relative detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9664,7 +8594,6 @@ public Builder setPickupToDeliveryRelativeDetourLimit(double value) {
      * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; - * * @return This builder for chaining. */ public Builder clearPickupToDeliveryRelativeDetourLimit() { @@ -9676,13 +8605,8 @@ public Builder clearPickupToDeliveryRelativeDetourLimit() { private com.google.protobuf.Duration pickupToDeliveryAbsoluteDetourLimit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - pickupToDeliveryAbsoluteDetourLimitBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> pickupToDeliveryAbsoluteDetourLimitBuilder_; /** - * - * *
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9704,15 +8628,12 @@ public Builder clearPickupToDeliveryRelativeDetourLimit() {
      * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; - * * @return Whether the pickupToDeliveryAbsoluteDetourLimit field is set. */ public boolean hasPickupToDeliveryAbsoluteDetourLimit() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9734,21 +8655,16 @@ public boolean hasPickupToDeliveryAbsoluteDetourLimit() {
      * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; - * * @return The pickupToDeliveryAbsoluteDetourLimit. */ public com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit() { if (pickupToDeliveryAbsoluteDetourLimitBuilder_ == null) { - return pickupToDeliveryAbsoluteDetourLimit_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : pickupToDeliveryAbsoluteDetourLimit_; + return pickupToDeliveryAbsoluteDetourLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryAbsoluteDetourLimit_; } else { return pickupToDeliveryAbsoluteDetourLimitBuilder_.getMessage(); } } /** - * - * *
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9785,8 +8701,6 @@ public Builder setPickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Durati
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9821,8 +8735,6 @@ public Builder setPickupToDeliveryAbsoluteDetourLimit(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9847,10 +8759,9 @@ public Builder setPickupToDeliveryAbsoluteDetourLimit(
      */
     public Builder mergePickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Duration value) {
       if (pickupToDeliveryAbsoluteDetourLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0)
-            && pickupToDeliveryAbsoluteDetourLimit_ != null
-            && pickupToDeliveryAbsoluteDetourLimit_
-                != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0) &&
+          pickupToDeliveryAbsoluteDetourLimit_ != null &&
+          pickupToDeliveryAbsoluteDetourLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getPickupToDeliveryAbsoluteDetourLimitBuilder().mergeFrom(value);
         } else {
           pickupToDeliveryAbsoluteDetourLimit_ = value;
@@ -9863,8 +8774,6 @@ public Builder mergePickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Dura
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9898,8 +8807,6 @@ public Builder clearPickupToDeliveryAbsoluteDetourLimit() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9928,8 +8835,6 @@ public com.google.protobuf.Duration.Builder getPickupToDeliveryAbsoluteDetourLim
       return getPickupToDeliveryAbsoluteDetourLimitFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9956,14 +8861,11 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
       if (pickupToDeliveryAbsoluteDetourLimitBuilder_ != null) {
         return pickupToDeliveryAbsoluteDetourLimitBuilder_.getMessageOrBuilder();
       } else {
-        return pickupToDeliveryAbsoluteDetourLimit_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : pickupToDeliveryAbsoluteDetourLimit_;
+        return pickupToDeliveryAbsoluteDetourLimit_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryAbsoluteDetourLimit_;
       }
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -9987,17 +8889,14 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
      * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getPickupToDeliveryAbsoluteDetourLimitFieldBuilder() {
       if (pickupToDeliveryAbsoluteDetourLimitBuilder_ == null) {
-        pickupToDeliveryAbsoluteDetourLimitBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getPickupToDeliveryAbsoluteDetourLimit(), getParentForChildren(), isClean());
+        pickupToDeliveryAbsoluteDetourLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getPickupToDeliveryAbsoluteDetourLimit(),
+                getParentForChildren(),
+                isClean());
         pickupToDeliveryAbsoluteDetourLimit_ = null;
       }
       return pickupToDeliveryAbsoluteDetourLimitBuilder_;
@@ -10005,13 +8904,8 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
 
     private com.google.protobuf.Duration pickupToDeliveryTimeLimit_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        pickupToDeliveryTimeLimitBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> pickupToDeliveryTimeLimitBuilder_;
     /**
-     *
-     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10022,15 +8916,12 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
      * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; - * * @return Whether the pickupToDeliveryTimeLimit field is set. */ public boolean hasPickupToDeliveryTimeLimit() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10041,21 +8932,16 @@ public boolean hasPickupToDeliveryTimeLimit() {
      * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; - * * @return The pickupToDeliveryTimeLimit. */ public com.google.protobuf.Duration getPickupToDeliveryTimeLimit() { if (pickupToDeliveryTimeLimitBuilder_ == null) { - return pickupToDeliveryTimeLimit_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : pickupToDeliveryTimeLimit_; + return pickupToDeliveryTimeLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryTimeLimit_; } else { return pickupToDeliveryTimeLimitBuilder_.getMessage(); } } /** - * - * *
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10081,8 +8967,6 @@ public Builder setPickupToDeliveryTimeLimit(com.google.protobuf.Duration value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10106,8 +8990,6 @@ public Builder setPickupToDeliveryTimeLimit(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10121,9 +9003,9 @@ public Builder setPickupToDeliveryTimeLimit(
      */
     public Builder mergePickupToDeliveryTimeLimit(com.google.protobuf.Duration value) {
       if (pickupToDeliveryTimeLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && pickupToDeliveryTimeLimit_ != null
-            && pickupToDeliveryTimeLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          pickupToDeliveryTimeLimit_ != null &&
+          pickupToDeliveryTimeLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getPickupToDeliveryTimeLimitBuilder().mergeFrom(value);
         } else {
           pickupToDeliveryTimeLimit_ = value;
@@ -10136,8 +9018,6 @@ public Builder mergePickupToDeliveryTimeLimit(com.google.protobuf.Duration value
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10160,8 +9040,6 @@ public Builder clearPickupToDeliveryTimeLimit() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10179,8 +9057,6 @@ public com.google.protobuf.Duration.Builder getPickupToDeliveryTimeLimitBuilder(
       return getPickupToDeliveryTimeLimitFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10196,14 +9072,11 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
       if (pickupToDeliveryTimeLimitBuilder_ != null) {
         return pickupToDeliveryTimeLimitBuilder_.getMessageOrBuilder();
       } else {
-        return pickupToDeliveryTimeLimit_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : pickupToDeliveryTimeLimit_;
+        return pickupToDeliveryTimeLimit_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryTimeLimit_;
       }
     }
     /**
-     *
-     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -10216,17 +9089,14 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
      * .google.protobuf.Duration pickup_to_delivery_time_limit = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getPickupToDeliveryTimeLimitFieldBuilder() {
       if (pickupToDeliveryTimeLimitBuilder_ == null) {
-        pickupToDeliveryTimeLimitBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getPickupToDeliveryTimeLimit(), getParentForChildren(), isClean());
+        pickupToDeliveryTimeLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getPickupToDeliveryTimeLimit(),
+                getParentForChildren(),
+                isClean());
         pickupToDeliveryTimeLimit_ = null;
       }
       return pickupToDeliveryTimeLimitBuilder_;
@@ -10234,8 +9104,6 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
 
     private java.lang.Object shipmentType_ = "";
     /**
-     *
-     *
      * 
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -10248,13 +9116,13 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
      * 
* * string shipment_type = 11; - * * @return The shipmentType. */ public java.lang.String getShipmentType() { java.lang.Object ref = shipmentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shipmentType_ = s; return s; @@ -10263,8 +9131,6 @@ public java.lang.String getShipmentType() { } } /** - * - * *
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -10277,14 +9143,15 @@ public java.lang.String getShipmentType() {
      * 
* * string shipment_type = 11; - * * @return The bytes for shipmentType. */ - public com.google.protobuf.ByteString getShipmentTypeBytes() { + public com.google.protobuf.ByteString + getShipmentTypeBytes() { java.lang.Object ref = shipmentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shipmentType_ = b; return b; } else { @@ -10292,8 +9159,6 @@ public com.google.protobuf.ByteString getShipmentTypeBytes() { } } /** - * - * *
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -10306,22 +9171,18 @@ public com.google.protobuf.ByteString getShipmentTypeBytes() {
      * 
* * string shipment_type = 11; - * * @param value The shipmentType to set. * @return This builder for chaining. */ - public Builder setShipmentType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setShipmentType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } shipmentType_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -10334,7 +9195,6 @@ public Builder setShipmentType(java.lang.String value) {
      * 
* * string shipment_type = 11; - * * @return This builder for chaining. */ public Builder clearShipmentType() { @@ -10344,8 +9204,6 @@ public Builder clearShipmentType() { return this; } /** - * - * *
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -10358,14 +9216,12 @@ public Builder clearShipmentType() {
      * 
* * string shipment_type = 11; - * * @param value The bytes for shipmentType to set. * @return This builder for chaining. */ - public Builder setShipmentTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setShipmentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shipmentType_ = value; bitField0_ |= 0x00000400; @@ -10375,8 +9231,6 @@ public Builder setShipmentTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object label_ = ""; /** - * - * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -10384,13 +9238,13 @@ public Builder setShipmentTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * string label = 12; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -10399,8 +9253,6 @@ public java.lang.String getLabel() { } } /** - * - * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -10408,14 +9260,15 @@ public java.lang.String getLabel() {
      * 
* * string label = 12; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -10423,8 +9276,6 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -10432,22 +9283,18 @@ public com.google.protobuf.ByteString getLabelBytes() {
      * 
* * string label = 12; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } label_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -10455,7 +9302,6 @@ public Builder setLabel(java.lang.String value) {
      * 
* * string label = 12; - * * @return This builder for chaining. */ public Builder clearLabel() { @@ -10465,8 +9311,6 @@ public Builder clearLabel() { return this; } /** - * - * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -10474,14 +9318,12 @@ public Builder clearLabel() {
      * 
* * string label = 12; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000800; @@ -10489,10 +9331,8 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { return this; } - private boolean ignore_; + private boolean ignore_ ; /** - * - * *
      * If true, skip this shipment, but don't apply a `penalty_cost`.
      *
@@ -10506,7 +9346,6 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool ignore = 13; - * * @return The ignore. */ @java.lang.Override @@ -10514,8 +9353,6 @@ public boolean getIgnore() { return ignore_; } /** - * - * *
      * If true, skip this shipment, but don't apply a `penalty_cost`.
      *
@@ -10529,7 +9366,6 @@ public boolean getIgnore() {
      * 
* * bool ignore = 13; - * * @param value The ignore to set. * @return This builder for chaining. */ @@ -10541,8 +9377,6 @@ public Builder setIgnore(boolean value) { return this; } /** - * - * *
      * If true, skip this shipment, but don't apply a `penalty_cost`.
      *
@@ -10556,7 +9390,6 @@ public Builder setIgnore(boolean value) {
      * 
* * bool ignore = 13; - * * @return This builder for chaining. */ public Builder clearIgnore() { @@ -10567,37 +9400,27 @@ public Builder clearIgnore() { } private java.util.List demands_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDemandsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - demands_ = - new java.util.ArrayList(demands_); + demands_ = new java.util.ArrayList(demands_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> - demandsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> demandsBuilder_; /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List getDemandsList() { + @java.lang.Deprecated public java.util.List getDemandsList() { if (demandsBuilder_ == null) { return java.util.Collections.unmodifiableList(demands_); } else { @@ -10605,20 +9428,15 @@ public java.util.List getDema } } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public int getDemandsCount() { + @java.lang.Deprecated public int getDemandsCount() { if (demandsBuilder_ == null) { return demands_.size(); } else { @@ -10626,20 +9444,15 @@ public int getDemandsCount() { } } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { if (demandsBuilder_ == null) { return demands_.get(index); } else { @@ -10647,20 +9460,16 @@ public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { } } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDemands(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder setDemands( + int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10674,20 +9483,15 @@ public Builder setDemands(int index, com.google.cloud.optimization.v1.CapacityQu return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDemands( + @java.lang.Deprecated public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -10699,20 +9503,15 @@ public Builder setDemands( return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10726,20 +9525,16 @@ public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity valu return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addDemands( + int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10753,20 +9548,15 @@ public Builder addDemands(int index, com.google.cloud.optimization.v1.CapacityQu return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands( + @java.lang.Deprecated public Builder addDemands( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -10778,20 +9568,15 @@ public Builder addDemands( return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands( + @java.lang.Deprecated public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -10803,24 +9588,20 @@ public Builder addDemands( return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllDemands( + @java.lang.Deprecated public Builder addAllDemands( java.lang.Iterable values) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, demands_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, demands_); onChanged(); } else { demandsBuilder_.addAllMessages(values); @@ -10828,20 +9609,15 @@ public Builder addAllDemands( return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearDemands() { + @java.lang.Deprecated public Builder clearDemands() { if (demandsBuilder_ == null) { demands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); @@ -10852,20 +9628,15 @@ public Builder clearDemands() { return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeDemands(int index) { + @java.lang.Deprecated public Builder removeDemands(int index) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); demands_.remove(index); @@ -10876,60 +9647,45 @@ public Builder removeDemands(int index) { return this; } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( + int index) { return getDemandsFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { if (demandsBuilder_ == null) { - return demands_.get(index); - } else { + return demands_.get(index); } else { return demandsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getDemandsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getDemandsOrBuilderList() { if (demandsBuilder_ != null) { return demandsBuilder_.getMessageOrBuilderList(); } else { @@ -10937,80 +9693,62 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBu } } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { - return getDemandsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { + return getDemandsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder(int index) { - return getDemandsFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( + int index) { + return getDemandsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getDemandsBuilderList() { + @java.lang.Deprecated public java.util.List + getDemandsBuilderList() { return getDemandsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getDemandsFieldBuilder() { if (demandsBuilder_ == null) { - demandsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - demands_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + demandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + demands_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); demands_ = null; } return demandsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -11020,12 +9758,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Shipment) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Shipment) private static final com.google.cloud.optimization.v1.Shipment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Shipment(); } @@ -11034,27 +9772,27 @@ public static com.google.cloud.optimization.v1.Shipment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Shipment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Shipment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11069,4 +9807,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Shipment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java similarity index 73% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java index 816fba2d4995..782ce1ec19ee 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * A shipment model contains a set of shipments which must be performed by a
  * set of vehicles, while minimizing the overall cost, which is the sum of:
@@ -33,22 +16,23 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel}
  */
-public final class ShipmentModel extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ShipmentModel extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel)
     ShipmentModelOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ShipmentModel.newBuilder() to construct.
   private ShipmentModel(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ShipmentModel() {
     shipments_ = java.util.Collections.emptyList();
     vehicles_ = java.util.Collections.emptyList();
     durationDistanceMatrices_ = java.util.Collections.emptyList();
-    durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
-    durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    durationDistanceMatrixSrcTags_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
+    durationDistanceMatrixDstTags_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     transitionAttributes_ = java.util.Collections.emptyList();
     shipmentTypeIncompatibilities_ = java.util.Collections.emptyList();
     shipmentTypeRequirements_ = java.util.Collections.emptyList();
@@ -58,109 +42,83 @@ private ShipmentModel() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ShipmentModel();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.ShipmentModel.class,
-            com.google.cloud.optimization.v1.ShipmentModel.Builder.class);
+            com.google.cloud.optimization.v1.ShipmentModel.class, com.google.cloud.optimization.v1.ShipmentModel.Builder.class);
   }
 
-  public interface DurationDistanceMatrixOrBuilder
-      extends
+  public interface DurationDistanceMatrixOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - java.util.List + java.util.List getRowsList(); /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows(int index); /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ int getRowsCount(); /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> + java.util.List getRowsOrBuilderList(); /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder - getRowsOrBuilder(int index); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder getRowsOrBuilder( + int index); /** - * - * *
      * Tag defining to which vehicles this duration and distance matrix applies.
      * If empty, this applies to all vehicles, and there can only be a single
@@ -174,13 +132,10 @@ public interface DurationDistanceMatrixOrBuilder
      * 
* * string vehicle_start_tag = 2; - * * @return The vehicleStartTag. */ java.lang.String getVehicleStartTag(); /** - * - * *
      * Tag defining to which vehicles this duration and distance matrix applies.
      * If empty, this applies to all vehicles, and there can only be a single
@@ -194,14 +149,12 @@ public interface DurationDistanceMatrixOrBuilder
      * 
* * string vehicle_start_tag = 2; - * * @return The bytes for vehicleStartTag. */ - com.google.protobuf.ByteString getVehicleStartTagBytes(); + com.google.protobuf.ByteString + getVehicleStartTagBytes(); } /** - * - * *
    * Specifies a duration and distance matrix from visit and vehicle start
    * locations to visit and vehicle end locations.
@@ -209,16 +162,15 @@ public interface DurationDistanceMatrixOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix}
    */
-  public static final class DurationDistanceMatrix extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class DurationDistanceMatrix extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)
       DurationDistanceMatrixOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use DurationDistanceMatrix.newBuilder() to construct.
     private DurationDistanceMatrix(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private DurationDistanceMatrix() {
       rows_ = java.util.Collections.emptyList();
       vehicleStartTag_ = "";
@@ -226,33 +178,29 @@ private DurationDistanceMatrix() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new DurationDistanceMatrix();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.class,
-              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.class, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder.class);
     }
 
-    public interface RowOrBuilder
-        extends
+    public interface RowOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -260,10 +208,9 @@ public interface RowOrBuilder
        *
        * repeated .google.protobuf.Duration durations = 1;
        */
-      java.util.List getDurationsList();
+      java.util.List 
+          getDurationsList();
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -273,8 +220,6 @@ public interface RowOrBuilder
        */
       com.google.protobuf.Duration getDurations(int index);
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -284,8 +229,6 @@ public interface RowOrBuilder
        */
       int getDurationsCount();
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -293,10 +236,9 @@ public interface RowOrBuilder
        *
        * repeated .google.protobuf.Duration durations = 1;
        */
-      java.util.List getDurationsOrBuilderList();
+      java.util.List 
+          getDurationsOrBuilderList();
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -304,11 +246,10 @@ public interface RowOrBuilder
        *
        * repeated .google.protobuf.Duration durations = 1;
        */
-      com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index);
+      com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
+          int index);
 
       /**
-       *
-       *
        * 
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -316,13 +257,10 @@ public interface RowOrBuilder
        * 
* * repeated double meters = 2; - * * @return A list containing the meters. */ java.util.List getMetersList(); /** - * - * *
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -330,13 +268,10 @@ public interface RowOrBuilder
        * 
* * repeated double meters = 2; - * * @return The count of meters. */ int getMetersCount(); /** - * - * *
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -344,31 +279,27 @@ public interface RowOrBuilder
        * 
* * repeated double meters = 2; - * * @param index The index of the element to return. * @return The meters at the given index. */ double getMeters(int index); } /** - * - * *
      * Specifies a row of the duration and distance matrix.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row} */ - public static final class Row extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Row extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) RowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Row() { durations_ = java.util.Collections.emptyList(); meters_ = emptyDoubleList(); @@ -376,33 +307,28 @@ private Row() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Row(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.class, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder - .class); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.class, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder.class); } public static final int DURATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List durations_; /** - * - * *
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -415,8 +341,6 @@ public java.util.List getDurationsList() {
         return durations_;
       }
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -425,13 +349,11 @@ public java.util.List getDurationsList() {
        * repeated .google.protobuf.Duration durations = 1;
        */
       @java.lang.Override
-      public java.util.List
+      public java.util.List 
           getDurationsOrBuilderList() {
         return durations_;
       }
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -444,8 +366,6 @@ public int getDurationsCount() {
         return durations_.size();
       }
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -458,8 +378,6 @@ public com.google.protobuf.Duration getDurations(int index) {
         return durations_.get(index);
       }
       /**
-       *
-       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -468,17 +386,15 @@ public com.google.protobuf.Duration getDurations(int index) {
        * repeated .google.protobuf.Duration durations = 1;
        */
       @java.lang.Override
-      public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index) {
+      public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
+          int index) {
         return durations_.get(index);
       }
 
       public static final int METERS_FIELD_NUMBER = 2;
-
       @SuppressWarnings("serial")
       private com.google.protobuf.Internal.DoubleList meters_;
       /**
-       *
-       *
        * 
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -486,16 +402,14 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index) {
        * 
* * repeated double meters = 2; - * * @return A list containing the meters. */ @java.lang.Override - public java.util.List getMetersList() { + public java.util.List + getMetersList() { return meters_; } /** - * - * *
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -503,15 +417,12 @@ public java.util.List getMetersList() {
        * 
* * repeated double meters = 2; - * * @return The count of meters. */ public int getMetersCount() { return meters_.size(); } /** - * - * *
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -519,18 +430,15 @@ public int getMetersCount() {
        * 
* * repeated double meters = 2; - * * @param index The index of the element to return. * @return The meters at the given index. */ public double getMeters(int index) { return meters_.getDouble(index); } - private int metersMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,7 +450,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < durations_.size(); i++) { output.writeMessage(1, durations_.get(i)); @@ -564,7 +473,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < durations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, durations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, durations_.get(i)); } { int dataSize = 0; @@ -572,7 +482,8 @@ public int getSerializedSize() { size += dataSize; if (!getMetersList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } metersMemoizedSerializedSize = dataSize; } @@ -584,17 +495,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row)) { + if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row other = - (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) obj; + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row other = (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) obj; - if (!getDurationsList().equals(other.getDurationsList())) return false; - if (!getMetersList().equals(other.getMetersList())) return false; + if (!getDurationsList() + .equals(other.getDurationsList())) return false; + if (!getMetersList() + .equals(other.getMetersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -619,103 +530,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -725,43 +623,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Specifies a row of the duration and distance matrix.
        * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.class, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder - .class); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.class, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder.class); } - // Construct using - // com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.newBuilder() - private Builder() {} + // Construct using com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -778,22 +672,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - .getDefaultInstance(); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.getDefaultInstance(); } @java.lang.Override public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row build() { - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result = - buildPartial(); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -801,20 +692,15 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - buildPartial() { - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result = - new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row(this); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row buildPartial() { + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result = new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result) { + private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result) { if (durationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { durations_ = java.util.Collections.unmodifiableList(durations_); @@ -831,8 +717,7 @@ private void buildPartialRepeatedFields( result.meters_ = meters_; } - private void buildPartial0( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result) { + private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result) { int from_bitField0_ = bitField0_; } @@ -840,55 +725,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) { - return mergeFrom( - (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) other); + if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) { + return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row other) { - if (other - == com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row other) { + if (other == com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.getDefaultInstance()) return this; if (durationsBuilder_ == null) { if (!other.durations_.isEmpty()) { if (durations_.isEmpty()) { @@ -907,10 +783,9 @@ public Builder mergeFrom( durationsBuilder_ = null; durations_ = other.durations_; bitField0_ = (bitField0_ & ~0x00000001); - durationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDurationsFieldBuilder() - : null; + durationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDurationsFieldBuilder() : null; } else { durationsBuilder_.addAllMessages(other.durations_); } @@ -952,43 +827,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.Duration m = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (durationsBuilder_ == null) { - ensureDurationsIsMutable(); - durations_.add(m); - } else { - durationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 17: - { - double v = input.readDouble(); - ensureMetersIsMutable(); - meters_.addDouble(v); - break; - } // case 17 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureMetersIsMutable(); - while (input.getBytesUntilLimit() > 0) { - meters_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.Duration m = + input.readMessage( + com.google.protobuf.Duration.parser(), + extensionRegistry); + if (durationsBuilder_ == null) { + ensureDurationsIsMutable(); + durations_.add(m); + } else { + durationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 17: { + double v = input.readDouble(); + ensureMetersIsMutable(); + meters_.addDouble(v); + break; + } // case 17 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureMetersIsMutable(); + while (input.getBytesUntilLimit() > 0) { + meters_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -998,28 +871,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List durations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDurationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { durations_ = new java.util.ArrayList(durations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationsBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationsBuilder_; /** - * - * *
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1035,8 +901,6 @@ public java.util.List getDurationsList() {
           }
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1052,8 +916,6 @@ public int getDurationsCount() {
           }
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1069,8 +931,6 @@ public com.google.protobuf.Duration getDurations(int index) {
           }
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1078,7 +938,8 @@ public com.google.protobuf.Duration getDurations(int index) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public Builder setDurations(int index, com.google.protobuf.Duration value) {
+        public Builder setDurations(
+            int index, com.google.protobuf.Duration value) {
           if (durationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -1092,8 +953,6 @@ public Builder setDurations(int index, com.google.protobuf.Duration value) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1113,8 +972,6 @@ public Builder setDurations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1136,8 +993,6 @@ public Builder addDurations(com.google.protobuf.Duration value) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1145,7 +1000,8 @@ public Builder addDurations(com.google.protobuf.Duration value) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public Builder addDurations(int index, com.google.protobuf.Duration value) {
+        public Builder addDurations(
+            int index, com.google.protobuf.Duration value) {
           if (durationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -1159,8 +1015,6 @@ public Builder addDurations(int index, com.google.protobuf.Duration value) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1168,7 +1022,8 @@ public Builder addDurations(int index, com.google.protobuf.Duration value) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public Builder addDurations(com.google.protobuf.Duration.Builder builderForValue) {
+        public Builder addDurations(
+            com.google.protobuf.Duration.Builder builderForValue) {
           if (durationsBuilder_ == null) {
             ensureDurationsIsMutable();
             durations_.add(builderForValue.build());
@@ -1179,8 +1034,6 @@ public Builder addDurations(com.google.protobuf.Duration.Builder builderForValue
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1200,8 +1053,6 @@ public Builder addDurations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1213,7 +1064,8 @@ public Builder addAllDurations(
             java.lang.Iterable values) {
           if (durationsBuilder_ == null) {
             ensureDurationsIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, durations_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(
+                values, durations_);
             onChanged();
           } else {
             durationsBuilder_.addAllMessages(values);
@@ -1221,8 +1073,6 @@ public Builder addAllDurations(
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1241,8 +1091,6 @@ public Builder clearDurations() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1261,8 +1109,6 @@ public Builder removeDurations(int index) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1270,12 +1116,11 @@ public Builder removeDurations(int index) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public com.google.protobuf.Duration.Builder getDurationsBuilder(int index) {
+        public com.google.protobuf.Duration.Builder getDurationsBuilder(
+            int index) {
           return getDurationsFieldBuilder().getBuilder(index);
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1283,16 +1128,14 @@ public com.google.protobuf.Duration.Builder getDurationsBuilder(int index) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index) {
+        public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
+            int index) {
           if (durationsBuilder_ == null) {
-            return durations_.get(index);
-          } else {
+            return durations_.get(index);  } else {
             return durationsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1300,8 +1143,8 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public java.util.List
-            getDurationsOrBuilderList() {
+        public java.util.List 
+             getDurationsOrBuilderList() {
           if (durationsBuilder_ != null) {
             return durationsBuilder_.getMessageOrBuilderList();
           } else {
@@ -1309,8 +1152,6 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index) {
           }
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1319,12 +1160,10 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index) {
          * repeated .google.protobuf.Duration durations = 1;
          */
         public com.google.protobuf.Duration.Builder addDurationsBuilder() {
-          return getDurationsFieldBuilder()
-              .addBuilder(com.google.protobuf.Duration.getDefaultInstance());
+          return getDurationsFieldBuilder().addBuilder(
+              com.google.protobuf.Duration.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1332,13 +1171,12 @@ public com.google.protobuf.Duration.Builder addDurationsBuilder() {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public com.google.protobuf.Duration.Builder addDurationsBuilder(int index) {
-          return getDurationsFieldBuilder()
-              .addBuilder(index, com.google.protobuf.Duration.getDefaultInstance());
+        public com.google.protobuf.Duration.Builder addDurationsBuilder(
+            int index) {
+          return getDurationsFieldBuilder().addBuilder(
+              index, com.google.protobuf.Duration.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1346,21 +1184,16 @@ public com.google.protobuf.Duration.Builder addDurationsBuilder(int index) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public java.util.List getDurationsBuilderList() {
+        public java.util.List 
+             getDurationsBuilderList() {
           return getDurationsFieldBuilder().getBuilderList();
         }
-
         private com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
             getDurationsFieldBuilder() {
           if (durationsBuilder_ == null) {
-            durationsBuilder_ =
-                new com.google.protobuf.RepeatedFieldBuilderV3<
-                    com.google.protobuf.Duration,
-                    com.google.protobuf.Duration.Builder,
-                    com.google.protobuf.DurationOrBuilder>(
+            durationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
                     durations_,
                     ((bitField0_ & 0x00000001) != 0),
                     getParentForChildren(),
@@ -1371,7 +1204,6 @@ public java.util.List getDurationsBuilderL
         }
 
         private com.google.protobuf.Internal.DoubleList meters_ = emptyDoubleList();
-
         private void ensureMetersIsMutable() {
           if (!((bitField0_ & 0x00000002) != 0)) {
             meters_ = mutableCopy(meters_);
@@ -1379,8 +1211,6 @@ private void ensureMetersIsMutable() {
           }
         }
         /**
-         *
-         *
          * 
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1388,17 +1218,14 @@ private void ensureMetersIsMutable() {
          * 
* * repeated double meters = 2; - * * @return A list containing the meters. */ - public java.util.List getMetersList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(meters_) - : meters_; + public java.util.List + getMetersList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(meters_) : meters_; } /** - * - * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1406,15 +1233,12 @@ public java.util.List getMetersList() {
          * 
* * repeated double meters = 2; - * * @return The count of meters. */ public int getMetersCount() { return meters_.size(); } /** - * - * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1422,7 +1246,6 @@ public int getMetersCount() {
          * 
* * repeated double meters = 2; - * * @param index The index of the element to return. * @return The meters at the given index. */ @@ -1430,8 +1253,6 @@ public double getMeters(int index) { return meters_.getDouble(index); } /** - * - * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1439,12 +1260,12 @@ public double getMeters(int index) {
          * 
* * repeated double meters = 2; - * * @param index The index to set the value at. * @param value The meters to set. * @return This builder for chaining. */ - public Builder setMeters(int index, double value) { + public Builder setMeters( + int index, double value) { ensureMetersIsMutable(); meters_.setDouble(index, value); @@ -1452,8 +1273,6 @@ public Builder setMeters(int index, double value) { return this; } /** - * - * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1461,7 +1280,6 @@ public Builder setMeters(int index, double value) {
          * 
* * repeated double meters = 2; - * * @param value The meters to add. * @return This builder for chaining. */ @@ -1473,8 +1291,6 @@ public Builder addMeters(double value) { return this; } /** - * - * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1482,19 +1298,18 @@ public Builder addMeters(double value) {
          * 
* * repeated double meters = 2; - * * @param values The meters to add. * @return This builder for chaining. */ - public Builder addAllMeters(java.lang.Iterable values) { + public Builder addAllMeters( + java.lang.Iterable values) { ensureMetersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, meters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, meters_); onChanged(); return this; } /** - * - * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1502,7 +1317,6 @@ public Builder addAllMeters(java.lang.Iterable value
          * 
* * repeated double meters = 2; - * * @return This builder for chaining. */ public Builder clearMeters() { @@ -1511,7 +1325,6 @@ public Builder clearMeters() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1524,45 +1337,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) - private static final com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row(); + DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row(); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Row parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Row parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1574,117 +1383,87 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ROWS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row> - rows_; + private java.util.List rows_; /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ @java.lang.Override - public java.util.List - getRowsList() { + public java.util.List getRowsList() { return rows_; } /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> + public java.util.List getRowsOrBuilderList() { return rows_; } /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ @java.lang.Override public int getRowsCount() { return rows_.size(); } /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows(int index) { return rows_.get(index); } /** - * - * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder - getRowsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder getRowsOrBuilder( + int index) { return rows_.get(index); } public static final int VEHICLE_START_TAG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object vehicleStartTag_ = ""; /** - * - * *
      * Tag defining to which vehicles this duration and distance matrix applies.
      * If empty, this applies to all vehicles, and there can only be a single
@@ -1698,7 +1477,6 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row
      * 
* * string vehicle_start_tag = 2; - * * @return The vehicleStartTag. */ @java.lang.Override @@ -1707,15 +1485,14 @@ public java.lang.String getVehicleStartTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vehicleStartTag_ = s; return s; } } /** - * - * *
      * Tag defining to which vehicles this duration and distance matrix applies.
      * If empty, this applies to all vehicles, and there can only be a single
@@ -1729,15 +1506,16 @@ public java.lang.String getVehicleStartTag() {
      * 
* * string vehicle_start_tag = 2; - * * @return The bytes for vehicleStartTag. */ @java.lang.Override - public com.google.protobuf.ByteString getVehicleStartTagBytes() { + public com.google.protobuf.ByteString + getVehicleStartTagBytes() { java.lang.Object ref = vehicleStartTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vehicleStartTag_ = b; return b; } else { @@ -1746,7 +1524,6 @@ public com.google.protobuf.ByteString getVehicleStartTagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1758,7 +1535,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < rows_.size(); i++) { output.writeMessage(1, rows_.get(i)); } @@ -1775,7 +1553,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rows_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, rows_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vehicleStartTag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vehicleStartTag_); @@ -1788,16 +1567,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix other = - (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) obj; + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix other = (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) obj; - if (!getRowsList().equals(other.getRowsList())) return false; - if (!getVehicleStartTag().equals(other.getVehicleStartTag())) return false; + if (!getRowsList() + .equals(other.getRowsList())) return false; + if (!getVehicleStartTag() + .equals(other.getVehicleStartTag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1821,95 +1601,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1919,8 +1693,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Specifies a duration and distance matrix from visit and vehicle start
      * locations to visit and vehicle end locations.
@@ -1928,35 +1700,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)
         com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.class,
-                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder
-                    .class);
+                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.class, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1973,22 +1743,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix
-          getDefaultInstanceForType() {
-        return com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix
-            .getDefaultInstance();
+      public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDefaultInstanceForType() {
+        return com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix build() {
-        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result =
-            buildPartial();
+        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1997,18 +1764,14 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix bui
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result =
-            new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix(this);
+        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result = new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result) {
+      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result) {
         if (rowsBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             rows_ = java.util.Collections.unmodifiableList(rows_);
@@ -2020,8 +1783,7 @@ private void buildPartialRepeatedFields(
         }
       }
 
-      private void buildPartial0(
-          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result) {
+      private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.vehicleStartTag_ = vehicleStartTag_;
@@ -2032,54 +1794,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) {
-          return mergeFrom(
-              (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) other);
+        if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) {
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix other) {
-        if (other
-            == com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix other) {
+        if (other == com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.getDefaultInstance()) return this;
         if (rowsBuilder_ == null) {
           if (!other.rows_.isEmpty()) {
             if (rows_.isEmpty()) {
@@ -2098,10 +1852,9 @@ public Builder mergeFrom(
               rowsBuilder_ = null;
               rows_ = other.rows_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              rowsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getRowsFieldBuilder()
-                      : null;
+              rowsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getRowsFieldBuilder() : null;
             } else {
               rowsBuilder_.addAllMessages(other.rows_);
             }
@@ -2138,34 +1891,30 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row m =
-                      input.readMessage(
-                          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row
-                              .parser(),
-                          extensionRegistry);
-                  if (rowsBuilder_ == null) {
-                    ensureRowsIsMutable();
-                    rows_.add(m);
-                  } else {
-                    rowsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 10
-              case 18:
-                {
-                  vehicleStartTag_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.parser(),
+                        extensionRegistry);
+                if (rowsBuilder_ == null) {
+                  ensureRowsIsMutable();
+                  rows_.add(m);
+                } else {
+                  rowsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+              case 18: {
+                vehicleStartTag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2175,44 +1924,30 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private java.util.List<
-              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row>
-          rows_ = java.util.Collections.emptyList();
-
+      private java.util.List rows_ =
+        java.util.Collections.emptyList();
       private void ensureRowsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          rows_ =
-              new java.util.ArrayList<
-                  com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row>(rows_);
+          rows_ = new java.util.ArrayList(rows_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row,
-              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder,
-              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder>
-          rowsBuilder_;
+          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> rowsBuilder_;
 
       /**
-       *
-       *
        * 
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row> - getRowsList() { + public java.util.List getRowsList() { if (rowsBuilder_ == null) { return java.util.Collections.unmodifiableList(rows_); } else { @@ -2220,17 +1955,13 @@ private void ensureRowsIsMutable() { } } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public int getRowsCount() { if (rowsBuilder_ == null) { @@ -2240,20 +1971,15 @@ public int getRowsCount() { } } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { @@ -2261,21 +1987,16 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row } } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public Builder setRows( - int index, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { + int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2289,22 +2010,16 @@ public Builder setRows( return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public Builder setRows( - int index, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); @@ -2315,20 +2030,15 @@ public Builder setRows( return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public Builder addRows( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { + public Builder addRows(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2342,21 +2052,16 @@ public Builder addRows( return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public Builder addRows( - int index, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { + int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2370,21 +2075,16 @@ public Builder addRows( return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public Builder addRows( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder - builderForValue) { + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); @@ -2395,22 +2095,16 @@ public Builder addRows( return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public Builder addRows( - int index, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); @@ -2421,26 +2115,20 @@ public Builder addRows( return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public Builder addAllRows( - java.lang.Iterable< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row> - values) { + java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); @@ -2448,17 +2136,13 @@ public Builder addAllRows( return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public Builder clearRows() { if (rowsBuilder_ == null) { @@ -2471,17 +2155,13 @@ public Builder clearRows() { return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ public Builder removeRows(int index) { if (rowsBuilder_ == null) { @@ -2494,61 +2174,45 @@ public Builder removeRows(int index) { return this; } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder - getRowsBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder getRowsBuilder( + int index) { return getRowsFieldBuilder().getBuilder(index); } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder - getRowsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder getRowsOrBuilder( + int index) { if (rowsBuilder_ == null) { - return rows_.get(index); - } else { + return rows_.get(index); } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - .RowOrBuilder> - getRowsOrBuilderList() { + public java.util.List + getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { @@ -2556,78 +2220,55 @@ public Builder removeRows(int index) { } } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder - addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - .getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder addRowsBuilder() { + return getRowsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.getDefaultInstance()); } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder - addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row - .getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder addRowsBuilder( + int index) { + return getRowsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.getDefaultInstance()); } /** - * - * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; */ - public java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder> - getRowsBuilderList() { + public java.util.List + getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - .RowOrBuilder>( - rows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder>( + rows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); rows_ = null; } return rowsBuilder_; @@ -2635,8 +2276,6 @@ public Builder removeRows(int index) { private java.lang.Object vehicleStartTag_ = ""; /** - * - * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2650,13 +2289,13 @@ public Builder removeRows(int index) {
        * 
* * string vehicle_start_tag = 2; - * * @return The vehicleStartTag. */ public java.lang.String getVehicleStartTag() { java.lang.Object ref = vehicleStartTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vehicleStartTag_ = s; return s; @@ -2665,8 +2304,6 @@ public java.lang.String getVehicleStartTag() { } } /** - * - * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2680,14 +2317,15 @@ public java.lang.String getVehicleStartTag() {
        * 
* * string vehicle_start_tag = 2; - * * @return The bytes for vehicleStartTag. */ - public com.google.protobuf.ByteString getVehicleStartTagBytes() { + public com.google.protobuf.ByteString + getVehicleStartTagBytes() { java.lang.Object ref = vehicleStartTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vehicleStartTag_ = b; return b; } else { @@ -2695,8 +2333,6 @@ public com.google.protobuf.ByteString getVehicleStartTagBytes() { } } /** - * - * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2710,22 +2346,18 @@ public com.google.protobuf.ByteString getVehicleStartTagBytes() {
        * 
* * string vehicle_start_tag = 2; - * * @param value The vehicleStartTag to set. * @return This builder for chaining. */ - public Builder setVehicleStartTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVehicleStartTag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } vehicleStartTag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2739,7 +2371,6 @@ public Builder setVehicleStartTag(java.lang.String value) {
        * 
* * string vehicle_start_tag = 2; - * * @return This builder for chaining. */ public Builder clearVehicleStartTag() { @@ -2749,8 +2380,6 @@ public Builder clearVehicleStartTag() { return this; } /** - * - * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2764,21 +2393,18 @@ public Builder clearVehicleStartTag() {
        * 
* * string vehicle_start_tag = 2; - * * @param value The bytes for vehicleStartTag to set. * @return This builder for chaining. */ - public Builder setVehicleStartTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVehicleStartTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vehicleStartTag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2791,45 +2417,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) - private static final com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix(); + DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix(); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationDistanceMatrix parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DurationDistanceMatrix parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2841,120 +2463,93 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PrecedenceRuleOrBuilder - extends + public interface PrecedenceRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Shipment index of the "first" event. This field must be specified.
      * 
* * optional int32 first_index = 1; - * * @return Whether the firstIndex field is set. */ boolean hasFirstIndex(); /** - * - * *
      * Shipment index of the "first" event. This field must be specified.
      * 
* * optional int32 first_index = 1; - * * @return The firstIndex. */ int getFirstIndex(); /** - * - * *
      * Indicates if the "first" event is a delivery.
      * 
* * bool first_is_delivery = 3; - * * @return The firstIsDelivery. */ boolean getFirstIsDelivery(); /** - * - * *
      * Shipment index of the "second" event. This field must be specified.
      * 
* * optional int32 second_index = 2; - * * @return Whether the secondIndex field is set. */ boolean hasSecondIndex(); /** - * - * *
      * Shipment index of the "second" event. This field must be specified.
      * 
* * optional int32 second_index = 2; - * * @return The secondIndex. */ int getSecondIndex(); /** - * - * *
      * Indicates if the "second" event is a delivery.
      * 
* * bool second_is_delivery = 4; - * * @return The secondIsDelivery. */ boolean getSecondIsDelivery(); /** - * - * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
* * .google.protobuf.Duration offset_duration = 5; - * * @return Whether the offsetDuration field is set. */ boolean hasOffsetDuration(); /** - * - * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
* * .google.protobuf.Duration offset_duration = 5; - * * @return The offsetDuration. */ com.google.protobuf.Duration getOffsetDuration(); /** - * - * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
@@ -2964,8 +2559,6 @@ public interface PrecedenceRuleOrBuilder com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder(); } /** - * - * *
    * A precedence rule between two events (each event is the pickup or the
    * delivery of a shipment): the "second" event has to start at least
@@ -2981,51 +2574,47 @@ public interface PrecedenceRuleOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.PrecedenceRule}
    */
-  public static final class PrecedenceRule extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class PrecedenceRule extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule)
       PrecedenceRuleOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use PrecedenceRule.newBuilder() to construct.
     private PrecedenceRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private PrecedenceRule() {}
+    private PrecedenceRule() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new PrecedenceRule();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.class,
-              com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.class, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder.class);
     }
 
     private int bitField0_;
     public static final int FIRST_INDEX_FIELD_NUMBER = 1;
     private int firstIndex_ = 0;
     /**
-     *
-     *
      * 
      * Shipment index of the "first" event. This field must be specified.
      * 
* * optional int32 first_index = 1; - * * @return Whether the firstIndex field is set. */ @java.lang.Override @@ -3033,14 +2622,11 @@ public boolean hasFirstIndex() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Shipment index of the "first" event. This field must be specified.
      * 
* * optional int32 first_index = 1; - * * @return The firstIndex. */ @java.lang.Override @@ -3051,14 +2637,11 @@ public int getFirstIndex() { public static final int FIRST_IS_DELIVERY_FIELD_NUMBER = 3; private boolean firstIsDelivery_ = false; /** - * - * *
      * Indicates if the "first" event is a delivery.
      * 
* * bool first_is_delivery = 3; - * * @return The firstIsDelivery. */ @java.lang.Override @@ -3069,14 +2652,11 @@ public boolean getFirstIsDelivery() { public static final int SECOND_INDEX_FIELD_NUMBER = 2; private int secondIndex_ = 0; /** - * - * *
      * Shipment index of the "second" event. This field must be specified.
      * 
* * optional int32 second_index = 2; - * * @return Whether the secondIndex field is set. */ @java.lang.Override @@ -3084,14 +2664,11 @@ public boolean hasSecondIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Shipment index of the "second" event. This field must be specified.
      * 
* * optional int32 second_index = 2; - * * @return The secondIndex. */ @java.lang.Override @@ -3102,14 +2679,11 @@ public int getSecondIndex() { public static final int SECOND_IS_DELIVERY_FIELD_NUMBER = 4; private boolean secondIsDelivery_ = false; /** - * - * *
      * Indicates if the "second" event is a delivery.
      * 
* * bool second_is_delivery = 4; - * * @return The secondIsDelivery. */ @java.lang.Override @@ -3120,14 +2694,11 @@ public boolean getSecondIsDelivery() { public static final int OFFSET_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration offsetDuration_; /** - * - * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
* * .google.protobuf.Duration offset_duration = 5; - * * @return Whether the offsetDuration field is set. */ @java.lang.Override @@ -3135,25 +2706,18 @@ public boolean hasOffsetDuration() { return offsetDuration_ != null; } /** - * - * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
* * .google.protobuf.Duration offset_duration = 5; - * * @return The offsetDuration. */ @java.lang.Override public com.google.protobuf.Duration getOffsetDuration() { - return offsetDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : offsetDuration_; + return offsetDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offsetDuration_; } /** - * - * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
@@ -3162,13 +2726,10 @@ public com.google.protobuf.Duration getOffsetDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder() { - return offsetDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : offsetDuration_; + return offsetDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offsetDuration_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3180,7 +2741,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, firstIndex_); } @@ -3206,19 +2768,24 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, firstIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, firstIndex_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, secondIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, secondIndex_); } if (firstIsDelivery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, firstIsDelivery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, firstIsDelivery_); } if (secondIsDelivery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, secondIsDelivery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, secondIsDelivery_); } if (offsetDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOffsetDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOffsetDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3228,27 +2795,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule other = - (com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) obj; + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule other = (com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) obj; if (hasFirstIndex() != other.hasFirstIndex()) return false; if (hasFirstIndex()) { - if (getFirstIndex() != other.getFirstIndex()) return false; + if (getFirstIndex() + != other.getFirstIndex()) return false; } - if (getFirstIsDelivery() != other.getFirstIsDelivery()) return false; + if (getFirstIsDelivery() + != other.getFirstIsDelivery()) return false; if (hasSecondIndex() != other.hasSecondIndex()) return false; if (hasSecondIndex()) { - if (getSecondIndex() != other.getSecondIndex()) return false; + if (getSecondIndex() + != other.getSecondIndex()) return false; } - if (getSecondIsDelivery() != other.getSecondIsDelivery()) return false; + if (getSecondIsDelivery() + != other.getSecondIsDelivery()) return false; if (hasOffsetDuration() != other.hasOffsetDuration()) return false; if (hasOffsetDuration()) { - if (!getOffsetDuration().equals(other.getOffsetDuration())) return false; + if (!getOffsetDuration() + .equals(other.getOffsetDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3266,13 +2837,15 @@ public int hashCode() { hash = (53 * hash) + getFirstIndex(); } hash = (37 * hash) + FIRST_IS_DELIVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFirstIsDelivery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFirstIsDelivery()); if (hasSecondIndex()) { hash = (37 * hash) + SECOND_INDEX_FIELD_NUMBER; hash = (53 * hash) + getSecondIndex(); } hash = (37 * hash) + SECOND_IS_DELIVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSecondIsDelivery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSecondIsDelivery()); if (hasOffsetDuration()) { hash = (37 * hash) + OFFSET_DURATION_FIELD_NUMBER; hash = (53 * hash) + getOffsetDuration().hashCode(); @@ -3283,94 +2856,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3380,8 +2948,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A precedence rule between two events (each event is the pickup or the
      * delivery of a shipment): the "second" event has to start at least
@@ -3397,35 +2963,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.PrecedenceRule}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule)
         com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.class,
-                com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.class, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
-      @java.lang.Override
-      public Builder clear() {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
+      @java.lang.Override
+      public Builder clear() {
         super.clear();
         bitField0_ = 0;
         firstIndex_ = 0;
@@ -3441,14 +3007,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule
-          getDefaultInstanceForType() {
+      public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getDefaultInstanceForType() {
         return com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance();
       }
 
@@ -3463,17 +3028,13 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule result =
-            new com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule result = new com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule result) {
+      private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule result) {
         int from_bitField0_ = bitField0_;
         int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -3491,8 +3052,9 @@ private void buildPartial0(
           result.secondIsDelivery_ = secondIsDelivery_;
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.offsetDuration_ =
-              offsetDurationBuilder_ == null ? offsetDuration_ : offsetDurationBuilder_.build();
+          result.offsetDuration_ = offsetDurationBuilder_ == null
+              ? offsetDuration_
+              : offsetDurationBuilder_.build();
         }
         result.bitField0_ |= to_bitField0_;
       }
@@ -3501,52 +3063,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule other) {
-        if (other
-            == com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule other) {
+        if (other == com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()) return this;
         if (other.hasFirstIndex()) {
           setFirstIndex(other.getFirstIndex());
         }
@@ -3588,44 +3144,39 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  firstIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  secondIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 16
-              case 24:
-                {
-                  firstIsDelivery_ = input.readBool();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 24
-              case 32:
-                {
-                  secondIsDelivery_ = input.readBool();
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 32
-              case 42:
-                {
-                  input.readMessage(
-                      getOffsetDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 42
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                firstIndex_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                secondIndex_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 16
+              case 24: {
+                firstIsDelivery_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+              case 32: {
+                secondIsDelivery_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+              case 42: {
+                input.readMessage(
+                    getOffsetDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3635,19 +3186,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private int firstIndex_;
+      private int firstIndex_ ;
       /**
-       *
-       *
        * 
        * Shipment index of the "first" event. This field must be specified.
        * 
* * optional int32 first_index = 1; - * * @return Whether the firstIndex field is set. */ @java.lang.Override @@ -3655,14 +3202,11 @@ public boolean hasFirstIndex() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Shipment index of the "first" event. This field must be specified.
        * 
* * optional int32 first_index = 1; - * * @return The firstIndex. */ @java.lang.Override @@ -3670,14 +3214,11 @@ public int getFirstIndex() { return firstIndex_; } /** - * - * *
        * Shipment index of the "first" event. This field must be specified.
        * 
* * optional int32 first_index = 1; - * * @param value The firstIndex to set. * @return This builder for chaining. */ @@ -3689,14 +3230,11 @@ public Builder setFirstIndex(int value) { return this; } /** - * - * *
        * Shipment index of the "first" event. This field must be specified.
        * 
* * optional int32 first_index = 1; - * * @return This builder for chaining. */ public Builder clearFirstIndex() { @@ -3706,16 +3244,13 @@ public Builder clearFirstIndex() { return this; } - private boolean firstIsDelivery_; + private boolean firstIsDelivery_ ; /** - * - * *
        * Indicates if the "first" event is a delivery.
        * 
* * bool first_is_delivery = 3; - * * @return The firstIsDelivery. */ @java.lang.Override @@ -3723,14 +3258,11 @@ public boolean getFirstIsDelivery() { return firstIsDelivery_; } /** - * - * *
        * Indicates if the "first" event is a delivery.
        * 
* * bool first_is_delivery = 3; - * * @param value The firstIsDelivery to set. * @return This builder for chaining. */ @@ -3742,14 +3274,11 @@ public Builder setFirstIsDelivery(boolean value) { return this; } /** - * - * *
        * Indicates if the "first" event is a delivery.
        * 
* * bool first_is_delivery = 3; - * * @return This builder for chaining. */ public Builder clearFirstIsDelivery() { @@ -3759,16 +3288,13 @@ public Builder clearFirstIsDelivery() { return this; } - private int secondIndex_; + private int secondIndex_ ; /** - * - * *
        * Shipment index of the "second" event. This field must be specified.
        * 
* * optional int32 second_index = 2; - * * @return Whether the secondIndex field is set. */ @java.lang.Override @@ -3776,14 +3302,11 @@ public boolean hasSecondIndex() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Shipment index of the "second" event. This field must be specified.
        * 
* * optional int32 second_index = 2; - * * @return The secondIndex. */ @java.lang.Override @@ -3791,14 +3314,11 @@ public int getSecondIndex() { return secondIndex_; } /** - * - * *
        * Shipment index of the "second" event. This field must be specified.
        * 
* * optional int32 second_index = 2; - * * @param value The secondIndex to set. * @return This builder for chaining. */ @@ -3810,14 +3330,11 @@ public Builder setSecondIndex(int value) { return this; } /** - * - * *
        * Shipment index of the "second" event. This field must be specified.
        * 
* * optional int32 second_index = 2; - * * @return This builder for chaining. */ public Builder clearSecondIndex() { @@ -3827,16 +3344,13 @@ public Builder clearSecondIndex() { return this; } - private boolean secondIsDelivery_; + private boolean secondIsDelivery_ ; /** - * - * *
        * Indicates if the "second" event is a delivery.
        * 
* * bool second_is_delivery = 4; - * * @return The secondIsDelivery. */ @java.lang.Override @@ -3844,14 +3358,11 @@ public boolean getSecondIsDelivery() { return secondIsDelivery_; } /** - * - * *
        * Indicates if the "second" event is a delivery.
        * 
* * bool second_is_delivery = 4; - * * @param value The secondIsDelivery to set. * @return This builder for chaining. */ @@ -3863,14 +3374,11 @@ public Builder setSecondIsDelivery(boolean value) { return this; } /** - * - * *
        * Indicates if the "second" event is a delivery.
        * 
* * bool second_is_delivery = 4; - * * @return This builder for chaining. */ public Builder clearSecondIsDelivery() { @@ -3882,47 +3390,34 @@ public Builder clearSecondIsDelivery() { private com.google.protobuf.Duration offsetDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - offsetDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> offsetDurationBuilder_; /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
* * .google.protobuf.Duration offset_duration = 5; - * * @return Whether the offsetDuration field is set. */ public boolean hasOffsetDuration() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
* * .google.protobuf.Duration offset_duration = 5; - * * @return The offsetDuration. */ public com.google.protobuf.Duration getOffsetDuration() { if (offsetDurationBuilder_ == null) { - return offsetDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : offsetDuration_; + return offsetDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offsetDuration_; } else { return offsetDurationBuilder_.getMessage(); } } /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -3943,15 +3438,14 @@ public Builder setOffsetDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
* * .google.protobuf.Duration offset_duration = 5; */ - public Builder setOffsetDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setOffsetDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (offsetDurationBuilder_ == null) { offsetDuration_ = builderForValue.build(); } else { @@ -3962,8 +3456,6 @@ public Builder setOffsetDuration(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -3972,9 +3464,9 @@ public Builder setOffsetDuration(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeOffsetDuration(com.google.protobuf.Duration value) { if (offsetDurationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && offsetDuration_ != null - && offsetDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + offsetDuration_ != null && + offsetDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getOffsetDurationBuilder().mergeFrom(value); } else { offsetDuration_ = value; @@ -3987,8 +3479,6 @@ public Builder mergeOffsetDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -4006,8 +3496,6 @@ public Builder clearOffsetDuration() { return this; } /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -4020,8 +3508,6 @@ public com.google.protobuf.Duration.Builder getOffsetDurationBuilder() { return getOffsetDurationFieldBuilder().getBuilder(); } /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -4032,14 +3518,11 @@ public com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder() { if (offsetDurationBuilder_ != null) { return offsetDurationBuilder_.getMessageOrBuilder(); } else { - return offsetDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : offsetDuration_; + return offsetDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : offsetDuration_; } } /** - * - * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -4047,22 +3530,18 @@ public com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder() { * .google.protobuf.Duration offset_duration = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getOffsetDurationFieldBuilder() { if (offsetDurationBuilder_ == null) { - offsetDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getOffsetDuration(), getParentForChildren(), isClean()); + offsetDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getOffsetDuration(), + getParentForChildren(), + isClean()); offsetDuration_ = null; } return offsetDurationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4075,44 +3554,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) - private static final com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule(); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule - getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrecedenceRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrecedenceRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4124,161 +3600,110 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - @java.lang.Deprecated - public interface BreakRuleOrBuilder - extends + @java.lang.Deprecated public interface BreakRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.BreakRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - java.util.List + java.util.List getBreakRequestsList(); /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests( - int index); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests(int index); /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ int getBreakRequestsCount(); /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> + java.util.List getBreakRequestsOrBuilderList(); /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder - getBreakRequestsOrBuilder(int index); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder( + int index); /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - java.util.List + java.util.List getFrequencyConstraintsList(); /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - getFrequencyConstraints(int index); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getFrequencyConstraints(int index); /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ int getFrequencyConstraintsCount(); /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.BreakRule - .FrequencyConstraintOrBuilder> + java.util.List getFrequencyConstraintsOrBuilderList(); /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder - getFrequencyConstraintsOrBuilder(int index); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( + int index); } /** - * - * *
    * Deprecated: Use top level
    * [BreakRule][google.cloud.optimization.v1.ShipmentModel.BreakRule] instead.
@@ -4297,17 +3722,15 @@ com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRe
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule}
    */
-  @java.lang.Deprecated
-  public static final class BreakRule extends com.google.protobuf.GeneratedMessageV3
-      implements
+  @java.lang.Deprecated public static final class BreakRule extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule)
       BreakRuleOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use BreakRule.newBuilder() to construct.
     private BreakRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private BreakRule() {
       breakRequests_ = java.util.Collections.emptyList();
       frequencyConstraints_ = java.util.Collections.emptyList();
@@ -4315,153 +3738,110 @@ private BreakRule() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new BreakRule();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.class,
-              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder.class);
     }
 
-    public interface BreakRequestOrBuilder
-        extends
+    public interface BreakRequestOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the earliestStartTime field is set. */ boolean hasEarliestStartTime(); /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The earliestStartTime. */ com.google.protobuf.Timestamp getEarliestStartTime(); /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder(); /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the latestStartTime field is set. */ boolean hasLatestStartTime(); /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The latestStartTime. */ com.google.protobuf.Timestamp getLatestStartTime(); /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder(); /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minDuration field is set. */ boolean hasMinDuration(); /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The minDuration. */ com.google.protobuf.Duration getMinDuration(); /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder(); } /** - * - * *
      * The sequence of breaks (i.e. their number and order) that apply to each
      * vehicle must be known beforehand. The repeated `BreakRequest`s define
@@ -4472,53 +3852,46 @@ public interface BreakRequestOrBuilder
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest}
      */
-    public static final class BreakRequest extends com.google.protobuf.GeneratedMessageV3
-        implements
+    public static final class BreakRequest extends
+        com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)
         BreakRequestOrBuilder {
-      private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
       // Use BreakRequest.newBuilder() to construct.
       private BreakRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-
-      private BreakRequest() {}
+      private BreakRequest() {
+      }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
         return new BreakRequest();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.class,
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder
-                    .class);
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder.class);
       }
 
       public static final int EARLIEST_START_TIME_FIELD_NUMBER = 1;
       private com.google.protobuf.Timestamp earliestStartTime_;
       /**
-       *
-       *
        * 
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the earliestStartTime field is set. */ @java.lang.Override @@ -4526,55 +3899,37 @@ public boolean hasEarliestStartTime() { return earliestStartTime_ != null; } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The earliestStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEarliestStartTime() { - return earliestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestStartTime_; + return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; } /** - * - * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { - return earliestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestStartTime_; + return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; } public static final int LATEST_START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp latestStartTime_; /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the latestStartTime field is set. */ @java.lang.Override @@ -4582,54 +3937,37 @@ public boolean hasLatestStartTime() { return latestStartTime_ != null; } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The latestStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLatestStartTime() { - return latestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestStartTime_; + return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; } /** - * - * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { - return latestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestStartTime_; + return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; } public static final int MIN_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration minDuration_; /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minDuration field is set. */ @java.lang.Override @@ -4637,42 +3975,30 @@ public boolean hasMinDuration() { return minDuration_ != null; } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The minDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinDuration() { - return minDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minDuration_; + return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; } /** - * - * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { - return minDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minDuration_; + return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4684,7 +4010,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (earliestStartTime_ != null) { output.writeMessage(1, getEarliestStartTime()); } @@ -4704,14 +4031,16 @@ public int getSerializedSize() { size = 0; if (earliestStartTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEarliestStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEarliestStartTime()); } if (latestStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLatestStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLatestStartTime()); } if (minDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMinDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4721,26 +4050,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)) { + if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest other = - (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) obj; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest other = (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) obj; if (hasEarliestStartTime() != other.hasEarliestStartTime()) return false; if (hasEarliestStartTime()) { - if (!getEarliestStartTime().equals(other.getEarliestStartTime())) return false; + if (!getEarliestStartTime() + .equals(other.getEarliestStartTime())) return false; } if (hasLatestStartTime() != other.hasLatestStartTime()) return false; if (hasLatestStartTime()) { - if (!getLatestStartTime().equals(other.getLatestStartTime())) return false; + if (!getLatestStartTime() + .equals(other.getLatestStartTime())) return false; } if (hasMinDuration() != other.hasMinDuration()) return false; if (hasMinDuration()) { - if (!getMinDuration().equals(other.getMinDuration())) return false; + if (!getMinDuration() + .equals(other.getMinDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4771,96 +4101,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4870,8 +4193,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * The sequence of breaks (i.e. their number and order) that apply to each
        * vehicle must be known beforehand. The repeated `BreakRequest`s define
@@ -4882,35 +4203,33 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest}
        */
-      public static final class Builder
-          extends com.google.protobuf.GeneratedMessageV3.Builder
-          implements
+      public static final class Builder extends
+          com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)
           com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-          return com.google.cloud.optimization.v1.FleetRoutingProto
-              .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.cloud.optimization.v1.FleetRoutingProto
-              .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable
+          return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.class,
-                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder
-                      .class);
+                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder.class);
         }
 
-        // Construct using
-        // com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.newBuilder()
-        private Builder() {}
+        // Construct using com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.newBuilder()
+        private Builder() {
 
-        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-          super(parent);
         }
 
+        private Builder(
+            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+          super(parent);
+
+        }
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -4934,22 +4253,19 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-          return com.google.cloud.optimization.v1.FleetRoutingProto
-              .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
         }
 
         @java.lang.Override
-        public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
-            getDefaultInstanceForType() {
-          return com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
-              .getDefaultInstance();
+        public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getDefaultInstanceForType() {
+          return com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest build() {
-          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result =
-              buildPartial();
+          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -4957,35 +4273,29 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest bui
         }
 
         @java.lang.Override
-        public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
-            buildPartial() {
-          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result =
-              new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest(this);
-          if (bitField0_ != 0) {
-            buildPartial0(result);
-          }
+        public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest buildPartial() {
+          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest(this);
+          if (bitField0_ != 0) { buildPartial0(result); }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(
-            com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result) {
+        private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
-            result.earliestStartTime_ =
-                earliestStartTimeBuilder_ == null
-                    ? earliestStartTime_
-                    : earliestStartTimeBuilder_.build();
+            result.earliestStartTime_ = earliestStartTimeBuilder_ == null
+                ? earliestStartTime_
+                : earliestStartTimeBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000002) != 0)) {
-            result.latestStartTime_ =
-                latestStartTimeBuilder_ == null
-                    ? latestStartTime_
-                    : latestStartTimeBuilder_.build();
+            result.latestStartTime_ = latestStartTimeBuilder_ == null
+                ? latestStartTime_
+                : latestStartTimeBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000004) != 0)) {
-            result.minDuration_ =
-                minDurationBuilder_ == null ? minDuration_ : minDurationBuilder_.build();
+            result.minDuration_ = minDurationBuilder_ == null
+                ? minDuration_
+                : minDurationBuilder_.build();
           }
         }
 
@@ -4993,54 +4303,46 @@ private void buildPartial0(
         public Builder clone() {
           return super.clone();
         }
-
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.setField(field, value);
         }
-
         @java.lang.Override
-        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(
+            com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
-
         @java.lang.Override
-        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(
+            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
-
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index,
-            java.lang.Object value) {
+            int index, java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
-
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field,
+            java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
-
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other
-              instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) {
-            return mergeFrom(
-                (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) other);
+          if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) {
+            return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(
-            com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest other) {
-          if (other
-              == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
-                  .getDefaultInstance()) return this;
+        public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest other) {
+          if (other == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.getDefaultInstance()) return this;
           if (other.hasEarliestStartTime()) {
             mergeEarliestStartTime(other.getEarliestStartTime());
           }
@@ -5076,33 +4378,33 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10:
-                  {
-                    input.readMessage(
-                        getEarliestStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                    bitField0_ |= 0x00000001;
-                    break;
-                  } // case 10
-                case 18:
-                  {
-                    input.readMessage(
-                        getLatestStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                    bitField0_ |= 0x00000002;
-                    break;
-                  } // case 18
-                case 26:
-                  {
-                    input.readMessage(getMinDurationFieldBuilder().getBuilder(), extensionRegistry);
-                    bitField0_ |= 0x00000004;
-                    break;
-                  } // case 26
-                default:
-                  {
-                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                      done = true; // was an endgroup tag
-                    }
-                    break;
-                  } // default:
+                case 10: {
+                  input.readMessage(
+                      getEarliestStartTimeFieldBuilder().getBuilder(),
+                      extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+                case 18: {
+                  input.readMessage(
+                      getLatestStartTimeFieldBuilder().getBuilder(),
+                      extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+                case 26: {
+                  input.readMessage(
+                      getMinDurationFieldBuilder().getBuilder(),
+                      extensionRegistry);
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+                default: {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5112,63 +4414,43 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
-
         private int bitField0_;
 
         private com.google.protobuf.Timestamp earliestStartTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>
-            earliestStartTimeBuilder_;
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestStartTimeBuilder_;
         /**
-         *
-         *
          * 
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the earliestStartTime field is set. */ public boolean hasEarliestStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The earliestStartTime. */ public com.google.protobuf.Timestamp getEarliestStartTime() { if (earliestStartTimeBuilder_ == null) { - return earliestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestStartTime_; + return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; } else { return earliestStartTimeBuilder_.getMessage(); } } /** - * - * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { if (earliestStartTimeBuilder_ == null) { @@ -5184,17 +4466,14 @@ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEarliestStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (earliestStartTimeBuilder_ == null) { earliestStartTime_ = builderForValue.build(); } else { @@ -5205,21 +4484,17 @@ public Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builde return this; } /** - * - * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { if (earliestStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && earliestStartTime_ != null - && earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + earliestStartTime_ != null && + earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEarliestStartTimeBuilder().mergeFrom(value); } else { earliestStartTime_ = value; @@ -5232,15 +4507,11 @@ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEarliestStartTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5253,15 +4524,11 @@ public Builder clearEarliestStartTime() { return this; } /** - * - * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { bitField0_ |= 0x00000001; @@ -5269,48 +4536,36 @@ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { return getEarliestStartTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { if (earliestStartTimeBuilder_ != null) { return earliestStartTimeBuilder_.getMessageOrBuilder(); } else { - return earliestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : earliestStartTime_; + return earliestStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; } } /** - * - * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEarliestStartTimeFieldBuilder() { if (earliestStartTimeBuilder_ == null) { - earliestStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEarliestStartTime(), getParentForChildren(), isClean()); + earliestStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEarliestStartTime(), + getParentForChildren(), + isClean()); earliestStartTime_ = null; } return earliestStartTimeBuilder_; @@ -5318,58 +4573,39 @@ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { private com.google.protobuf.Timestamp latestStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - latestStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> latestStartTimeBuilder_; /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the latestStartTime field is set. */ public boolean hasLatestStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The latestStartTime. */ public com.google.protobuf.Timestamp getLatestStartTime() { if (latestStartTimeBuilder_ == null) { - return latestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestStartTime_; + return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; } else { return latestStartTimeBuilder_.getMessage(); } } /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLatestStartTime(com.google.protobuf.Timestamp value) { if (latestStartTimeBuilder_ == null) { @@ -5385,17 +4621,14 @@ public Builder setLatestStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setLatestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLatestStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (latestStartTimeBuilder_ == null) { latestStartTime_ = builderForValue.build(); } else { @@ -5406,21 +4639,17 @@ public Builder setLatestStartTime(com.google.protobuf.Timestamp.Builder builderF return this; } /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeLatestStartTime(com.google.protobuf.Timestamp value) { if (latestStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && latestStartTime_ != null - && latestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + latestStartTime_ != null && + latestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLatestStartTimeBuilder().mergeFrom(value); } else { latestStartTime_ = value; @@ -5433,15 +4662,11 @@ public Builder mergeLatestStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearLatestStartTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5454,15 +4679,11 @@ public Builder clearLatestStartTime() { return this; } /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder() { bitField0_ |= 0x00000002; @@ -5470,48 +4691,36 @@ public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder() { return getLatestStartTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { if (latestStartTimeBuilder_ != null) { return latestStartTimeBuilder_.getMessageOrBuilder(); } else { - return latestStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : latestStartTime_; + return latestStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; } } /** - * - * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLatestStartTimeFieldBuilder() { if (latestStartTimeBuilder_ == null) { - latestStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLatestStartTime(), getParentForChildren(), isClean()); + latestStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLatestStartTime(), + getParentForChildren(), + isClean()); latestStartTime_ = null; } return latestStartTimeBuilder_; @@ -5519,58 +4728,39 @@ public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { private com.google.protobuf.Duration minDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minDurationBuilder_; /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minDuration field is set. */ public boolean hasMinDuration() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The minDuration. */ public com.google.protobuf.Duration getMinDuration() { if (minDurationBuilder_ == null) { - return minDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minDuration_; + return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; } else { return minDurationBuilder_.getMessage(); } } /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { @@ -5586,17 +4776,14 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (minDurationBuilder_ == null) { minDuration_ = builderForValue.build(); } else { @@ -5607,21 +4794,17 @@ public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForVal return this; } /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && minDuration_ != null - && minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + minDuration_ != null && + minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinDurationBuilder().mergeFrom(value); } else { minDuration_ = value; @@ -5634,15 +4817,11 @@ public Builder mergeMinDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMinDuration() { bitField0_ = (bitField0_ & ~0x00000004); @@ -5655,15 +4834,11 @@ public Builder clearMinDuration() { return this; } /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { bitField0_ |= 0x00000004; @@ -5671,53 +4846,40 @@ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { return getMinDurationFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { if (minDurationBuilder_ != null) { return minDurationBuilder_.getMessageOrBuilder(); } else { - return minDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minDuration_; + return minDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : minDuration_; } } /** - * - * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinDurationFieldBuilder() { if (minDurationBuilder_ == null) { - minDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinDuration(), getParentForChildren(), isClean()); + minDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMinDuration(), + getParentForChildren(), + isClean()); minDuration_ = null; } return minDurationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5730,45 +4892,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) - private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest(); + DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest(); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest - getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BreakRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BreakRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5780,111 +4938,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface FrequencyConstraintOrBuilder - extends + public interface FrequencyConstraintOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minBreakDuration field is set. */ boolean hasMinBreakDuration(); /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The minBreakDuration. */ com.google.protobuf.Duration getMinBreakDuration(); /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder(); /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxInterBreakDuration field is set. */ boolean hasMaxInterBreakDuration(); /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxInterBreakDuration. */ com.google.protobuf.Duration getMaxInterBreakDuration(); /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder(); } /** - * - * *
      * One may further constrain the frequency and duration of the breaks
      * specified above, by enforcing a minimum break frequency, such as
@@ -5921,57 +5048,49 @@ public interface FrequencyConstraintOrBuilder
      * ```
      * 
* - * Protobuf type {@code - * google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint} + * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint} */ - public static final class FrequencyConstraint extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FrequencyConstraint extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) FrequencyConstraintOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FrequencyConstraint.newBuilder() to construct. private FrequencyConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FrequencyConstraint() {} + private FrequencyConstraint() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FrequencyConstraint(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.class, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder - .class); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder.class); } public static final int MIN_BREAK_DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration minBreakDuration_; /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minBreakDuration field is set. */ @java.lang.Override @@ -5979,59 +5098,41 @@ public boolean hasMinBreakDuration() { return minBreakDuration_ != null; } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The minBreakDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinBreakDuration() { - return minBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBreakDuration_; + return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; } /** - * - * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { - return minBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBreakDuration_; + return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; } public static final int MAX_INTER_BREAK_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxInterBreakDuration_; /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxInterBreakDuration field is set. */ @java.lang.Override @@ -6039,48 +5140,34 @@ public boolean hasMaxInterBreakDuration() { return maxInterBreakDuration_ != null; } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxInterBreakDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxInterBreakDuration() { - return maxInterBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxInterBreakDuration_; + return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; } /** - * - * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder() { - return maxInterBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxInterBreakDuration_; + return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6092,7 +5179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (minBreakDuration_ != null) { output.writeMessage(1, getMinBreakDuration()); } @@ -6109,13 +5197,12 @@ public int getSerializedSize() { size = 0; if (minBreakDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinBreakDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMinBreakDuration()); } if (maxInterBreakDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getMaxInterBreakDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxInterBreakDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6125,23 +5212,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint)) { + if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint other = - (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) obj; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint other = (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) obj; if (hasMinBreakDuration() != other.hasMinBreakDuration()) return false; if (hasMinBreakDuration()) { - if (!getMinBreakDuration().equals(other.getMinBreakDuration())) return false; + if (!getMinBreakDuration() + .equals(other.getMinBreakDuration())) return false; } if (hasMaxInterBreakDuration() != other.hasMaxInterBreakDuration()) return false; if (hasMaxInterBreakDuration()) { - if (!getMaxInterBreakDuration().equals(other.getMaxInterBreakDuration())) return false; + if (!getMaxInterBreakDuration() + .equals(other.getMaxInterBreakDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -6167,103 +5253,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6273,8 +5346,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * One may further constrain the frequency and duration of the breaks
        * specified above, by enforcing a minimum break frequency, such as
@@ -6311,39 +5382,35 @@ protected Builder newBuilderForType(
        * ```
        * 
* - * Protobuf type {@code - * google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint} + * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - .class, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - .Builder.class); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder.class); } - // Construct using - // com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.newBuilder() - private Builder() {} + // Construct using com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6362,23 +5429,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - .getDefaultInstance(); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - build() { - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result = - buildPartial(); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint build() { + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6386,32 +5449,24 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - buildPartial() { - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result = - new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint buildPartial() { + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result) { + private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.minBreakDuration_ = - minBreakDurationBuilder_ == null - ? minBreakDuration_ - : minBreakDurationBuilder_.build(); + result.minBreakDuration_ = minBreakDurationBuilder_ == null + ? minBreakDuration_ + : minBreakDurationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxInterBreakDuration_ = - maxInterBreakDurationBuilder_ == null - ? maxInterBreakDuration_ - : maxInterBreakDurationBuilder_.build(); + result.maxInterBreakDuration_ = maxInterBreakDurationBuilder_ == null + ? maxInterBreakDuration_ + : maxInterBreakDurationBuilder_.build(); } } @@ -6419,56 +5474,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) { - return mergeFrom( - (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) - other); + if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) { + return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint other) { - if (other - == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint other) { + if (other == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.getDefaultInstance()) return this; if (other.hasMinBreakDuration()) { mergeMinBreakDuration(other.getMinBreakDuration()); } @@ -6501,27 +5546,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getMinBreakDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getMaxInterBreakDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getMinBreakDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMaxInterBreakDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6531,66 +5575,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration minBreakDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minBreakDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minBreakDurationBuilder_; /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the minBreakDuration field is set. */ public boolean hasMinBreakDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The minBreakDuration. */ public com.google.protobuf.Duration getMinBreakDuration() { if (minBreakDurationBuilder_ == null) { - return minBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBreakDuration_; + return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; } else { return minBreakDurationBuilder_.getMessage(); } } /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMinBreakDuration(com.google.protobuf.Duration value) { if (minBreakDurationBuilder_ == null) { @@ -6606,18 +5630,15 @@ public Builder setMinBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMinBreakDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinBreakDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (minBreakDurationBuilder_ == null) { minBreakDuration_ = builderForValue.build(); } else { @@ -6628,22 +5649,18 @@ public Builder setMinBreakDuration(com.google.protobuf.Duration.Builder builderF return this; } /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMinBreakDuration(com.google.protobuf.Duration value) { if (minBreakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && minBreakDuration_ != null - && minBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + minBreakDuration_ != null && + minBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinBreakDurationBuilder().mergeFrom(value); } else { minBreakDuration_ = value; @@ -6656,16 +5673,12 @@ public Builder mergeMinBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMinBreakDuration() { bitField0_ = (bitField0_ & ~0x00000001); @@ -6678,16 +5691,12 @@ public Builder clearMinBreakDuration() { return this; } /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Duration.Builder getMinBreakDurationBuilder() { bitField0_ |= 0x00000001; @@ -6695,50 +5704,38 @@ public com.google.protobuf.Duration.Builder getMinBreakDurationBuilder() { return getMinBreakDurationFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { if (minBreakDurationBuilder_ != null) { return minBreakDurationBuilder_.getMessageOrBuilder(); } else { - return minBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBreakDuration_; + return minBreakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; } } /** - * - * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinBreakDurationFieldBuilder() { if (minBreakDurationBuilder_ == null) { - minBreakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinBreakDuration(), getParentForChildren(), isClean()); + minBreakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMinBreakDuration(), + getParentForChildren(), + isClean()); minBreakDuration_ = null; } return minBreakDurationBuilder_; @@ -6746,64 +5743,45 @@ public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { private com.google.protobuf.Duration maxInterBreakDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxInterBreakDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxInterBreakDurationBuilder_; /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxInterBreakDuration field is set. */ public boolean hasMaxInterBreakDuration() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxInterBreakDuration. */ public com.google.protobuf.Duration getMaxInterBreakDuration() { if (maxInterBreakDurationBuilder_ == null) { - return maxInterBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxInterBreakDuration_; + return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; } else { return maxInterBreakDurationBuilder_.getMessage(); } } /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMaxInterBreakDuration(com.google.protobuf.Duration value) { if (maxInterBreakDurationBuilder_ == null) { @@ -6819,17 +5797,13 @@ public Builder setMaxInterBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMaxInterBreakDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -6843,23 +5817,19 @@ public Builder setMaxInterBreakDuration( return this; } /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMaxInterBreakDuration(com.google.protobuf.Duration value) { if (maxInterBreakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && maxInterBreakDuration_ != null - && maxInterBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + maxInterBreakDuration_ != null && + maxInterBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxInterBreakDurationBuilder().mergeFrom(value); } else { maxInterBreakDuration_ = value; @@ -6872,17 +5842,13 @@ public Builder mergeMaxInterBreakDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMaxInterBreakDuration() { bitField0_ = (bitField0_ & ~0x00000002); @@ -6895,17 +5861,13 @@ public Builder clearMaxInterBreakDuration() { return this; } /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Duration.Builder getMaxInterBreakDurationBuilder() { bitField0_ |= 0x00000002; @@ -6913,57 +5875,44 @@ public com.google.protobuf.Duration.Builder getMaxInterBreakDurationBuilder() { return getMaxInterBreakDurationFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder() { if (maxInterBreakDurationBuilder_ != null) { return maxInterBreakDurationBuilder_.getMessageOrBuilder(); } else { - return maxInterBreakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxInterBreakDuration_; + return maxInterBreakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; } } /** - * - * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxInterBreakDurationFieldBuilder() { if (maxInterBreakDurationBuilder_ == null) { - maxInterBreakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxInterBreakDuration(), getParentForChildren(), isClean()); + maxInterBreakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaxInterBreakDuration(), + getParentForChildren(), + isClean()); maxInterBreakDuration_ = null; } return maxInterBreakDurationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6976,46 +5925,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) - private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule - .FrequencyConstraint - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint(); + DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint(); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FrequencyConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrequencyConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7027,196 +5971,140 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BREAK_REQUESTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - breakRequests_; + private java.util.List breakRequests_; /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override - public java.util.List - getBreakRequestsList() { + public java.util.List getBreakRequestsList() { return breakRequests_; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> + public java.util.List getBreakRequestsOrBuilderList() { return breakRequests_; } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override public int getBreakRequestsCount() { return breakRequests_.size(); } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests(int index) { return breakRequests_.get(index); } /** - * - * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder - getBreakRequestsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder( + int index) { return breakRequests_.get(index); } public static final int FREQUENCY_CONSTRAINTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> - frequencyConstraints_; + private java.util.List frequencyConstraints_; /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override - public java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> - getFrequencyConstraintsList() { + public java.util.List getFrequencyConstraintsList() { return frequencyConstraints_; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.BreakRule - .FrequencyConstraintOrBuilder> + public java.util.List getFrequencyConstraintsOrBuilderList() { return frequencyConstraints_; } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override public int getFrequencyConstraintsCount() { return frequencyConstraints_.size(); } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - getFrequencyConstraints(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getFrequencyConstraints(int index) { return frequencyConstraints_.get(index); } /** - * - * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder - getFrequencyConstraintsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( + int index) { return frequencyConstraints_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7228,7 +6116,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < breakRequests_.size(); i++) { output.writeMessage(1, breakRequests_.get(i)); } @@ -7245,12 +6134,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < breakRequests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, breakRequests_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, breakRequests_.get(i)); } for (int i = 0; i < frequencyConstraints_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, frequencyConstraints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, frequencyConstraints_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7260,16 +6149,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.BreakRule other = - (com.google.cloud.optimization.v1.ShipmentModel.BreakRule) obj; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule other = (com.google.cloud.optimization.v1.ShipmentModel.BreakRule) obj; - if (!getBreakRequestsList().equals(other.getBreakRequestsList())) return false; - if (!getFrequencyConstraintsList().equals(other.getFrequencyConstraintsList())) return false; + if (!getBreakRequestsList() + .equals(other.getBreakRequestsList())) return false; + if (!getFrequencyConstraintsList() + .equals(other.getFrequencyConstraintsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7295,94 +6185,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.BreakRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7392,8 +6277,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Deprecated: Use top level
      * [BreakRule][google.cloud.optimization.v1.ShipmentModel.BreakRule] instead.
@@ -7412,33 +6295,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule)
         com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.class,
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentModel.BreakRule.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -7461,9 +6344,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
       }
 
       @java.lang.Override
@@ -7482,18 +6365,14 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentModel.BreakRule buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentModel.BreakRule result =
-            new com.google.cloud.optimization.v1.ShipmentModel.BreakRule(this);
+        com.google.cloud.optimization.v1.ShipmentModel.BreakRule result = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.optimization.v1.ShipmentModel.BreakRule result) {
+      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentModel.BreakRule result) {
         if (breakRequestsBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             breakRequests_ = java.util.Collections.unmodifiableList(breakRequests_);
@@ -7522,41 +6401,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.BreakR
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.BreakRule) other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.BreakRule)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -7564,8 +6440,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRule other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()) return this;
         if (breakRequestsBuilder_ == null) {
           if (!other.breakRequests_.isEmpty()) {
             if (breakRequests_.isEmpty()) {
@@ -7584,10 +6459,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRul
               breakRequestsBuilder_ = null;
               breakRequests_ = other.breakRequests_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              breakRequestsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getBreakRequestsFieldBuilder()
-                      : null;
+              breakRequestsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getBreakRequestsFieldBuilder() : null;
             } else {
               breakRequestsBuilder_.addAllMessages(other.breakRequests_);
             }
@@ -7611,10 +6485,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRul
               frequencyConstraintsBuilder_ = null;
               frequencyConstraints_ = other.frequencyConstraints_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              frequencyConstraintsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getFrequencyConstraintsFieldBuilder()
-                      : null;
+              frequencyConstraintsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getFrequencyConstraintsFieldBuilder() : null;
             } else {
               frequencyConstraintsBuilder_.addAllMessages(other.frequencyConstraints_);
             }
@@ -7646,43 +6519,38 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest m =
-                      input.readMessage(
-                          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
-                              .parser(),
-                          extensionRegistry);
-                  if (breakRequestsBuilder_ == null) {
-                    ensureBreakRequestsIsMutable();
-                    breakRequests_.add(m);
-                  } else {
-                    breakRequestsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 10
-              case 18:
-                {
-                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint m =
-                      input.readMessage(
-                          com.google.cloud.optimization.v1.ShipmentModel.BreakRule
-                              .FrequencyConstraint.parser(),
-                          extensionRegistry);
-                  if (frequencyConstraintsBuilder_ == null) {
-                    ensureFrequencyConstraintsIsMutable();
-                    frequencyConstraints_.add(m);
-                  } else {
-                    frequencyConstraintsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.parser(),
+                        extensionRegistry);
+                if (breakRequestsBuilder_ == null) {
+                  ensureBreakRequestsIsMutable();
+                  breakRequests_.add(m);
+                } else {
+                  breakRequestsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+              case 18: {
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.parser(),
+                        extensionRegistry);
+                if (frequencyConstraintsBuilder_ == null) {
+                  ensureFrequencyConstraintsIsMutable();
+                  frequencyConstraints_.add(m);
+                } else {
+                  frequencyConstraintsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7692,41 +6560,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private java.util.List
-          breakRequests_ = java.util.Collections.emptyList();
-
+      private java.util.List breakRequests_ =
+        java.util.Collections.emptyList();
       private void ensureBreakRequestsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          breakRequests_ =
-              new java.util.ArrayList<
-                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest>(
-                  breakRequests_);
+          breakRequests_ = new java.util.ArrayList(breakRequests_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest,
-              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder,
-              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder>
-          breakRequestsBuilder_;
+          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> breakRequestsBuilder_;
 
       /**
-       *
-       *
        * 
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public java.util.List - getBreakRequestsList() { + public java.util.List getBreakRequestsList() { if (breakRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(breakRequests_); } else { @@ -7734,15 +6589,11 @@ private void ensureBreakRequestsIsMutable() { } } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public int getBreakRequestsCount() { if (breakRequestsBuilder_ == null) { @@ -7752,18 +6603,13 @@ public int getBreakRequestsCount() { } } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests(int index) { if (breakRequestsBuilder_ == null) { return breakRequests_.get(index); } else { @@ -7771,15 +6617,11 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest get } } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public Builder setBreakRequests( int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest value) { @@ -7796,20 +6638,14 @@ public Builder setBreakRequests( return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public Builder setBreakRequests( - int index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.set(index, builderForValue.build()); @@ -7820,18 +6656,13 @@ public Builder setBreakRequests( return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public Builder addBreakRequests( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest value) { + public Builder addBreakRequests(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest value) { if (breakRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7845,15 +6676,11 @@ public Builder addBreakRequests( return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public Builder addBreakRequests( int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest value) { @@ -7870,19 +6697,14 @@ public Builder addBreakRequests( return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public Builder addBreakRequests( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder - builderForValue) { + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.add(builderForValue.build()); @@ -7893,20 +6715,14 @@ public Builder addBreakRequests( return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public Builder addBreakRequests( - int index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.add(index, builderForValue.build()); @@ -7917,23 +6733,18 @@ public Builder addBreakRequests( return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public Builder addAllBreakRequests( - java.lang.Iterable< - ? extends com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest> - values) { + java.lang.Iterable values) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breakRequests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, breakRequests_); onChanged(); } else { breakRequestsBuilder_.addAllMessages(values); @@ -7941,15 +6752,11 @@ public Builder addAllBreakRequests( return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public Builder clearBreakRequests() { if (breakRequestsBuilder_ == null) { @@ -7962,15 +6769,11 @@ public Builder clearBreakRequests() { return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ public Builder removeBreakRequests(int index) { if (breakRequestsBuilder_ == null) { @@ -7983,54 +6786,39 @@ public Builder removeBreakRequests(int index) { return this; } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder - getBreakRequestsBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder getBreakRequestsBuilder( + int index) { return getBreakRequestsFieldBuilder().getBuilder(index); } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder - getBreakRequestsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder( + int index) { if (breakRequestsBuilder_ == null) { - return breakRequests_.get(index); - } else { + return breakRequests_.get(index); } else { return breakRequestsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> - getBreakRequestsOrBuilderList() { + public java.util.List + getBreakRequestsOrBuilderList() { if (breakRequestsBuilder_ != null) { return breakRequestsBuilder_.getMessageOrBuilderList(); } else { @@ -8038,70 +6826,45 @@ public Builder removeBreakRequests(int index) { } } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder - addBreakRequestsBuilder() { - return getBreakRequestsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest - .getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder addBreakRequestsBuilder() { + return getBreakRequestsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.getDefaultInstance()); } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder - addBreakRequestsBuilder(int index) { - return getBreakRequestsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest - .getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder addBreakRequestsBuilder( + int index) { + return getBreakRequestsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.getDefaultInstance()); } /** - * - * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; */ - public java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder> - getBreakRequestsBuilderList() { + public java.util.List + getBreakRequestsBuilderList() { return getBreakRequestsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> getBreakRequestsFieldBuilder() { if (breakRequestsBuilder_ == null) { - breakRequestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder>( + breakRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder>( breakRequests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -8111,41 +6874,27 @@ public Builder removeBreakRequests(int index) { return breakRequestsBuilder_; } - private java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> - frequencyConstraints_ = java.util.Collections.emptyList(); - + private java.util.List frequencyConstraints_ = + java.util.Collections.emptyList(); private void ensureFrequencyConstraintsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - frequencyConstraints_ = - new java.util.ArrayList< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint>( - frequencyConstraints_); + frequencyConstraints_ = new java.util.ArrayList(frequencyConstraints_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder> - frequencyConstraintsBuilder_; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder> frequencyConstraintsBuilder_; /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> - getFrequencyConstraintsList() { + public java.util.List getFrequencyConstraintsList() { if (frequencyConstraintsBuilder_ == null) { return java.util.Collections.unmodifiableList(frequencyConstraints_); } else { @@ -8153,16 +6902,12 @@ private void ensureFrequencyConstraintsIsMutable() { } } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public int getFrequencyConstraintsCount() { if (frequencyConstraintsBuilder_ == null) { @@ -8172,19 +6917,14 @@ public int getFrequencyConstraintsCount() { } } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - getFrequencyConstraints(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getFrequencyConstraints(int index) { if (frequencyConstraintsBuilder_ == null) { return frequencyConstraints_.get(index); } else { @@ -8192,20 +6932,15 @@ public int getFrequencyConstraintsCount() { } } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder setFrequencyConstraints( - int index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { + int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { if (frequencyConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8219,21 +6954,15 @@ public Builder setFrequencyConstraints( return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder setFrequencyConstraints( - int index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.set(index, builderForValue.build()); @@ -8244,19 +6973,14 @@ public Builder setFrequencyConstraints( return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public Builder addFrequencyConstraints( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { + public Builder addFrequencyConstraints(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { if (frequencyConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8270,20 +6994,15 @@ public Builder addFrequencyConstraints( return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder addFrequencyConstraints( - int index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { + int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { if (frequencyConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8297,20 +7016,15 @@ public Builder addFrequencyConstraints( return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder addFrequencyConstraints( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder - builderForValue) { + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.add(builderForValue.build()); @@ -8321,21 +7035,15 @@ public Builder addFrequencyConstraints( return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder addFrequencyConstraints( - int index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.add(index, builderForValue.build()); @@ -8346,25 +7054,19 @@ public Builder addFrequencyConstraints( return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder addAllFrequencyConstraints( - java.lang.Iterable< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> - values) { + java.lang.Iterable values) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frequencyConstraints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frequencyConstraints_); onChanged(); } else { frequencyConstraintsBuilder_.addAllMessages(values); @@ -8372,16 +7074,12 @@ public Builder addAllFrequencyConstraints( return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder clearFrequencyConstraints() { if (frequencyConstraintsBuilder_ == null) { @@ -8394,16 +7092,12 @@ public Builder clearFrequencyConstraints() { return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ public Builder removeFrequencyConstraints(int index) { if (frequencyConstraintsBuilder_ == null) { @@ -8416,58 +7110,42 @@ public Builder removeFrequencyConstraints(int index) { return this; } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder - getFrequencyConstraintsBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder getFrequencyConstraintsBuilder( + int index) { return getFrequencyConstraintsFieldBuilder().getBuilder(index); } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder - getFrequencyConstraintsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( + int index) { if (frequencyConstraintsBuilder_ == null) { - return frequencyConstraints_.get(index); - } else { + return frequencyConstraints_.get(index); } else { return frequencyConstraintsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.BreakRule - .FrequencyConstraintOrBuilder> - getFrequencyConstraintsOrBuilderList() { + public java.util.List + getFrequencyConstraintsOrBuilderList() { if (frequencyConstraintsBuilder_ != null) { return frequencyConstraintsBuilder_.getMessageOrBuilderList(); } else { @@ -8475,75 +7153,48 @@ public Builder removeFrequencyConstraints(int index) { } } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder - addFrequencyConstraintsBuilder() { - return getFrequencyConstraintsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - .getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder() { + return getFrequencyConstraintsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.getDefaultInstance()); } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder - addFrequencyConstraintsBuilder(int index) { - return getFrequencyConstraintsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - .getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder( + int index) { + return getFrequencyConstraintsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.getDefaultInstance()); } /** - * - * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; */ - public java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder> - getFrequencyConstraintsBuilderList() { + public java.util.List + getFrequencyConstraintsBuilderList() { return getFrequencyConstraintsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder> getFrequencyConstraintsFieldBuilder() { if (frequencyConstraintsBuilder_ == null) { - frequencyConstraintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint - .Builder, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule - .FrequencyConstraintOrBuilder>( + frequencyConstraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder>( frequencyConstraints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -8552,7 +7203,6 @@ public Builder removeFrequencyConstraints(int index) { } return frequencyConstraintsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8565,12 +7215,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule) private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule(); } @@ -8579,28 +7229,27 @@ public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BreakRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BreakRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8615,16 +7264,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int SHIPMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List shipments_; /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
@@ -8636,8 +7283,6 @@ public java.util.List getShipmentsLis return shipments_; } /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
@@ -8645,13 +7290,11 @@ public java.util.List getShipmentsLis * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ @java.lang.Override - public java.util.List + public java.util.List getShipmentsOrBuilderList() { return shipments_; } /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
@@ -8663,8 +7306,6 @@ public int getShipmentsCount() { return shipments_.size(); } /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
@@ -8676,8 +7317,6 @@ public com.google.cloud.optimization.v1.Shipment getShipments(int index) { return shipments_.get(index); } /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
@@ -8685,17 +7324,15 @@ public com.google.cloud.optimization.v1.Shipment getShipments(int index) { * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( + int index) { return shipments_.get(index); } public static final int VEHICLES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List vehicles_; /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -8707,8 +7344,6 @@ public java.util.List getVehiclesList( return vehicles_; } /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -8716,13 +7351,11 @@ public java.util.List getVehiclesList( * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ @java.lang.Override - public java.util.List + public java.util.List getVehiclesOrBuilderList() { return vehicles_; } /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -8734,8 +7367,6 @@ public int getVehiclesCount() { return vehicles_.size(); } /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -8747,8 +7378,6 @@ public com.google.cloud.optimization.v1.Vehicle getVehicles(int index) { return vehicles_.get(index); } /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -8756,15 +7385,14 @@ public com.google.cloud.optimization.v1.Vehicle getVehicles(int index) { * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ @java.lang.Override - public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(int index) { + public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder( + int index) { return vehicles_.get(index); } public static final int MAX_ACTIVE_VEHICLES_FIELD_NUMBER = 4; private int maxActiveVehicles_ = 0; /** - * - * *
    * Constrains the maximum number of active vehicles. A vehicle is active if
    * its route performs at least one shipment. This can be used to limit the
@@ -8775,7 +7403,6 @@ public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(in
    * 
* * optional int32 max_active_vehicles = 4; - * * @return Whether the maxActiveVehicles field is set. */ @java.lang.Override @@ -8783,8 +7410,6 @@ public boolean hasMaxActiveVehicles() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Constrains the maximum number of active vehicles. A vehicle is active if
    * its route performs at least one shipment. This can be used to limit the
@@ -8795,7 +7420,6 @@ public boolean hasMaxActiveVehicles() {
    * 
* * optional int32 max_active_vehicles = 4; - * * @return The maxActiveVehicles. */ @java.lang.Override @@ -8806,8 +7430,6 @@ public int getMaxActiveVehicles() { public static final int GLOBAL_START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp globalStartTime_; /** - * - * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -8823,7 +7445,6 @@ public int getMaxActiveVehicles() {
    * 
* * .google.protobuf.Timestamp global_start_time = 5; - * * @return Whether the globalStartTime field is set. */ @java.lang.Override @@ -8831,8 +7452,6 @@ public boolean hasGlobalStartTime() { return globalStartTime_ != null; } /** - * - * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -8848,18 +7467,13 @@ public boolean hasGlobalStartTime() {
    * 
* * .google.protobuf.Timestamp global_start_time = 5; - * * @return The globalStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getGlobalStartTime() { - return globalStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : globalStartTime_; + return globalStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalStartTime_; } /** - * - * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -8878,23 +7492,18 @@ public com.google.protobuf.Timestamp getGlobalStartTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder() {
-    return globalStartTime_ == null
-        ? com.google.protobuf.Timestamp.getDefaultInstance()
-        : globalStartTime_;
+    return globalStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalStartTime_;
   }
 
   public static final int GLOBAL_END_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp globalEndTime_;
   /**
-   *
-   *
    * 
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
    * 
* * .google.protobuf.Timestamp global_end_time = 6; - * * @return Whether the globalEndTime field is set. */ @java.lang.Override @@ -8902,26 +7511,19 @@ public boolean hasGlobalEndTime() { return globalEndTime_ != null; } /** - * - * *
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
    * 
* * .google.protobuf.Timestamp global_end_time = 6; - * * @return The globalEndTime. */ @java.lang.Override public com.google.protobuf.Timestamp getGlobalEndTime() { - return globalEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : globalEndTime_; + return globalEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalEndTime_; } /** - * - * *
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
@@ -8931,16 +7533,12 @@ public com.google.protobuf.Timestamp getGlobalEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
-    return globalEndTime_ == null
-        ? com.google.protobuf.Timestamp.getDefaultInstance()
-        : globalEndTime_;
+    return globalEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalEndTime_;
   }
 
   public static final int GLOBAL_DURATION_COST_PER_HOUR_FIELD_NUMBER = 7;
   private double globalDurationCostPerHour_ = 0D;
   /**
-   *
-   *
    * 
    * The "global duration" of the overall plan is the difference between the
    * earliest effective start time and the latest effective end time of
@@ -8951,7 +7549,6 @@ public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
    * 
* * double global_duration_cost_per_hour = 7; - * * @return The globalDurationCostPerHour. */ @java.lang.Override @@ -8960,13 +7557,9 @@ public double getGlobalDurationCostPerHour() { } public static final int DURATION_DISTANCE_MATRICES_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List - durationDistanceMatrices_; + private java.util.List durationDistanceMatrices_; /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -9057,18 +7650,13 @@ public double getGlobalDurationCostPerHour() {
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ @java.lang.Override - public java.util.List - getDurationDistanceMatricesList() { + public java.util.List getDurationDistanceMatricesList() { return durationDistanceMatrices_; } /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -9159,19 +7747,14 @@ public double getGlobalDurationCostPerHour() {
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> + public java.util.List getDurationDistanceMatricesOrBuilderList() { return durationDistanceMatrices_; } /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -9262,17 +7845,13 @@ public double getGlobalDurationCostPerHour() {
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ @java.lang.Override public int getDurationDistanceMatricesCount() { return durationDistanceMatrices_.size(); } /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -9363,18 +7942,13 @@ public int getDurationDistanceMatricesCount() {
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - getDurationDistanceMatrices(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices(int index) { return durationDistanceMatrices_.get(index); } /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -9465,24 +8039,19 @@ public int getDurationDistanceMatricesCount() {
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder - getDurationDistanceMatricesOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder getDurationDistanceMatricesOrBuilder( + int index) { return durationDistanceMatrices_.get(index); } public static final int DURATION_DISTANCE_MATRIX_SRC_TAGS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -9500,15 +8069,13 @@ public int getDurationDistanceMatricesCount() {
    * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @return A list containing the durationDistanceMatrixSrcTags. */ - public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixSrcTagsList() { + public com.google.protobuf.ProtocolStringList + getDurationDistanceMatrixSrcTagsList() { return durationDistanceMatrixSrcTags_; } /** - * - * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -9526,15 +8093,12 @@ public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixSrcTagsLi
    * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @return The count of durationDistanceMatrixSrcTags. */ public int getDurationDistanceMatrixSrcTagsCount() { return durationDistanceMatrixSrcTags_.size(); } /** - * - * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -9552,7 +8116,6 @@ public int getDurationDistanceMatrixSrcTagsCount() {
    * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param index The index of the element to return. * @return The durationDistanceMatrixSrcTags at the given index. */ @@ -9560,8 +8123,6 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) { return durationDistanceMatrixSrcTags_.get(index); } /** - * - * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -9579,22 +8140,19 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) {
    * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixSrcTags at the given index. */ - public com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int index) { + public com.google.protobuf.ByteString + getDurationDistanceMatrixSrcTagsBytes(int index) { return durationDistanceMatrixSrcTags_.getByteString(index); } public static final int DURATION_DISTANCE_MATRIX_DST_TAGS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -9614,15 +8172,13 @@ public com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @return A list containing the durationDistanceMatrixDstTags. */ - public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixDstTagsList() { + public com.google.protobuf.ProtocolStringList + getDurationDistanceMatrixDstTagsList() { return durationDistanceMatrixDstTags_; } /** - * - * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -9642,15 +8198,12 @@ public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixDstTagsLi
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @return The count of durationDistanceMatrixDstTags. */ public int getDurationDistanceMatrixDstTagsCount() { return durationDistanceMatrixDstTags_.size(); } /** - * - * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -9670,7 +8223,6 @@ public int getDurationDistanceMatrixDstTagsCount() {
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param index The index of the element to return. * @return The durationDistanceMatrixDstTags at the given index. */ @@ -9678,8 +8230,6 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) { return durationDistanceMatrixDstTags_.get(index); } /** - * - * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -9699,357 +8249,262 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) {
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixDstTags at the given index. */ - public com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int index) { + public com.google.protobuf.ByteString + getDurationDistanceMatrixDstTagsBytes(int index) { return durationDistanceMatrixDstTags_.getByteString(index); } public static final int TRANSITION_ATTRIBUTES_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private java.util.List - transitionAttributes_; + private java.util.List transitionAttributes_; /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ @java.lang.Override - public java.util.List - getTransitionAttributesList() { + public java.util.List getTransitionAttributesList() { return transitionAttributes_; } /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ @java.lang.Override - public java.util.List + public java.util.List getTransitionAttributesOrBuilderList() { return transitionAttributes_; } /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ @java.lang.Override public int getTransitionAttributesCount() { return transitionAttributes_.size(); } /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ @java.lang.Override public com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttributes(int index) { return transitionAttributes_.get(index); } /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ @java.lang.Override - public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder - getTransitionAttributesOrBuilder(int index) { + public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder getTransitionAttributesOrBuilder( + int index) { return transitionAttributes_.get(index); } public static final int SHIPMENT_TYPE_INCOMPATIBILITIES_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private java.util.List - shipmentTypeIncompatibilities_; + private java.util.List shipmentTypeIncompatibilities_; /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ @java.lang.Override - public java.util.List - getShipmentTypeIncompatibilitiesList() { + public java.util.List getShipmentTypeIncompatibilitiesList() { return shipmentTypeIncompatibilities_; } /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> + public java.util.List getShipmentTypeIncompatibilitiesOrBuilderList() { return shipmentTypeIncompatibilities_; } /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ @java.lang.Override public int getShipmentTypeIncompatibilitiesCount() { return shipmentTypeIncompatibilities_.size(); } /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility - getShipmentTypeIncompatibilities(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeIncompatibilities(int index) { return shipmentTypeIncompatibilities_.get(index); } /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder - getShipmentTypeIncompatibilitiesOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder getShipmentTypeIncompatibilitiesOrBuilder( + int index) { return shipmentTypeIncompatibilities_.get(index); } public static final int SHIPMENT_TYPE_REQUIREMENTS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private java.util.List - shipmentTypeRequirements_; + private java.util.List shipmentTypeRequirements_; /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ @java.lang.Override - public java.util.List - getShipmentTypeRequirementsList() { + public java.util.List getShipmentTypeRequirementsList() { return shipmentTypeRequirements_; } /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ @java.lang.Override - public java.util.List + public java.util.List getShipmentTypeRequirementsOrBuilderList() { return shipmentTypeRequirements_; } /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ @java.lang.Override public int getShipmentTypeRequirementsCount() { return shipmentTypeRequirements_.size(); } /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements( - int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements(int index) { return shipmentTypeRequirements_.get(index); } /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder - getShipmentTypeRequirementsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder getShipmentTypeRequirementsOrBuilder( + int index) { return shipmentTypeRequirements_.get(index); } public static final int PRECEDENCE_RULES_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private java.util.List - precedenceRules_; + private java.util.List precedenceRules_; /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ @java.lang.Override - public java.util.List - getPrecedenceRulesList() { + public java.util.List getPrecedenceRulesList() { return precedenceRules_; } /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> + public java.util.List getPrecedenceRulesOrBuilderList() { return precedenceRules_; } /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ @java.lang.Override public int getPrecedenceRulesCount() { return precedenceRules_.size(); } /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules(int index) { return precedenceRules_.get(index); } /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder - getPrecedenceRulesOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPrecedenceRulesOrBuilder( + int index) { return precedenceRules_.get(index); } public static final int BREAK_RULES_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private java.util.List breakRules_; /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -10058,19 +8513,13 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPreceden
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List - getBreakRulesList() { + @java.lang.Deprecated public java.util.List getBreakRulesList() { return breakRules_; } /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -10079,19 +8528,14 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPreceden
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getBreakRulesOrBuilderList() { return breakRules_; } /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -10100,18 +8544,13 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPreceden
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getBreakRulesCount() { + @java.lang.Deprecated public int getBreakRulesCount() { return breakRules_.size(); } /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -10120,18 +8559,13 @@ public int getBreakRulesCount() {
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index) { return breakRules_.get(index); } /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -10140,19 +8574,15 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(in
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( int index) { return breakRules_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10164,7 +8594,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < shipments_.size(); i++) { output.writeMessage(1, shipments_.get(i)); } @@ -10187,12 +8618,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(8, durationDistanceMatrices_.get(i)); } for (int i = 0; i < durationDistanceMatrixSrcTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 9, durationDistanceMatrixSrcTags_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, durationDistanceMatrixSrcTags_.getRaw(i)); } for (int i = 0; i < durationDistanceMatrixDstTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 10, durationDistanceMatrixDstTags_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, durationDistanceMatrixDstTags_.getRaw(i)); } for (int i = 0; i < transitionAttributes_.size(); i++) { output.writeMessage(11, transitionAttributes_.get(i)); @@ -10219,28 +8648,32 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < shipments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shipments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, shipments_.get(i)); } for (int i = 0; i < vehicles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, vehicles_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, vehicles_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxActiveVehicles_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxActiveVehicles_); } if (globalStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getGlobalStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getGlobalStartTime()); } if (globalEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGlobalEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getGlobalEndTime()); } if (java.lang.Double.doubleToRawLongBits(globalDurationCostPerHour_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(7, globalDurationCostPerHour_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, globalDurationCostPerHour_); } for (int i = 0; i < durationDistanceMatrices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, durationDistanceMatrices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, durationDistanceMatrices_.get(i)); } { int dataSize = 0; @@ -10259,25 +8692,24 @@ public int getSerializedSize() { size += 1 * getDurationDistanceMatrixDstTagsList().size(); } for (int i = 0; i < transitionAttributes_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, transitionAttributes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, transitionAttributes_.get(i)); } for (int i = 0; i < shipmentTypeIncompatibilities_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, shipmentTypeIncompatibilities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, shipmentTypeIncompatibilities_.get(i)); } for (int i = 0; i < shipmentTypeRequirements_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, shipmentTypeRequirements_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, shipmentTypeRequirements_.get(i)); } for (int i = 0; i < precedenceRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, precedenceRules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, precedenceRules_.get(i)); } for (int i = 0; i < breakRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, breakRules_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, breakRules_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10287,43 +8719,51 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel other = - (com.google.cloud.optimization.v1.ShipmentModel) obj; + com.google.cloud.optimization.v1.ShipmentModel other = (com.google.cloud.optimization.v1.ShipmentModel) obj; - if (!getShipmentsList().equals(other.getShipmentsList())) return false; - if (!getVehiclesList().equals(other.getVehiclesList())) return false; + if (!getShipmentsList() + .equals(other.getShipmentsList())) return false; + if (!getVehiclesList() + .equals(other.getVehiclesList())) return false; if (hasMaxActiveVehicles() != other.hasMaxActiveVehicles()) return false; if (hasMaxActiveVehicles()) { - if (getMaxActiveVehicles() != other.getMaxActiveVehicles()) return false; + if (getMaxActiveVehicles() + != other.getMaxActiveVehicles()) return false; } if (hasGlobalStartTime() != other.hasGlobalStartTime()) return false; if (hasGlobalStartTime()) { - if (!getGlobalStartTime().equals(other.getGlobalStartTime())) return false; + if (!getGlobalStartTime() + .equals(other.getGlobalStartTime())) return false; } if (hasGlobalEndTime() != other.hasGlobalEndTime()) return false; if (hasGlobalEndTime()) { - if (!getGlobalEndTime().equals(other.getGlobalEndTime())) return false; + if (!getGlobalEndTime() + .equals(other.getGlobalEndTime())) return false; } if (java.lang.Double.doubleToLongBits(getGlobalDurationCostPerHour()) - != java.lang.Double.doubleToLongBits(other.getGlobalDurationCostPerHour())) return false; - if (!getDurationDistanceMatricesList().equals(other.getDurationDistanceMatricesList())) - return false; + != java.lang.Double.doubleToLongBits( + other.getGlobalDurationCostPerHour())) return false; + if (!getDurationDistanceMatricesList() + .equals(other.getDurationDistanceMatricesList())) return false; if (!getDurationDistanceMatrixSrcTagsList() .equals(other.getDurationDistanceMatrixSrcTagsList())) return false; if (!getDurationDistanceMatrixDstTagsList() .equals(other.getDurationDistanceMatrixDstTagsList())) return false; - if (!getTransitionAttributesList().equals(other.getTransitionAttributesList())) return false; + if (!getTransitionAttributesList() + .equals(other.getTransitionAttributesList())) return false; if (!getShipmentTypeIncompatibilitiesList() .equals(other.getShipmentTypeIncompatibilitiesList())) return false; - if (!getShipmentTypeRequirementsList().equals(other.getShipmentTypeRequirementsList())) - return false; - if (!getPrecedenceRulesList().equals(other.getPrecedenceRulesList())) return false; - if (!getBreakRulesList().equals(other.getBreakRulesList())) return false; + if (!getShipmentTypeRequirementsList() + .equals(other.getShipmentTypeRequirementsList())) return false; + if (!getPrecedenceRulesList() + .equals(other.getPrecedenceRulesList())) return false; + if (!getBreakRulesList() + .equals(other.getBreakRulesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10356,10 +8796,8 @@ public int hashCode() { hash = (53 * hash) + getGlobalEndTime().hashCode(); } hash = (37 * hash) + GLOBAL_DURATION_COST_PER_HOUR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getGlobalDurationCostPerHour())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGlobalDurationCostPerHour())); if (getDurationDistanceMatricesCount() > 0) { hash = (37 * hash) + DURATION_DISTANCE_MATRICES_FIELD_NUMBER; hash = (53 * hash) + getDurationDistanceMatricesList().hashCode(); @@ -10397,104 +8835,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentModel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A shipment model contains a set of shipments which must be performed by a
    * set of vehicles, while minimizing the overall cost, which is the sum of:
@@ -10507,32 +8940,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel)
       com.google.cloud.optimization.v1.ShipmentModelOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentModel.class,
-              com.google.cloud.optimization.v1.ShipmentModel.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentModel.class, com.google.cloud.optimization.v1.ShipmentModel.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.ShipmentModel.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -10570,8 +9004,10 @@ public Builder clear() {
         durationDistanceMatricesBuilder_.clear();
       }
       bitField0_ = (bitField0_ & ~0x00000040);
-      durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      durationDistanceMatrixSrcTags_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      durationDistanceMatrixDstTags_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       if (transitionAttributesBuilder_ == null) {
         transitionAttributes_ = java.util.Collections.emptyList();
       } else {
@@ -10611,9 +9047,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
     }
 
     @java.lang.Override
@@ -10632,12 +9068,9 @@ public com.google.cloud.optimization.v1.ShipmentModel build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.ShipmentModel buildPartial() {
-      com.google.cloud.optimization.v1.ShipmentModel result =
-          new com.google.cloud.optimization.v1.ShipmentModel(this);
+      com.google.cloud.optimization.v1.ShipmentModel result = new com.google.cloud.optimization.v1.ShipmentModel(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -10663,8 +9096,7 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
       }
       if (durationDistanceMatricesBuilder_ == null) {
         if (((bitField0_ & 0x00000040) != 0)) {
-          durationDistanceMatrices_ =
-              java.util.Collections.unmodifiableList(durationDistanceMatrices_);
+          durationDistanceMatrices_ = java.util.Collections.unmodifiableList(durationDistanceMatrices_);
           bitField0_ = (bitField0_ & ~0x00000040);
         }
         result.durationDistanceMatrices_ = durationDistanceMatrices_;
@@ -10682,8 +9114,7 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
       }
       if (shipmentTypeIncompatibilitiesBuilder_ == null) {
         if (((bitField0_ & 0x00000400) != 0)) {
-          shipmentTypeIncompatibilities_ =
-              java.util.Collections.unmodifiableList(shipmentTypeIncompatibilities_);
+          shipmentTypeIncompatibilities_ = java.util.Collections.unmodifiableList(shipmentTypeIncompatibilities_);
           bitField0_ = (bitField0_ & ~0x00000400);
         }
         result.shipmentTypeIncompatibilities_ = shipmentTypeIncompatibilities_;
@@ -10692,8 +9123,7 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
       }
       if (shipmentTypeRequirementsBuilder_ == null) {
         if (((bitField0_ & 0x00000800) != 0)) {
-          shipmentTypeRequirements_ =
-              java.util.Collections.unmodifiableList(shipmentTypeRequirements_);
+          shipmentTypeRequirements_ = java.util.Collections.unmodifiableList(shipmentTypeRequirements_);
           bitField0_ = (bitField0_ & ~0x00000800);
         }
         result.shipmentTypeRequirements_ = shipmentTypeRequirements_;
@@ -10728,12 +9158,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel result
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.globalStartTime_ =
-            globalStartTimeBuilder_ == null ? globalStartTime_ : globalStartTimeBuilder_.build();
+        result.globalStartTime_ = globalStartTimeBuilder_ == null
+            ? globalStartTime_
+            : globalStartTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.globalEndTime_ =
-            globalEndTimeBuilder_ == null ? globalEndTime_ : globalEndTimeBuilder_.build();
+        result.globalEndTime_ = globalEndTimeBuilder_ == null
+            ? globalEndTime_
+            : globalEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.globalDurationCostPerHour_ = globalDurationCostPerHour_;
@@ -10753,39 +9185,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel result
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.ShipmentModel) {
-        return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel) other);
+        return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -10812,10 +9243,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             shipmentsBuilder_ = null;
             shipments_ = other.shipments_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            shipmentsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getShipmentsFieldBuilder()
-                    : null;
+            shipmentsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getShipmentsFieldBuilder() : null;
           } else {
             shipmentsBuilder_.addAllMessages(other.shipments_);
           }
@@ -10839,10 +9269,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             vehiclesBuilder_ = null;
             vehicles_ = other.vehicles_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            vehiclesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getVehiclesFieldBuilder()
-                    : null;
+            vehiclesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getVehiclesFieldBuilder() : null;
           } else {
             vehiclesBuilder_.addAllMessages(other.vehicles_);
           }
@@ -10878,10 +9307,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             durationDistanceMatricesBuilder_ = null;
             durationDistanceMatrices_ = other.durationDistanceMatrices_;
             bitField0_ = (bitField0_ & ~0x00000040);
-            durationDistanceMatricesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getDurationDistanceMatricesFieldBuilder()
-                    : null;
+            durationDistanceMatricesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getDurationDistanceMatricesFieldBuilder() : null;
           } else {
             durationDistanceMatricesBuilder_.addAllMessages(other.durationDistanceMatrices_);
           }
@@ -10925,10 +9353,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             transitionAttributesBuilder_ = null;
             transitionAttributes_ = other.transitionAttributes_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            transitionAttributesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTransitionAttributesFieldBuilder()
-                    : null;
+            transitionAttributesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTransitionAttributesFieldBuilder() : null;
           } else {
             transitionAttributesBuilder_.addAllMessages(other.transitionAttributes_);
           }
@@ -10952,13 +9379,11 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             shipmentTypeIncompatibilitiesBuilder_ = null;
             shipmentTypeIncompatibilities_ = other.shipmentTypeIncompatibilities_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            shipmentTypeIncompatibilitiesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getShipmentTypeIncompatibilitiesFieldBuilder()
-                    : null;
+            shipmentTypeIncompatibilitiesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getShipmentTypeIncompatibilitiesFieldBuilder() : null;
           } else {
-            shipmentTypeIncompatibilitiesBuilder_.addAllMessages(
-                other.shipmentTypeIncompatibilities_);
+            shipmentTypeIncompatibilitiesBuilder_.addAllMessages(other.shipmentTypeIncompatibilities_);
           }
         }
       }
@@ -10980,10 +9405,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             shipmentTypeRequirementsBuilder_ = null;
             shipmentTypeRequirements_ = other.shipmentTypeRequirements_;
             bitField0_ = (bitField0_ & ~0x00000800);
-            shipmentTypeRequirementsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getShipmentTypeRequirementsFieldBuilder()
-                    : null;
+            shipmentTypeRequirementsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getShipmentTypeRequirementsFieldBuilder() : null;
           } else {
             shipmentTypeRequirementsBuilder_.addAllMessages(other.shipmentTypeRequirements_);
           }
@@ -11007,10 +9431,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             precedenceRulesBuilder_ = null;
             precedenceRules_ = other.precedenceRules_;
             bitField0_ = (bitField0_ & ~0x00001000);
-            precedenceRulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPrecedenceRulesFieldBuilder()
-                    : null;
+            precedenceRulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPrecedenceRulesFieldBuilder() : null;
           } else {
             precedenceRulesBuilder_.addAllMessages(other.precedenceRules_);
           }
@@ -11034,10 +9457,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             breakRulesBuilder_ = null;
             breakRules_ = other.breakRules_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            breakRulesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBreakRulesFieldBuilder()
-                    : null;
+            breakRulesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBreakRulesFieldBuilder() : null;
           } else {
             breakRulesBuilder_.addAllMessages(other.breakRules_);
           }
@@ -11069,162 +9491,152 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.optimization.v1.Shipment m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.Shipment.parser(), extensionRegistry);
-                if (shipmentsBuilder_ == null) {
-                  ensureShipmentsIsMutable();
-                  shipments_.add(m);
-                } else {
-                  shipmentsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.optimization.v1.Vehicle m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.Vehicle.parser(), extensionRegistry);
-                if (vehiclesBuilder_ == null) {
-                  ensureVehiclesIsMutable();
-                  vehicles_.add(m);
-                } else {
-                  vehiclesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 32:
-              {
-                maxActiveVehicles_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(getGlobalStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getGlobalEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 50
-            case 57:
-              {
-                globalDurationCostPerHour_ = input.readDouble();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 57
-            case 66:
-              {
-                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix
-                            .parser(),
-                        extensionRegistry);
-                if (durationDistanceMatricesBuilder_ == null) {
-                  ensureDurationDistanceMatricesIsMutable();
-                  durationDistanceMatrices_.add(m);
-                } else {
-                  durationDistanceMatricesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 66
-            case 74:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureDurationDistanceMatrixSrcTagsIsMutable();
-                durationDistanceMatrixSrcTags_.add(s);
-                break;
-              } // case 74
-            case 82:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureDurationDistanceMatrixDstTagsIsMutable();
-                durationDistanceMatrixDstTags_.add(s);
-                break;
-              } // case 82
-            case 90:
-              {
-                com.google.cloud.optimization.v1.TransitionAttributes m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.TransitionAttributes.parser(),
-                        extensionRegistry);
-                if (transitionAttributesBuilder_ == null) {
-                  ensureTransitionAttributesIsMutable();
-                  transitionAttributes_.add(m);
-                } else {
-                  transitionAttributesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 90
-            case 98:
-              {
-                com.google.cloud.optimization.v1.ShipmentTypeIncompatibility m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.parser(),
-                        extensionRegistry);
-                if (shipmentTypeIncompatibilitiesBuilder_ == null) {
-                  ensureShipmentTypeIncompatibilitiesIsMutable();
-                  shipmentTypeIncompatibilities_.add(m);
-                } else {
-                  shipmentTypeIncompatibilitiesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 98
-            case 106:
-              {
-                com.google.cloud.optimization.v1.ShipmentTypeRequirement m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentTypeRequirement.parser(),
-                        extensionRegistry);
-                if (shipmentTypeRequirementsBuilder_ == null) {
-                  ensureShipmentTypeRequirementsIsMutable();
-                  shipmentTypeRequirements_.add(m);
-                } else {
-                  shipmentTypeRequirementsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 106
-            case 114:
-              {
-                com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.parser(),
-                        extensionRegistry);
-                if (precedenceRulesBuilder_ == null) {
-                  ensurePrecedenceRulesIsMutable();
-                  precedenceRules_.add(m);
-                } else {
-                  precedenceRulesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 122:
-              {
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentModel.BreakRule.parser(),
-                        extensionRegistry);
-                if (breakRulesBuilder_ == null) {
-                  ensureBreakRulesIsMutable();
-                  breakRules_.add(m);
-                } else {
-                  breakRulesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 122
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.optimization.v1.Shipment m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.Shipment.parser(),
+                      extensionRegistry);
+              if (shipmentsBuilder_ == null) {
+                ensureShipmentsIsMutable();
+                shipments_.add(m);
+              } else {
+                shipmentsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.optimization.v1.Vehicle m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.Vehicle.parser(),
+                      extensionRegistry);
+              if (vehiclesBuilder_ == null) {
+                ensureVehiclesIsMutable();
+                vehicles_.add(m);
+              } else {
+                vehiclesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 32: {
+              maxActiveVehicles_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getGlobalStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getGlobalEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 50
+            case 57: {
+              globalDurationCostPerHour_ = input.readDouble();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 57
+            case 66: {
+              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.parser(),
+                      extensionRegistry);
+              if (durationDistanceMatricesBuilder_ == null) {
+                ensureDurationDistanceMatricesIsMutable();
+                durationDistanceMatrices_.add(m);
+              } else {
+                durationDistanceMatricesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 66
+            case 74: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureDurationDistanceMatrixSrcTagsIsMutable();
+              durationDistanceMatrixSrcTags_.add(s);
+              break;
+            } // case 74
+            case 82: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureDurationDistanceMatrixDstTagsIsMutable();
+              durationDistanceMatrixDstTags_.add(s);
+              break;
+            } // case 82
+            case 90: {
+              com.google.cloud.optimization.v1.TransitionAttributes m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.TransitionAttributes.parser(),
+                      extensionRegistry);
+              if (transitionAttributesBuilder_ == null) {
+                ensureTransitionAttributesIsMutable();
+                transitionAttributes_.add(m);
+              } else {
+                transitionAttributesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 90
+            case 98: {
+              com.google.cloud.optimization.v1.ShipmentTypeIncompatibility m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.parser(),
+                      extensionRegistry);
+              if (shipmentTypeIncompatibilitiesBuilder_ == null) {
+                ensureShipmentTypeIncompatibilitiesIsMutable();
+                shipmentTypeIncompatibilities_.add(m);
+              } else {
+                shipmentTypeIncompatibilitiesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 98
+            case 106: {
+              com.google.cloud.optimization.v1.ShipmentTypeRequirement m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentTypeRequirement.parser(),
+                      extensionRegistry);
+              if (shipmentTypeRequirementsBuilder_ == null) {
+                ensureShipmentTypeRequirementsIsMutable();
+                shipmentTypeRequirements_.add(m);
+              } else {
+                shipmentTypeRequirementsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 106
+            case 114: {
+              com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.parser(),
+                      extensionRegistry);
+              if (precedenceRulesBuilder_ == null) {
+                ensurePrecedenceRulesIsMutable();
+                precedenceRules_.add(m);
+              } else {
+                precedenceRulesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 122: {
+              com.google.cloud.optimization.v1.ShipmentModel.BreakRule m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentModel.BreakRule.parser(),
+                      extensionRegistry);
+              if (breakRulesBuilder_ == null) {
+                ensureBreakRulesIsMutable();
+                breakRules_.add(m);
+              } else {
+                breakRulesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 122
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11234,28 +9646,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List shipments_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureShipmentsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         shipments_ = new java.util.ArrayList(shipments_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.Shipment,
-            com.google.cloud.optimization.v1.Shipment.Builder,
-            com.google.cloud.optimization.v1.ShipmentOrBuilder>
-        shipmentsBuilder_;
+        com.google.cloud.optimization.v1.Shipment, com.google.cloud.optimization.v1.Shipment.Builder, com.google.cloud.optimization.v1.ShipmentOrBuilder> shipmentsBuilder_;
 
     /**
-     *
-     *
      * 
      * Set of shipments which must be performed in the model.
      * 
@@ -11270,8 +9675,6 @@ public java.util.List getShipmentsLis } } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11286,8 +9689,6 @@ public int getShipmentsCount() { } } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11302,15 +9703,14 @@ public com.google.cloud.optimization.v1.Shipment getShipments(int index) { } } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public Builder setShipments(int index, com.google.cloud.optimization.v1.Shipment value) { + public Builder setShipments( + int index, com.google.cloud.optimization.v1.Shipment value) { if (shipmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11324,8 +9724,6 @@ public Builder setShipments(int index, com.google.cloud.optimization.v1.Shipment return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11344,8 +9742,6 @@ public Builder setShipments( return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11366,15 +9762,14 @@ public Builder addShipments(com.google.cloud.optimization.v1.Shipment value) { return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public Builder addShipments(int index, com.google.cloud.optimization.v1.Shipment value) { + public Builder addShipments( + int index, com.google.cloud.optimization.v1.Shipment value) { if (shipmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11388,15 +9783,14 @@ public Builder addShipments(int index, com.google.cloud.optimization.v1.Shipment return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public Builder addShipments(com.google.cloud.optimization.v1.Shipment.Builder builderForValue) { + public Builder addShipments( + com.google.cloud.optimization.v1.Shipment.Builder builderForValue) { if (shipmentsBuilder_ == null) { ensureShipmentsIsMutable(); shipments_.add(builderForValue.build()); @@ -11407,8 +9801,6 @@ public Builder addShipments(com.google.cloud.optimization.v1.Shipment.Builder bu return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11427,8 +9819,6 @@ public Builder addShipments( return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11439,7 +9829,8 @@ public Builder addAllShipments( java.lang.Iterable values) { if (shipmentsBuilder_ == null) { ensureShipmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shipments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shipments_); onChanged(); } else { shipmentsBuilder_.addAllMessages(values); @@ -11447,8 +9838,6 @@ public Builder addAllShipments( return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11466,8 +9855,6 @@ public Builder clearShipments() { return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11485,44 +9872,39 @@ public Builder removeShipments(int index) { return this; } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public com.google.cloud.optimization.v1.Shipment.Builder getShipmentsBuilder(int index) { + public com.google.cloud.optimization.v1.Shipment.Builder getShipmentsBuilder( + int index) { return getShipmentsFieldBuilder().getBuilder(index); } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( + int index) { if (shipmentsBuilder_ == null) { - return shipments_.get(index); - } else { + return shipments_.get(index); } else { return shipmentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public java.util.List - getShipmentsOrBuilderList() { + public java.util.List + getShipmentsOrBuilderList() { if (shipmentsBuilder_ != null) { return shipmentsBuilder_.getMessageOrBuilderList(); } else { @@ -11530,8 +9912,6 @@ public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( } } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
@@ -11539,72 +9919,60 @@ public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ public com.google.cloud.optimization.v1.Shipment.Builder addShipmentsBuilder() { - return getShipmentsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.Shipment.getDefaultInstance()); + return getShipmentsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.Shipment.getDefaultInstance()); } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public com.google.cloud.optimization.v1.Shipment.Builder addShipmentsBuilder(int index) { - return getShipmentsFieldBuilder() - .addBuilder(index, com.google.cloud.optimization.v1.Shipment.getDefaultInstance()); + public com.google.cloud.optimization.v1.Shipment.Builder addShipmentsBuilder( + int index) { + return getShipmentsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.Shipment.getDefaultInstance()); } /** - * - * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public java.util.List - getShipmentsBuilderList() { + public java.util.List + getShipmentsBuilderList() { return getShipmentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Shipment, - com.google.cloud.optimization.v1.Shipment.Builder, - com.google.cloud.optimization.v1.ShipmentOrBuilder> + com.google.cloud.optimization.v1.Shipment, com.google.cloud.optimization.v1.Shipment.Builder, com.google.cloud.optimization.v1.ShipmentOrBuilder> getShipmentsFieldBuilder() { if (shipmentsBuilder_ == null) { - shipmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Shipment, - com.google.cloud.optimization.v1.Shipment.Builder, - com.google.cloud.optimization.v1.ShipmentOrBuilder>( - shipments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + shipmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.Shipment, com.google.cloud.optimization.v1.Shipment.Builder, com.google.cloud.optimization.v1.ShipmentOrBuilder>( + shipments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); shipments_ = null; } return shipmentsBuilder_; } private java.util.List vehicles_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVehiclesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { vehicles_ = new java.util.ArrayList(vehicles_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle, - com.google.cloud.optimization.v1.Vehicle.Builder, - com.google.cloud.optimization.v1.VehicleOrBuilder> - vehiclesBuilder_; + com.google.cloud.optimization.v1.Vehicle, com.google.cloud.optimization.v1.Vehicle.Builder, com.google.cloud.optimization.v1.VehicleOrBuilder> vehiclesBuilder_; /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11619,8 +9987,6 @@ public java.util.List getVehiclesList( } } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11635,8 +10001,6 @@ public int getVehiclesCount() { } } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11651,15 +10015,14 @@ public com.google.cloud.optimization.v1.Vehicle getVehicles(int index) { } } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public Builder setVehicles(int index, com.google.cloud.optimization.v1.Vehicle value) { + public Builder setVehicles( + int index, com.google.cloud.optimization.v1.Vehicle value) { if (vehiclesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11673,8 +10036,6 @@ public Builder setVehicles(int index, com.google.cloud.optimization.v1.Vehicle v return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11693,8 +10054,6 @@ public Builder setVehicles( return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11715,15 +10074,14 @@ public Builder addVehicles(com.google.cloud.optimization.v1.Vehicle value) { return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public Builder addVehicles(int index, com.google.cloud.optimization.v1.Vehicle value) { + public Builder addVehicles( + int index, com.google.cloud.optimization.v1.Vehicle value) { if (vehiclesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11737,15 +10095,14 @@ public Builder addVehicles(int index, com.google.cloud.optimization.v1.Vehicle v return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public Builder addVehicles(com.google.cloud.optimization.v1.Vehicle.Builder builderForValue) { + public Builder addVehicles( + com.google.cloud.optimization.v1.Vehicle.Builder builderForValue) { if (vehiclesBuilder_ == null) { ensureVehiclesIsMutable(); vehicles_.add(builderForValue.build()); @@ -11756,8 +10113,6 @@ public Builder addVehicles(com.google.cloud.optimization.v1.Vehicle.Builder buil return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11776,8 +10131,6 @@ public Builder addVehicles( return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11788,7 +10141,8 @@ public Builder addAllVehicles( java.lang.Iterable values) { if (vehiclesBuilder_ == null) { ensureVehiclesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vehicles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vehicles_); onChanged(); } else { vehiclesBuilder_.addAllMessages(values); @@ -11796,8 +10150,6 @@ public Builder addAllVehicles( return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11815,8 +10167,6 @@ public Builder clearVehicles() { return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11834,44 +10184,39 @@ public Builder removeVehicles(int index) { return this; } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public com.google.cloud.optimization.v1.Vehicle.Builder getVehiclesBuilder(int index) { + public com.google.cloud.optimization.v1.Vehicle.Builder getVehiclesBuilder( + int index) { return getVehiclesFieldBuilder().getBuilder(index); } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(int index) { + public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder( + int index) { if (vehiclesBuilder_ == null) { - return vehicles_.get(index); - } else { + return vehicles_.get(index); } else { return vehiclesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public java.util.List - getVehiclesOrBuilderList() { + public java.util.List + getVehiclesOrBuilderList() { if (vehiclesBuilder_ != null) { return vehiclesBuilder_.getMessageOrBuilderList(); } else { @@ -11879,8 +10224,6 @@ public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(in } } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -11888,57 +10231,49 @@ public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(in * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ public com.google.cloud.optimization.v1.Vehicle.Builder addVehiclesBuilder() { - return getVehiclesFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.Vehicle.getDefaultInstance()); + return getVehiclesFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.Vehicle.getDefaultInstance()); } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public com.google.cloud.optimization.v1.Vehicle.Builder addVehiclesBuilder(int index) { - return getVehiclesFieldBuilder() - .addBuilder(index, com.google.cloud.optimization.v1.Vehicle.getDefaultInstance()); + public com.google.cloud.optimization.v1.Vehicle.Builder addVehiclesBuilder( + int index) { + return getVehiclesFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.Vehicle.getDefaultInstance()); } /** - * - * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public java.util.List - getVehiclesBuilderList() { + public java.util.List + getVehiclesBuilderList() { return getVehiclesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle, - com.google.cloud.optimization.v1.Vehicle.Builder, - com.google.cloud.optimization.v1.VehicleOrBuilder> + com.google.cloud.optimization.v1.Vehicle, com.google.cloud.optimization.v1.Vehicle.Builder, com.google.cloud.optimization.v1.VehicleOrBuilder> getVehiclesFieldBuilder() { if (vehiclesBuilder_ == null) { - vehiclesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle, - com.google.cloud.optimization.v1.Vehicle.Builder, - com.google.cloud.optimization.v1.VehicleOrBuilder>( - vehicles_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + vehiclesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.Vehicle, com.google.cloud.optimization.v1.Vehicle.Builder, com.google.cloud.optimization.v1.VehicleOrBuilder>( + vehicles_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); vehicles_ = null; } return vehiclesBuilder_; } - private int maxActiveVehicles_; + private int maxActiveVehicles_ ; /** - * - * *
      * Constrains the maximum number of active vehicles. A vehicle is active if
      * its route performs at least one shipment. This can be used to limit the
@@ -11949,7 +10284,6 @@ public com.google.cloud.optimization.v1.Vehicle.Builder addVehiclesBuilder(int i
      * 
* * optional int32 max_active_vehicles = 4; - * * @return Whether the maxActiveVehicles field is set. */ @java.lang.Override @@ -11957,8 +10291,6 @@ public boolean hasMaxActiveVehicles() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Constrains the maximum number of active vehicles. A vehicle is active if
      * its route performs at least one shipment. This can be used to limit the
@@ -11969,7 +10301,6 @@ public boolean hasMaxActiveVehicles() {
      * 
* * optional int32 max_active_vehicles = 4; - * * @return The maxActiveVehicles. */ @java.lang.Override @@ -11977,8 +10308,6 @@ public int getMaxActiveVehicles() { return maxActiveVehicles_; } /** - * - * *
      * Constrains the maximum number of active vehicles. A vehicle is active if
      * its route performs at least one shipment. This can be used to limit the
@@ -11989,7 +10318,6 @@ public int getMaxActiveVehicles() {
      * 
* * optional int32 max_active_vehicles = 4; - * * @param value The maxActiveVehicles to set. * @return This builder for chaining. */ @@ -12001,8 +10329,6 @@ public Builder setMaxActiveVehicles(int value) { return this; } /** - * - * *
      * Constrains the maximum number of active vehicles. A vehicle is active if
      * its route performs at least one shipment. This can be used to limit the
@@ -12013,7 +10339,6 @@ public Builder setMaxActiveVehicles(int value) {
      * 
* * optional int32 max_active_vehicles = 4; - * * @return This builder for chaining. */ public Builder clearMaxActiveVehicles() { @@ -12025,13 +10350,8 @@ public Builder clearMaxActiveVehicles() { private com.google.protobuf.Timestamp globalStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - globalStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> globalStartTimeBuilder_; /** - * - * *
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12047,15 +10367,12 @@ public Builder clearMaxActiveVehicles() {
      * 
* * .google.protobuf.Timestamp global_start_time = 5; - * * @return Whether the globalStartTime field is set. */ public boolean hasGlobalStartTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12071,21 +10388,16 @@ public boolean hasGlobalStartTime() {
      * 
* * .google.protobuf.Timestamp global_start_time = 5; - * * @return The globalStartTime. */ public com.google.protobuf.Timestamp getGlobalStartTime() { if (globalStartTimeBuilder_ == null) { - return globalStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : globalStartTime_; + return globalStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalStartTime_; } else { return globalStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12116,8 +10428,6 @@ public Builder setGlobalStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12134,7 +10444,8 @@ public Builder setGlobalStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp global_start_time = 5;
      */
-    public Builder setGlobalStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setGlobalStartTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (globalStartTimeBuilder_ == null) {
         globalStartTime_ = builderForValue.build();
       } else {
@@ -12145,8 +10456,6 @@ public Builder setGlobalStartTime(com.google.protobuf.Timestamp.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12165,9 +10474,9 @@ public Builder setGlobalStartTime(com.google.protobuf.Timestamp.Builder builderF
      */
     public Builder mergeGlobalStartTime(com.google.protobuf.Timestamp value) {
       if (globalStartTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && globalStartTime_ != null
-            && globalStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          globalStartTime_ != null &&
+          globalStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getGlobalStartTimeBuilder().mergeFrom(value);
         } else {
           globalStartTime_ = value;
@@ -12180,8 +10489,6 @@ public Builder mergeGlobalStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12209,8 +10516,6 @@ public Builder clearGlobalStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12233,8 +10538,6 @@ public com.google.protobuf.Timestamp.Builder getGlobalStartTimeBuilder() {
       return getGlobalStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12255,14 +10558,11 @@ public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder() {
       if (globalStartTimeBuilder_ != null) {
         return globalStartTimeBuilder_.getMessageOrBuilder();
       } else {
-        return globalStartTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : globalStartTime_;
+        return globalStartTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : globalStartTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -12280,17 +10580,14 @@ public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder() {
      * .google.protobuf.Timestamp global_start_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getGlobalStartTimeFieldBuilder() {
       if (globalStartTimeBuilder_ == null) {
-        globalStartTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getGlobalStartTime(), getParentForChildren(), isClean());
+        globalStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getGlobalStartTime(),
+                getParentForChildren(),
+                isClean());
         globalStartTime_ = null;
       }
       return globalStartTimeBuilder_;
@@ -12298,49 +10595,36 @@ public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp globalEndTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        globalEndTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> globalEndTimeBuilder_;
     /**
-     *
-     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
      * 
* * .google.protobuf.Timestamp global_end_time = 6; - * * @return Whether the globalEndTime field is set. */ public boolean hasGlobalEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
      * 
* * .google.protobuf.Timestamp global_end_time = 6; - * * @return The globalEndTime. */ public com.google.protobuf.Timestamp getGlobalEndTime() { if (globalEndTimeBuilder_ == null) { - return globalEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : globalEndTime_; + return globalEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalEndTime_; } else { return globalEndTimeBuilder_.getMessage(); } } /** - * - * *
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -12362,8 +10646,6 @@ public Builder setGlobalEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -12371,7 +10653,8 @@ public Builder setGlobalEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp global_end_time = 6;
      */
-    public Builder setGlobalEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setGlobalEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (globalEndTimeBuilder_ == null) {
         globalEndTime_ = builderForValue.build();
       } else {
@@ -12382,8 +10665,6 @@ public Builder setGlobalEndTime(com.google.protobuf.Timestamp.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -12393,9 +10674,9 @@ public Builder setGlobalEndTime(com.google.protobuf.Timestamp.Builder builderFor
      */
     public Builder mergeGlobalEndTime(com.google.protobuf.Timestamp value) {
       if (globalEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && globalEndTime_ != null
-            && globalEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          globalEndTime_ != null &&
+          globalEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getGlobalEndTimeBuilder().mergeFrom(value);
         } else {
           globalEndTime_ = value;
@@ -12408,8 +10689,6 @@ public Builder mergeGlobalEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -12428,8 +10707,6 @@ public Builder clearGlobalEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -12443,8 +10720,6 @@ public com.google.protobuf.Timestamp.Builder getGlobalEndTimeBuilder() {
       return getGlobalEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -12456,14 +10731,11 @@ public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
       if (globalEndTimeBuilder_ != null) {
         return globalEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return globalEndTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : globalEndTime_;
+        return globalEndTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : globalEndTime_;
       }
     }
     /**
-     *
-     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -12472,26 +10744,21 @@ public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
      * .google.protobuf.Timestamp global_end_time = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getGlobalEndTimeFieldBuilder() {
       if (globalEndTimeBuilder_ == null) {
-        globalEndTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getGlobalEndTime(), getParentForChildren(), isClean());
+        globalEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getGlobalEndTime(),
+                getParentForChildren(),
+                isClean());
         globalEndTime_ = null;
       }
       return globalEndTimeBuilder_;
     }
 
-    private double globalDurationCostPerHour_;
+    private double globalDurationCostPerHour_ ;
     /**
-     *
-     *
      * 
      * The "global duration" of the overall plan is the difference between the
      * earliest effective start time and the latest effective end time of
@@ -12502,7 +10769,6 @@ public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
      * 
* * double global_duration_cost_per_hour = 7; - * * @return The globalDurationCostPerHour. */ @java.lang.Override @@ -12510,8 +10776,6 @@ public double getGlobalDurationCostPerHour() { return globalDurationCostPerHour_; } /** - * - * *
      * The "global duration" of the overall plan is the difference between the
      * earliest effective start time and the latest effective end time of
@@ -12522,7 +10786,6 @@ public double getGlobalDurationCostPerHour() {
      * 
* * double global_duration_cost_per_hour = 7; - * * @param value The globalDurationCostPerHour to set. * @return This builder for chaining. */ @@ -12534,8 +10797,6 @@ public Builder setGlobalDurationCostPerHour(double value) { return this; } /** - * - * *
      * The "global duration" of the overall plan is the difference between the
      * earliest effective start time and the latest effective end time of
@@ -12546,7 +10807,6 @@ public Builder setGlobalDurationCostPerHour(double value) {
      * 
* * double global_duration_cost_per_hour = 7; - * * @return This builder for chaining. */ public Builder clearGlobalDurationCostPerHour() { @@ -12556,28 +10816,19 @@ public Builder clearGlobalDurationCostPerHour() { return this; } - private java.util.List - durationDistanceMatrices_ = java.util.Collections.emptyList(); - + private java.util.List durationDistanceMatrices_ = + java.util.Collections.emptyList(); private void ensureDurationDistanceMatricesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { - durationDistanceMatrices_ = - new java.util.ArrayList< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix>( - durationDistanceMatrices_); + durationDistanceMatrices_ = new java.util.ArrayList(durationDistanceMatrices_); bitField0_ |= 0x00000040; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> - durationDistanceMatricesBuilder_; + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> durationDistanceMatricesBuilder_; /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12668,12 +10919,9 @@ private void ensureDurationDistanceMatricesIsMutable() {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public java.util.List - getDurationDistanceMatricesList() { + public java.util.List getDurationDistanceMatricesList() { if (durationDistanceMatricesBuilder_ == null) { return java.util.Collections.unmodifiableList(durationDistanceMatrices_); } else { @@ -12681,8 +10929,6 @@ private void ensureDurationDistanceMatricesIsMutable() { } } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12773,9 +11019,7 @@ private void ensureDurationDistanceMatricesIsMutable() {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public int getDurationDistanceMatricesCount() { if (durationDistanceMatricesBuilder_ == null) { @@ -12785,8 +11029,6 @@ public int getDurationDistanceMatricesCount() { } } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12877,12 +11119,9 @@ public int getDurationDistanceMatricesCount() {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - getDurationDistanceMatrices(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices(int index) { if (durationDistanceMatricesBuilder_ == null) { return durationDistanceMatrices_.get(index); } else { @@ -12890,8 +11129,6 @@ public int getDurationDistanceMatricesCount() { } } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12982,9 +11219,7 @@ public int getDurationDistanceMatricesCount() {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public Builder setDurationDistanceMatrices( int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix value) { @@ -13001,8 +11236,6 @@ public Builder setDurationDistanceMatrices( return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13093,14 +11326,10 @@ public Builder setDurationDistanceMatrices(
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public Builder setDurationDistanceMatrices( - int index, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder builderForValue) { if (durationDistanceMatricesBuilder_ == null) { ensureDurationDistanceMatricesIsMutable(); durationDistanceMatrices_.set(index, builderForValue.build()); @@ -13111,8 +11340,6 @@ public Builder setDurationDistanceMatrices( return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13203,12 +11430,9 @@ public Builder setDurationDistanceMatrices(
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public Builder addDurationDistanceMatrices( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix value) { + public Builder addDurationDistanceMatrices(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix value) { if (durationDistanceMatricesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13222,8 +11446,6 @@ public Builder addDurationDistanceMatrices( return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13314,9 +11536,7 @@ public Builder addDurationDistanceMatrices(
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public Builder addDurationDistanceMatrices( int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix value) { @@ -13333,8 +11553,6 @@ public Builder addDurationDistanceMatrices( return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13425,13 +11643,10 @@ public Builder addDurationDistanceMatrices(
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public Builder addDurationDistanceMatrices( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder - builderForValue) { + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder builderForValue) { if (durationDistanceMatricesBuilder_ == null) { ensureDurationDistanceMatricesIsMutable(); durationDistanceMatrices_.add(builderForValue.build()); @@ -13442,8 +11657,6 @@ public Builder addDurationDistanceMatrices( return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13534,14 +11747,10 @@ public Builder addDurationDistanceMatrices(
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public Builder addDurationDistanceMatrices( - int index, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder - builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder builderForValue) { if (durationDistanceMatricesBuilder_ == null) { ensureDurationDistanceMatricesIsMutable(); durationDistanceMatrices_.add(index, builderForValue.build()); @@ -13552,8 +11761,6 @@ public Builder addDurationDistanceMatrices( return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13644,17 +11851,14 @@ public Builder addDurationDistanceMatrices(
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public Builder addAllDurationDistanceMatrices( - java.lang.Iterable< - ? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix> - values) { + java.lang.Iterable values) { if (durationDistanceMatricesBuilder_ == null) { ensureDurationDistanceMatricesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, durationDistanceMatrices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, durationDistanceMatrices_); onChanged(); } else { durationDistanceMatricesBuilder_.addAllMessages(values); @@ -13662,8 +11866,6 @@ public Builder addAllDurationDistanceMatrices( return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13754,9 +11956,7 @@ public Builder addAllDurationDistanceMatrices(
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public Builder clearDurationDistanceMatrices() { if (durationDistanceMatricesBuilder_ == null) { @@ -13769,8 +11969,6 @@ public Builder clearDurationDistanceMatrices() { return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13861,9 +12059,7 @@ public Builder clearDurationDistanceMatrices() {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ public Builder removeDurationDistanceMatrices(int index) { if (durationDistanceMatricesBuilder_ == null) { @@ -13876,8 +12072,6 @@ public Builder removeDurationDistanceMatrices(int index) { return this; } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -13968,17 +12162,13 @@ public Builder removeDurationDistanceMatrices(int index) {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder - getDurationDistanceMatricesBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder getDurationDistanceMatricesBuilder( + int index) { return getDurationDistanceMatricesFieldBuilder().getBuilder(index); } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -14069,21 +12259,16 @@ public Builder removeDurationDistanceMatrices(int index) {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder - getDurationDistanceMatricesOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder getDurationDistanceMatricesOrBuilder( + int index) { if (durationDistanceMatricesBuilder_ == null) { - return durationDistanceMatrices_.get(index); - } else { + return durationDistanceMatrices_.get(index); } else { return durationDistanceMatricesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -14174,14 +12359,10 @@ public Builder removeDurationDistanceMatrices(int index) {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public java.util.List< - ? extends - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> - getDurationDistanceMatricesOrBuilderList() { + public java.util.List + getDurationDistanceMatricesOrBuilderList() { if (durationDistanceMatricesBuilder_ != null) { return durationDistanceMatricesBuilder_.getMessageOrBuilderList(); } else { @@ -14189,8 +12370,6 @@ public Builder removeDurationDistanceMatrices(int index) { } } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -14281,20 +12460,13 @@ public Builder removeDurationDistanceMatrices(int index) {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder - addDurationDistanceMatricesBuilder() { - return getDurationDistanceMatricesFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - .getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder addDurationDistanceMatricesBuilder() { + return getDurationDistanceMatricesFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.getDefaultInstance()); } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -14385,21 +12557,14 @@ public Builder removeDurationDistanceMatrices(int index) {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder - addDurationDistanceMatricesBuilder(int index) { - return getDurationDistanceMatricesFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix - .getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder addDurationDistanceMatricesBuilder( + int index) { + return getDurationDistanceMatricesFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.getDefaultInstance()); } /** - * - * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -14490,27 +12655,18 @@ public Builder removeDurationDistanceMatrices(int index) {
      * ```
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - public java.util.List< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder> - getDurationDistanceMatricesBuilderList() { + public java.util.List + getDurationDistanceMatricesBuilderList() { return getDurationDistanceMatricesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> getDurationDistanceMatricesFieldBuilder() { if (durationDistanceMatricesBuilder_ == null) { - durationDistanceMatricesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder>( + durationDistanceMatricesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder>( durationDistanceMatrices_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), @@ -14522,17 +12678,13 @@ public Builder removeDurationDistanceMatrices(int index) { private com.google.protobuf.LazyStringArrayList durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDurationDistanceMatrixSrcTagsIsMutable() { if (!durationDistanceMatrixSrcTags_.isModifiable()) { - durationDistanceMatrixSrcTags_ = - new com.google.protobuf.LazyStringArrayList(durationDistanceMatrixSrcTags_); + durationDistanceMatrixSrcTags_ = new com.google.protobuf.LazyStringArrayList(durationDistanceMatrixSrcTags_); } bitField0_ |= 0x00000080; } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14550,16 +12702,14 @@ private void ensureDurationDistanceMatrixSrcTagsIsMutable() {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @return A list containing the durationDistanceMatrixSrcTags. */ - public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixSrcTagsList() { + public com.google.protobuf.ProtocolStringList + getDurationDistanceMatrixSrcTagsList() { durationDistanceMatrixSrcTags_.makeImmutable(); return durationDistanceMatrixSrcTags_; } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14577,15 +12727,12 @@ public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixSrcTagsLi
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @return The count of durationDistanceMatrixSrcTags. */ public int getDurationDistanceMatrixSrcTagsCount() { return durationDistanceMatrixSrcTags_.size(); } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14603,7 +12750,6 @@ public int getDurationDistanceMatrixSrcTagsCount() {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param index The index of the element to return. * @return The durationDistanceMatrixSrcTags at the given index. */ @@ -14611,8 +12757,6 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) { return durationDistanceMatrixSrcTags_.get(index); } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14630,16 +12774,14 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixSrcTags at the given index. */ - public com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int index) { + public com.google.protobuf.ByteString + getDurationDistanceMatrixSrcTagsBytes(int index) { return durationDistanceMatrixSrcTags_.getByteString(index); } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14657,15 +12799,13 @@ public com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param index The index to set the value at. * @param value The durationDistanceMatrixSrcTags to set. * @return This builder for chaining. */ - public Builder setDurationDistanceMatrixSrcTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDurationDistanceMatrixSrcTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDurationDistanceMatrixSrcTagsIsMutable(); durationDistanceMatrixSrcTags_.set(index, value); bitField0_ |= 0x00000080; @@ -14673,8 +12813,6 @@ public Builder setDurationDistanceMatrixSrcTags(int index, java.lang.String valu return this; } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14692,14 +12830,12 @@ public Builder setDurationDistanceMatrixSrcTags(int index, java.lang.String valu
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param value The durationDistanceMatrixSrcTags to add. * @return This builder for chaining. */ - public Builder addDurationDistanceMatrixSrcTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDurationDistanceMatrixSrcTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDurationDistanceMatrixSrcTagsIsMutable(); durationDistanceMatrixSrcTags_.add(value); bitField0_ |= 0x00000080; @@ -14707,8 +12843,6 @@ public Builder addDurationDistanceMatrixSrcTags(java.lang.String value) { return this; } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14726,7 +12860,6 @@ public Builder addDurationDistanceMatrixSrcTags(java.lang.String value) {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param values The durationDistanceMatrixSrcTags to add. * @return This builder for chaining. */ @@ -14740,8 +12873,6 @@ public Builder addAllDurationDistanceMatrixSrcTags( return this; } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14759,19 +12890,16 @@ public Builder addAllDurationDistanceMatrixSrcTags(
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @return This builder for chaining. */ public Builder clearDurationDistanceMatrixSrcTags() { - durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; + durationDistanceMatrixSrcTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; onChanged(); return this; } /** - * - * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -14789,14 +12917,12 @@ public Builder clearDurationDistanceMatrixSrcTags() {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param value The bytes of the durationDistanceMatrixSrcTags to add. * @return This builder for chaining. */ - public Builder addDurationDistanceMatrixSrcTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDurationDistanceMatrixSrcTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDurationDistanceMatrixSrcTagsIsMutable(); durationDistanceMatrixSrcTags_.add(value); @@ -14807,17 +12933,13 @@ public Builder addDurationDistanceMatrixSrcTagsBytes(com.google.protobuf.ByteStr private com.google.protobuf.LazyStringArrayList durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDurationDistanceMatrixDstTagsIsMutable() { if (!durationDistanceMatrixDstTags_.isModifiable()) { - durationDistanceMatrixDstTags_ = - new com.google.protobuf.LazyStringArrayList(durationDistanceMatrixDstTags_); + durationDistanceMatrixDstTags_ = new com.google.protobuf.LazyStringArrayList(durationDistanceMatrixDstTags_); } bitField0_ |= 0x00000100; } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -14837,16 +12959,14 @@ private void ensureDurationDistanceMatrixDstTagsIsMutable() {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @return A list containing the durationDistanceMatrixDstTags. */ - public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixDstTagsList() { + public com.google.protobuf.ProtocolStringList + getDurationDistanceMatrixDstTagsList() { durationDistanceMatrixDstTags_.makeImmutable(); return durationDistanceMatrixDstTags_; } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -14866,15 +12986,12 @@ public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixDstTagsLi
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @return The count of durationDistanceMatrixDstTags. */ public int getDurationDistanceMatrixDstTagsCount() { return durationDistanceMatrixDstTags_.size(); } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -14894,7 +13011,6 @@ public int getDurationDistanceMatrixDstTagsCount() {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param index The index of the element to return. * @return The durationDistanceMatrixDstTags at the given index. */ @@ -14902,8 +13018,6 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) { return durationDistanceMatrixDstTags_.get(index); } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -14923,16 +13037,14 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixDstTags at the given index. */ - public com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int index) { + public com.google.protobuf.ByteString + getDurationDistanceMatrixDstTagsBytes(int index) { return durationDistanceMatrixDstTags_.getByteString(index); } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -14952,15 +13064,13 @@ public com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param index The index to set the value at. * @param value The durationDistanceMatrixDstTags to set. * @return This builder for chaining. */ - public Builder setDurationDistanceMatrixDstTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDurationDistanceMatrixDstTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDurationDistanceMatrixDstTagsIsMutable(); durationDistanceMatrixDstTags_.set(index, value); bitField0_ |= 0x00000100; @@ -14968,8 +13078,6 @@ public Builder setDurationDistanceMatrixDstTags(int index, java.lang.String valu return this; } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -14989,14 +13097,12 @@ public Builder setDurationDistanceMatrixDstTags(int index, java.lang.String valu
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param value The durationDistanceMatrixDstTags to add. * @return This builder for chaining. */ - public Builder addDurationDistanceMatrixDstTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDurationDistanceMatrixDstTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDurationDistanceMatrixDstTagsIsMutable(); durationDistanceMatrixDstTags_.add(value); bitField0_ |= 0x00000100; @@ -15004,8 +13110,6 @@ public Builder addDurationDistanceMatrixDstTags(java.lang.String value) { return this; } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -15025,7 +13129,6 @@ public Builder addDurationDistanceMatrixDstTags(java.lang.String value) {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param values The durationDistanceMatrixDstTags to add. * @return This builder for chaining. */ @@ -15039,8 +13142,6 @@ public Builder addAllDurationDistanceMatrixDstTags( return this; } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -15060,19 +13161,16 @@ public Builder addAllDurationDistanceMatrixDstTags(
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @return This builder for chaining. */ public Builder clearDurationDistanceMatrixDstTags() { - durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; + durationDistanceMatrixDstTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** - * - * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -15092,14 +13190,12 @@ public Builder clearDurationDistanceMatrixDstTags() {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param value The bytes of the durationDistanceMatrixDstTags to add. * @return This builder for chaining. */ - public Builder addDurationDistanceMatrixDstTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDurationDistanceMatrixDstTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDurationDistanceMatrixDstTagsIsMutable(); durationDistanceMatrixDstTags_.add(value); @@ -15108,36 +13204,26 @@ public Builder addDurationDistanceMatrixDstTagsBytes(com.google.protobuf.ByteStr return this; } - private java.util.List - transitionAttributes_ = java.util.Collections.emptyList(); - + private java.util.List transitionAttributes_ = + java.util.Collections.emptyList(); private void ensureTransitionAttributesIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - transitionAttributes_ = - new java.util.ArrayList( - transitionAttributes_); + transitionAttributes_ = new java.util.ArrayList(transitionAttributes_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TransitionAttributes, - com.google.cloud.optimization.v1.TransitionAttributes.Builder, - com.google.cloud.optimization.v1.TransitionAttributesOrBuilder> - transitionAttributesBuilder_; + com.google.cloud.optimization.v1.TransitionAttributes, com.google.cloud.optimization.v1.TransitionAttributes.Builder, com.google.cloud.optimization.v1.TransitionAttributesOrBuilder> transitionAttributesBuilder_; /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public java.util.List - getTransitionAttributesList() { + public java.util.List getTransitionAttributesList() { if (transitionAttributesBuilder_ == null) { return java.util.Collections.unmodifiableList(transitionAttributes_); } else { @@ -15145,14 +13231,11 @@ private void ensureTransitionAttributesIsMutable() { } } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public int getTransitionAttributesCount() { if (transitionAttributesBuilder_ == null) { @@ -15162,17 +13245,13 @@ public int getTransitionAttributesCount() { } } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttributes( - int index) { + public com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttributes(int index) { if (transitionAttributesBuilder_ == null) { return transitionAttributes_.get(index); } else { @@ -15180,14 +13259,11 @@ public com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttrib } } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public Builder setTransitionAttributes( int index, com.google.cloud.optimization.v1.TransitionAttributes value) { @@ -15204,14 +13280,11 @@ public Builder setTransitionAttributes( return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public Builder setTransitionAttributes( int index, com.google.cloud.optimization.v1.TransitionAttributes.Builder builderForValue) { @@ -15225,17 +13298,13 @@ public Builder setTransitionAttributes( return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public Builder addTransitionAttributes( - com.google.cloud.optimization.v1.TransitionAttributes value) { + public Builder addTransitionAttributes(com.google.cloud.optimization.v1.TransitionAttributes value) { if (transitionAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15249,14 +13318,11 @@ public Builder addTransitionAttributes( return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public Builder addTransitionAttributes( int index, com.google.cloud.optimization.v1.TransitionAttributes value) { @@ -15273,14 +13339,11 @@ public Builder addTransitionAttributes( return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public Builder addTransitionAttributes( com.google.cloud.optimization.v1.TransitionAttributes.Builder builderForValue) { @@ -15294,14 +13357,11 @@ public Builder addTransitionAttributes( return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public Builder addTransitionAttributes( int index, com.google.cloud.optimization.v1.TransitionAttributes.Builder builderForValue) { @@ -15315,21 +13375,18 @@ public Builder addTransitionAttributes( return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public Builder addAllTransitionAttributes( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (transitionAttributesBuilder_ == null) { ensureTransitionAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitionAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transitionAttributes_); onChanged(); } else { transitionAttributesBuilder_.addAllMessages(values); @@ -15337,14 +13394,11 @@ public Builder addAllTransitionAttributes( return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public Builder clearTransitionAttributes() { if (transitionAttributesBuilder_ == null) { @@ -15357,14 +13411,11 @@ public Builder clearTransitionAttributes() { return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ public Builder removeTransitionAttributes(int index) { if (transitionAttributesBuilder_ == null) { @@ -15377,49 +13428,39 @@ public Builder removeTransitionAttributes(int index) { return this; } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public com.google.cloud.optimization.v1.TransitionAttributes.Builder - getTransitionAttributesBuilder(int index) { + public com.google.cloud.optimization.v1.TransitionAttributes.Builder getTransitionAttributesBuilder( + int index) { return getTransitionAttributesFieldBuilder().getBuilder(index); } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder - getTransitionAttributesOrBuilder(int index) { + public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder getTransitionAttributesOrBuilder( + int index) { if (transitionAttributesBuilder_ == null) { - return transitionAttributes_.get(index); - } else { + return transitionAttributes_.get(index); } else { return transitionAttributesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public java.util.List - getTransitionAttributesOrBuilderList() { + public java.util.List + getTransitionAttributesOrBuilderList() { if (transitionAttributesBuilder_ != null) { return transitionAttributesBuilder_.getMessageOrBuilderList(); } else { @@ -15427,62 +13468,45 @@ public Builder removeTransitionAttributes(int index) { } } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public com.google.cloud.optimization.v1.TransitionAttributes.Builder - addTransitionAttributesBuilder() { - return getTransitionAttributesFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()); + public com.google.cloud.optimization.v1.TransitionAttributes.Builder addTransitionAttributesBuilder() { + return getTransitionAttributesFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()); } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public com.google.cloud.optimization.v1.TransitionAttributes.Builder - addTransitionAttributesBuilder(int index) { - return getTransitionAttributesFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()); + public com.google.cloud.optimization.v1.TransitionAttributes.Builder addTransitionAttributesBuilder( + int index) { + return getTransitionAttributesFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()); } /** - * - * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - public java.util.List - getTransitionAttributesBuilderList() { + public java.util.List + getTransitionAttributesBuilderList() { return getTransitionAttributesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TransitionAttributes, - com.google.cloud.optimization.v1.TransitionAttributes.Builder, - com.google.cloud.optimization.v1.TransitionAttributesOrBuilder> + com.google.cloud.optimization.v1.TransitionAttributes, com.google.cloud.optimization.v1.TransitionAttributes.Builder, com.google.cloud.optimization.v1.TransitionAttributesOrBuilder> getTransitionAttributesFieldBuilder() { if (transitionAttributesBuilder_ == null) { - transitionAttributesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TransitionAttributes, - com.google.cloud.optimization.v1.TransitionAttributes.Builder, - com.google.cloud.optimization.v1.TransitionAttributesOrBuilder>( + transitionAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.TransitionAttributes, com.google.cloud.optimization.v1.TransitionAttributes.Builder, com.google.cloud.optimization.v1.TransitionAttributesOrBuilder>( transitionAttributes_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), @@ -15492,37 +13516,26 @@ public Builder removeTransitionAttributes(int index) { return transitionAttributesBuilder_; } - private java.util.List - shipmentTypeIncompatibilities_ = java.util.Collections.emptyList(); - + private java.util.List shipmentTypeIncompatibilities_ = + java.util.Collections.emptyList(); private void ensureShipmentTypeIncompatibilitiesIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - shipmentTypeIncompatibilities_ = - new java.util.ArrayList( - shipmentTypeIncompatibilities_); + shipmentTypeIncompatibilities_ = new java.util.ArrayList(shipmentTypeIncompatibilities_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> - shipmentTypeIncompatibilitiesBuilder_; + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> shipmentTypeIncompatibilitiesBuilder_; /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public java.util.List - getShipmentTypeIncompatibilitiesList() { + public java.util.List getShipmentTypeIncompatibilitiesList() { if (shipmentTypeIncompatibilitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(shipmentTypeIncompatibilities_); } else { @@ -15530,15 +13543,11 @@ private void ensureShipmentTypeIncompatibilitiesIsMutable() { } } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public int getShipmentTypeIncompatibilitiesCount() { if (shipmentTypeIncompatibilitiesBuilder_ == null) { @@ -15548,18 +13557,13 @@ public int getShipmentTypeIncompatibilitiesCount() { } } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility - getShipmentTypeIncompatibilities(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeIncompatibilities(int index) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { return shipmentTypeIncompatibilities_.get(index); } else { @@ -15567,15 +13571,11 @@ public int getShipmentTypeIncompatibilitiesCount() { } } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public Builder setShipmentTypeIncompatibilities( int index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility value) { @@ -15592,19 +13592,14 @@ public Builder setShipmentTypeIncompatibilities( return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public Builder setShipmentTypeIncompatibilities( - int index, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { ensureShipmentTypeIncompatibilitiesIsMutable(); shipmentTypeIncompatibilities_.set(index, builderForValue.build()); @@ -15615,18 +13610,13 @@ public Builder setShipmentTypeIncompatibilities( return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public Builder addShipmentTypeIncompatibilities( - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility value) { + public Builder addShipmentTypeIncompatibilities(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility value) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15640,15 +13630,11 @@ public Builder addShipmentTypeIncompatibilities( return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public Builder addShipmentTypeIncompatibilities( int index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility value) { @@ -15665,15 +13651,11 @@ public Builder addShipmentTypeIncompatibilities( return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public Builder addShipmentTypeIncompatibilities( com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { @@ -15687,19 +13669,14 @@ public Builder addShipmentTypeIncompatibilities( return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public Builder addShipmentTypeIncompatibilities( - int index, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { ensureShipmentTypeIncompatibilitiesIsMutable(); shipmentTypeIncompatibilities_.add(index, builderForValue.build()); @@ -15710,19 +13687,14 @@ public Builder addShipmentTypeIncompatibilities( return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public Builder addAllShipmentTypeIncompatibilities( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { ensureShipmentTypeIncompatibilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -15734,15 +13706,11 @@ public Builder addAllShipmentTypeIncompatibilities( return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public Builder clearShipmentTypeIncompatibilities() { if (shipmentTypeIncompatibilitiesBuilder_ == null) { @@ -15755,15 +13723,11 @@ public Builder clearShipmentTypeIncompatibilities() { return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ public Builder removeShipmentTypeIncompatibilities(int index) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { @@ -15776,53 +13740,39 @@ public Builder removeShipmentTypeIncompatibilities(int index) { return this; } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder - getShipmentTypeIncompatibilitiesBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder getShipmentTypeIncompatibilitiesBuilder( + int index) { return getShipmentTypeIncompatibilitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder - getShipmentTypeIncompatibilitiesOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder getShipmentTypeIncompatibilitiesOrBuilder( + int index) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { - return shipmentTypeIncompatibilities_.get(index); - } else { + return shipmentTypeIncompatibilities_.get(index); } else { return shipmentTypeIncompatibilitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> - getShipmentTypeIncompatibilitiesOrBuilderList() { + public java.util.List + getShipmentTypeIncompatibilitiesOrBuilderList() { if (shipmentTypeIncompatibilitiesBuilder_ != null) { return shipmentTypeIncompatibilitiesBuilder_.getMessageOrBuilderList(); } else { @@ -15830,67 +13780,45 @@ public Builder removeShipmentTypeIncompatibilities(int index) { } } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder - addShipmentTypeIncompatibilitiesBuilder() { - return getShipmentTypeIncompatibilitiesFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder addShipmentTypeIncompatibilitiesBuilder() { + return getShipmentTypeIncompatibilitiesFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()); } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder - addShipmentTypeIncompatibilitiesBuilder(int index) { - return getShipmentTypeIncompatibilitiesFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder addShipmentTypeIncompatibilitiesBuilder( + int index) { + return getShipmentTypeIncompatibilitiesFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()); } /** - * - * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - public java.util.List - getShipmentTypeIncompatibilitiesBuilderList() { + public java.util.List + getShipmentTypeIncompatibilitiesBuilderList() { return getShipmentTypeIncompatibilitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> getShipmentTypeIncompatibilitiesFieldBuilder() { if (shipmentTypeIncompatibilitiesBuilder_ == null) { - shipmentTypeIncompatibilitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, - com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder>( + shipmentTypeIncompatibilitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder>( shipmentTypeIncompatibilities_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), @@ -15900,37 +13828,26 @@ public Builder removeShipmentTypeIncompatibilities(int index) { return shipmentTypeIncompatibilitiesBuilder_; } - private java.util.List - shipmentTypeRequirements_ = java.util.Collections.emptyList(); - + private java.util.List shipmentTypeRequirements_ = + java.util.Collections.emptyList(); private void ensureShipmentTypeRequirementsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - shipmentTypeRequirements_ = - new java.util.ArrayList( - shipmentTypeRequirements_); + shipmentTypeRequirements_ = new java.util.ArrayList(shipmentTypeRequirements_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeRequirement, - com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, - com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> - shipmentTypeRequirementsBuilder_; + com.google.cloud.optimization.v1.ShipmentTypeRequirement, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> shipmentTypeRequirementsBuilder_; /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public java.util.List - getShipmentTypeRequirementsList() { + public java.util.List getShipmentTypeRequirementsList() { if (shipmentTypeRequirementsBuilder_ == null) { return java.util.Collections.unmodifiableList(shipmentTypeRequirements_); } else { @@ -15938,15 +13855,11 @@ private void ensureShipmentTypeRequirementsIsMutable() { } } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public int getShipmentTypeRequirementsCount() { if (shipmentTypeRequirementsBuilder_ == null) { @@ -15956,18 +13869,13 @@ public int getShipmentTypeRequirementsCount() { } } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements( - int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements(int index) { if (shipmentTypeRequirementsBuilder_ == null) { return shipmentTypeRequirements_.get(index); } else { @@ -15975,15 +13883,11 @@ public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeR } } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public Builder setShipmentTypeRequirements( int index, com.google.cloud.optimization.v1.ShipmentTypeRequirement value) { @@ -16000,19 +13904,14 @@ public Builder setShipmentTypeRequirements( return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public Builder setShipmentTypeRequirements( - int index, - com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { if (shipmentTypeRequirementsBuilder_ == null) { ensureShipmentTypeRequirementsIsMutable(); shipmentTypeRequirements_.set(index, builderForValue.build()); @@ -16023,18 +13922,13 @@ public Builder setShipmentTypeRequirements( return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public Builder addShipmentTypeRequirements( - com.google.cloud.optimization.v1.ShipmentTypeRequirement value) { + public Builder addShipmentTypeRequirements(com.google.cloud.optimization.v1.ShipmentTypeRequirement value) { if (shipmentTypeRequirementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16048,15 +13942,11 @@ public Builder addShipmentTypeRequirements( return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public Builder addShipmentTypeRequirements( int index, com.google.cloud.optimization.v1.ShipmentTypeRequirement value) { @@ -16073,15 +13963,11 @@ public Builder addShipmentTypeRequirements( return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public Builder addShipmentTypeRequirements( com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { @@ -16095,19 +13981,14 @@ public Builder addShipmentTypeRequirements( return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public Builder addShipmentTypeRequirements( - int index, - com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { if (shipmentTypeRequirementsBuilder_ == null) { ensureShipmentTypeRequirementsIsMutable(); shipmentTypeRequirements_.add(index, builderForValue.build()); @@ -16118,22 +13999,18 @@ public Builder addShipmentTypeRequirements( return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public Builder addAllShipmentTypeRequirements( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (shipmentTypeRequirementsBuilder_ == null) { ensureShipmentTypeRequirementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shipmentTypeRequirements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shipmentTypeRequirements_); onChanged(); } else { shipmentTypeRequirementsBuilder_.addAllMessages(values); @@ -16141,15 +14018,11 @@ public Builder addAllShipmentTypeRequirements( return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public Builder clearShipmentTypeRequirements() { if (shipmentTypeRequirementsBuilder_ == null) { @@ -16162,15 +14035,11 @@ public Builder clearShipmentTypeRequirements() { return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ public Builder removeShipmentTypeRequirements(int index) { if (shipmentTypeRequirementsBuilder_ == null) { @@ -16183,53 +14052,39 @@ public Builder removeShipmentTypeRequirements(int index) { return this; } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder - getShipmentTypeRequirementsBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder getShipmentTypeRequirementsBuilder( + int index) { return getShipmentTypeRequirementsFieldBuilder().getBuilder(index); } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder - getShipmentTypeRequirementsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder getShipmentTypeRequirementsOrBuilder( + int index) { if (shipmentTypeRequirementsBuilder_ == null) { - return shipmentTypeRequirements_.get(index); - } else { + return shipmentTypeRequirements_.get(index); } else { return shipmentTypeRequirementsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> - getShipmentTypeRequirementsOrBuilderList() { + public java.util.List + getShipmentTypeRequirementsOrBuilderList() { if (shipmentTypeRequirementsBuilder_ != null) { return shipmentTypeRequirementsBuilder_.getMessageOrBuilderList(); } else { @@ -16237,66 +14092,45 @@ public Builder removeShipmentTypeRequirements(int index) { } } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder - addShipmentTypeRequirementsBuilder() { - return getShipmentTypeRequirementsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder addShipmentTypeRequirementsBuilder() { + return getShipmentTypeRequirementsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()); } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder - addShipmentTypeRequirementsBuilder(int index) { - return getShipmentTypeRequirementsFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder addShipmentTypeRequirementsBuilder( + int index) { + return getShipmentTypeRequirementsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()); } /** - * - * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - public java.util.List - getShipmentTypeRequirementsBuilderList() { + public java.util.List + getShipmentTypeRequirementsBuilderList() { return getShipmentTypeRequirementsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeRequirement, - com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, - com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> + com.google.cloud.optimization.v1.ShipmentTypeRequirement, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> getShipmentTypeRequirementsFieldBuilder() { if (shipmentTypeRequirementsBuilder_ == null) { - shipmentTypeRequirementsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeRequirement, - com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, - com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder>( + shipmentTypeRequirementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentTypeRequirement, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder>( shipmentTypeRequirements_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), @@ -16306,37 +14140,26 @@ public Builder removeShipmentTypeRequirements(int index) { return shipmentTypeRequirementsBuilder_; } - private java.util.List - precedenceRules_ = java.util.Collections.emptyList(); - + private java.util.List precedenceRules_ = + java.util.Collections.emptyList(); private void ensurePrecedenceRulesIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { - precedenceRules_ = - new java.util.ArrayList( - precedenceRules_); + precedenceRules_ = new java.util.ArrayList(precedenceRules_); bitField0_ |= 0x00001000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> - precedenceRulesBuilder_; + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> precedenceRulesBuilder_; /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public java.util.List - getPrecedenceRulesList() { + public java.util.List getPrecedenceRulesList() { if (precedenceRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(precedenceRules_); } else { @@ -16344,15 +14167,11 @@ private void ensurePrecedenceRulesIsMutable() { } } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public int getPrecedenceRulesCount() { if (precedenceRulesBuilder_ == null) { @@ -16362,18 +14181,13 @@ public int getPrecedenceRulesCount() { } } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules(int index) { if (precedenceRulesBuilder_ == null) { return precedenceRules_.get(index); } else { @@ -16381,15 +14195,11 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPreceden } } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public Builder setPrecedenceRules( int index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule value) { @@ -16406,19 +14216,14 @@ public Builder setPrecedenceRules( return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public Builder setPrecedenceRules( - int index, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { if (precedenceRulesBuilder_ == null) { ensurePrecedenceRulesIsMutable(); precedenceRules_.set(index, builderForValue.build()); @@ -16429,18 +14234,13 @@ public Builder setPrecedenceRules( return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public Builder addPrecedenceRules( - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule value) { + public Builder addPrecedenceRules(com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule value) { if (precedenceRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16454,15 +14254,11 @@ public Builder addPrecedenceRules( return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public Builder addPrecedenceRules( int index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule value) { @@ -16479,15 +14275,11 @@ public Builder addPrecedenceRules( return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public Builder addPrecedenceRules( com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { @@ -16501,19 +14293,14 @@ public Builder addPrecedenceRules( return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public Builder addPrecedenceRules( - int index, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { if (precedenceRulesBuilder_ == null) { ensurePrecedenceRulesIsMutable(); precedenceRules_.add(index, builderForValue.build()); @@ -16524,22 +14311,18 @@ public Builder addPrecedenceRules( return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public Builder addAllPrecedenceRules( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (precedenceRulesBuilder_ == null) { ensurePrecedenceRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, precedenceRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, precedenceRules_); onChanged(); } else { precedenceRulesBuilder_.addAllMessages(values); @@ -16547,15 +14330,11 @@ public Builder addAllPrecedenceRules( return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public Builder clearPrecedenceRules() { if (precedenceRulesBuilder_ == null) { @@ -16568,15 +14347,11 @@ public Builder clearPrecedenceRules() { return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ public Builder removePrecedenceRules(int index) { if (precedenceRulesBuilder_ == null) { @@ -16589,53 +14364,39 @@ public Builder removePrecedenceRules(int index) { return this; } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder - getPrecedenceRulesBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder getPrecedenceRulesBuilder( + int index) { return getPrecedenceRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder - getPrecedenceRulesOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPrecedenceRulesOrBuilder( + int index) { if (precedenceRulesBuilder_ == null) { - return precedenceRules_.get(index); - } else { + return precedenceRules_.get(index); } else { return precedenceRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> - getPrecedenceRulesOrBuilderList() { + public java.util.List + getPrecedenceRulesOrBuilderList() { if (precedenceRulesBuilder_ != null) { return precedenceRulesBuilder_.getMessageOrBuilderList(); } else { @@ -16643,67 +14404,45 @@ public Builder removePrecedenceRules(int index) { } } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder - addPrecedenceRulesBuilder() { - return getPrecedenceRulesFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder addPrecedenceRulesBuilder() { + return getPrecedenceRulesFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()); } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder - addPrecedenceRulesBuilder(int index) { - return getPrecedenceRulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder addPrecedenceRulesBuilder( + int index) { + return getPrecedenceRulesFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()); } /** - * - * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - public java.util.List - getPrecedenceRulesBuilderList() { + public java.util.List + getPrecedenceRulesBuilderList() { return getPrecedenceRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> getPrecedenceRulesFieldBuilder() { if (precedenceRulesBuilder_ == null) { - precedenceRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder>( + precedenceRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder>( precedenceRules_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), @@ -16714,26 +14453,18 @@ public Builder removePrecedenceRules(int index) { } private java.util.List breakRules_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBreakRulesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - breakRules_ = - new java.util.ArrayList( - breakRules_); + breakRules_ = new java.util.ArrayList(breakRules_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, - com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> - breakRulesBuilder_; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> breakRulesBuilder_; /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16742,13 +14473,9 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getBreakRulesList() { + @java.lang.Deprecated public java.util.List getBreakRulesList() { if (breakRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(breakRules_); } else { @@ -16756,8 +14483,6 @@ private void ensureBreakRulesIsMutable() { } } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16766,12 +14491,9 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public int getBreakRulesCount() { + @java.lang.Deprecated public int getBreakRulesCount() { if (breakRulesBuilder_ == null) { return breakRules_.size(); } else { @@ -16779,8 +14501,6 @@ public int getBreakRulesCount() { } } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16789,12 +14509,9 @@ public int getBreakRulesCount() {
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index) { if (breakRulesBuilder_ == null) { return breakRules_.get(index); } else { @@ -16802,8 +14519,6 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(in } } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16812,12 +14527,9 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(in
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setBreakRules( + @java.lang.Deprecated public Builder setBreakRules( int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule value) { if (breakRulesBuilder_ == null) { if (value == null) { @@ -16832,8 +14544,6 @@ public Builder setBreakRules( return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16842,14 +14552,10 @@ public Builder setBreakRules(
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setBreakRules( - int index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { + @java.lang.Deprecated public Builder setBreakRules( + int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); breakRules_.set(index, builderForValue.build()); @@ -16860,8 +14566,6 @@ public Builder setBreakRules( return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16870,12 +14574,9 @@ public Builder setBreakRules(
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addBreakRules(com.google.cloud.optimization.v1.ShipmentModel.BreakRule value) { + @java.lang.Deprecated public Builder addBreakRules(com.google.cloud.optimization.v1.ShipmentModel.BreakRule value) { if (breakRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16889,8 +14590,6 @@ public Builder addBreakRules(com.google.cloud.optimization.v1.ShipmentModel.Brea return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16899,12 +14598,9 @@ public Builder addBreakRules(com.google.cloud.optimization.v1.ShipmentModel.Brea
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addBreakRules( + @java.lang.Deprecated public Builder addBreakRules( int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule value) { if (breakRulesBuilder_ == null) { if (value == null) { @@ -16919,8 +14615,6 @@ public Builder addBreakRules( return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16929,12 +14623,9 @@ public Builder addBreakRules(
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addBreakRules( + @java.lang.Deprecated public Builder addBreakRules( com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); @@ -16946,8 +14637,6 @@ public Builder addBreakRules( return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16956,14 +14645,10 @@ public Builder addBreakRules(
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addBreakRules( - int index, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { + @java.lang.Deprecated public Builder addBreakRules( + int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); breakRules_.add(index, builderForValue.build()); @@ -16974,8 +14659,6 @@ public Builder addBreakRules( return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -16984,17 +14667,14 @@ public Builder addBreakRules(
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllBreakRules( - java.lang.Iterable - values) { + @java.lang.Deprecated public Builder addAllBreakRules( + java.lang.Iterable values) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breakRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, breakRules_); onChanged(); } else { breakRulesBuilder_.addAllMessages(values); @@ -17002,8 +14682,6 @@ public Builder addAllBreakRules( return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -17012,12 +14690,9 @@ public Builder addAllBreakRules(
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearBreakRules() { + @java.lang.Deprecated public Builder clearBreakRules() { if (breakRulesBuilder_ == null) { breakRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); @@ -17028,8 +14703,6 @@ public Builder clearBreakRules() { return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -17038,12 +14711,9 @@ public Builder clearBreakRules() {
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeBreakRules(int index) { + @java.lang.Deprecated public Builder removeBreakRules(int index) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); breakRules_.remove(index); @@ -17054,8 +14724,6 @@ public Builder removeBreakRules(int index) { return this; } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -17064,18 +14732,13 @@ public Builder removeBreakRules(int index) {
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder getBreakRulesBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder getBreakRulesBuilder( int index) { return getBreakRulesFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -17084,22 +14747,16 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder getBreak
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( int index) { if (breakRulesBuilder_ == null) { - return breakRules_.get(index); - } else { + return breakRules_.get(index); } else { return breakRulesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -17108,14 +14765,10 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBrea
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> - getBreakRulesOrBuilderList() { + @java.lang.Deprecated public java.util.List + getBreakRulesOrBuilderList() { if (breakRulesBuilder_ != null) { return breakRulesBuilder_.getMessageOrBuilderList(); } else { @@ -17123,8 +14776,6 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBrea } } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -17133,19 +14784,13 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBrea
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreakRulesBuilder() { - return getBreakRulesFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreakRulesBuilder() { + return getBreakRulesFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()); } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -17154,20 +14799,14 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreak
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreakRulesBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreakRulesBuilder( int index) { - return getBreakRulesFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()); + return getBreakRulesFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()); } /** - * - * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -17176,35 +14815,29 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreak
      * field (which must be a singleton).
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getBreakRulesBuilderList() { + @java.lang.Deprecated public java.util.List + getBreakRulesBuilderList() { return getBreakRulesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, - com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.BreakRule, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> getBreakRulesFieldBuilder() { if (breakRulesBuilder_ == null) { - breakRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule, - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, - com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder>( - breakRules_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + breakRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder>( + breakRules_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); breakRules_ = null; } return breakRulesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -17214,12 +14847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel) private static final com.google.cloud.optimization.v1.ShipmentModel DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel(); } @@ -17228,27 +14861,27 @@ public static com.google.cloud.optimization.v1.ShipmentModel getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShipmentModel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShipmentModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -17263,4 +14896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentModel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java similarity index 86% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java index 6c11dbe69a5b..ae98542b781e 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentModelOrBuilder - extends +public interface ShipmentModelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - java.util.List getShipmentsList(); + java.util.List + getShipmentsList(); /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
@@ -44,8 +25,6 @@ public interface ShipmentModelOrBuilder */ com.google.cloud.optimization.v1.Shipment getShipments(int index); /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
@@ -54,40 +33,34 @@ public interface ShipmentModelOrBuilder */ int getShipmentsCount(); /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - java.util.List + java.util.List getShipmentsOrBuilderList(); /** - * - * *
    * Set of shipments which must be performed in the model.
    * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder(int index); + com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( + int index); /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - java.util.List getVehiclesList(); + java.util.List + getVehiclesList(); /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -96,8 +69,6 @@ public interface ShipmentModelOrBuilder */ com.google.cloud.optimization.v1.Vehicle getVehicles(int index); /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -106,30 +77,25 @@ public interface ShipmentModelOrBuilder */ int getVehiclesCount(); /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - java.util.List + java.util.List getVehiclesOrBuilderList(); /** - * - * *
    * Set of vehicles which can be used to perform visits.
    * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(int index); + com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder( + int index); /** - * - * *
    * Constrains the maximum number of active vehicles. A vehicle is active if
    * its route performs at least one shipment. This can be used to limit the
@@ -140,13 +106,10 @@ public interface ShipmentModelOrBuilder
    * 
* * optional int32 max_active_vehicles = 4; - * * @return Whether the maxActiveVehicles field is set. */ boolean hasMaxActiveVehicles(); /** - * - * *
    * Constrains the maximum number of active vehicles. A vehicle is active if
    * its route performs at least one shipment. This can be used to limit the
@@ -157,14 +120,11 @@ public interface ShipmentModelOrBuilder
    * 
* * optional int32 max_active_vehicles = 4; - * * @return The maxActiveVehicles. */ int getMaxActiveVehicles(); /** - * - * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -180,13 +140,10 @@ public interface ShipmentModelOrBuilder
    * 
* * .google.protobuf.Timestamp global_start_time = 5; - * * @return Whether the globalStartTime field is set. */ boolean hasGlobalStartTime(); /** - * - * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -202,13 +159,10 @@ public interface ShipmentModelOrBuilder
    * 
* * .google.protobuf.Timestamp global_start_time = 5; - * * @return The globalStartTime. */ com.google.protobuf.Timestamp getGlobalStartTime(); /** - * - * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -228,34 +182,26 @@ public interface ShipmentModelOrBuilder
   com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
    * 
* * .google.protobuf.Timestamp global_end_time = 6; - * * @return Whether the globalEndTime field is set. */ boolean hasGlobalEndTime(); /** - * - * *
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
    * 
* * .google.protobuf.Timestamp global_end_time = 6; - * * @return The globalEndTime. */ com.google.protobuf.Timestamp getGlobalEndTime(); /** - * - * *
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
@@ -266,8 +212,6 @@ public interface ShipmentModelOrBuilder
   com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The "global duration" of the overall plan is the difference between the
    * earliest effective start time and the latest effective end time of
@@ -278,14 +222,11 @@ public interface ShipmentModelOrBuilder
    * 
* * double global_duration_cost_per_hour = 7; - * * @return The globalDurationCostPerHour. */ double getGlobalDurationCostPerHour(); /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -376,15 +317,11 @@ public interface ShipmentModelOrBuilder
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - java.util.List + java.util.List getDurationDistanceMatricesList(); /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -475,15 +412,10 @@ public interface ShipmentModelOrBuilder
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices( - int index); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices(int index); /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -574,14 +506,10 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ int getDurationDistanceMatricesCount(); /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -672,16 +600,11 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> + java.util.List getDurationDistanceMatricesOrBuilderList(); /** - * - * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -772,16 +695,12 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * ```
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; */ - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder - getDurationDistanceMatricesOrBuilder(int index); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder getDurationDistanceMatricesOrBuilder( + int index); /** - * - * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -799,13 +718,11 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @return A list containing the durationDistanceMatrixSrcTags. */ - java.util.List getDurationDistanceMatrixSrcTagsList(); + java.util.List + getDurationDistanceMatrixSrcTagsList(); /** - * - * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -823,13 +740,10 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @return The count of durationDistanceMatrixSrcTags. */ int getDurationDistanceMatrixSrcTagsCount(); /** - * - * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -847,14 +761,11 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param index The index of the element to return. * @return The durationDistanceMatrixSrcTags at the given index. */ java.lang.String getDurationDistanceMatrixSrcTags(int index); /** - * - * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -872,15 +783,13 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * 
* * repeated string duration_distance_matrix_src_tags = 9; - * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixSrcTags at the given index. */ - com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int index); + com.google.protobuf.ByteString + getDurationDistanceMatrixSrcTagsBytes(int index); /** - * - * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -900,13 +809,11 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @return A list containing the durationDistanceMatrixDstTags. */ - java.util.List getDurationDistanceMatrixDstTagsList(); + java.util.List + getDurationDistanceMatrixDstTagsList(); /** - * - * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -926,13 +833,10 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @return The count of durationDistanceMatrixDstTags. */ int getDurationDistanceMatrixDstTagsCount(); /** - * - * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -952,14 +856,11 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param index The index of the element to return. * @return The durationDistanceMatrixDstTags at the given index. */ java.lang.String getDurationDistanceMatrixDstTags(int index); /** - * - * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -979,267 +880,189 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDuratio
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; - * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixDstTags at the given index. */ - com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int index); + com.google.protobuf.ByteString + getDurationDistanceMatrixDstTagsBytes(int index); /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - java.util.List + java.util.List getTransitionAttributesList(); /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttributes(int index); /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ int getTransitionAttributesCount(); /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ - java.util.List + java.util.List getTransitionAttributesOrBuilderList(); /** - * - * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; - * + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; */ com.google.cloud.optimization.v1.TransitionAttributesOrBuilder getTransitionAttributesOrBuilder( int index); /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - java.util.List + java.util.List getShipmentTypeIncompatibilitiesList(); /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeIncompatibilities( - int index); + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeIncompatibilities(int index); /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ int getShipmentTypeIncompatibilitiesCount(); /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - java.util.List + java.util.List getShipmentTypeIncompatibilitiesOrBuilderList(); /** - * - * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; */ - com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder - getShipmentTypeIncompatibilitiesOrBuilder(int index); + com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder getShipmentTypeIncompatibilitiesOrBuilder( + int index); /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - java.util.List + java.util.List getShipmentTypeRequirementsList(); /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements(int index); /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ int getShipmentTypeRequirementsCount(); /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - java.util.List + java.util.List getShipmentTypeRequirementsOrBuilderList(); /** - * - * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; - * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; */ - com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder - getShipmentTypeRequirementsOrBuilder(int index); + com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder getShipmentTypeRequirementsOrBuilder( + int index); /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - java.util.List + java.util.List getPrecedenceRulesList(); /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules(int index); /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ int getPrecedenceRulesCount(); /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - java.util.List + java.util.List getPrecedenceRulesOrBuilderList(); /** - * - * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; */ - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder - getPrecedenceRulesOrBuilder(int index); + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPrecedenceRulesOrBuilder( + int index); /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1248,15 +1071,11 @@ com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeInco
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getBreakRulesList(); + @java.lang.Deprecated java.util.List + getBreakRulesList(); /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1265,15 +1084,10 @@ com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeInco
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index); /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1282,15 +1096,10 @@ com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeInco
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - int getBreakRulesCount(); + @java.lang.Deprecated int getBreakRulesCount(); /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1299,16 +1108,11 @@ com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeInco
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getBreakRulesOrBuilderList(); /** - * - * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1317,11 +1121,8 @@ com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeInco
    * field (which must be a singleton).
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( + @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( int index); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java similarity index 90% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java index 605ba9de29c0..cb4a3168defb 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentOrBuilder - extends +public interface ShipmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Shipment) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -33,10 +15,9 @@ public interface ShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
    */
-  java.util.List getPickupsList();
+  java.util.List 
+      getPickupsList();
   /**
-   *
-   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -46,8 +27,6 @@ public interface ShipmentOrBuilder
    */
   com.google.cloud.optimization.v1.Shipment.VisitRequest getPickups(int index);
   /**
-   *
-   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -57,8 +36,6 @@ public interface ShipmentOrBuilder
    */
   int getPickupsCount();
   /**
-   *
-   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -66,11 +43,9 @@ public interface ShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
    */
-  java.util.List
+  java.util.List 
       getPickupsOrBuilderList();
   /**
-   *
-   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -78,11 +53,10 @@ public interface ShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
    */
-  com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuilder(int index);
+  com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -90,10 +64,9 @@ public interface ShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
-  java.util.List getDeliveriesList();
+  java.util.List 
+      getDeliveriesList();
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -103,8 +76,6 @@ public interface ShipmentOrBuilder
    */
   com.google.cloud.optimization.v1.Shipment.VisitRequest getDeliveries(int index);
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -114,8 +85,6 @@ public interface ShipmentOrBuilder
    */
   int getDeliveriesCount();
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -123,11 +92,9 @@ public interface ShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
-  java.util.List
+  java.util.List 
       getDeliveriesOrBuilderList();
   /**
-   *
-   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -135,11 +102,10 @@ public interface ShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
-  com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDeliveriesOrBuilder(int index);
+  com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDeliveriesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -153,8 +119,6 @@ public interface ShipmentOrBuilder
    */
   int getLoadDemandsCount();
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -166,13 +130,15 @@ public interface ShipmentOrBuilder
    *
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
-  boolean containsLoadDemands(java.lang.String key);
-  /** Use {@link #getLoadDemandsMap()} instead. */
+  boolean containsLoadDemands(
+      java.lang.String key);
+  /**
+   * Use {@link #getLoadDemandsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLoadDemands();
+  java.util.Map
+  getLoadDemands();
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -185,10 +151,8 @@ public interface ShipmentOrBuilder
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   java.util.Map
-      getLoadDemandsMap();
+  getLoadDemandsMap();
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -201,13 +165,11 @@ public interface ShipmentOrBuilder
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   /* nullable */
-  com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.cloud.optimization.v1.Shipment.Load defaultValue);
+com.google.cloud.optimization.v1.Shipment.Load defaultValue);
   /**
-   *
-   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -219,11 +181,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    *
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
-  com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(java.lang.String key);
+  com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * If the shipment is not completed, this penalty is added to the overall
    * cost of the routes. A shipment is considered completed if one of its pickup
@@ -236,13 +197,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * optional double penalty_cost = 4; - * * @return Whether the penaltyCost field is set. */ boolean hasPenaltyCost(); /** - * - * *
    * If the shipment is not completed, this penalty is added to the overall
    * cost of the routes. A shipment is considered completed if one of its pickup
@@ -255,14 +213,11 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * optional double penalty_cost = 4; - * * @return The penaltyCost. */ double getPenaltyCost(); /** - * - * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -270,13 +225,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @return A list containing the allowedVehicleIndices. */ java.util.List getAllowedVehicleIndicesList(); /** - * - * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -284,13 +236,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @return The count of allowedVehicleIndices. */ int getAllowedVehicleIndicesCount(); /** - * - * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -298,15 +247,12 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated int32 allowed_vehicle_indices = 5; - * * @param index The index of the element to return. * @return The allowedVehicleIndices at the given index. */ int getAllowedVehicleIndices(int index); /** - * - * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -322,13 +268,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated double costs_per_vehicle = 6; - * * @return A list containing the costsPerVehicle. */ java.util.List getCostsPerVehicleList(); /** - * - * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -344,13 +287,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated double costs_per_vehicle = 6; - * * @return The count of costsPerVehicle. */ int getCostsPerVehicleCount(); /** - * - * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -366,15 +306,12 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated double costs_per_vehicle = 6; - * * @param index The index of the element to return. * @return The costsPerVehicle at the given index. */ double getCostsPerVehicle(int index); /** - * - * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -383,13 +320,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @return A list containing the costsPerVehicleIndices. */ java.util.List getCostsPerVehicleIndicesList(); /** - * - * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -398,13 +332,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @return The count of costsPerVehicleIndices. */ int getCostsPerVehicleIndicesCount(); /** - * - * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -413,15 +344,12 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * repeated int32 costs_per_vehicle_indices = 7; - * * @param index The index of the element to return. * @return The costsPerVehicleIndices at the given index. */ int getCostsPerVehicleIndices(int index); /** - * - * *
    * Specifies the maximum relative detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -443,13 +371,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; - * * @return Whether the pickupToDeliveryRelativeDetourLimit field is set. */ boolean hasPickupToDeliveryRelativeDetourLimit(); /** - * - * *
    * Specifies the maximum relative detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -471,14 +396,11 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; - * * @return The pickupToDeliveryRelativeDetourLimit. */ double getPickupToDeliveryRelativeDetourLimit(); /** - * - * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -500,13 +422,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; - * * @return Whether the pickupToDeliveryAbsoluteDetourLimit field is set. */ boolean hasPickupToDeliveryAbsoluteDetourLimit(); /** - * - * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -528,13 +447,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; - * * @return The pickupToDeliveryAbsoluteDetourLimit. */ com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit(); /** - * - * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -560,8 +476,6 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
   com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLimitOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -572,13 +486,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; - * * @return Whether the pickupToDeliveryTimeLimit field is set. */ boolean hasPickupToDeliveryTimeLimit(); /** - * - * *
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -589,13 +500,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; - * * @return The pickupToDeliveryTimeLimit. */ com.google.protobuf.Duration getPickupToDeliveryTimeLimit(); /** - * - * *
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -610,8 +518,6 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
   com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuilder();
 
   /**
-   *
-   *
    * 
    * Non-empty string specifying a "type" for this shipment.
    * This feature can be used to define incompatibilities or requirements
@@ -624,13 +530,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * string shipment_type = 11; - * * @return The shipmentType. */ java.lang.String getShipmentType(); /** - * - * *
    * Non-empty string specifying a "type" for this shipment.
    * This feature can be used to define incompatibilities or requirements
@@ -643,14 +546,12 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * string shipment_type = 11; - * * @return The bytes for shipmentType. */ - com.google.protobuf.ByteString getShipmentTypeBytes(); + com.google.protobuf.ByteString + getShipmentTypeBytes(); /** - * - * *
    * Specifies a label for this shipment. This label is reported in the response
    * in the `shipment_label` of the corresponding
@@ -658,13 +559,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * string label = 12; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
    * Specifies a label for this shipment. This label is reported in the response
    * in the `shipment_label` of the corresponding
@@ -672,14 +570,12 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * string label = 12; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
    * If true, skip this shipment, but don't apply a `penalty_cost`.
    *
@@ -693,80 +589,61 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    * 
* * bool ignore = 13; - * * @return The ignore. */ boolean getIgnore(); /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getDemandsList(); + @java.lang.Deprecated java.util.List + getDemandsList(); /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - int getDemandsCount(); + @java.lang.Deprecated int getDemandsCount(); /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getDemandsOrBuilderList(); /** - * - * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + int index); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java similarity index 73% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java index 57f3c3eb0166..20f3c77c93fd 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * A vehicle's route can be decomposed, along the time axis, like this (we
  * assume there are n visits):
@@ -110,16 +93,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute}
  */
-public final class ShipmentRoute extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ShipmentRoute extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute)
     ShipmentRouteOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ShipmentRoute.newBuilder() to construct.
   private ShipmentRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ShipmentRoute() {
     vehicleLabel_ = "";
     visits_ = java.util.Collections.emptyList();
@@ -131,69 +113,59 @@ private ShipmentRoute() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ShipmentRoute();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 17:
         return internalGetRouteCosts();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.ShipmentRoute.class,
-            com.google.cloud.optimization.v1.ShipmentRoute.Builder.class);
+            com.google.cloud.optimization.v1.ShipmentRoute.class, com.google.cloud.optimization.v1.ShipmentRoute.Builder.class);
   }
 
-  @java.lang.Deprecated
-  public interface DelayOrBuilder
-      extends
+  @java.lang.Deprecated public interface DelayOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.Delay)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Start of the delay.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
      * Start of the delay.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
      * Start of the delay.
      * 
@@ -203,32 +175,24 @@ public interface DelayOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
      * Duration of the delay.
      * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
      * Duration of the delay.
      * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
      * Duration of the delay.
      * 
@@ -238,8 +202,6 @@ public interface DelayOrBuilder com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
@@ -249,51 +211,46 @@ public interface DelayOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Delay}
    */
-  @java.lang.Deprecated
-  public static final class Delay extends com.google.protobuf.GeneratedMessageV3
-      implements
+  @java.lang.Deprecated public static final class Delay extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.Delay)
       DelayOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Delay.newBuilder() to construct.
     private Delay(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private Delay() {}
+    private Delay() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Delay();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.Delay.class,
-              com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.Delay.class, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder.class);
     }
 
     public static final int START_TIME_FIELD_NUMBER = 1;
     private com.google.protobuf.Timestamp startTime_;
     /**
-     *
-     *
      * 
      * Start of the delay.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -301,14 +258,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
      * Start of the delay.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -316,8 +270,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
      * Start of the delay.
      * 
@@ -332,14 +284,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** - * - * *
      * Duration of the delay.
      * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -347,14 +296,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
      * Duration of the delay.
      * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ @java.lang.Override @@ -362,8 +308,6 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
      * Duration of the delay.
      * 
@@ -376,7 +320,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,7 +331,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -405,10 +349,12 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -418,21 +364,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.Delay)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.Delay other = - (com.google.cloud.optimization.v1.ShipmentRoute.Delay) obj; + com.google.cloud.optimization.v1.ShipmentRoute.Delay other = (com.google.cloud.optimization.v1.ShipmentRoute.Delay) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -459,94 +406,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.Delay prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Delay prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -556,8 +498,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
@@ -567,33 +507,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Delay}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.Delay)
         com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.Delay.class,
-                com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.Delay.class, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.Delay.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -612,9 +552,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
       }
 
       @java.lang.Override
@@ -633,11 +573,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Delay build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.Delay buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.Delay result =
-            new com.google.cloud.optimization.v1.ShipmentRoute.Delay(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.ShipmentRoute.Delay result = new com.google.cloud.optimization.v1.ShipmentRoute.Delay(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -645,10 +582,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Delay buildPartial() {
       private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Delay result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+          result.startTime_ = startTimeBuilder_ == null
+              ? startTime_
+              : startTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
+          result.duration_ = durationBuilder_ == null
+              ? duration_
+              : durationBuilder_.build();
         }
       }
 
@@ -656,41 +597,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Delay
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.Delay) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Delay) other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Delay)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -698,8 +636,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Delay other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) return this;
         if (other.hasStartTime()) {
           mergeStartTime(other.getStartTime());
         }
@@ -732,25 +669,26 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getStartTimeFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -760,52 +698,38 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.Timestamp startTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
-          startTimeBuilder_;
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
       /**
-       *
-       *
        * 
        * Start of the delay.
        * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Start of the delay.
        * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** - * - * *
        * Start of the delay.
        * 
@@ -826,15 +750,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Start of the delay.
        * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -845,8 +768,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
        * Start of the delay.
        * 
@@ -855,9 +776,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -870,8 +791,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Start of the delay.
        * 
@@ -889,8 +808,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
        * Start of the delay.
        * 
@@ -903,8 +820,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Start of the delay.
        * 
@@ -915,14 +830,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
        * Start of the delay.
        * 
@@ -930,17 +842,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -948,33 +857,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
        * Duration of the delay.
        * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Duration of the delay.
        * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -985,8 +885,6 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
        * Duration of the delay.
        * 
@@ -1007,15 +905,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Duration of the delay.
        * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -1026,8 +923,6 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
        * Duration of the delay.
        * 
@@ -1036,9 +931,9 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -1051,8 +946,6 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Duration of the delay.
        * 
@@ -1070,8 +963,6 @@ public Builder clearDuration() { return this; } /** - * - * *
        * Duration of the delay.
        * 
@@ -1084,8 +975,6 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** - * - * *
        * Duration of the delay.
        * 
@@ -1096,12 +985,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
        * Duration of the delay.
        * 
@@ -1109,22 +997,18 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1137,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.Delay) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.Delay) private static final com.google.cloud.optimization.v1.ShipmentRoute.Delay DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.Delay(); } @@ -1151,28 +1035,27 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.Delay getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Delay parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Delay parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1187,58 +1070,47 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface VisitOrBuilder - extends + public interface VisitOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.Visit) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Index of the `shipments` field in the source
      * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
      * 
* * int32 shipment_index = 1; - * * @return The shipmentIndex. */ int getShipmentIndex(); /** - * - * *
      * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
      * corresponds to a delivery.
      * 
* * bool is_pickup = 2; - * * @return The isPickup. */ boolean getIsPickup(); /** - * - * *
      * Index of `VisitRequest` in either the pickup or delivery field of the
      * `Shipment` (see `is_pickup`).
      * 
* * int32 visit_request_index = 3; - * * @return The visitRequestIndex. */ int getVisitRequestIndex(); /** - * - * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1246,13 +1118,10 @@ public interface VisitOrBuilder
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1260,13 +1129,10 @@ public interface VisitOrBuilder
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1278,8 +1144,6 @@ public interface VisitOrBuilder
     com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1288,13 +1152,10 @@ public interface VisitOrBuilder
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ int getLoadDemandsCount(); /** - * - * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1303,17 +1164,17 @@ public interface VisitOrBuilder
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + */ + boolean containsLoadDemands( + java.lang.String key); + /** + * Use {@link #getLoadDemandsMap()} instead. */ - boolean containsLoadDemands(java.lang.String key); - /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Deprecated java.util.Map - getLoadDemands(); + getLoadDemands(); /** - * - * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1322,14 +1183,11 @@ public interface VisitOrBuilder
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ java.util.Map - getLoadDemandsMap(); + getLoadDemandsMap(); /** - * - * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1338,17 +1196,14 @@ public interface VisitOrBuilder
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( +com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load defaultValue); +com.google.cloud.optimization.v1.Shipment.Load defaultValue); /** - * - * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1357,14 +1212,12 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ - com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(java.lang.String key); + com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( + java.lang.String key); /** - * - * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1384,13 +1237,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * .google.protobuf.Duration detour = 6; - * * @return Whether the detour field is set. */ boolean hasDetour(); /** - * - * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1410,13 +1260,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * .google.protobuf.Duration detour = 6; - * * @return The detour. */ com.google.protobuf.Duration getDetour(); /** - * - * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1440,35 +1287,28 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
     com.google.protobuf.DurationOrBuilder getDetourOrBuilder();
 
     /**
-     *
-     *
      * 
      * Copy of the corresponding `Shipment.label`, if specified in the
      * `Shipment`.
      * 
* * string shipment_label = 7; - * * @return The shipmentLabel. */ java.lang.String getShipmentLabel(); /** - * - * *
      * Copy of the corresponding `Shipment.label`, if specified in the
      * `Shipment`.
      * 
* * string shipment_label = 7; - * * @return The bytes for shipmentLabel. */ - com.google.protobuf.ByteString getShipmentLabelBytes(); + com.google.protobuf.ByteString + getShipmentLabelBytes(); /** - * - * *
      * Copy of the corresponding
      * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -1476,13 +1316,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * string visit_label = 8; - * * @return The visitLabel. */ java.lang.String getVisitLabel(); /** - * - * *
      * Copy of the corresponding
      * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -1490,14 +1327,12 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * 
* * string visit_label = 8; - * * @return The bytes for visitLabel. */ - com.google.protobuf.ByteString getVisitLabelBytes(); + com.google.protobuf.ByteString + getVisitLabelBytes(); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1510,15 +1345,11 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getArrivalLoadsList(); + @java.lang.Deprecated java.util.List + getArrivalLoadsList(); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1531,15 +1362,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1552,15 +1378,10 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - int getArrivalLoadsCount(); + @java.lang.Deprecated int getArrivalLoadsCount(); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1573,16 +1394,11 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getArrivalLoadsOrBuilderList(); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1595,147 +1411,103 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( + int index); /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1935 + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return Whether the delayBeforeStart field is set. */ - @java.lang.Deprecated - boolean hasDelayBeforeStart(); + @java.lang.Deprecated boolean hasDelayBeforeStart(); /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1935 + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return The delayBeforeStart. */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart(); + @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart(); /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder(); + @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder(); /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getDemandsList(); + @java.lang.Deprecated java.util.List + getDemandsList(); /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - int getDemandsCount(); + @java.lang.Deprecated int getDemandsCount(); /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getDemandsOrBuilderList(); /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + int index); } /** - * - * *
    * A visit performed during a route. This visit corresponds to a pickup or a
    * delivery of a `Shipment`.
@@ -1743,16 +1515,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Visit}
    */
-  public static final class Visit extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Visit extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.Visit)
       VisitOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Visit.newBuilder() to construct.
     private Visit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Visit() {
       shipmentLabel_ = "";
       visitLabel_ = "";
@@ -1762,48 +1533,45 @@ private Visit() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Visit();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
     @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 11:
           return internalGetLoadDemands();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.Visit.class,
-              com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.Visit.class, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder.class);
     }
 
     public static final int SHIPMENT_INDEX_FIELD_NUMBER = 1;
     private int shipmentIndex_ = 0;
     /**
-     *
-     *
      * 
      * Index of the `shipments` field in the source
      * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
      * 
* * int32 shipment_index = 1; - * * @return The shipmentIndex. */ @java.lang.Override @@ -1814,15 +1582,12 @@ public int getShipmentIndex() { public static final int IS_PICKUP_FIELD_NUMBER = 2; private boolean isPickup_ = false; /** - * - * *
      * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
      * corresponds to a delivery.
      * 
* * bool is_pickup = 2; - * * @return The isPickup. */ @java.lang.Override @@ -1833,15 +1598,12 @@ public boolean getIsPickup() { public static final int VISIT_REQUEST_INDEX_FIELD_NUMBER = 3; private int visitRequestIndex_ = 0; /** - * - * *
      * Index of `VisitRequest` in either the pickup or delivery field of the
      * `Shipment` (see `is_pickup`).
      * 
* * int32 visit_request_index = 3; - * * @return The visitRequestIndex. */ @java.lang.Override @@ -1852,8 +1614,6 @@ public int getVisitRequestIndex() { public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1861,7 +1621,6 @@ public int getVisitRequestIndex() {
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -1869,8 +1628,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1878,7 +1635,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ @java.lang.Override @@ -1886,8 +1642,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1902,43 +1656,32 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
     }
 
     public static final int LOAD_DEMANDS_FIELD_NUMBER = 11;
-
     private static final class LoadDemandsDefaultEntryHolder {
       static final com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-          defaultEntry =
+          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> defaultEntry =
               com.google.protobuf.MapEntry
-                  .
-                      newDefaultInstance(
-                          com.google.cloud.optimization.v1.FleetRoutingProto
-                              .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor,
-                          com.google.protobuf.WireFormat.FieldType.STRING,
-                          "",
-                          com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                          com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance());
+              .newDefaultInstance(
+                  com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor, 
+                  com.google.protobuf.WireFormat.FieldType.STRING,
+                  "",
+                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                  com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance());
     }
-
     @SuppressWarnings("serial")
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-        loadDemands_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-        internalGetLoadDemands() {
+        java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_;
+    private com.google.protobuf.MapField
+    internalGetLoadDemands() {
       if (loadDemands_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             LoadDemandsDefaultEntryHolder.defaultEntry);
       }
       return loadDemands_;
     }
-
     public int getLoadDemandsCount() {
       return internalGetLoadDemands().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1947,26 +1690,23 @@ public int getLoadDemandsCount() {
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ @java.lang.Override - public boolean containsLoadDemands(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLoadDemands( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLoadDemands().getMap().containsKey(key); } - /** Use {@link #getLoadDemandsMap()} instead. */ + /** + * Use {@link #getLoadDemandsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getLoadDemands() { + public java.util.Map getLoadDemands() { return getLoadDemandsMap(); } /** - * - * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1975,17 +1715,13 @@ public boolean containsLoadDemands(java.lang.String key) {
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ @java.lang.Override - public java.util.Map - getLoadDemandsMap() { + public java.util.Map getLoadDemandsMap() { return internalGetLoadDemands().getMap(); } /** - * - * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1994,24 +1730,20 @@ public boolean containsLoadDemands(java.lang.String key) {
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( + public /* nullable */ +com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.optimization.v1.Shipment.Load defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -2020,15 +1752,12 @@ public boolean containsLoadDemands(java.lang.String key) {
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -2040,8 +1769,6 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( public static final int DETOUR_FIELD_NUMBER = 6; private com.google.protobuf.Duration detour_; /** - * - * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -2061,7 +1788,6 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * .google.protobuf.Duration detour = 6; - * * @return Whether the detour field is set. */ @java.lang.Override @@ -2069,8 +1795,6 @@ public boolean hasDetour() { return detour_ != null; } /** - * - * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -2090,7 +1814,6 @@ public boolean hasDetour() {
      * 
* * .google.protobuf.Duration detour = 6; - * * @return The detour. */ @java.lang.Override @@ -2098,8 +1821,6 @@ public com.google.protobuf.Duration getDetour() { return detour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : detour_; } /** - * - * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -2126,19 +1847,15 @@ public com.google.protobuf.DurationOrBuilder getDetourOrBuilder() {
     }
 
     public static final int SHIPMENT_LABEL_FIELD_NUMBER = 7;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object shipmentLabel_ = "";
     /**
-     *
-     *
      * 
      * Copy of the corresponding `Shipment.label`, if specified in the
      * `Shipment`.
      * 
* * string shipment_label = 7; - * * @return The shipmentLabel. */ @java.lang.Override @@ -2147,30 +1864,30 @@ public java.lang.String getShipmentLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shipmentLabel_ = s; return s; } } /** - * - * *
      * Copy of the corresponding `Shipment.label`, if specified in the
      * `Shipment`.
      * 
* * string shipment_label = 7; - * * @return The bytes for shipmentLabel. */ @java.lang.Override - public com.google.protobuf.ByteString getShipmentLabelBytes() { + public com.google.protobuf.ByteString + getShipmentLabelBytes() { java.lang.Object ref = shipmentLabel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shipmentLabel_ = b; return b; } else { @@ -2179,12 +1896,9 @@ public com.google.protobuf.ByteString getShipmentLabelBytes() { } public static final int VISIT_LABEL_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object visitLabel_ = ""; /** - * - * *
      * Copy of the corresponding
      * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -2192,7 +1906,6 @@ public com.google.protobuf.ByteString getShipmentLabelBytes() {
      * 
* * string visit_label = 8; - * * @return The visitLabel. */ @java.lang.Override @@ -2201,15 +1914,14 @@ public java.lang.String getVisitLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); visitLabel_ = s; return s; } } /** - * - * *
      * Copy of the corresponding
      * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -2217,15 +1929,16 @@ public java.lang.String getVisitLabel() {
      * 
* * string visit_label = 8; - * * @return The bytes for visitLabel. */ @java.lang.Override - public com.google.protobuf.ByteString getVisitLabelBytes() { + public com.google.protobuf.ByteString + getVisitLabelBytes() { java.lang.Object ref = visitLabel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); visitLabel_ = b; return b; } else { @@ -2234,12 +1947,9 @@ public com.google.protobuf.ByteString getVisitLabelBytes() { } public static final int ARRIVAL_LOADS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List arrivalLoads_; /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -2252,18 +1962,13 @@ public com.google.protobuf.ByteString getVisitLabelBytes() {
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getArrivalLoadsList() { + @java.lang.Deprecated public java.util.List getArrivalLoadsList() { return arrivalLoads_; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -2276,19 +1981,14 @@ public java.util.List getArri
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getArrivalLoadsOrBuilderList() { return arrivalLoads_; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -2301,18 +2001,13 @@ public java.util.List getArri
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getArrivalLoadsCount() { + @java.lang.Deprecated public int getArrivalLoadsCount() { return arrivalLoads_.size(); } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -2325,18 +2020,13 @@ public int getArrivalLoadsCount() {
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index) { return arrivalLoads_.get(index); } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -2349,13 +2039,10 @@ public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int ind
      * and that don't have any non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( int index) { return arrivalLoads_.get(index); } @@ -2363,172 +2050,123 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoad public static final int DELAY_BEFORE_START_FIELD_NUMBER = 10; private com.google.cloud.optimization.v1.ShipmentRoute.Delay delayBeforeStart_; /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1935 + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return Whether the delayBeforeStart field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasDelayBeforeStart() { + @java.lang.Deprecated public boolean hasDelayBeforeStart() { return delayBeforeStart_ != null; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1935 + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return The delayBeforeStart. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart() { - return delayBeforeStart_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() - : delayBeforeStart_; + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart() { + return delayBeforeStart_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeStart_; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder - getDelayBeforeStartOrBuilder() { - return delayBeforeStart_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() - : delayBeforeStart_; + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder() { + return delayBeforeStart_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeStart_; } public static final int DEMANDS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List demands_; /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getDemandsList() { + @java.lang.Deprecated public java.util.List getDemandsList() { return demands_; } /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getDemandsOrBuilderList() { return demands_; } /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getDemandsCount() { + @java.lang.Deprecated public int getDemandsCount() { return demands_.size(); } /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { return demands_.get(index); } /** - * - * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { return demands_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2540,7 +2178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (shipmentIndex_ != 0) { output.writeInt32(1, shipmentIndex_); } @@ -2571,8 +2210,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (delayBeforeStart_ != null) { output.writeMessage(10, getDelayBeforeStart()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLoadDemands(), LoadDemandsDefaultEntryHolder.defaultEntry, 11); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLoadDemands(), + LoadDemandsDefaultEntryHolder.defaultEntry, + 11); getUnknownFields().writeTo(output); } @@ -2583,22 +2226,28 @@ public int getSerializedSize() { size = 0; if (shipmentIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, shipmentIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, shipmentIndex_); } if (isPickup_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPickup_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isPickup_); } if (visitRequestIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, visitRequestIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, visitRequestIndex_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } for (int i = 0; i < demands_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, demands_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, demands_.get(i)); } if (detour_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDetour()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDetour()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shipmentLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, shipmentLabel_); @@ -2607,22 +2256,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, visitLabel_); } for (int i = 0; i < arrivalLoads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, arrivalLoads_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, arrivalLoads_.get(i)); } if (delayBeforeStart_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDelayBeforeStart()); - } - for (java.util.Map.Entry - entry : internalGetLoadDemands().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> - loadDemands__ = - LoadDemandsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, loadDemands__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getDelayBeforeStart()); + } + for (java.util.Map.Entry entry + : internalGetLoadDemands().getMap().entrySet()) { + com.google.protobuf.MapEntry + loadDemands__ = LoadDemandsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, loadDemands__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2632,34 +2281,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.Visit)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.Visit other = - (com.google.cloud.optimization.v1.ShipmentRoute.Visit) obj; + com.google.cloud.optimization.v1.ShipmentRoute.Visit other = (com.google.cloud.optimization.v1.ShipmentRoute.Visit) obj; - if (getShipmentIndex() != other.getShipmentIndex()) return false; - if (getIsPickup() != other.getIsPickup()) return false; - if (getVisitRequestIndex() != other.getVisitRequestIndex()) return false; + if (getShipmentIndex() + != other.getShipmentIndex()) return false; + if (getIsPickup() + != other.getIsPickup()) return false; + if (getVisitRequestIndex() + != other.getVisitRequestIndex()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } - if (!internalGetLoadDemands().equals(other.internalGetLoadDemands())) return false; + if (!internalGetLoadDemands().equals( + other.internalGetLoadDemands())) return false; if (hasDetour() != other.hasDetour()) return false; if (hasDetour()) { - if (!getDetour().equals(other.getDetour())) return false; - } - if (!getShipmentLabel().equals(other.getShipmentLabel())) return false; - if (!getVisitLabel().equals(other.getVisitLabel())) return false; - if (!getArrivalLoadsList().equals(other.getArrivalLoadsList())) return false; + if (!getDetour() + .equals(other.getDetour())) return false; + } + if (!getShipmentLabel() + .equals(other.getShipmentLabel())) return false; + if (!getVisitLabel() + .equals(other.getVisitLabel())) return false; + if (!getArrivalLoadsList() + .equals(other.getArrivalLoadsList())) return false; if (hasDelayBeforeStart() != other.hasDelayBeforeStart()) return false; if (hasDelayBeforeStart()) { - if (!getDelayBeforeStart().equals(other.getDelayBeforeStart())) return false; + if (!getDelayBeforeStart() + .equals(other.getDelayBeforeStart())) return false; } - if (!getDemandsList().equals(other.getDemandsList())) return false; + if (!getDemandsList() + .equals(other.getDemandsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2674,7 +2333,8 @@ public int hashCode() { hash = (37 * hash) + SHIPMENT_INDEX_FIELD_NUMBER; hash = (53 * hash) + getShipmentIndex(); hash = (37 * hash) + IS_PICKUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPickup()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPickup()); hash = (37 * hash) + VISIT_REQUEST_INDEX_FIELD_NUMBER; hash = (53 * hash) + getVisitRequestIndex(); if (hasStartTime()) { @@ -2711,94 +2371,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.Visit prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Visit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2808,8 +2463,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A visit performed during a route. This visit corresponds to a pickup or a
      * delivery of a `Shipment`.
@@ -2817,53 +2470,55 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Visit}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.Visit)
         com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMapField(
+          int number) {
         switch (number) {
           case 11:
             return internalGetLoadDemands();
           default:
-            throw new RuntimeException("Invalid map field number: " + number);
+            throw new RuntimeException(
+                "Invalid map field number: " + number);
         }
       }
-
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMutableMapField(
+          int number) {
         switch (number) {
           case 11:
             return internalGetMutableLoadDemands();
           default:
-            throw new RuntimeException("Invalid map field number: " + number);
+            throw new RuntimeException(
+                "Invalid map field number: " + number);
         }
       }
-
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.Visit.class,
-                com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.Visit.class, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.Visit.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2907,9 +2562,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
       }
 
       @java.lang.Override
@@ -2928,18 +2583,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.Visit buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.Visit result =
-            new com.google.cloud.optimization.v1.ShipmentRoute.Visit(this);
+        com.google.cloud.optimization.v1.ShipmentRoute.Visit result = new com.google.cloud.optimization.v1.ShipmentRoute.Visit(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.optimization.v1.ShipmentRoute.Visit result) {
+      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentRoute.Visit result) {
         if (arrivalLoadsBuilder_ == null) {
           if (((bitField0_ & 0x00000100) != 0)) {
             arrivalLoads_ = java.util.Collections.unmodifiableList(arrivalLoads_);
@@ -2972,14 +2623,18 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Visit
           result.visitRequestIndex_ = visitRequestIndex_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+          result.startTime_ = startTimeBuilder_ == null
+              ? startTime_
+              : startTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
           result.loadDemands_ = internalGetLoadDemands();
           result.loadDemands_.makeImmutable();
         }
         if (((from_bitField0_ & 0x00000020) != 0)) {
-          result.detour_ = detourBuilder_ == null ? detour_ : detourBuilder_.build();
+          result.detour_ = detourBuilder_ == null
+              ? detour_
+              : detourBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
           result.shipmentLabel_ = shipmentLabel_;
@@ -2988,10 +2643,9 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Visit
           result.visitLabel_ = visitLabel_;
         }
         if (((from_bitField0_ & 0x00000200) != 0)) {
-          result.delayBeforeStart_ =
-              delayBeforeStartBuilder_ == null
-                  ? delayBeforeStart_
-                  : delayBeforeStartBuilder_.build();
+          result.delayBeforeStart_ = delayBeforeStartBuilder_ == null
+              ? delayBeforeStart_
+              : delayBeforeStartBuilder_.build();
         }
       }
 
@@ -2999,41 +2653,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Visit
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.Visit) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Visit) other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Visit)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3041,8 +2692,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Visit other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance()) return this;
         if (other.getShipmentIndex() != 0) {
           setShipmentIndex(other.getShipmentIndex());
         }
@@ -3055,7 +2705,8 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Visit ot
         if (other.hasStartTime()) {
           mergeStartTime(other.getStartTime());
         }
-        internalGetMutableLoadDemands().mergeFrom(other.internalGetLoadDemands());
+        internalGetMutableLoadDemands().mergeFrom(
+            other.internalGetLoadDemands());
         bitField0_ |= 0x00000010;
         if (other.hasDetour()) {
           mergeDetour(other.getDetour());
@@ -3088,10 +2739,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Visit ot
               arrivalLoadsBuilder_ = null;
               arrivalLoads_ = other.arrivalLoads_;
               bitField0_ = (bitField0_ & ~0x00000100);
-              arrivalLoadsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getArrivalLoadsFieldBuilder()
-                      : null;
+              arrivalLoadsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getArrivalLoadsFieldBuilder() : null;
             } else {
               arrivalLoadsBuilder_.addAllMessages(other.arrivalLoads_);
             }
@@ -3118,10 +2768,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Visit ot
               demandsBuilder_ = null;
               demands_ = other.demands_;
               bitField0_ = (bitField0_ & ~0x00000400);
-              demandsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getDemandsFieldBuilder()
-                      : null;
+              demandsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getDemandsFieldBuilder() : null;
             } else {
               demandsBuilder_.addAllMessages(other.demands_);
             }
@@ -3153,104 +2802,93 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  shipmentIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  isPickup_ = input.readBool();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              case 24:
-                {
-                  visitRequestIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 24
-              case 34:
-                {
-                  input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              case 42:
-                {
-                  com.google.cloud.optimization.v1.CapacityQuantity m =
-                      input.readMessage(
-                          com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                          extensionRegistry);
-                  if (demandsBuilder_ == null) {
-                    ensureDemandsIsMutable();
-                    demands_.add(m);
-                  } else {
-                    demandsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 42
-              case 50:
-                {
-                  input.readMessage(getDetourFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000020;
-                  break;
-                } // case 50
-              case 58:
-                {
-                  shipmentLabel_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000040;
-                  break;
-                } // case 58
-              case 66:
-                {
-                  visitLabel_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000080;
-                  break;
-                } // case 66
-              case 74:
-                {
-                  com.google.cloud.optimization.v1.CapacityQuantity m =
-                      input.readMessage(
-                          com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                          extensionRegistry);
-                  if (arrivalLoadsBuilder_ == null) {
-                    ensureArrivalLoadsIsMutable();
-                    arrivalLoads_.add(m);
-                  } else {
-                    arrivalLoadsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 74
-              case 82:
-                {
-                  input.readMessage(
-                      getDelayBeforeStartFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000200;
-                  break;
-                } // case 82
-              case 90:
-                {
-                  com.google.protobuf.MapEntry<
-                          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-                      loadDemands__ =
-                          input.readMessage(
-                              LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(),
-                              extensionRegistry);
-                  internalGetMutableLoadDemands()
-                      .getMutableMap()
-                      .put(loadDemands__.getKey(), loadDemands__.getValue());
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 90
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                shipmentIndex_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                isPickup_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              case 24: {
+                visitRequestIndex_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+              case 34: {
+                input.readMessage(
+                    getStartTimeFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              case 42: {
+                com.google.cloud.optimization.v1.CapacityQuantity m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                        extensionRegistry);
+                if (demandsBuilder_ == null) {
+                  ensureDemandsIsMutable();
+                  demands_.add(m);
+                } else {
+                  demandsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+              case 50: {
+                input.readMessage(
+                    getDetourFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+              case 58: {
+                shipmentLabel_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+              case 66: {
+                visitLabel_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+              case 74: {
+                com.google.cloud.optimization.v1.CapacityQuantity m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                        extensionRegistry);
+                if (arrivalLoadsBuilder_ == null) {
+                  ensureArrivalLoadsIsMutable();
+                  arrivalLoads_.add(m);
+                } else {
+                  arrivalLoadsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 74
+              case 82: {
+                input.readMessage(
+                    getDelayBeforeStartFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+              case 90: {
+                com.google.protobuf.MapEntry
+                loadDemands__ = input.readMessage(
+                    LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+                internalGetMutableLoadDemands().getMutableMap().put(
+                    loadDemands__.getKey(), loadDemands__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 90
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3260,20 +2898,16 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private int shipmentIndex_;
+      private int shipmentIndex_ ;
       /**
-       *
-       *
        * 
        * Index of the `shipments` field in the source
        * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
        * 
* * int32 shipment_index = 1; - * * @return The shipmentIndex. */ @java.lang.Override @@ -3281,15 +2915,12 @@ public int getShipmentIndex() { return shipmentIndex_; } /** - * - * *
        * Index of the `shipments` field in the source
        * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
        * 
* * int32 shipment_index = 1; - * * @param value The shipmentIndex to set. * @return This builder for chaining. */ @@ -3301,15 +2932,12 @@ public Builder setShipmentIndex(int value) { return this; } /** - * - * *
        * Index of the `shipments` field in the source
        * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
        * 
* * int32 shipment_index = 1; - * * @return This builder for chaining. */ public Builder clearShipmentIndex() { @@ -3319,17 +2947,14 @@ public Builder clearShipmentIndex() { return this; } - private boolean isPickup_; + private boolean isPickup_ ; /** - * - * *
        * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
        * corresponds to a delivery.
        * 
* * bool is_pickup = 2; - * * @return The isPickup. */ @java.lang.Override @@ -3337,15 +2962,12 @@ public boolean getIsPickup() { return isPickup_; } /** - * - * *
        * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
        * corresponds to a delivery.
        * 
* * bool is_pickup = 2; - * * @param value The isPickup to set. * @return This builder for chaining. */ @@ -3357,15 +2979,12 @@ public Builder setIsPickup(boolean value) { return this; } /** - * - * *
        * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
        * corresponds to a delivery.
        * 
* * bool is_pickup = 2; - * * @return This builder for chaining. */ public Builder clearIsPickup() { @@ -3375,17 +2994,14 @@ public Builder clearIsPickup() { return this; } - private int visitRequestIndex_; + private int visitRequestIndex_ ; /** - * - * *
        * Index of `VisitRequest` in either the pickup or delivery field of the
        * `Shipment` (see `is_pickup`).
        * 
* * int32 visit_request_index = 3; - * * @return The visitRequestIndex. */ @java.lang.Override @@ -3393,15 +3009,12 @@ public int getVisitRequestIndex() { return visitRequestIndex_; } /** - * - * *
        * Index of `VisitRequest` in either the pickup or delivery field of the
        * `Shipment` (see `is_pickup`).
        * 
* * int32 visit_request_index = 3; - * * @param value The visitRequestIndex to set. * @return This builder for chaining. */ @@ -3413,15 +3026,12 @@ public Builder setVisitRequestIndex(int value) { return this; } /** - * - * *
        * Index of `VisitRequest` in either the pickup or delivery field of the
        * `Shipment` (see `is_pickup`).
        * 
* * int32 visit_request_index = 3; - * * @return This builder for chaining. */ public Builder clearVisitRequestIndex() { @@ -3433,13 +3043,8 @@ public Builder clearVisitRequestIndex() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3447,15 +3052,12 @@ public Builder clearVisitRequestIndex() {
        * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3463,21 +3065,16 @@ public boolean hasStartTime() {
        * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** - * - * *
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3500,8 +3097,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3510,7 +3105,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp start_time = 4;
        */
-      public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setStartTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (startTimeBuilder_ == null) {
           startTime_ = builderForValue.build();
         } else {
@@ -3521,8 +3117,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
         return this;
       }
       /**
-       *
-       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3533,9 +3127,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
        */
       public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
         if (startTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0)
-              && startTime_ != null
-              && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0) &&
+            startTime_ != null &&
+            startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getStartTimeBuilder().mergeFrom(value);
           } else {
             startTime_ = value;
@@ -3548,8 +3142,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3569,8 +3161,6 @@ public Builder clearStartTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3585,8 +3175,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
         return getStartTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3599,14 +3187,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
         if (startTimeBuilder_ != null) {
           return startTimeBuilder_.getMessageOrBuilder();
         } else {
-          return startTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : startTime_;
+          return startTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
         }
       }
       /**
-       *
-       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3616,28 +3201,22 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
        * .google.protobuf.Timestamp start_time = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getStartTimeFieldBuilder() {
         if (startTimeBuilder_ == null) {
-          startTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getStartTime(), getParentForChildren(), isClean());
+          startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getStartTime(),
+                  getParentForChildren(),
+                  isClean());
           startTime_ = null;
         }
         return startTimeBuilder_;
       }
 
       private com.google.protobuf.MapField<
-              java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
-          loadDemands_;
-
-      private com.google.protobuf.MapField<
-              java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_;
+      private com.google.protobuf.MapField
           internalGetLoadDemands() {
         if (loadDemands_ == null) {
           return com.google.protobuf.MapField.emptyMapField(
@@ -3645,13 +3224,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
         }
         return loadDemands_;
       }
-
-      private com.google.protobuf.MapField<
-              java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+      private com.google.protobuf.MapField
           internalGetMutableLoadDemands() {
         if (loadDemands_ == null) {
-          loadDemands_ =
-              com.google.protobuf.MapField.newMapField(LoadDemandsDefaultEntryHolder.defaultEntry);
+          loadDemands_ = com.google.protobuf.MapField.newMapField(
+              LoadDemandsDefaultEntryHolder.defaultEntry);
         }
         if (!loadDemands_.isMutable()) {
           loadDemands_ = loadDemands_.copy();
@@ -3660,13 +3237,10 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
         onChanged();
         return loadDemands_;
       }
-
       public int getLoadDemandsCount() {
         return internalGetLoadDemands().getMap().size();
       }
       /**
-       *
-       *
        * 
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3675,26 +3249,23 @@ public int getLoadDemandsCount() {
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ @java.lang.Override - public boolean containsLoadDemands(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLoadDemands( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLoadDemands().getMap().containsKey(key); } - /** Use {@link #getLoadDemandsMap()} instead. */ + /** + * Use {@link #getLoadDemandsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getLoadDemands() { + public java.util.Map getLoadDemands() { return getLoadDemandsMap(); } /** - * - * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3703,17 +3274,13 @@ public boolean containsLoadDemands(java.lang.String key) {
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ @java.lang.Override - public java.util.Map - getLoadDemandsMap() { + public java.util.Map getLoadDemandsMap() { return internalGetLoadDemands().getMap(); } /** - * - * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3722,24 +3289,20 @@ public boolean containsLoadDemands(java.lang.String key) {
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( + public /* nullable */ +com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Shipment.Load defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.optimization.v1.Shipment.Load defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3748,15 +3311,12 @@ public boolean containsLoadDemands(java.lang.String key) {
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -3764,15 +3324,13 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( } return map.get(key); } - public Builder clearLoadDemands() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableLoadDemands().getMutableMap().clear(); + internalGetMutableLoadDemands().getMutableMap() + .clear(); return this; } /** - * - * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3781,17 +3339,18 @@ public Builder clearLoadDemands() {
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ - public Builder removeLoadDemands(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLoadDemands().getMutableMap().remove(key); + public Builder removeLoadDemands( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLoadDemands().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableLoadDemands() { @@ -3799,8 +3358,6 @@ public Builder removeLoadDemands(java.lang.String key) { return internalGetMutableLoadDemands().getMutableMap(); } /** - * - * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3809,24 +3366,19 @@ public Builder removeLoadDemands(java.lang.String key) {
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ public Builder putLoadDemands( - java.lang.String key, com.google.cloud.optimization.v1.Shipment.Load value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLoadDemands().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.optimization.v1.Shipment.Load value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLoadDemands().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3835,25 +3387,20 @@ public Builder putLoadDemands(
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - * + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; */ public Builder putAllLoadDemands( java.util.Map values) { - internalGetMutableLoadDemands().getMutableMap().putAll(values); + internalGetMutableLoadDemands().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } private com.google.protobuf.Duration detour_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - detourBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> detourBuilder_; /** - * - * *
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3873,15 +3420,12 @@ public Builder putAllLoadDemands(
        * 
* * .google.protobuf.Duration detour = 6; - * * @return Whether the detour field is set. */ public boolean hasDetour() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3901,7 +3445,6 @@ public boolean hasDetour() {
        * 
* * .google.protobuf.Duration detour = 6; - * * @return The detour. */ public com.google.protobuf.Duration getDetour() { @@ -3912,8 +3455,6 @@ public com.google.protobuf.Duration getDetour() { } } /** - * - * *
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3948,8 +3489,6 @@ public Builder setDetour(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3970,7 +3509,8 @@ public Builder setDetour(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration detour = 6;
        */
-      public Builder setDetour(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setDetour(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (detourBuilder_ == null) {
           detour_ = builderForValue.build();
         } else {
@@ -3981,8 +3521,6 @@ public Builder setDetour(com.google.protobuf.Duration.Builder builderForValue) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -4005,9 +3543,9 @@ public Builder setDetour(com.google.protobuf.Duration.Builder builderForValue) {
        */
       public Builder mergeDetour(com.google.protobuf.Duration value) {
         if (detourBuilder_ == null) {
-          if (((bitField0_ & 0x00000020) != 0)
-              && detour_ != null
-              && detour_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000020) != 0) &&
+            detour_ != null &&
+            detour_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getDetourBuilder().mergeFrom(value);
           } else {
             detour_ = value;
@@ -4020,8 +3558,6 @@ public Builder mergeDetour(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -4053,8 +3589,6 @@ public Builder clearDetour() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -4081,8 +3615,6 @@ public com.google.protobuf.Duration.Builder getDetourBuilder() {
         return getDetourFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -4107,12 +3639,11 @@ public com.google.protobuf.DurationOrBuilder getDetourOrBuilder() {
         if (detourBuilder_ != null) {
           return detourBuilder_.getMessageOrBuilder();
         } else {
-          return detour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : detour_;
+          return detour_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : detour_;
         }
       }
       /**
-       *
-       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -4134,17 +3665,14 @@ public com.google.protobuf.DurationOrBuilder getDetourOrBuilder() {
        * .google.protobuf.Duration detour = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getDetourFieldBuilder() {
         if (detourBuilder_ == null) {
-          detourBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getDetour(), getParentForChildren(), isClean());
+          detourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getDetour(),
+                  getParentForChildren(),
+                  isClean());
           detour_ = null;
         }
         return detourBuilder_;
@@ -4152,21 +3680,19 @@ public com.google.protobuf.DurationOrBuilder getDetourOrBuilder() {
 
       private java.lang.Object shipmentLabel_ = "";
       /**
-       *
-       *
        * 
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; - * * @return The shipmentLabel. */ public java.lang.String getShipmentLabel() { java.lang.Object ref = shipmentLabel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shipmentLabel_ = s; return s; @@ -4175,22 +3701,21 @@ public java.lang.String getShipmentLabel() { } } /** - * - * *
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; - * * @return The bytes for shipmentLabel. */ - public com.google.protobuf.ByteString getShipmentLabelBytes() { + public com.google.protobuf.ByteString + getShipmentLabelBytes() { java.lang.Object ref = shipmentLabel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); shipmentLabel_ = b; return b; } else { @@ -4198,37 +3723,30 @@ public com.google.protobuf.ByteString getShipmentLabelBytes() { } } /** - * - * *
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; - * * @param value The shipmentLabel to set. * @return This builder for chaining. */ - public Builder setShipmentLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setShipmentLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } shipmentLabel_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; - * * @return This builder for chaining. */ public Builder clearShipmentLabel() { @@ -4238,22 +3756,18 @@ public Builder clearShipmentLabel() { return this; } /** - * - * *
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; - * * @param value The bytes for shipmentLabel to set. * @return This builder for chaining. */ - public Builder setShipmentLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setShipmentLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shipmentLabel_ = value; bitField0_ |= 0x00000040; @@ -4263,8 +3777,6 @@ public Builder setShipmentLabelBytes(com.google.protobuf.ByteString value) { private java.lang.Object visitLabel_ = ""; /** - * - * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -4272,13 +3784,13 @@ public Builder setShipmentLabelBytes(com.google.protobuf.ByteString value) {
        * 
* * string visit_label = 8; - * * @return The visitLabel. */ public java.lang.String getVisitLabel() { java.lang.Object ref = visitLabel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); visitLabel_ = s; return s; @@ -4287,8 +3799,6 @@ public java.lang.String getVisitLabel() { } } /** - * - * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -4296,14 +3806,15 @@ public java.lang.String getVisitLabel() {
        * 
* * string visit_label = 8; - * * @return The bytes for visitLabel. */ - public com.google.protobuf.ByteString getVisitLabelBytes() { + public com.google.protobuf.ByteString + getVisitLabelBytes() { java.lang.Object ref = visitLabel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); visitLabel_ = b; return b; } else { @@ -4311,8 +3822,6 @@ public com.google.protobuf.ByteString getVisitLabelBytes() { } } /** - * - * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -4320,22 +3829,18 @@ public com.google.protobuf.ByteString getVisitLabelBytes() {
        * 
* * string visit_label = 8; - * * @param value The visitLabel to set. * @return This builder for chaining. */ - public Builder setVisitLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVisitLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } visitLabel_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -4343,7 +3848,6 @@ public Builder setVisitLabel(java.lang.String value) {
        * 
* * string visit_label = 8; - * * @return This builder for chaining. */ public Builder clearVisitLabel() { @@ -4353,8 +3857,6 @@ public Builder clearVisitLabel() { return this; } /** - * - * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -4362,14 +3864,12 @@ public Builder clearVisitLabel() {
        * 
* * string visit_label = 8; - * * @param value The bytes for visitLabel to set. * @return This builder for chaining. */ - public Builder setVisitLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVisitLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); visitLabel_ = value; bitField0_ |= 0x00000080; @@ -4378,26 +3878,18 @@ public Builder setVisitLabelBytes(com.google.protobuf.ByteString value) { } private java.util.List arrivalLoads_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureArrivalLoadsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - arrivalLoads_ = - new java.util.ArrayList( - arrivalLoads_); + arrivalLoads_ = new java.util.ArrayList(arrivalLoads_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> - arrivalLoadsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> arrivalLoadsBuilder_; /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4410,13 +3902,9 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getArrivalLoadsList() { + @java.lang.Deprecated public java.util.List getArrivalLoadsList() { if (arrivalLoadsBuilder_ == null) { return java.util.Collections.unmodifiableList(arrivalLoads_); } else { @@ -4424,8 +3912,6 @@ private void ensureArrivalLoadsIsMutable() { } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4438,12 +3924,9 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public int getArrivalLoadsCount() { + @java.lang.Deprecated public int getArrivalLoadsCount() { if (arrivalLoadsBuilder_ == null) { return arrivalLoads_.size(); } else { @@ -4451,8 +3934,6 @@ public int getArrivalLoadsCount() { } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4465,12 +3946,9 @@ public int getArrivalLoadsCount() {
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index) { if (arrivalLoadsBuilder_ == null) { return arrivalLoads_.get(index); } else { @@ -4478,8 +3956,6 @@ public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int ind } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4492,12 +3968,9 @@ public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int ind
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setArrivalLoads( + @java.lang.Deprecated public Builder setArrivalLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (arrivalLoadsBuilder_ == null) { if (value == null) { @@ -4512,8 +3985,6 @@ public Builder setArrivalLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4526,12 +3997,9 @@ public Builder setArrivalLoads(
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setArrivalLoads( + @java.lang.Deprecated public Builder setArrivalLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); @@ -4543,8 +4011,6 @@ public Builder setArrivalLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4557,12 +4023,9 @@ public Builder setArrivalLoads(
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addArrivalLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addArrivalLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { if (arrivalLoadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4576,8 +4039,6 @@ public Builder addArrivalLoads(com.google.cloud.optimization.v1.CapacityQuantity return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4590,12 +4051,9 @@ public Builder addArrivalLoads(com.google.cloud.optimization.v1.CapacityQuantity
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addArrivalLoads( + @java.lang.Deprecated public Builder addArrivalLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (arrivalLoadsBuilder_ == null) { if (value == null) { @@ -4610,8 +4068,6 @@ public Builder addArrivalLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4624,12 +4080,9 @@ public Builder addArrivalLoads(
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addArrivalLoads( + @java.lang.Deprecated public Builder addArrivalLoads( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); @@ -4641,8 +4094,6 @@ public Builder addArrivalLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4655,12 +4106,9 @@ public Builder addArrivalLoads(
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addArrivalLoads( + @java.lang.Deprecated public Builder addArrivalLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); @@ -4672,8 +4120,6 @@ public Builder addArrivalLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4686,16 +4132,14 @@ public Builder addArrivalLoads(
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllArrivalLoads( + @java.lang.Deprecated public Builder addAllArrivalLoads( java.lang.Iterable values) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, arrivalLoads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, arrivalLoads_); onChanged(); } else { arrivalLoadsBuilder_.addAllMessages(values); @@ -4703,8 +4147,6 @@ public Builder addAllArrivalLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4717,12 +4159,9 @@ public Builder addAllArrivalLoads(
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearArrivalLoads() { + @java.lang.Deprecated public Builder clearArrivalLoads() { if (arrivalLoadsBuilder_ == null) { arrivalLoads_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); @@ -4733,8 +4172,6 @@ public Builder clearArrivalLoads() { return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4747,12 +4184,9 @@ public Builder clearArrivalLoads() {
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeArrivalLoads(int index) { + @java.lang.Deprecated public Builder removeArrivalLoads(int index) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); arrivalLoads_.remove(index); @@ -4763,8 +4197,6 @@ public Builder removeArrivalLoads(int index) { return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4777,18 +4209,13 @@ public Builder removeArrivalLoads(int index) {
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder getArrivalLoadsBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getArrivalLoadsBuilder( int index) { return getArrivalLoadsFieldBuilder().getBuilder(index); } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4801,22 +4228,16 @@ public com.google.cloud.optimization.v1.CapacityQuantity.Builder getArrivalLoads
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( int index) { if (arrivalLoadsBuilder_ == null) { - return arrivalLoads_.get(index); - } else { + return arrivalLoads_.get(index); } else { return arrivalLoadsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4829,13 +4250,10 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoad
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getArrivalLoadsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getArrivalLoadsOrBuilderList() { if (arrivalLoadsBuilder_ != null) { return arrivalLoadsBuilder_.getMessageOrBuilderList(); } else { @@ -4843,8 +4261,6 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoad } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4857,18 +4273,13 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoad
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoadsBuilder() { - return getArrivalLoadsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoadsBuilder() { + return getArrivalLoadsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4881,20 +4292,14 @@ public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoads
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoadsBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoadsBuilder( int index) { - return getArrivalLoadsFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + return getArrivalLoadsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4907,27 +4312,18 @@ public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoads
        * and that don't have any non-zero demand on the route.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getArrivalLoadsBuilderList() { + @java.lang.Deprecated public java.util.List + getArrivalLoadsBuilderList() { return getArrivalLoadsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getArrivalLoadsFieldBuilder() { if (arrivalLoadsBuilder_ == null) { - arrivalLoadsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + arrivalLoadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( arrivalLoads_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -4939,74 +4335,51 @@ public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoads private com.google.cloud.optimization.v1.ShipmentRoute.Delay delayBeforeStart_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, - com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> - delayBeforeStartBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> delayBeforeStartBuilder_; /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1935 + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return Whether the delayBeforeStart field is set. */ - @java.lang.Deprecated - public boolean hasDelayBeforeStart() { + @java.lang.Deprecated public boolean hasDelayBeforeStart() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1935 + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return The delayBeforeStart. */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart() { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart() { if (delayBeforeStartBuilder_ == null) { - return delayBeforeStart_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() - : delayBeforeStart_; + return delayBeforeStart_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeStart_; } else { return delayBeforeStartBuilder_.getMessage(); } } /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDelayBeforeStart( - com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { + @java.lang.Deprecated public Builder setDelayBeforeStart(com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { if (delayBeforeStartBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5020,20 +4393,15 @@ public Builder setDelayBeforeStart( return this; } /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDelayBeforeStart( + @java.lang.Deprecated public Builder setDelayBeforeStart( com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder builderForValue) { if (delayBeforeStartBuilder_ == null) { delayBeforeStart_ = builderForValue.build(); @@ -5045,26 +4413,19 @@ public Builder setDelayBeforeStart( return this; } /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeDelayBeforeStart( - com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { + @java.lang.Deprecated public Builder mergeDelayBeforeStart(com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { if (delayBeforeStartBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && delayBeforeStart_ != null - && delayBeforeStart_ - != com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + delayBeforeStart_ != null && + delayBeforeStart_ != com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) { getDelayBeforeStartBuilder().mergeFrom(value); } else { delayBeforeStart_ = value; @@ -5077,20 +4438,15 @@ public Builder mergeDelayBeforeStart( return this; } /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearDelayBeforeStart() { + @java.lang.Deprecated public Builder clearDelayBeforeStart() { bitField0_ = (bitField0_ & ~0x00000200); delayBeforeStart_ = null; if (delayBeforeStartBuilder_ != null) { @@ -5101,111 +4457,81 @@ public Builder clearDelayBeforeStart() { return this; } /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder - getDelayBeforeStartBuilder() { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder getDelayBeforeStartBuilder() { bitField0_ |= 0x00000200; onChanged(); return getDelayBeforeStartFieldBuilder().getBuilder(); } /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder - getDelayBeforeStartOrBuilder() { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder() { if (delayBeforeStartBuilder_ != null) { return delayBeforeStartBuilder_.getMessageOrBuilder(); } else { - return delayBeforeStart_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() - : delayBeforeStart_; + return delayBeforeStart_ == null ? + com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeStart_; } } /** - * - * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, - com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> getDelayBeforeStartFieldBuilder() { if (delayBeforeStartBuilder_ == null) { - delayBeforeStartBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, - com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>( - getDelayBeforeStart(), getParentForChildren(), isClean()); + delayBeforeStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>( + getDelayBeforeStart(), + getParentForChildren(), + isClean()); delayBeforeStart_ = null; } return delayBeforeStartBuilder_; } private java.util.List demands_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDemandsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - demands_ = - new java.util.ArrayList(demands_); + demands_ = new java.util.ArrayList(demands_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> - demandsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> demandsBuilder_; /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List getDemandsList() { + @java.lang.Deprecated public java.util.List getDemandsList() { if (demandsBuilder_ == null) { return java.util.Collections.unmodifiableList(demands_); } else { @@ -5213,20 +4539,15 @@ public java.util.List getDema } } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public int getDemandsCount() { + @java.lang.Deprecated public int getDemandsCount() { if (demandsBuilder_ == null) { return demands_.size(); } else { @@ -5234,20 +4555,15 @@ public int getDemandsCount() { } } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { if (demandsBuilder_ == null) { return demands_.get(index); } else { @@ -5255,20 +4571,15 @@ public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { } } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDemands( + @java.lang.Deprecated public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { @@ -5283,20 +4594,15 @@ public Builder setDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDemands( + @java.lang.Deprecated public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -5308,20 +4614,15 @@ public Builder setDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5335,20 +4636,15 @@ public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity valu return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands( + @java.lang.Deprecated public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { @@ -5363,20 +4659,15 @@ public Builder addDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands( + @java.lang.Deprecated public Builder addDemands( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -5388,20 +4679,15 @@ public Builder addDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addDemands( + @java.lang.Deprecated public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -5413,24 +4699,20 @@ public Builder addDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllDemands( + @java.lang.Deprecated public Builder addAllDemands( java.lang.Iterable values) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, demands_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, demands_); onChanged(); } else { demandsBuilder_.addAllMessages(values); @@ -5438,20 +4720,15 @@ public Builder addAllDemands( return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearDemands() { + @java.lang.Deprecated public Builder clearDemands() { if (demandsBuilder_ == null) { demands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); @@ -5462,20 +4739,15 @@ public Builder clearDemands() { return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeDemands(int index) { + @java.lang.Deprecated public Builder removeDemands(int index) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); demands_.remove(index); @@ -5486,61 +4758,45 @@ public Builder removeDemands(int index) { return this; } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( int index) { return getDemandsFieldBuilder().getBuilder(index); } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { if (demandsBuilder_ == null) { - return demands_.get(index); - } else { + return demands_.get(index); } else { return demandsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getDemandsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getDemandsOrBuilderList() { if (demandsBuilder_ != null) { return demandsBuilder_.getMessageOrBuilderList(); } else { @@ -5548,79 +4804,59 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBu } } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { - return getDemandsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { + return getDemandsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( int index) { - return getDemandsFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + return getDemandsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getDemandsBuilderList() { + @java.lang.Deprecated public java.util.List + getDemandsBuilderList() { return getDemandsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getDemandsFieldBuilder() { if (demandsBuilder_ == null) { - demandsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - demands_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + demandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + demands_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); demands_ = null; } return demandsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5633,12 +4869,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.Visit) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.Visit) private static final com.google.cloud.optimization.v1.ShipmentRoute.Visit DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.Visit(); } @@ -5647,33 +4883,32 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.Visit getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Visit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Visit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; @@ -5683,40 +4918,32 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.Visit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TransitionOrBuilder - extends + public interface TransitionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.Transition) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Travel duration during this transition.
      * 
* * .google.protobuf.Duration travel_duration = 1; - * * @return Whether the travelDuration field is set. */ boolean hasTravelDuration(); /** - * - * *
      * Travel duration during this transition.
      * 
* * .google.protobuf.Duration travel_duration = 1; - * * @return The travelDuration. */ com.google.protobuf.Duration getTravelDuration(); /** - * - * *
      * Travel duration during this transition.
      * 
@@ -5726,21 +4953,16 @@ public interface TransitionOrBuilder com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); /** - * - * *
      * Distance traveled during the transition.
      * 
* * double travel_distance_meters = 2; - * * @return The travelDistanceMeters. */ double getTravelDistanceMeters(); /** - * - * *
      * When traffic is requested via
      * [OptimizeToursRequest.consider_road_traffic]
@@ -5751,14 +4973,11 @@ public interface TransitionOrBuilder
      * 
* * bool traffic_info_unavailable = 3; - * * @return The trafficInfoUnavailable. */ boolean getTrafficInfoUnavailable(); /** - * - * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -5767,13 +4986,10 @@ public interface TransitionOrBuilder
      * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return Whether the delayDuration field is set. */ boolean hasDelayDuration(); /** - * - * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -5782,13 +4998,10 @@ public interface TransitionOrBuilder
      * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return The delayDuration. */ com.google.protobuf.Duration getDelayDuration(); /** - * - * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -5801,8 +5014,6 @@ public interface TransitionOrBuilder
     com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder();
 
     /**
-     *
-     *
      * 
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5810,13 +5021,10 @@ public interface TransitionOrBuilder
      * 
* * .google.protobuf.Duration break_duration = 5; - * * @return Whether the breakDuration field is set. */ boolean hasBreakDuration(); /** - * - * *
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5824,13 +5032,10 @@ public interface TransitionOrBuilder
      * 
* * .google.protobuf.Duration break_duration = 5; - * * @return The breakDuration. */ com.google.protobuf.Duration getBreakDuration(); /** - * - * *
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5842,8 +5047,6 @@ public interface TransitionOrBuilder
     com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder();
 
     /**
-     *
-     *
      * 
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5851,13 +5054,10 @@ public interface TransitionOrBuilder
      * 
* * .google.protobuf.Duration wait_duration = 6; - * * @return Whether the waitDuration field is set. */ boolean hasWaitDuration(); /** - * - * *
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5865,13 +5065,10 @@ public interface TransitionOrBuilder
      * 
* * .google.protobuf.Duration wait_duration = 6; - * * @return The waitDuration. */ com.google.protobuf.Duration getWaitDuration(); /** - * - * *
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5883,8 +5080,6 @@ public interface TransitionOrBuilder
     com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder();
 
     /**
-     *
-     *
      * 
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5897,13 +5092,10 @@ public interface TransitionOrBuilder
      * 
* * .google.protobuf.Duration total_duration = 7; - * * @return Whether the totalDuration field is set. */ boolean hasTotalDuration(); /** - * - * *
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5916,13 +5108,10 @@ public interface TransitionOrBuilder
      * 
* * .google.protobuf.Duration total_duration = 7; - * * @return The totalDuration. */ com.google.protobuf.Duration getTotalDuration(); /** - * - * *
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5939,32 +5128,24 @@ public interface TransitionOrBuilder
     com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder();
 
     /**
-     *
-     *
      * 
      * Start time of this transition.
      * 
* * .google.protobuf.Timestamp start_time = 8; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
      * Start time of this transition.
      * 
* * .google.protobuf.Timestamp start_time = 8; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
      * Start time of this transition.
      * 
@@ -5974,8 +5155,6 @@ public interface TransitionOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -5985,13 +5164,10 @@ public interface TransitionOrBuilder
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * * @return Whether the routePolyline field is set. */ boolean hasRoutePolyline(); /** - * - * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -6001,13 +5177,10 @@ public interface TransitionOrBuilder
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * * @return The routePolyline. */ com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline(); /** - * - * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -6018,12 +5191,9 @@ public interface TransitionOrBuilder
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      */
-    com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
-        getRoutePolylineOrBuilder();
+    com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder();
 
     /**
-     *
-     *
      * 
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6038,14 +5208,10 @@ public interface TransitionOrBuilder
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ int getVehicleLoadsCount(); /** - * - * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6060,18 +5226,17 @@ public interface TransitionOrBuilder
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + */ + boolean containsVehicleLoads( + java.lang.String key); + /** + * Use {@link #getVehicleLoadsMap()} instead. */ - boolean containsVehicleLoads(java.lang.String key); - /** Use {@link #getVehicleLoadsMap()} instead. */ @java.lang.Deprecated java.util.Map - getVehicleLoads(); + getVehicleLoads(); /** - * - * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6086,15 +5251,11 @@ public interface TransitionOrBuilder
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ java.util.Map - getVehicleLoadsMap(); + getVehicleLoadsMap(); /** - * - * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6109,18 +5270,14 @@ public interface TransitionOrBuilder
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ /* nullable */ - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault( +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue); +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue); /** - * - * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6135,88 +5292,66 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefa
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow( java.lang.String key); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getLoadsList(); + @java.lang.Deprecated java.util.List + getLoadsList(); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - int getLoadsCount(); + @java.lang.Deprecated int getLoadsCount(); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getLoadsOrBuilderList(); /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder( + int index); } /** - * - * *
    * Transition between two events on the route. See the description of
    * [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
@@ -6227,63 +5362,59 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrThro
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Transition}
    */
-  public static final class Transition extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Transition extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.Transition)
       TransitionOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Transition.newBuilder() to construct.
     private Transition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Transition() {
       loads_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Transition();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
     @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 11:
           return internalGetVehicleLoads();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.Transition.class,
-              com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.Transition.class, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder.class);
     }
 
     public static final int TRAVEL_DURATION_FIELD_NUMBER = 1;
     private com.google.protobuf.Duration travelDuration_;
     /**
-     *
-     *
      * 
      * Travel duration during this transition.
      * 
* * .google.protobuf.Duration travel_duration = 1; - * * @return Whether the travelDuration field is set. */ @java.lang.Override @@ -6291,25 +5422,18 @@ public boolean hasTravelDuration() { return travelDuration_ != null; } /** - * - * *
      * Travel duration during this transition.
      * 
* * .google.protobuf.Duration travel_duration = 1; - * * @return The travelDuration. */ @java.lang.Override public com.google.protobuf.Duration getTravelDuration() { - return travelDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : travelDuration_; + return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; } /** - * - * *
      * Travel duration during this transition.
      * 
@@ -6318,22 +5442,17 @@ public com.google.protobuf.Duration getTravelDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { - return travelDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : travelDuration_; + return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; } public static final int TRAVEL_DISTANCE_METERS_FIELD_NUMBER = 2; private double travelDistanceMeters_ = 0D; /** - * - * *
      * Distance traveled during the transition.
      * 
* * double travel_distance_meters = 2; - * * @return The travelDistanceMeters. */ @java.lang.Override @@ -6344,8 +5463,6 @@ public double getTravelDistanceMeters() { public static final int TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER = 3; private boolean trafficInfoUnavailable_ = false; /** - * - * *
      * When traffic is requested via
      * [OptimizeToursRequest.consider_road_traffic]
@@ -6356,7 +5473,6 @@ public double getTravelDistanceMeters() {
      * 
* * bool traffic_info_unavailable = 3; - * * @return The trafficInfoUnavailable. */ @java.lang.Override @@ -6367,8 +5483,6 @@ public boolean getTrafficInfoUnavailable() { public static final int DELAY_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration delayDuration_; /** - * - * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -6377,7 +5491,6 @@ public boolean getTrafficInfoUnavailable() {
      * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return Whether the delayDuration field is set. */ @java.lang.Override @@ -6385,8 +5498,6 @@ public boolean hasDelayDuration() { return delayDuration_ != null; } /** - * - * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -6395,18 +5506,13 @@ public boolean hasDelayDuration() {
      * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return The delayDuration. */ @java.lang.Override public com.google.protobuf.Duration getDelayDuration() { - return delayDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : delayDuration_; + return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; } /** - * - * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -6418,16 +5524,12 @@ public com.google.protobuf.Duration getDelayDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
-      return delayDuration_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : delayDuration_;
+      return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_;
     }
 
     public static final int BREAK_DURATION_FIELD_NUMBER = 5;
     private com.google.protobuf.Duration breakDuration_;
     /**
-     *
-     *
      * 
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -6435,7 +5537,6 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
      * 
* * .google.protobuf.Duration break_duration = 5; - * * @return Whether the breakDuration field is set. */ @java.lang.Override @@ -6443,8 +5544,6 @@ public boolean hasBreakDuration() { return breakDuration_ != null; } /** - * - * *
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -6452,18 +5551,13 @@ public boolean hasBreakDuration() {
      * 
* * .google.protobuf.Duration break_duration = 5; - * * @return The breakDuration. */ @java.lang.Override public com.google.protobuf.Duration getBreakDuration() { - return breakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : breakDuration_; + return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; } /** - * - * *
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -6474,16 +5568,12 @@ public com.google.protobuf.Duration getBreakDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
-      return breakDuration_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : breakDuration_;
+      return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_;
     }
 
     public static final int WAIT_DURATION_FIELD_NUMBER = 6;
     private com.google.protobuf.Duration waitDuration_;
     /**
-     *
-     *
      * 
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -6491,7 +5581,6 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
      * 
* * .google.protobuf.Duration wait_duration = 6; - * * @return Whether the waitDuration field is set. */ @java.lang.Override @@ -6499,8 +5588,6 @@ public boolean hasWaitDuration() { return waitDuration_ != null; } /** - * - * *
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -6508,18 +5595,13 @@ public boolean hasWaitDuration() {
      * 
* * .google.protobuf.Duration wait_duration = 6; - * * @return The waitDuration. */ @java.lang.Override public com.google.protobuf.Duration getWaitDuration() { - return waitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : waitDuration_; + return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; } /** - * - * *
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -6530,16 +5612,12 @@ public com.google.protobuf.Duration getWaitDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
-      return waitDuration_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : waitDuration_;
+      return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_;
     }
 
     public static final int TOTAL_DURATION_FIELD_NUMBER = 7;
     private com.google.protobuf.Duration totalDuration_;
     /**
-     *
-     *
      * 
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -6552,7 +5630,6 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
      * 
* * .google.protobuf.Duration total_duration = 7; - * * @return Whether the totalDuration field is set. */ @java.lang.Override @@ -6560,8 +5637,6 @@ public boolean hasTotalDuration() { return totalDuration_ != null; } /** - * - * *
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -6574,18 +5649,13 @@ public boolean hasTotalDuration() {
      * 
* * .google.protobuf.Duration total_duration = 7; - * * @return The totalDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalDuration() { - return totalDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalDuration_; + return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_; } /** - * - * *
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -6601,22 +5671,17 @@ public com.google.protobuf.Duration getTotalDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
-      return totalDuration_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : totalDuration_;
+      return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_;
     }
 
     public static final int START_TIME_FIELD_NUMBER = 8;
     private com.google.protobuf.Timestamp startTime_;
     /**
-     *
-     *
      * 
      * Start time of this transition.
      * 
* * .google.protobuf.Timestamp start_time = 8; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -6624,14 +5689,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
      * Start time of this transition.
      * 
* * .google.protobuf.Timestamp start_time = 8; - * * @return The startTime. */ @java.lang.Override @@ -6639,8 +5701,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
      * Start time of this transition.
      * 
@@ -6655,8 +5715,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int ROUTE_POLYLINE_FIELD_NUMBER = 9; private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; /** - * - * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -6666,7 +5724,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * * @return Whether the routePolyline field is set. */ @java.lang.Override @@ -6674,8 +5731,6 @@ public boolean hasRoutePolyline() { return routePolyline_ != null; } /** - * - * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -6685,18 +5740,13 @@ public boolean hasRoutePolyline() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * * @return The routePolyline. */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { - return routePolyline_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() - : routePolyline_; + return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; } /** - * - * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -6708,52 +5758,37 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      */
     @java.lang.Override
-    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
-        getRoutePolylineOrBuilder() {
-      return routePolyline_ == null
-          ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()
-          : routePolyline_;
+    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() {
+      return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_;
     }
 
     public static final int VEHICLE_LOADS_FIELD_NUMBER = 11;
-
     private static final class VehicleLoadsDefaultEntryHolder {
       static final com.google.protobuf.MapEntry<
-              java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
-          defaultEntry =
+          java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> defaultEntry =
               com.google.protobuf.MapEntry
-                  .
-                      newDefaultInstance(
-                          com.google.cloud.optimization.v1.FleetRoutingProto
-                              .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor,
-                          com.google.protobuf.WireFormat.FieldType.STRING,
-                          "",
-                          com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                          com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad
-                              .getDefaultInstance());
+              .newDefaultInstance(
+                  com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor, 
+                  com.google.protobuf.WireFormat.FieldType.STRING,
+                  "",
+                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                  com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance());
     }
-
     @SuppressWarnings("serial")
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
-        vehicleLoads_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
-        internalGetVehicleLoads() {
+        java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicleLoads_;
+    private com.google.protobuf.MapField
+    internalGetVehicleLoads() {
       if (vehicleLoads_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             VehicleLoadsDefaultEntryHolder.defaultEntry);
       }
       return vehicleLoads_;
     }
-
     public int getVehicleLoadsCount() {
       return internalGetVehicleLoads().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6768,28 +5803,23 @@ public int getVehicleLoadsCount() {
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ @java.lang.Override - public boolean containsVehicleLoads(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsVehicleLoads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetVehicleLoads().getMap().containsKey(key); } - /** Use {@link #getVehicleLoadsMap()} instead. */ + /** + * Use {@link #getVehicleLoadsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - getVehicleLoads() { + public java.util.Map getVehicleLoads() { return getVehicleLoadsMap(); } /** - * - * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6804,19 +5834,13 @@ public boolean containsVehicleLoads(java.lang.String key) {
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - getVehicleLoadsMap() { + public java.util.Map getVehicleLoadsMap() { return internalGetVehicleLoads().getMap(); } /** - * - * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6831,26 +5855,20 @@ public boolean containsVehicleLoads(java.lang.String key) {
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad - getVehicleLoadsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetVehicleLoads().getMap(); + public /* nullable */ +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVehicleLoads().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -6865,18 +5883,14 @@ public boolean containsVehicleLoads(java.lang.String key) {
      * on whether the visit was a pickup or a delivery.
      * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetVehicleLoads().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVehicleLoads().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6884,98 +5898,77 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoad } public static final int LOADS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List loads_; /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getLoadsList() { + @java.lang.Deprecated public java.util.List getLoadsList() { return loads_; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getLoadsOrBuilderList() { return loads_; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getLoadsCount() { + @java.lang.Deprecated public int getLoadsCount() { return loads_.size(); } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { return loads_.get(index); } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder( + int index) { return loads_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6987,7 +5980,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (travelDuration_ != null) { output.writeMessage(1, getTravelDuration()); } @@ -7018,8 +6012,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < loads_.size(); i++) { output.writeMessage(10, loads_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetVehicleLoads(), VehicleLoadsDefaultEntryHolder.defaultEntry, 11); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetVehicleLoads(), + VehicleLoadsDefaultEntryHolder.defaultEntry, + 11); getUnknownFields().writeTo(output); } @@ -7030,47 +6028,54 @@ public int getSerializedSize() { size = 0; if (travelDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTravelDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTravelDuration()); } if (java.lang.Double.doubleToRawLongBits(travelDistanceMeters_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, travelDistanceMeters_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, travelDistanceMeters_); } if (trafficInfoUnavailable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trafficInfoUnavailable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, trafficInfoUnavailable_); } if (delayDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDelayDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDelayDuration()); } if (breakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBreakDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getBreakDuration()); } if (waitDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWaitDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getWaitDuration()); } if (totalDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTotalDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTotalDuration()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getStartTime()); } if (routePolyline_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRoutePolyline()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getRoutePolyline()); } for (int i = 0; i < loads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, loads_.get(i)); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - entry : internalGetVehicleLoads().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - vehicleLoads__ = - VehicleLoadsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, vehicleLoads__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, loads_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetVehicleLoads().getMap().entrySet()) { + com.google.protobuf.MapEntry + vehicleLoads__ = VehicleLoadsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, vehicleLoads__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7080,47 +6085,57 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.Transition)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.Transition other = - (com.google.cloud.optimization.v1.ShipmentRoute.Transition) obj; + com.google.cloud.optimization.v1.ShipmentRoute.Transition other = (com.google.cloud.optimization.v1.ShipmentRoute.Transition) obj; if (hasTravelDuration() != other.hasTravelDuration()) return false; if (hasTravelDuration()) { - if (!getTravelDuration().equals(other.getTravelDuration())) return false; + if (!getTravelDuration() + .equals(other.getTravelDuration())) return false; } if (java.lang.Double.doubleToLongBits(getTravelDistanceMeters()) - != java.lang.Double.doubleToLongBits(other.getTravelDistanceMeters())) return false; - if (getTrafficInfoUnavailable() != other.getTrafficInfoUnavailable()) return false; + != java.lang.Double.doubleToLongBits( + other.getTravelDistanceMeters())) return false; + if (getTrafficInfoUnavailable() + != other.getTrafficInfoUnavailable()) return false; if (hasDelayDuration() != other.hasDelayDuration()) return false; if (hasDelayDuration()) { - if (!getDelayDuration().equals(other.getDelayDuration())) return false; + if (!getDelayDuration() + .equals(other.getDelayDuration())) return false; } if (hasBreakDuration() != other.hasBreakDuration()) return false; if (hasBreakDuration()) { - if (!getBreakDuration().equals(other.getBreakDuration())) return false; + if (!getBreakDuration() + .equals(other.getBreakDuration())) return false; } if (hasWaitDuration() != other.hasWaitDuration()) return false; if (hasWaitDuration()) { - if (!getWaitDuration().equals(other.getWaitDuration())) return false; + if (!getWaitDuration() + .equals(other.getWaitDuration())) return false; } if (hasTotalDuration() != other.hasTotalDuration()) return false; if (hasTotalDuration()) { - if (!getTotalDuration().equals(other.getTotalDuration())) return false; + if (!getTotalDuration() + .equals(other.getTotalDuration())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasRoutePolyline() != other.hasRoutePolyline()) return false; if (hasRoutePolyline()) { - if (!getRoutePolyline().equals(other.getRoutePolyline())) return false; + if (!getRoutePolyline() + .equals(other.getRoutePolyline())) return false; } - if (!internalGetVehicleLoads().equals(other.internalGetVehicleLoads())) return false; - if (!getLoadsList().equals(other.getLoadsList())) return false; + if (!internalGetVehicleLoads().equals( + other.internalGetVehicleLoads())) return false; + if (!getLoadsList() + .equals(other.getLoadsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7137,12 +6152,11 @@ public int hashCode() { hash = (53 * hash) + getTravelDuration().hashCode(); } hash = (37 * hash) + TRAVEL_DISTANCE_METERS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTravelDistanceMeters())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTravelDistanceMeters())); hash = (37 * hash) + TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrafficInfoUnavailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTrafficInfoUnavailable()); if (hasDelayDuration()) { hash = (37 * hash) + DELAY_DURATION_FIELD_NUMBER; hash = (53 * hash) + getDelayDuration().hashCode(); @@ -7181,94 +6195,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.Transition prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Transition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7278,8 +6287,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Transition between two events on the route. See the description of
      * [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
@@ -7290,53 +6297,55 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Transition}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.Transition)
         com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMapField(
+          int number) {
         switch (number) {
           case 11:
             return internalGetVehicleLoads();
           default:
-            throw new RuntimeException("Invalid map field number: " + number);
+            throw new RuntimeException(
+                "Invalid map field number: " + number);
         }
       }
-
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMutableMapField(
+          int number) {
         switch (number) {
           case 11:
             return internalGetMutableVehicleLoads();
           default:
-            throw new RuntimeException("Invalid map field number: " + number);
+            throw new RuntimeException(
+                "Invalid map field number: " + number);
         }
       }
-
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.Transition.class,
-                com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.Transition.class, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.Transition.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -7390,9 +6399,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
       }
 
       @java.lang.Override
@@ -7411,18 +6420,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.Transition buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.Transition result =
-            new com.google.cloud.optimization.v1.ShipmentRoute.Transition(this);
+        com.google.cloud.optimization.v1.ShipmentRoute.Transition result = new com.google.cloud.optimization.v1.ShipmentRoute.Transition(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.optimization.v1.ShipmentRoute.Transition result) {
+      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentRoute.Transition result) {
         if (loadsBuilder_ == null) {
           if (((bitField0_ & 0x00000400) != 0)) {
             loads_ = java.util.Collections.unmodifiableList(loads_);
@@ -7437,8 +6442,9 @@ private void buildPartialRepeatedFields(
       private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Transition result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.travelDuration_ =
-              travelDurationBuilder_ == null ? travelDuration_ : travelDurationBuilder_.build();
+          result.travelDuration_ = travelDurationBuilder_ == null
+              ? travelDuration_
+              : travelDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.travelDistanceMeters_ = travelDistanceMeters_;
@@ -7447,27 +6453,34 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Transi
           result.trafficInfoUnavailable_ = trafficInfoUnavailable_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.delayDuration_ =
-              delayDurationBuilder_ == null ? delayDuration_ : delayDurationBuilder_.build();
+          result.delayDuration_ = delayDurationBuilder_ == null
+              ? delayDuration_
+              : delayDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.breakDuration_ =
-              breakDurationBuilder_ == null ? breakDuration_ : breakDurationBuilder_.build();
+          result.breakDuration_ = breakDurationBuilder_ == null
+              ? breakDuration_
+              : breakDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000020) != 0)) {
-          result.waitDuration_ =
-              waitDurationBuilder_ == null ? waitDuration_ : waitDurationBuilder_.build();
+          result.waitDuration_ = waitDurationBuilder_ == null
+              ? waitDuration_
+              : waitDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
-          result.totalDuration_ =
-              totalDurationBuilder_ == null ? totalDuration_ : totalDurationBuilder_.build();
+          result.totalDuration_ = totalDurationBuilder_ == null
+              ? totalDuration_
+              : totalDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000080) != 0)) {
-          result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+          result.startTime_ = startTimeBuilder_ == null
+              ? startTime_
+              : startTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000100) != 0)) {
-          result.routePolyline_ =
-              routePolylineBuilder_ == null ? routePolyline_ : routePolylineBuilder_.build();
+          result.routePolyline_ = routePolylineBuilder_ == null
+              ? routePolyline_
+              : routePolylineBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000200) != 0)) {
           result.vehicleLoads_ = internalGetVehicleLoads();
@@ -7479,41 +6492,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Transi
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.Transition) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Transition) other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Transition)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -7521,8 +6531,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Transition other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()) return this;
         if (other.hasTravelDuration()) {
           mergeTravelDuration(other.getTravelDuration());
         }
@@ -7550,7 +6559,8 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Transiti
         if (other.hasRoutePolyline()) {
           mergeRoutePolyline(other.getRoutePolyline());
         }
-        internalGetMutableVehicleLoads().mergeFrom(other.internalGetVehicleLoads());
+        internalGetMutableVehicleLoads().mergeFrom(
+            other.internalGetVehicleLoads());
         bitField0_ |= 0x00000200;
         if (loadsBuilder_ == null) {
           if (!other.loads_.isEmpty()) {
@@ -7570,10 +6580,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Transiti
               loadsBuilder_ = null;
               loads_ = other.loads_;
               bitField0_ = (bitField0_ & ~0x00000400);
-              loadsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getLoadsFieldBuilder()
-                      : null;
+              loadsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getLoadsFieldBuilder() : null;
             } else {
               loadsBuilder_.addAllMessages(other.loads_);
             }
@@ -7605,99 +6614,95 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(
-                      getTravelDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 17:
-                {
-                  travelDistanceMeters_ = input.readDouble();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 17
-              case 24:
-                {
-                  trafficInfoUnavailable_ = input.readBool();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 24
-              case 34:
-                {
-                  input.readMessage(getDelayDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              case 42:
-                {
-                  input.readMessage(getBreakDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 42
-              case 50:
-                {
-                  input.readMessage(getWaitDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000020;
-                  break;
-                } // case 50
-              case 58:
-                {
-                  input.readMessage(getTotalDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000040;
-                  break;
-                } // case 58
-              case 66:
-                {
-                  input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000080;
-                  break;
-                } // case 66
-              case 74:
-                {
-                  input.readMessage(getRoutePolylineFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000100;
-                  break;
-                } // case 74
-              case 82:
-                {
-                  com.google.cloud.optimization.v1.CapacityQuantity m =
-                      input.readMessage(
-                          com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                          extensionRegistry);
-                  if (loadsBuilder_ == null) {
-                    ensureLoadsIsMutable();
-                    loads_.add(m);
-                  } else {
-                    loadsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 82
-              case 90:
-                {
-                  com.google.protobuf.MapEntry<
-                          java.lang.String,
-                          com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
-                      vehicleLoads__ =
-                          input.readMessage(
-                              VehicleLoadsDefaultEntryHolder.defaultEntry.getParserForType(),
-                              extensionRegistry);
-                  internalGetMutableVehicleLoads()
-                      .getMutableMap()
-                      .put(vehicleLoads__.getKey(), vehicleLoads__.getValue());
-                  bitField0_ |= 0x00000200;
-                  break;
-                } // case 90
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
-            } // switch (tag)
-          } // while (!done)
+              case 10: {
+                input.readMessage(
+                    getTravelDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 17: {
+                travelDistanceMeters_ = input.readDouble();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 17
+              case 24: {
+                trafficInfoUnavailable_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+              case 34: {
+                input.readMessage(
+                    getDelayDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              case 42: {
+                input.readMessage(
+                    getBreakDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+              case 50: {
+                input.readMessage(
+                    getWaitDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+              case 58: {
+                input.readMessage(
+                    getTotalDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+              case 66: {
+                input.readMessage(
+                    getStartTimeFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+              case 74: {
+                input.readMessage(
+                    getRoutePolylineFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+              case 82: {
+                com.google.cloud.optimization.v1.CapacityQuantity m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                        extensionRegistry);
+                if (loadsBuilder_ == null) {
+                  ensureLoadsIsMutable();
+                  loads_.add(m);
+                } else {
+                  loadsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 82
+              case 90: {
+                com.google.protobuf.MapEntry
+                vehicleLoads__ = input.readMessage(
+                    VehicleLoadsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+                internalGetMutableVehicleLoads().getMutableMap().put(
+                    vehicleLoads__.getKey(), vehicleLoads__.getValue());
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 90
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+            } // switch (tag)
+          } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.unwrapIOException();
         } finally {
@@ -7705,52 +6710,38 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.Duration travelDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          travelDurationBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> travelDurationBuilder_;
       /**
-       *
-       *
        * 
        * Travel duration during this transition.
        * 
* * .google.protobuf.Duration travel_duration = 1; - * * @return Whether the travelDuration field is set. */ public boolean hasTravelDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Travel duration during this transition.
        * 
* * .google.protobuf.Duration travel_duration = 1; - * * @return The travelDuration. */ public com.google.protobuf.Duration getTravelDuration() { if (travelDurationBuilder_ == null) { - return travelDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : travelDuration_; + return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; } else { return travelDurationBuilder_.getMessage(); } } /** - * - * *
        * Travel duration during this transition.
        * 
@@ -7771,15 +6762,14 @@ public Builder setTravelDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Travel duration during this transition.
        * 
* * .google.protobuf.Duration travel_duration = 1; */ - public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTravelDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (travelDurationBuilder_ == null) { travelDuration_ = builderForValue.build(); } else { @@ -7790,8 +6780,6 @@ public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
        * Travel duration during this transition.
        * 
@@ -7800,9 +6788,9 @@ public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeTravelDuration(com.google.protobuf.Duration value) { if (travelDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && travelDuration_ != null - && travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + travelDuration_ != null && + travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTravelDurationBuilder().mergeFrom(value); } else { travelDuration_ = value; @@ -7815,8 +6803,6 @@ public Builder mergeTravelDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Travel duration during this transition.
        * 
@@ -7834,8 +6820,6 @@ public Builder clearTravelDuration() { return this; } /** - * - * *
        * Travel duration during this transition.
        * 
@@ -7848,8 +6832,6 @@ public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { return getTravelDurationFieldBuilder().getBuilder(); } /** - * - * *
        * Travel duration during this transition.
        * 
@@ -7860,14 +6842,11 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { if (travelDurationBuilder_ != null) { return travelDurationBuilder_.getMessageOrBuilder(); } else { - return travelDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : travelDuration_; + return travelDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; } } /** - * - * *
        * Travel duration during this transition.
        * 
@@ -7875,32 +6854,26 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { * .google.protobuf.Duration travel_duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTravelDurationFieldBuilder() { if (travelDurationBuilder_ == null) { - travelDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTravelDuration(), getParentForChildren(), isClean()); + travelDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), + getParentForChildren(), + isClean()); travelDuration_ = null; } return travelDurationBuilder_; } - private double travelDistanceMeters_; + private double travelDistanceMeters_ ; /** - * - * *
        * Distance traveled during the transition.
        * 
* * double travel_distance_meters = 2; - * * @return The travelDistanceMeters. */ @java.lang.Override @@ -7908,14 +6881,11 @@ public double getTravelDistanceMeters() { return travelDistanceMeters_; } /** - * - * *
        * Distance traveled during the transition.
        * 
* * double travel_distance_meters = 2; - * * @param value The travelDistanceMeters to set. * @return This builder for chaining. */ @@ -7927,14 +6897,11 @@ public Builder setTravelDistanceMeters(double value) { return this; } /** - * - * *
        * Distance traveled during the transition.
        * 
* * double travel_distance_meters = 2; - * * @return This builder for chaining. */ public Builder clearTravelDistanceMeters() { @@ -7944,10 +6911,8 @@ public Builder clearTravelDistanceMeters() { return this; } - private boolean trafficInfoUnavailable_; + private boolean trafficInfoUnavailable_ ; /** - * - * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic]
@@ -7958,7 +6923,6 @@ public Builder clearTravelDistanceMeters() {
        * 
* * bool traffic_info_unavailable = 3; - * * @return The trafficInfoUnavailable. */ @java.lang.Override @@ -7966,8 +6930,6 @@ public boolean getTrafficInfoUnavailable() { return trafficInfoUnavailable_; } /** - * - * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic]
@@ -7978,7 +6940,6 @@ public boolean getTrafficInfoUnavailable() {
        * 
* * bool traffic_info_unavailable = 3; - * * @param value The trafficInfoUnavailable to set. * @return This builder for chaining. */ @@ -7990,8 +6951,6 @@ public Builder setTrafficInfoUnavailable(boolean value) { return this; } /** - * - * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic]
@@ -8002,7 +6961,6 @@ public Builder setTrafficInfoUnavailable(boolean value) {
        * 
* * bool traffic_info_unavailable = 3; - * * @return This builder for chaining. */ public Builder clearTrafficInfoUnavailable() { @@ -8014,13 +6972,8 @@ public Builder clearTrafficInfoUnavailable() { private com.google.protobuf.Duration delayDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - delayDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayDurationBuilder_; /** - * - * *
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8029,15 +6982,12 @@ public Builder clearTrafficInfoUnavailable() {
        * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return Whether the delayDuration field is set. */ public boolean hasDelayDuration() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8046,21 +6996,16 @@ public boolean hasDelayDuration() {
        * 
* * .google.protobuf.Duration delay_duration = 4; - * * @return The delayDuration. */ public com.google.protobuf.Duration getDelayDuration() { if (delayDurationBuilder_ == null) { - return delayDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : delayDuration_; + return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; } else { return delayDurationBuilder_.getMessage(); } } /** - * - * *
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8084,8 +7029,6 @@ public Builder setDelayDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8095,7 +7038,8 @@ public Builder setDelayDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration delay_duration = 4;
        */
-      public Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setDelayDuration(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (delayDurationBuilder_ == null) {
           delayDuration_ = builderForValue.build();
         } else {
@@ -8106,8 +7050,6 @@ public Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8119,9 +7061,9 @@ public Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForV
        */
       public Builder mergeDelayDuration(com.google.protobuf.Duration value) {
         if (delayDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0)
-              && delayDuration_ != null
-              && delayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0) &&
+            delayDuration_ != null &&
+            delayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getDelayDurationBuilder().mergeFrom(value);
           } else {
             delayDuration_ = value;
@@ -8134,8 +7076,6 @@ public Builder mergeDelayDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8156,8 +7096,6 @@ public Builder clearDelayDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8173,8 +7111,6 @@ public com.google.protobuf.Duration.Builder getDelayDurationBuilder() {
         return getDelayDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8188,14 +7124,11 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
         if (delayDurationBuilder_ != null) {
           return delayDurationBuilder_.getMessageOrBuilder();
         } else {
-          return delayDuration_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : delayDuration_;
+          return delayDuration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : delayDuration_;
         }
       }
       /**
-       *
-       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -8206,17 +7139,14 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
        * .google.protobuf.Duration delay_duration = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getDelayDurationFieldBuilder() {
         if (delayDurationBuilder_ == null) {
-          delayDurationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getDelayDuration(), getParentForChildren(), isClean());
+          delayDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getDelayDuration(),
+                  getParentForChildren(),
+                  isClean());
           delayDuration_ = null;
         }
         return delayDurationBuilder_;
@@ -8224,13 +7154,8 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
 
       private com.google.protobuf.Duration breakDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          breakDurationBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> breakDurationBuilder_;
       /**
-       *
-       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8238,15 +7163,12 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
        * 
* * .google.protobuf.Duration break_duration = 5; - * * @return Whether the breakDuration field is set. */ public boolean hasBreakDuration() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8254,21 +7176,16 @@ public boolean hasBreakDuration() {
        * 
* * .google.protobuf.Duration break_duration = 5; - * * @return The breakDuration. */ public com.google.protobuf.Duration getBreakDuration() { if (breakDurationBuilder_ == null) { - return breakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : breakDuration_; + return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; } else { return breakDurationBuilder_.getMessage(); } } /** - * - * *
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8291,8 +7208,6 @@ public Builder setBreakDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8301,7 +7216,8 @@ public Builder setBreakDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration break_duration = 5;
        */
-      public Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setBreakDuration(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (breakDurationBuilder_ == null) {
           breakDuration_ = builderForValue.build();
         } else {
@@ -8312,8 +7228,6 @@ public Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8324,9 +7238,9 @@ public Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForV
        */
       public Builder mergeBreakDuration(com.google.protobuf.Duration value) {
         if (breakDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000010) != 0)
-              && breakDuration_ != null
-              && breakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000010) != 0) &&
+            breakDuration_ != null &&
+            breakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getBreakDurationBuilder().mergeFrom(value);
           } else {
             breakDuration_ = value;
@@ -8339,8 +7253,6 @@ public Builder mergeBreakDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8360,8 +7272,6 @@ public Builder clearBreakDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8376,8 +7286,6 @@ public com.google.protobuf.Duration.Builder getBreakDurationBuilder() {
         return getBreakDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8390,14 +7298,11 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
         if (breakDurationBuilder_ != null) {
           return breakDurationBuilder_.getMessageOrBuilder();
         } else {
-          return breakDuration_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : breakDuration_;
+          return breakDuration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : breakDuration_;
         }
       }
       /**
-       *
-       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -8407,17 +7312,14 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
        * .google.protobuf.Duration break_duration = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getBreakDurationFieldBuilder() {
         if (breakDurationBuilder_ == null) {
-          breakDurationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getBreakDuration(), getParentForChildren(), isClean());
+          breakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getBreakDuration(),
+                  getParentForChildren(),
+                  isClean());
           breakDuration_ = null;
         }
         return breakDurationBuilder_;
@@ -8425,13 +7327,8 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
 
       private com.google.protobuf.Duration waitDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          waitDurationBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> waitDurationBuilder_;
       /**
-       *
-       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8439,15 +7336,12 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
        * 
* * .google.protobuf.Duration wait_duration = 6; - * * @return Whether the waitDuration field is set. */ public boolean hasWaitDuration() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8455,21 +7349,16 @@ public boolean hasWaitDuration() {
        * 
* * .google.protobuf.Duration wait_duration = 6; - * * @return The waitDuration. */ public com.google.protobuf.Duration getWaitDuration() { if (waitDurationBuilder_ == null) { - return waitDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : waitDuration_; + return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; } else { return waitDurationBuilder_.getMessage(); } } /** - * - * *
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8492,8 +7381,6 @@ public Builder setWaitDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8502,7 +7389,8 @@ public Builder setWaitDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration wait_duration = 6;
        */
-      public Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setWaitDuration(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (waitDurationBuilder_ == null) {
           waitDuration_ = builderForValue.build();
         } else {
@@ -8513,8 +7401,6 @@ public Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForVa
         return this;
       }
       /**
-       *
-       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8525,9 +7411,9 @@ public Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForVa
        */
       public Builder mergeWaitDuration(com.google.protobuf.Duration value) {
         if (waitDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000020) != 0)
-              && waitDuration_ != null
-              && waitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000020) != 0) &&
+            waitDuration_ != null &&
+            waitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getWaitDurationBuilder().mergeFrom(value);
           } else {
             waitDuration_ = value;
@@ -8540,8 +7426,6 @@ public Builder mergeWaitDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8561,8 +7445,6 @@ public Builder clearWaitDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8577,8 +7459,6 @@ public com.google.protobuf.Duration.Builder getWaitDurationBuilder() {
         return getWaitDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8591,14 +7471,11 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
         if (waitDurationBuilder_ != null) {
           return waitDurationBuilder_.getMessageOrBuilder();
         } else {
-          return waitDuration_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : waitDuration_;
+          return waitDuration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : waitDuration_;
         }
       }
       /**
-       *
-       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -8608,17 +7485,14 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
        * .google.protobuf.Duration wait_duration = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getWaitDurationFieldBuilder() {
         if (waitDurationBuilder_ == null) {
-          waitDurationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getWaitDuration(), getParentForChildren(), isClean());
+          waitDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getWaitDuration(),
+                  getParentForChildren(),
+                  isClean());
           waitDuration_ = null;
         }
         return waitDurationBuilder_;
@@ -8626,13 +7500,8 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
 
       private com.google.protobuf.Duration totalDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          totalDurationBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalDurationBuilder_;
       /**
-       *
-       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8645,15 +7514,12 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
        * 
* * .google.protobuf.Duration total_duration = 7; - * * @return Whether the totalDuration field is set. */ public boolean hasTotalDuration() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8666,21 +7532,16 @@ public boolean hasTotalDuration() {
        * 
* * .google.protobuf.Duration total_duration = 7; - * * @return The totalDuration. */ public com.google.protobuf.Duration getTotalDuration() { if (totalDurationBuilder_ == null) { - return totalDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalDuration_; + return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_; } else { return totalDurationBuilder_.getMessage(); } } /** - * - * *
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8708,8 +7569,6 @@ public Builder setTotalDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8723,7 +7582,8 @@ public Builder setTotalDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration total_duration = 7;
        */
-      public Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setTotalDuration(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (totalDurationBuilder_ == null) {
           totalDuration_ = builderForValue.build();
         } else {
@@ -8734,8 +7594,6 @@ public Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8751,9 +7609,9 @@ public Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForV
        */
       public Builder mergeTotalDuration(com.google.protobuf.Duration value) {
         if (totalDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000040) != 0)
-              && totalDuration_ != null
-              && totalDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000040) != 0) &&
+            totalDuration_ != null &&
+            totalDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getTotalDurationBuilder().mergeFrom(value);
           } else {
             totalDuration_ = value;
@@ -8766,8 +7624,6 @@ public Builder mergeTotalDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8792,8 +7648,6 @@ public Builder clearTotalDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8813,8 +7667,6 @@ public com.google.protobuf.Duration.Builder getTotalDurationBuilder() {
         return getTotalDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8832,14 +7684,11 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
         if (totalDurationBuilder_ != null) {
           return totalDurationBuilder_.getMessageOrBuilder();
         } else {
-          return totalDuration_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : totalDuration_;
+          return totalDuration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : totalDuration_;
         }
       }
       /**
-       *
-       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -8854,17 +7703,14 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
        * .google.protobuf.Duration total_duration = 7;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getTotalDurationFieldBuilder() {
         if (totalDurationBuilder_ == null) {
-          totalDurationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getTotalDuration(), getParentForChildren(), isClean());
+          totalDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getTotalDuration(),
+                  getParentForChildren(),
+                  isClean());
           totalDuration_ = null;
         }
         return totalDurationBuilder_;
@@ -8872,47 +7718,34 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
 
       private com.google.protobuf.Timestamp startTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
-          startTimeBuilder_;
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
       /**
-       *
-       *
        * 
        * Start time of this transition.
        * 
* * .google.protobuf.Timestamp start_time = 8; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
        * Start time of this transition.
        * 
* * .google.protobuf.Timestamp start_time = 8; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** - * - * *
        * Start time of this transition.
        * 
@@ -8933,15 +7766,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Start time of this transition.
        * 
* * .google.protobuf.Timestamp start_time = 8; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -8952,8 +7784,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
        * Start time of this transition.
        * 
@@ -8962,9 +7792,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -8977,8 +7807,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Start time of this transition.
        * 
@@ -8996,8 +7824,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
        * Start time of this transition.
        * 
@@ -9010,8 +7836,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Start time of this transition.
        * 
@@ -9022,14 +7846,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
        * Start time of this transition.
        * 
@@ -9037,17 +7858,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -9055,13 +7873,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> - routePolylineBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> routePolylineBuilder_; /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9070,17 +7883,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; * @return Whether the routePolyline field is set. */ public boolean hasRoutePolyline() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9089,23 +7898,17 @@ public boolean hasRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; * @return The routePolyline. */ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { if (routePolylineBuilder_ == null) { - return routePolyline_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() - : routePolyline_; + return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; } else { return routePolylineBuilder_.getMessage(); } } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9114,11 +7917,9 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; */ - public Builder setRoutePolyline( - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { + public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { if (routePolylineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9132,8 +7933,6 @@ public Builder setRoutePolyline( return this; } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9142,8 +7941,7 @@ public Builder setRoutePolyline(
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; */ public Builder setRoutePolyline( com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder builderForValue) { @@ -9157,8 +7955,6 @@ public Builder setRoutePolyline( return this; } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9167,17 +7963,13 @@ public Builder setRoutePolyline(
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; */ - public Builder mergeRoutePolyline( - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { + public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { if (routePolylineBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && routePolyline_ != null - && routePolyline_ - != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline - .getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + routePolyline_ != null && + routePolyline_ != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()) { getRoutePolylineBuilder().mergeFrom(value); } else { routePolyline_ = value; @@ -9190,8 +7982,6 @@ public Builder mergeRoutePolyline( return this; } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9200,8 +7990,7 @@ public Builder mergeRoutePolyline(
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; */ public Builder clearRoutePolyline() { bitField0_ = (bitField0_ & ~0x00000100); @@ -9214,8 +8003,6 @@ public Builder clearRoutePolyline() { return this; } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9224,18 +8011,14 @@ public Builder clearRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; */ - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder - getRoutePolylineBuilder() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder getRoutePolylineBuilder() { bitField0_ |= 0x00000100; onChanged(); return getRoutePolylineFieldBuilder().getBuilder(); } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9244,22 +8027,17 @@ public Builder clearRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; */ - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder - getRoutePolylineOrBuilder() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() { if (routePolylineBuilder_ != null) { return routePolylineBuilder_.getMessageOrBuilder(); } else { - return routePolyline_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() - : routePolyline_; + return routePolyline_ == null ? + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; } } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -9268,32 +8046,25 @@ public Builder clearRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> getRoutePolylineFieldBuilder() { if (routePolylineBuilder_ == null) { - routePolylineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>( - getRoutePolyline(), getParentForChildren(), isClean()); + routePolylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>( + getRoutePolyline(), + getParentForChildren(), + isClean()); routePolyline_ = null; } return routePolylineBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - vehicleLoads_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicleLoads_; + private com.google.protobuf.MapField internalGetVehicleLoads() { if (vehicleLoads_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -9301,13 +8072,11 @@ public Builder clearRoutePolyline() { } return vehicleLoads_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + private com.google.protobuf.MapField internalGetMutableVehicleLoads() { if (vehicleLoads_ == null) { - vehicleLoads_ = - com.google.protobuf.MapField.newMapField(VehicleLoadsDefaultEntryHolder.defaultEntry); + vehicleLoads_ = com.google.protobuf.MapField.newMapField( + VehicleLoadsDefaultEntryHolder.defaultEntry); } if (!vehicleLoads_.isMutable()) { vehicleLoads_ = vehicleLoads_.copy(); @@ -9316,13 +8085,10 @@ public Builder clearRoutePolyline() { onChanged(); return vehicleLoads_; } - public int getVehicleLoadsCount() { return internalGetVehicleLoads().getMap().size(); } /** - * - * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -9337,28 +8103,23 @@ public int getVehicleLoadsCount() {
        * on whether the visit was a pickup or a delivery.
        * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ @java.lang.Override - public boolean containsVehicleLoads(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsVehicleLoads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetVehicleLoads().getMap().containsKey(key); } - /** Use {@link #getVehicleLoadsMap()} instead. */ + /** + * Use {@link #getVehicleLoadsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - getVehicleLoads() { + public java.util.Map getVehicleLoads() { return getVehicleLoadsMap(); } /** - * - * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -9373,19 +8134,13 @@ public boolean containsVehicleLoads(java.lang.String key) {
        * on whether the visit was a pickup or a delivery.
        * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - getVehicleLoadsMap() { + public java.util.Map getVehicleLoadsMap() { return internalGetVehicleLoads().getMap(); } /** - * - * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -9400,26 +8155,20 @@ public boolean containsVehicleLoads(java.lang.String key) {
        * on whether the visit was a pickup or a delivery.
        * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad - getVehicleLoadsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetVehicleLoads().getMap(); + public /* nullable */ +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVehicleLoads().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -9434,32 +8183,26 @@ public boolean containsVehicleLoads(java.lang.String key) {
        * on whether the visit was a pickup or a delivery.
        * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetVehicleLoads().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVehicleLoads().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearVehicleLoads() { bitField0_ = (bitField0_ & ~0x00000200); - internalGetMutableVehicleLoads().getMutableMap().clear(); + internalGetMutableVehicleLoads().getMutableMap() + .clear(); return this; } /** - * - * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -9474,28 +8217,25 @@ public Builder clearVehicleLoads() {
        * on whether the visit was a pickup or a delivery.
        * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ - public Builder removeVehicleLoads(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableVehicleLoads().getMutableMap().remove(key); + public Builder removeVehicleLoads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableVehicleLoads().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + public java.util.Map getMutableVehicleLoads() { bitField0_ |= 0x00000200; return internalGetMutableVehicleLoads().getMutableMap(); } /** - * - * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -9510,25 +8250,19 @@ public Builder removeVehicleLoads(java.lang.String key) {
        * on whether the visit was a pickup or a delivery.
        * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ public Builder putVehicleLoads( - java.lang.String key, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableVehicleLoads().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableVehicleLoads().getMutableMap() + .put(key, value); bitField0_ |= 0x00000200; return this; } /** - * - * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -9543,51 +8277,38 @@ public Builder putVehicleLoads(
        * on whether the visit was a pickup or a delivery.
        * 
* - * - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; */ public Builder putAllVehicleLoads( - java.util.Map< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> - values) { - internalGetMutableVehicleLoads().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableVehicleLoads().getMutableMap() + .putAll(values); bitField0_ |= 0x00000200; return this; } private java.util.List loads_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLoadsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - loads_ = - new java.util.ArrayList(loads_); + loads_ = new java.util.ArrayList(loads_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> - loadsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> loadsBuilder_; /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List getLoadsList() { + @java.lang.Deprecated public java.util.List getLoadsList() { if (loadsBuilder_ == null) { return java.util.Collections.unmodifiableList(loads_); } else { @@ -9595,20 +8316,15 @@ public java.util.List getLoad } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public int getLoadsCount() { + @java.lang.Deprecated public int getLoadsCount() { if (loadsBuilder_ == null) { return loads_.size(); } else { @@ -9616,20 +8332,15 @@ public int getLoadsCount() { } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { if (loadsBuilder_ == null) { return loads_.get(index); } else { @@ -9637,20 +8348,16 @@ public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setLoads(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder setLoads( + int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (loadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9664,20 +8371,15 @@ public Builder setLoads(int index, com.google.cloud.optimization.v1.CapacityQuan return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setLoads( + @java.lang.Deprecated public Builder setLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); @@ -9689,20 +8391,15 @@ public Builder setLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { if (loadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9716,20 +8413,16 @@ public Builder addLoads(com.google.cloud.optimization.v1.CapacityQuantity value) return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addLoads(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addLoads( + int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (loadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9743,20 +8436,15 @@ public Builder addLoads(int index, com.google.cloud.optimization.v1.CapacityQuan return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addLoads( + @java.lang.Deprecated public Builder addLoads( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); @@ -9768,20 +8456,15 @@ public Builder addLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addLoads( + @java.lang.Deprecated public Builder addLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); @@ -9793,24 +8476,20 @@ public Builder addLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllLoads( + @java.lang.Deprecated public Builder addAllLoads( java.lang.Iterable values) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, loads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, loads_); onChanged(); } else { loadsBuilder_.addAllMessages(values); @@ -9818,20 +8497,15 @@ public Builder addAllLoads( return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearLoads() { + @java.lang.Deprecated public Builder clearLoads() { if (loadsBuilder_ == null) { loads_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); @@ -9842,20 +8516,15 @@ public Builder clearLoads() { return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeLoads(int index) { + @java.lang.Deprecated public Builder removeLoads(int index) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); loads_.remove(index); @@ -9866,60 +8535,45 @@ public Builder removeLoads(int index) { return this; } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder getLoadsBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getLoadsBuilder( + int index) { return getLoadsFieldBuilder().getBuilder(index); } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder( int index) { if (loadsBuilder_ == null) { - return loads_.get(index); - } else { + return loads_.get(index); } else { return loadsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getLoadsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getLoadsOrBuilderList() { if (loadsBuilder_ != null) { return loadsBuilder_.getMessageOrBuilderList(); } else { @@ -9927,78 +8581,59 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuil } } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addLoadsBuilder() { - return getLoadsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addLoadsBuilder() { + return getLoadsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addLoadsBuilder(int index) { - return getLoadsFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addLoadsBuilder( + int index) { + return getLoadsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getLoadsBuilderList() { + @java.lang.Deprecated public java.util.List + getLoadsBuilderList() { return getLoadsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getLoadsFieldBuilder() { if (loadsBuilder_ == null) { - loadsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - loads_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + loadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + loads_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); loads_ = null; } return loadsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10011,12 +8646,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.Transition) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.Transition) private static final com.google.cloud.optimization.v1.ShipmentRoute.Transition DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.Transition(); } @@ -10025,28 +8660,27 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.Transition getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Transition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Transition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10061,16 +8695,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.Transition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface VehicleLoadOrBuilder - extends + public interface VehicleLoadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The amount of load on the vehicle, for the given type. The unit of load
      * is usually indicated by the type. See
@@ -10078,14 +8710,11 @@ public interface VehicleLoadOrBuilder
      * 
* * int64 amount = 1; - * * @return The amount. */ long getAmount(); } /** - * - * *
    * Reports the actual load of the vehicle at some point along the route,
    * for a given type (see
@@ -10094,44 +8723,41 @@ public interface VehicleLoadOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.VehicleLoad}
    */
-  public static final class VehicleLoad extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class VehicleLoad extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad)
       VehicleLoadOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use VehicleLoad.newBuilder() to construct.
     private VehicleLoad(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private VehicleLoad() {}
+    private VehicleLoad() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new VehicleLoad();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.class,
-              com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.class, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.Builder.class);
     }
 
     public static final int AMOUNT_FIELD_NUMBER = 1;
     private long amount_ = 0L;
     /**
-     *
-     *
      * 
      * The amount of load on the vehicle, for the given type. The unit of load
      * is usually indicated by the type. See
@@ -10139,7 +8765,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int64 amount = 1; - * * @return The amount. */ @java.lang.Override @@ -10148,7 +8773,6 @@ public long getAmount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10160,7 +8784,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (amount_ != 0L) { output.writeInt64(1, amount_); } @@ -10174,7 +8799,8 @@ public int getSerializedSize() { size = 0; if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, amount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10184,15 +8810,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad other = - (com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) obj; + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad other = (com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) obj; - if (getAmount() != other.getAmount()) return false; + if (getAmount() + != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10205,101 +8831,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10309,8 +8931,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Reports the actual load of the vehicle at some point along the route,
      * for a given type (see
@@ -10319,33 +8939,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.VehicleLoad}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad)
         com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoadOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.class,
-                com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.class, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -10355,14 +8975,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad
-          getDefaultInstanceForType() {
+      public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getDefaultInstanceForType() {
         return com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance();
       }
 
@@ -10377,17 +8996,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad result =
-            new com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad result = new com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad result) {
+      private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.amount_ = amount_;
@@ -10398,41 +9013,38 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -10440,9 +9052,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad other) {
-        if (other
-            == com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance()) return this;
         if (other.getAmount() != 0L) {
           setAmount(other.getAmount());
         }
@@ -10472,19 +9082,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  amount_ = input.readInt64();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                amount_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10494,13 +9102,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private long amount_;
+      private long amount_ ;
       /**
-       *
-       *
        * 
        * The amount of load on the vehicle, for the given type. The unit of load
        * is usually indicated by the type. See
@@ -10508,7 +9113,6 @@ public Builder mergeFrom(
        * 
* * int64 amount = 1; - * * @return The amount. */ @java.lang.Override @@ -10516,8 +9120,6 @@ public long getAmount() { return amount_; } /** - * - * *
        * The amount of load on the vehicle, for the given type. The unit of load
        * is usually indicated by the type. See
@@ -10525,7 +9127,6 @@ public long getAmount() {
        * 
* * int64 amount = 1; - * * @param value The amount to set. * @return This builder for chaining. */ @@ -10537,8 +9138,6 @@ public Builder setAmount(long value) { return this; } /** - * - * *
        * The amount of load on the vehicle, for the given type. The unit of load
        * is usually indicated by the type. See
@@ -10546,7 +9145,6 @@ public Builder setAmount(long value) {
        * 
* * int64 amount = 1; - * * @return This builder for chaining. */ public Builder clearAmount() { @@ -10555,7 +9153,6 @@ public Builder clearAmount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10568,13 +9165,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) - private static final com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad(); } @@ -10583,28 +9179,27 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VehicleLoad parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VehicleLoad parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10619,41 +9214,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface EncodedPolylineOrBuilder - extends + public interface EncodedPolylineOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * String representing encoded points of the polyline.
      * 
* * string points = 1; - * * @return The points. */ java.lang.String getPoints(); /** - * - * *
      * String representing encoded points of the polyline.
      * 
* * string points = 1; - * * @return The bytes for points. */ - com.google.protobuf.ByteString getPointsBytes(); + com.google.protobuf.ByteString + getPointsBytes(); } /** - * - * *
    * The encoded representation of a polyline. More information on polyline
    * encoding can be found here:
@@ -10663,54 +9251,48 @@ public interface EncodedPolylineOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline}
    */
-  public static final class EncodedPolyline extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class EncodedPolyline extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline)
       EncodedPolylineOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use EncodedPolyline.newBuilder() to construct.
     private EncodedPolyline(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private EncodedPolyline() {
       points_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new EncodedPolyline();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.class,
-              com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.class, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder.class);
     }
 
     public static final int POINTS_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object points_ = "";
     /**
-     *
-     *
      * 
      * String representing encoded points of the polyline.
      * 
* * string points = 1; - * * @return The points. */ @java.lang.Override @@ -10719,29 +9301,29 @@ public java.lang.String getPoints() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); points_ = s; return s; } } /** - * - * *
      * String representing encoded points of the polyline.
      * 
* * string points = 1; - * * @return The bytes for points. */ @java.lang.Override - public com.google.protobuf.ByteString getPointsBytes() { + public com.google.protobuf.ByteString + getPointsBytes() { java.lang.Object ref = points_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); points_ = b; return b; } else { @@ -10750,7 +9332,6 @@ public com.google.protobuf.ByteString getPointsBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10762,7 +9343,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(points_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, points_); } @@ -10786,15 +9368,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline other = - (com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) obj; + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline other = (com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) obj; - if (!getPoints().equals(other.getPoints())) return false; + if (!getPoints() + .equals(other.getPoints())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10814,94 +9396,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10911,8 +9488,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The encoded representation of a polyline. More information on polyline
      * encoding can be found here:
@@ -10922,33 +9497,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline)
         com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.class,
-                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.class, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -10958,14 +9533,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline
-          getDefaultInstanceForType() {
+      public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getDefaultInstanceForType() {
         return com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance();
       }
 
@@ -10980,17 +9554,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline result =
-            new com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline result = new com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline result) {
+      private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.points_ = points_;
@@ -11001,52 +9571,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline other) {
-        if (other
-            == com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline other) {
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()) return this;
         if (!other.getPoints().isEmpty()) {
           points_ = other.points_;
           bitField0_ |= 0x00000001;
@@ -11078,19 +9642,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  points_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                points_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11100,25 +9662,22 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object points_ = "";
       /**
-       *
-       *
        * 
        * String representing encoded points of the polyline.
        * 
* * string points = 1; - * * @return The points. */ public java.lang.String getPoints() { java.lang.Object ref = points_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); points_ = s; return s; @@ -11127,21 +9686,20 @@ public java.lang.String getPoints() { } } /** - * - * *
        * String representing encoded points of the polyline.
        * 
* * string points = 1; - * * @return The bytes for points. */ - public com.google.protobuf.ByteString getPointsBytes() { + public com.google.protobuf.ByteString + getPointsBytes() { java.lang.Object ref = points_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); points_ = b; return b; } else { @@ -11149,35 +9707,28 @@ public com.google.protobuf.ByteString getPointsBytes() { } } /** - * - * *
        * String representing encoded points of the polyline.
        * 
* * string points = 1; - * * @param value The points to set. * @return This builder for chaining. */ - public Builder setPoints(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPoints( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } points_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * String representing encoded points of the polyline.
        * 
* * string points = 1; - * * @return This builder for chaining. */ public Builder clearPoints() { @@ -11187,28 +9738,23 @@ public Builder clearPoints() { return this; } /** - * - * *
        * String representing encoded points of the polyline.
        * 
* * string points = 1; - * * @param value The bytes for points to set. * @return This builder for chaining. */ - public Builder setPointsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPointsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); points_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11221,44 +9767,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) - private static final com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline(); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline - getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncodedPolyline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncodedPolyline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11270,44 +9813,35 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BreakOrBuilder - extends + public interface BreakOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.Break) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Start time of a break.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
      * Start time of a break.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
      * Start time of a break.
      * 
@@ -11317,32 +9851,24 @@ public interface BreakOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
      * Duration of a break.
      * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
      * Duration of a break.
      * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
      * Duration of a break.
      * 
@@ -11352,58 +9878,52 @@ public interface BreakOrBuilder com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } /** - * - * *
    * Data representing the execution of a break.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Break} */ - public static final class Break extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Break extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.Break) BreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Break.newBuilder() to construct. private Break(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Break() {} + private Break() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Break(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentRoute.Break.class, - com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder.class); + com.google.cloud.optimization.v1.ShipmentRoute.Break.class, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
      * Start time of a break.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -11411,14 +9931,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
      * Start time of a break.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -11426,8 +9943,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
      * Start time of a break.
      * 
@@ -11442,14 +9957,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** - * - * *
      * Duration of a break.
      * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -11457,14 +9969,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
      * Duration of a break.
      * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ @java.lang.Override @@ -11472,8 +9981,6 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
      * Duration of a break.
      * 
@@ -11486,7 +9993,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11498,7 +10004,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -11515,10 +10022,12 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -11528,21 +10037,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.Break)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.Break other = - (com.google.cloud.optimization.v1.ShipmentRoute.Break) obj; + com.google.cloud.optimization.v1.ShipmentRoute.Break other = (com.google.cloud.optimization.v1.ShipmentRoute.Break) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -11569,94 +10079,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.Break prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Break prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11666,41 +10171,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Data representing the execution of a break.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Break} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.Break) com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentRoute.Break.class, - com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder.class); + com.google.cloud.optimization.v1.ShipmentRoute.Break.class, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder.class); } // Construct using com.google.cloud.optimization.v1.ShipmentRoute.Break.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -11719,9 +10222,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; } @java.lang.Override @@ -11740,11 +10243,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break build() { @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.Break buildPartial() { - com.google.cloud.optimization.v1.ShipmentRoute.Break result = - new com.google.cloud.optimization.v1.ShipmentRoute.Break(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.ShipmentRoute.Break result = new com.google.cloud.optimization.v1.ShipmentRoute.Break(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -11752,10 +10252,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break buildPartial() { private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Break result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); } } @@ -11763,41 +10267,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Break public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.Break) { - return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Break) other); + return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Break)other); } else { super.mergeFrom(other); return this; @@ -11805,8 +10306,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Break other) { - if (other == com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance()) - return this; + if (other == com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance()) return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -11839,25 +10339,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11867,52 +10368,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
        * Start time of a break.
        * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Start time of a break.
        * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** - * - * *
        * Start time of a break.
        * 
@@ -11933,15 +10420,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Start time of a break.
        * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -11952,8 +10438,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
        * Start time of a break.
        * 
@@ -11962,9 +10446,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -11977,8 +10461,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Start time of a break.
        * 
@@ -11996,8 +10478,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
        * Start time of a break.
        * 
@@ -12010,8 +10490,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Start time of a break.
        * 
@@ -12022,14 +10500,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
        * Start time of a break.
        * 
@@ -12037,17 +10512,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -12055,33 +10527,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
        * Duration of a break.
        * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Duration of a break.
        * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -12092,8 +10555,6 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
        * Duration of a break.
        * 
@@ -12114,15 +10575,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Duration of a break.
        * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -12133,8 +10593,6 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
        * Duration of a break.
        * 
@@ -12143,9 +10601,9 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -12158,8 +10616,6 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Duration of a break.
        * 
@@ -12177,8 +10633,6 @@ public Builder clearDuration() { return this; } /** - * - * *
        * Duration of a break.
        * 
@@ -12191,8 +10645,6 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** - * - * *
        * Duration of a break.
        * 
@@ -12203,12 +10655,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
        * Duration of a break.
        * 
@@ -12216,22 +10667,18 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12244,12 +10691,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.Break) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.Break) private static final com.google.cloud.optimization.v1.ShipmentRoute.Break DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.Break(); } @@ -12258,28 +10705,27 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Break parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Break parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12294,41 +10740,32 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - @java.lang.Deprecated - public interface TravelStepOrBuilder - extends + @java.lang.Deprecated public interface TravelStepOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.TravelStep) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Duration of the travel step.
      * 
* * .google.protobuf.Duration duration = 1; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
      * Duration of the travel step.
      * 
* * .google.protobuf.Duration duration = 1; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
      * Duration of the travel step.
      * 
@@ -12338,21 +10775,16 @@ public interface TravelStepOrBuilder com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** - * - * *
      * Distance traveled during the step.
      * 
* * double distance_meters = 2; - * * @return The distanceMeters. */ double getDistanceMeters(); /** - * - * *
      * When traffic is requested via
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -12362,14 +10794,11 @@ public interface TravelStepOrBuilder
      * 
* * bool traffic_info_unavailable = 3; - * * @return The trafficInfoUnavailable. */ boolean getTrafficInfoUnavailable(); /** - * - * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -12380,13 +10809,10 @@ public interface TravelStepOrBuilder
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * * @return Whether the routePolyline field is set. */ boolean hasRoutePolyline(); /** - * - * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -12397,13 +10823,10 @@ public interface TravelStepOrBuilder
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * * @return The routePolyline. */ com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline(); /** - * - * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -12415,12 +10838,9 @@ public interface TravelStepOrBuilder
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;
      */
-    com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
-        getRoutePolylineOrBuilder();
+    com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition]
@@ -12440,51 +10860,46 @@ public interface TravelStepOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.TravelStep}
    */
-  @java.lang.Deprecated
-  public static final class TravelStep extends com.google.protobuf.GeneratedMessageV3
-      implements
+  @java.lang.Deprecated public static final class TravelStep extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.TravelStep)
       TravelStepOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use TravelStep.newBuilder() to construct.
     private TravelStep(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private TravelStep() {}
+    private TravelStep() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new TravelStep();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.class,
-              com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.class, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder.class);
     }
 
     public static final int DURATION_FIELD_NUMBER = 1;
     private com.google.protobuf.Duration duration_;
     /**
-     *
-     *
      * 
      * Duration of the travel step.
      * 
* * .google.protobuf.Duration duration = 1; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -12492,14 +10907,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
      * Duration of the travel step.
      * 
* * .google.protobuf.Duration duration = 1; - * * @return The duration. */ @java.lang.Override @@ -12507,8 +10919,6 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
      * Duration of the travel step.
      * 
@@ -12523,14 +10933,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { public static final int DISTANCE_METERS_FIELD_NUMBER = 2; private double distanceMeters_ = 0D; /** - * - * *
      * Distance traveled during the step.
      * 
* * double distance_meters = 2; - * * @return The distanceMeters. */ @java.lang.Override @@ -12541,8 +10948,6 @@ public double getDistanceMeters() { public static final int TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER = 3; private boolean trafficInfoUnavailable_ = false; /** - * - * *
      * When traffic is requested via
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -12552,7 +10957,6 @@ public double getDistanceMeters() {
      * 
* * bool traffic_info_unavailable = 3; - * * @return The trafficInfoUnavailable. */ @java.lang.Override @@ -12563,8 +10967,6 @@ public boolean getTrafficInfoUnavailable() { public static final int ROUTE_POLYLINE_FIELD_NUMBER = 4; private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; /** - * - * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -12575,7 +10977,6 @@ public boolean getTrafficInfoUnavailable() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * * @return Whether the routePolyline field is set. */ @java.lang.Override @@ -12583,8 +10984,6 @@ public boolean hasRoutePolyline() { return routePolyline_ != null; } /** - * - * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -12595,18 +10994,13 @@ public boolean hasRoutePolyline() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * * @return The routePolyline. */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { - return routePolyline_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() - : routePolyline_; + return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; } /** - * - * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -12619,15 +11013,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;
      */
     @java.lang.Override
-    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
-        getRoutePolylineOrBuilder() {
-      return routePolyline_ == null
-          ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()
-          : routePolyline_;
+    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() {
+      return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -12639,7 +11029,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (duration_ != null) {
         output.writeMessage(1, getDuration());
       }
@@ -12662,16 +11053,20 @@ public int getSerializedSize() {
 
       size = 0;
       if (duration_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDuration());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getDuration());
       }
       if (java.lang.Double.doubleToRawLongBits(distanceMeters_) != 0) {
-        size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, distanceMeters_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeDoubleSize(2, distanceMeters_);
       }
       if (trafficInfoUnavailable_ != false) {
-        size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trafficInfoUnavailable_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeBoolSize(3, trafficInfoUnavailable_);
       }
       if (routePolyline_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRoutePolyline());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, getRoutePolyline());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -12681,24 +11076,27 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.TravelStep)) {
         return super.equals(obj);
       }
-      com.google.cloud.optimization.v1.ShipmentRoute.TravelStep other =
-          (com.google.cloud.optimization.v1.ShipmentRoute.TravelStep) obj;
+      com.google.cloud.optimization.v1.ShipmentRoute.TravelStep other = (com.google.cloud.optimization.v1.ShipmentRoute.TravelStep) obj;
 
       if (hasDuration() != other.hasDuration()) return false;
       if (hasDuration()) {
-        if (!getDuration().equals(other.getDuration())) return false;
+        if (!getDuration()
+            .equals(other.getDuration())) return false;
       }
       if (java.lang.Double.doubleToLongBits(getDistanceMeters())
-          != java.lang.Double.doubleToLongBits(other.getDistanceMeters())) return false;
-      if (getTrafficInfoUnavailable() != other.getTrafficInfoUnavailable()) return false;
+          != java.lang.Double.doubleToLongBits(
+              other.getDistanceMeters())) return false;
+      if (getTrafficInfoUnavailable()
+          != other.getTrafficInfoUnavailable()) return false;
       if (hasRoutePolyline() != other.hasRoutePolyline()) return false;
       if (hasRoutePolyline()) {
-        if (!getRoutePolyline().equals(other.getRoutePolyline())) return false;
+        if (!getRoutePolyline()
+            .equals(other.getRoutePolyline())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -12716,12 +11114,11 @@ public int hashCode() {
         hash = (53 * hash) + getDuration().hashCode();
       }
       hash = (37 * hash) + DISTANCE_METERS_FIELD_NUMBER;
-      hash =
-          (53 * hash)
-              + com.google.protobuf.Internal.hashLong(
-                  java.lang.Double.doubleToLongBits(getDistanceMeters()));
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          java.lang.Double.doubleToLongBits(getDistanceMeters()));
       hash = (37 * hash) + TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrafficInfoUnavailable());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+          getTrafficInfoUnavailable());
       if (hasRoutePolyline()) {
         hash = (37 * hash) + ROUTE_POLYLINE_FIELD_NUMBER;
         hash = (53 * hash) + getRoutePolyline().hashCode();
@@ -12732,94 +11129,89 @@ public int hashCode() {
     }
 
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
-    public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.optimization.v1.ShipmentRoute.TravelStep prototype) {
+    public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -12829,8 +11221,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition]
@@ -12850,33 +11240,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.TravelStep}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.TravelStep)
         com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.class,
-                com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.class, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -12897,9 +11287,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
       }
 
       @java.lang.Override
@@ -12918,11 +11308,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.TravelStep result =
-            new com.google.cloud.optimization.v1.ShipmentRoute.TravelStep(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.ShipmentRoute.TravelStep result = new com.google.cloud.optimization.v1.ShipmentRoute.TravelStep(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -12930,7 +11317,9 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep buildPartial()
       private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
+          result.duration_ = durationBuilder_ == null
+              ? duration_
+              : durationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.distanceMeters_ = distanceMeters_;
@@ -12939,8 +11328,9 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Travel
           result.trafficInfoUnavailable_ = trafficInfoUnavailable_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.routePolyline_ =
-              routePolylineBuilder_ == null ? routePolyline_ : routePolylineBuilder_.build();
+          result.routePolyline_ = routePolylineBuilder_ == null
+              ? routePolyline_
+              : routePolylineBuilder_.build();
         }
       }
 
@@ -12948,41 +11338,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Travel
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.TravelStep) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.TravelStep) other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.TravelStep)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -12990,8 +11377,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()) return this;
         if (other.hasDuration()) {
           mergeDuration(other.getDuration());
         }
@@ -13030,37 +11416,36 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 17:
-                {
-                  distanceMeters_ = input.readDouble();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 17
-              case 24:
-                {
-                  trafficInfoUnavailable_ = input.readBool();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 24
-              case 34:
-                {
-                  input.readMessage(getRoutePolylineFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 17: {
+                distanceMeters_ = input.readDouble();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 17
+              case 24: {
+                trafficInfoUnavailable_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+              case 34: {
+                input.readMessage(
+                    getRoutePolylineFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -13070,38 +11455,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.Duration duration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          durationBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_;
       /**
-       *
-       *
        * 
        * Duration of the travel step.
        * 
* * .google.protobuf.Duration duration = 1; - * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Duration of the travel step.
        * 
* * .google.protobuf.Duration duration = 1; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -13112,8 +11487,6 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
        * Duration of the travel step.
        * 
@@ -13134,15 +11507,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Duration of the travel step.
        * 
* * .google.protobuf.Duration duration = 1; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -13153,8 +11525,6 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
        * Duration of the travel step.
        * 
@@ -13163,9 +11533,9 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -13178,8 +11548,6 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * Duration of the travel step.
        * 
@@ -13197,8 +11565,6 @@ public Builder clearDuration() { return this; } /** - * - * *
        * Duration of the travel step.
        * 
@@ -13211,8 +11577,6 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** - * - * *
        * Duration of the travel step.
        * 
@@ -13223,12 +11587,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
        * Duration of the travel step.
        * 
@@ -13236,32 +11599,26 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - private double distanceMeters_; + private double distanceMeters_ ; /** - * - * *
        * Distance traveled during the step.
        * 
* * double distance_meters = 2; - * * @return The distanceMeters. */ @java.lang.Override @@ -13269,14 +11626,11 @@ public double getDistanceMeters() { return distanceMeters_; } /** - * - * *
        * Distance traveled during the step.
        * 
* * double distance_meters = 2; - * * @param value The distanceMeters to set. * @return This builder for chaining. */ @@ -13288,14 +11642,11 @@ public Builder setDistanceMeters(double value) { return this; } /** - * - * *
        * Distance traveled during the step.
        * 
* * double distance_meters = 2; - * * @return This builder for chaining. */ public Builder clearDistanceMeters() { @@ -13305,10 +11656,8 @@ public Builder clearDistanceMeters() { return this; } - private boolean trafficInfoUnavailable_; + private boolean trafficInfoUnavailable_ ; /** - * - * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -13318,7 +11667,6 @@ public Builder clearDistanceMeters() {
        * 
* * bool traffic_info_unavailable = 3; - * * @return The trafficInfoUnavailable. */ @java.lang.Override @@ -13326,8 +11674,6 @@ public boolean getTrafficInfoUnavailable() { return trafficInfoUnavailable_; } /** - * - * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -13337,7 +11683,6 @@ public boolean getTrafficInfoUnavailable() {
        * 
* * bool traffic_info_unavailable = 3; - * * @param value The trafficInfoUnavailable to set. * @return This builder for chaining. */ @@ -13349,8 +11694,6 @@ public Builder setTrafficInfoUnavailable(boolean value) { return this; } /** - * - * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -13360,7 +11703,6 @@ public Builder setTrafficInfoUnavailable(boolean value) {
        * 
* * bool traffic_info_unavailable = 3; - * * @return This builder for chaining. */ public Builder clearTrafficInfoUnavailable() { @@ -13372,13 +11714,8 @@ public Builder clearTrafficInfoUnavailable() { private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> - routePolylineBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> routePolylineBuilder_; /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13388,17 +11725,13 @@ public Builder clearTrafficInfoUnavailable() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; * @return Whether the routePolyline field is set. */ public boolean hasRoutePolyline() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13408,23 +11741,17 @@ public boolean hasRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; * @return The routePolyline. */ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { if (routePolylineBuilder_ == null) { - return routePolyline_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() - : routePolyline_; + return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; } else { return routePolylineBuilder_.getMessage(); } } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13434,11 +11761,9 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; */ - public Builder setRoutePolyline( - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { + public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { if (routePolylineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13452,8 +11777,6 @@ public Builder setRoutePolyline( return this; } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13463,8 +11786,7 @@ public Builder setRoutePolyline(
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; */ public Builder setRoutePolyline( com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder builderForValue) { @@ -13478,8 +11800,6 @@ public Builder setRoutePolyline( return this; } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13489,17 +11809,13 @@ public Builder setRoutePolyline(
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; */ - public Builder mergeRoutePolyline( - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { + public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { if (routePolylineBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && routePolyline_ != null - && routePolyline_ - != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + routePolyline_ != null && + routePolyline_ != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()) { getRoutePolylineBuilder().mergeFrom(value); } else { routePolyline_ = value; @@ -13512,8 +11828,6 @@ public Builder mergeRoutePolyline( return this; } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13523,8 +11837,7 @@ public Builder mergeRoutePolyline(
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; */ public Builder clearRoutePolyline() { bitField0_ = (bitField0_ & ~0x00000008); @@ -13537,8 +11850,6 @@ public Builder clearRoutePolyline() { return this; } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13548,18 +11859,14 @@ public Builder clearRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; */ - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder - getRoutePolylineBuilder() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder getRoutePolylineBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRoutePolylineFieldBuilder().getBuilder(); } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13569,22 +11876,17 @@ public Builder clearRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; */ - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder - getRoutePolylineOrBuilder() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() { if (routePolylineBuilder_ != null) { return routePolylineBuilder_.getMessageOrBuilder(); } else { - return routePolyline_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() - : routePolyline_; + return routePolyline_ == null ? + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; } } /** - * - * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -13594,26 +11896,21 @@ public Builder clearRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; - * + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> getRoutePolylineFieldBuilder() { if (routePolylineBuilder_ == null) { - routePolylineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>( - getRoutePolyline(), getParentForChildren(), isClean()); + routePolylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>( + getRoutePolyline(), + getParentForChildren(), + isClean()); routePolyline_ = null; } return routePolylineBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13626,12 +11923,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.TravelStep) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.TravelStep) private static final com.google.cloud.optimization.v1.ShipmentRoute.TravelStep DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.TravelStep(); } @@ -13640,28 +11937,27 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TravelStep parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TravelStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13676,20 +11972,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int VEHICLE_INDEX_FIELD_NUMBER = 1; private int vehicleIndex_ = 0; /** - * - * *
    * Vehicle performing the route, identified by its index in the source
    * `ShipmentModel`.
    * 
* * int32 vehicle_index = 1; - * * @return The vehicleIndex. */ @java.lang.Override @@ -13698,19 +11992,15 @@ public int getVehicleIndex() { } public static final int VEHICLE_LABEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object vehicleLabel_ = ""; /** - * - * *
    * Label of the vehicle performing this route, equal to
    * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
    * 
* * string vehicle_label = 2; - * * @return The vehicleLabel. */ @java.lang.Override @@ -13719,30 +12009,30 @@ public java.lang.String getVehicleLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vehicleLabel_ = s; return s; } } /** - * - * *
    * Label of the vehicle performing this route, equal to
    * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
    * 
* * string vehicle_label = 2; - * * @return The bytes for vehicleLabel. */ @java.lang.Override - public com.google.protobuf.ByteString getVehicleLabelBytes() { + public com.google.protobuf.ByteString + getVehicleLabelBytes() { java.lang.Object ref = vehicleLabel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vehicleLabel_ = b; return b; } else { @@ -13753,14 +12043,11 @@ public com.google.protobuf.ByteString getVehicleLabelBytes() { public static final int VEHICLE_START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp vehicleStartTime_; /** - * - * *
    * Time at which the vehicle starts its route.
    * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; - * * @return Whether the vehicleStartTime field is set. */ @java.lang.Override @@ -13768,25 +12055,18 @@ public boolean hasVehicleStartTime() { return vehicleStartTime_ != null; } /** - * - * *
    * Time at which the vehicle starts its route.
    * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; - * * @return The vehicleStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getVehicleStartTime() { - return vehicleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : vehicleStartTime_; + return vehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleStartTime_; } /** - * - * *
    * Time at which the vehicle starts its route.
    * 
@@ -13795,22 +12075,17 @@ public com.google.protobuf.Timestamp getVehicleStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder() { - return vehicleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : vehicleStartTime_; + return vehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleStartTime_; } public static final int VEHICLE_END_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp vehicleEndTime_; /** - * - * *
    * Time at which the vehicle finishes its route.
    * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; - * * @return Whether the vehicleEndTime field is set. */ @java.lang.Override @@ -13818,25 +12093,18 @@ public boolean hasVehicleEndTime() { return vehicleEndTime_ != null; } /** - * - * *
    * Time at which the vehicle finishes its route.
    * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; - * * @return The vehicleEndTime. */ @java.lang.Override public com.google.protobuf.Timestamp getVehicleEndTime() { - return vehicleEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : vehicleEndTime_; + return vehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleEndTime_; } /** - * - * *
    * Time at which the vehicle finishes its route.
    * 
@@ -13845,18 +12113,13 @@ public com.google.protobuf.Timestamp getVehicleEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder() { - return vehicleEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : vehicleEndTime_; + return vehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleEndTime_; } public static final int VISITS_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private java.util.List visits_; /** - * - * *
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -13870,8 +12133,6 @@ public java.util.List getV
     return visits_;
   }
   /**
-   *
-   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -13881,13 +12142,11 @@ public java.util.List getV
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getVisitsOrBuilderList() {
     return visits_;
   }
   /**
-   *
-   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -13901,8 +12160,6 @@ public int getVisitsCount() {
     return visits_.size();
   }
   /**
-   *
-   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -13916,8 +12173,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit getVisits(int index)
     return visits_.get(index);
   }
   /**
-   *
-   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -13933,12 +12188,9 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr
   }
 
   public static final int TRANSITIONS_FIELD_NUMBER = 8;
-
   @SuppressWarnings("serial")
   private java.util.List transitions_;
   /**
-   *
-   *
    * 
    * Ordered list of transitions for the route.
    * 
@@ -13946,13 +12198,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ @java.lang.Override - public java.util.List - getTransitionsList() { + public java.util.List getTransitionsList() { return transitions_; } /** - * - * *
    * Ordered list of transitions for the route.
    * 
@@ -13960,14 +12209,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> + public java.util.List getTransitionsOrBuilderList() { return transitions_; } /** - * - * *
    * Ordered list of transitions for the route.
    * 
@@ -13979,8 +12225,6 @@ public int getTransitionsCount() { return transitions_.size(); } /** - * - * *
    * Ordered list of transitions for the route.
    * 
@@ -13992,8 +12236,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition getTransitions( return transitions_.get(index); } /** - * - * *
    * Ordered list of transitions for the route.
    * 
@@ -14009,8 +12251,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTra public static final int HAS_TRAFFIC_INFEASIBILITIES_FIELD_NUMBER = 9; private boolean hasTrafficInfeasibilities_ = false; /** - * - * *
    * When
    * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -14033,7 +12273,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTra
    * 
* * bool has_traffic_infeasibilities = 9; - * * @return The hasTrafficInfeasibilities. */ @java.lang.Override @@ -14044,8 +12283,6 @@ public boolean getHasTrafficInfeasibilities() { public static final int ROUTE_POLYLINE_FIELD_NUMBER = 10; private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; /** - * - * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -14054,7 +12291,6 @@ public boolean getHasTrafficInfeasibilities() {
    * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; - * * @return Whether the routePolyline field is set. */ @java.lang.Override @@ -14062,8 +12298,6 @@ public boolean hasRoutePolyline() { return routePolyline_ != null; } /** - * - * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -14072,18 +12306,13 @@ public boolean hasRoutePolyline() {
    * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; - * * @return The routePolyline. */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { - return routePolyline_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() - : routePolyline_; + return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; } /** - * - * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -14094,20 +12323,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
    * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
-      getRoutePolylineOrBuilder() {
-    return routePolyline_ == null
-        ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()
-        : routePolyline_;
+  public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() {
+    return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_;
   }
 
   public static final int BREAKS_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
   private java.util.List breaks_;
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -14121,8 +12344,6 @@ public java.util.List getB
     return breaks_;
   }
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -14132,13 +12353,11 @@ public java.util.List getB
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getBreaksOrBuilderList() {
     return breaks_;
   }
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -14152,8 +12371,6 @@ public int getBreaksCount() {
     return breaks_.size();
   }
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -14167,8 +12384,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getBreaks(int index)
     return breaks_.get(index);
   }
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -14186,8 +12401,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
   public static final int METRICS_FIELD_NUMBER = 12;
   private com.google.cloud.optimization.v1.AggregatedMetrics metrics_;
   /**
-   *
-   *
    * 
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -14199,7 +12412,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
    * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; - * * @return Whether the metrics field is set. */ @java.lang.Override @@ -14207,8 +12419,6 @@ public boolean hasMetrics() { return metrics_ != null; } /** - * - * *
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -14220,18 +12430,13 @@ public boolean hasMetrics() {
    * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; - * * @return The metrics. */ @java.lang.Override public com.google.cloud.optimization.v1.AggregatedMetrics getMetrics() { - return metrics_ == null - ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() - : metrics_; + return metrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : metrics_; } /** - * - * *
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -14246,40 +12451,36 @@ public com.google.cloud.optimization.v1.AggregatedMetrics getMetrics() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrBuilder() {
-    return metrics_ == null
-        ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()
-        : metrics_;
+    return metrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : metrics_;
   }
 
   public static final int ROUTE_COSTS_FIELD_NUMBER = 17;
-
   private static final class RouteCostsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.optimization.v1.FleetRoutingProto
-                .internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.DOUBLE,
-            0D);
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.Double> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.DOUBLE,
+                0D);
   }
-
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField routeCosts_;
-
-  private com.google.protobuf.MapField internalGetRouteCosts() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.Double> routeCosts_;
+  private com.google.protobuf.MapField
+  internalGetRouteCosts() {
     if (routeCosts_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(RouteCostsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          RouteCostsDefaultEntryHolder.defaultEntry);
     }
     return routeCosts_;
   }
-
   public int getRouteCostsCount() {
     return internalGetRouteCosts().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -14294,21 +12495,20 @@ public int getRouteCostsCount() {
    * map<string, double> route_costs = 17;
    */
   @java.lang.Override
-  public boolean containsRouteCosts(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsRouteCosts(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetRouteCosts().getMap().containsKey(key);
   }
-  /** Use {@link #getRouteCostsMap()} instead. */
+  /**
+   * Use {@link #getRouteCostsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getRouteCosts() {
     return getRouteCostsMap();
   }
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -14327,8 +12527,6 @@ public java.util.Map getRouteCostsMap() {
     return internalGetRouteCosts().getMap();
   }
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -14343,16 +12541,15 @@ public java.util.Map getRouteCostsMap() {
    * map<string, double> route_costs = 17;
    */
   @java.lang.Override
-  public double getRouteCostsOrDefault(java.lang.String key, double defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetRouteCosts().getMap();
+  public double getRouteCostsOrDefault(
+      java.lang.String key,
+      double defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetRouteCosts().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -14367,11 +12564,11 @@ public double getRouteCostsOrDefault(java.lang.String key, double defaultValue)
    * map<string, double> route_costs = 17;
    */
   @java.lang.Override
-  public double getRouteCostsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetRouteCosts().getMap();
+  public double getRouteCostsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetRouteCosts().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -14381,14 +12578,11 @@ public double getRouteCostsOrThrow(java.lang.String key) {
   public static final int ROUTE_TOTAL_COST_FIELD_NUMBER = 18;
   private double routeTotalCost_ = 0D;
   /**
-   *
-   *
    * 
    * Total cost of the route. The sum of all costs in the cost map.
    * 
* * double route_total_cost = 18; - * * @return The routeTotalCost. */ @java.lang.Override @@ -14397,12 +12591,9 @@ public double getRouteTotalCost() { } public static final int END_LOADS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private java.util.List endLoads_; /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -14414,18 +12605,13 @@ public double getRouteTotalCost() {
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getEndLoadsList() { + @java.lang.Deprecated public java.util.List getEndLoadsList() { return endLoads_; } /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -14437,19 +12623,14 @@ public java.util.List getEndL
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getEndLoadsOrBuilderList() { return endLoads_; } /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -14461,18 +12642,13 @@ public java.util.List getEndL
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getEndLoadsCount() { + @java.lang.Deprecated public int getEndLoadsCount() { return endLoads_.size(); } /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -14484,18 +12660,13 @@ public int getEndLoadsCount() {
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) { return endLoads_.get(index); } /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -14507,112 +12678,81 @@ public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index)
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( int index) { return endLoads_.get(index); } public static final int TRAVEL_STEPS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private java.util.List travelSteps_; /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List - getTravelStepsList() { + @java.lang.Deprecated public java.util.List getTravelStepsList() { return travelSteps_; } /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> + @java.lang.Deprecated public java.util.List getTravelStepsOrBuilderList() { return travelSteps_; } /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getTravelStepsCount() { + @java.lang.Deprecated public int getTravelStepsCount() { return travelSteps_.size(); } /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index) { return travelSteps_.get(index); } /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( int index) { return travelSteps_.get(index); } @@ -14620,8 +12760,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTra public static final int VEHICLE_DETOUR_FIELD_NUMBER = 15; private com.google.protobuf.Duration vehicleDetour_; /** - * - * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -14636,19 +12774,15 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTra
    * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2185 + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return Whether the vehicleDetour field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasVehicleDetour() { + @java.lang.Deprecated public boolean hasVehicleDetour() { return vehicleDetour_ != null; } /** - * - * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -14663,21 +12797,15 @@ public boolean hasVehicleDetour() {
    * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2185 + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return The vehicleDetour. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.Duration getVehicleDetour() { - return vehicleDetour_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : vehicleDetour_; + @java.lang.Deprecated public com.google.protobuf.Duration getVehicleDetour() { + return vehicleDetour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : vehicleDetour_; } /** - * - * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -14694,82 +12822,56 @@ public com.google.protobuf.Duration getVehicleDetour() {
    * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated
-  public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
-    return vehicleDetour_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : vehicleDetour_;
+  @java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
+    return vehicleDetour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : vehicleDetour_;
   }
 
   public static final int DELAY_BEFORE_VEHICLE_END_FIELD_NUMBER = 16;
   private com.google.cloud.optimization.v1.ShipmentRoute.Delay delayBeforeVehicleEnd_;
   /**
-   *
-   *
    * 
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2189 + * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return Whether the delayBeforeVehicleEnd field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasDelayBeforeVehicleEnd() { + @java.lang.Deprecated public boolean hasDelayBeforeVehicleEnd() { return delayBeforeVehicleEnd_ != null; } /** - * - * *
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2189 + * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return The delayBeforeVehicleEnd. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd() { - return delayBeforeVehicleEnd_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() - : delayBeforeVehicleEnd_; + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd() { + return delayBeforeVehicleEnd_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeVehicleEnd_; } /** - * - * *
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder - getDelayBeforeVehicleEndOrBuilder() { - return delayBeforeVehicleEnd_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() - : delayBeforeVehicleEnd_; + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeVehicleEndOrBuilder() { + return delayBeforeVehicleEnd_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeVehicleEnd_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14781,7 +12883,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (vehicleIndex_ != 0) { output.writeInt32(1, vehicleIndex_); } @@ -14824,8 +12927,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (delayBeforeVehicleEnd_ != null) { output.writeMessage(16, getDelayBeforeVehicleEnd()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetRouteCosts(), RouteCostsDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRouteCosts(), + RouteCostsDefaultEntryHolder.defaultEntry, + 17); if (java.lang.Double.doubleToRawLongBits(routeTotalCost_) != 0) { output.writeDouble(18, routeTotalCost_); } @@ -14839,60 +12946,73 @@ public int getSerializedSize() { size = 0; if (vehicleIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, vehicleIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, vehicleIndex_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vehicleLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vehicleLabel_); } if (vehicleStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVehicleStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getVehicleStartTime()); } if (vehicleEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVehicleEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getVehicleEndTime()); } for (int i = 0; i < visits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, visits_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, visits_.get(i)); } for (int i = 0; i < transitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, transitions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, transitions_.get(i)); } if (hasTrafficInfeasibilities_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, hasTrafficInfeasibilities_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, hasTrafficInfeasibilities_); } if (routePolyline_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRoutePolyline()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getRoutePolyline()); } for (int i = 0; i < breaks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, breaks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, breaks_.get(i)); } if (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMetrics()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getMetrics()); } for (int i = 0; i < endLoads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, endLoads_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, endLoads_.get(i)); } for (int i = 0; i < travelSteps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, travelSteps_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, travelSteps_.get(i)); } if (vehicleDetour_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVehicleDetour()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getVehicleDetour()); } if (delayBeforeVehicleEnd_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(16, getDelayBeforeVehicleEnd()); - } - for (java.util.Map.Entry entry : - internalGetRouteCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry routeCosts__ = - RouteCostsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, routeCosts__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getDelayBeforeVehicleEnd()); + } + for (java.util.Map.Entry entry + : internalGetRouteCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry + routeCosts__ = RouteCostsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, routeCosts__); } if (java.lang.Double.doubleToRawLongBits(routeTotalCost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(18, routeTotalCost_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(18, routeTotalCost_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -14902,48 +13022,63 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute other = - (com.google.cloud.optimization.v1.ShipmentRoute) obj; + com.google.cloud.optimization.v1.ShipmentRoute other = (com.google.cloud.optimization.v1.ShipmentRoute) obj; - if (getVehicleIndex() != other.getVehicleIndex()) return false; - if (!getVehicleLabel().equals(other.getVehicleLabel())) return false; + if (getVehicleIndex() + != other.getVehicleIndex()) return false; + if (!getVehicleLabel() + .equals(other.getVehicleLabel())) return false; if (hasVehicleStartTime() != other.hasVehicleStartTime()) return false; if (hasVehicleStartTime()) { - if (!getVehicleStartTime().equals(other.getVehicleStartTime())) return false; + if (!getVehicleStartTime() + .equals(other.getVehicleStartTime())) return false; } if (hasVehicleEndTime() != other.hasVehicleEndTime()) return false; if (hasVehicleEndTime()) { - if (!getVehicleEndTime().equals(other.getVehicleEndTime())) return false; - } - if (!getVisitsList().equals(other.getVisitsList())) return false; - if (!getTransitionsList().equals(other.getTransitionsList())) return false; - if (getHasTrafficInfeasibilities() != other.getHasTrafficInfeasibilities()) return false; + if (!getVehicleEndTime() + .equals(other.getVehicleEndTime())) return false; + } + if (!getVisitsList() + .equals(other.getVisitsList())) return false; + if (!getTransitionsList() + .equals(other.getTransitionsList())) return false; + if (getHasTrafficInfeasibilities() + != other.getHasTrafficInfeasibilities()) return false; if (hasRoutePolyline() != other.hasRoutePolyline()) return false; if (hasRoutePolyline()) { - if (!getRoutePolyline().equals(other.getRoutePolyline())) return false; + if (!getRoutePolyline() + .equals(other.getRoutePolyline())) return false; } - if (!getBreaksList().equals(other.getBreaksList())) return false; + if (!getBreaksList() + .equals(other.getBreaksList())) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { - if (!getMetrics().equals(other.getMetrics())) return false; + if (!getMetrics() + .equals(other.getMetrics())) return false; } - if (!internalGetRouteCosts().equals(other.internalGetRouteCosts())) return false; + if (!internalGetRouteCosts().equals( + other.internalGetRouteCosts())) return false; if (java.lang.Double.doubleToLongBits(getRouteTotalCost()) - != java.lang.Double.doubleToLongBits(other.getRouteTotalCost())) return false; - if (!getEndLoadsList().equals(other.getEndLoadsList())) return false; - if (!getTravelStepsList().equals(other.getTravelStepsList())) return false; + != java.lang.Double.doubleToLongBits( + other.getRouteTotalCost())) return false; + if (!getEndLoadsList() + .equals(other.getEndLoadsList())) return false; + if (!getTravelStepsList() + .equals(other.getTravelStepsList())) return false; if (hasVehicleDetour() != other.hasVehicleDetour()) return false; if (hasVehicleDetour()) { - if (!getVehicleDetour().equals(other.getVehicleDetour())) return false; + if (!getVehicleDetour() + .equals(other.getVehicleDetour())) return false; } if (hasDelayBeforeVehicleEnd() != other.hasDelayBeforeVehicleEnd()) return false; if (hasDelayBeforeVehicleEnd()) { - if (!getDelayBeforeVehicleEnd().equals(other.getDelayBeforeVehicleEnd())) return false; + if (!getDelayBeforeVehicleEnd() + .equals(other.getDelayBeforeVehicleEnd())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -14977,7 +13112,8 @@ public int hashCode() { hash = (53 * hash) + getTransitionsList().hashCode(); } hash = (37 * hash) + HAS_TRAFFIC_INFEASIBILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasTrafficInfeasibilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasTrafficInfeasibilities()); if (hasRoutePolyline()) { hash = (37 * hash) + ROUTE_POLYLINE_FIELD_NUMBER; hash = (53 * hash) + getRoutePolyline().hashCode(); @@ -14995,10 +13131,8 @@ public int hashCode() { hash = (53 * hash) + internalGetRouteCosts().hashCode(); } hash = (37 * hash) + ROUTE_TOTAL_COST_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getRouteTotalCost())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRouteTotalCost())); if (getEndLoadsCount() > 0) { hash = (37 * hash) + END_LOADS_FIELD_NUMBER; hash = (53 * hash) + getEndLoadsList().hashCode(); @@ -15020,104 +13154,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A vehicle's route can be decomposed, along the time axis, like this (we
    * assume there are n visits):
@@ -15207,52 +13336,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute)
       com.google.cloud.optimization.v1.ShipmentRouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 17:
           return internalGetRouteCosts();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 17:
           return internalGetMutableRouteCosts();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.class,
-              com.google.cloud.optimization.v1.ShipmentRoute.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.class, com.google.cloud.optimization.v1.ShipmentRoute.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.ShipmentRoute.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -15331,9 +13463,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
     }
 
     @java.lang.Override
@@ -15352,12 +13484,9 @@ public com.google.cloud.optimization.v1.ShipmentRoute build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.ShipmentRoute buildPartial() {
-      com.google.cloud.optimization.v1.ShipmentRoute result =
-          new com.google.cloud.optimization.v1.ShipmentRoute(this);
+      com.google.cloud.optimization.v1.ShipmentRoute result = new com.google.cloud.optimization.v1.ShipmentRoute(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -15419,22 +13548,27 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute result
         result.vehicleLabel_ = vehicleLabel_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.vehicleStartTime_ =
-            vehicleStartTimeBuilder_ == null ? vehicleStartTime_ : vehicleStartTimeBuilder_.build();
+        result.vehicleStartTime_ = vehicleStartTimeBuilder_ == null
+            ? vehicleStartTime_
+            : vehicleStartTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.vehicleEndTime_ =
-            vehicleEndTimeBuilder_ == null ? vehicleEndTime_ : vehicleEndTimeBuilder_.build();
+        result.vehicleEndTime_ = vehicleEndTimeBuilder_ == null
+            ? vehicleEndTime_
+            : vehicleEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.hasTrafficInfeasibilities_ = hasTrafficInfeasibilities_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.routePolyline_ =
-            routePolylineBuilder_ == null ? routePolyline_ : routePolylineBuilder_.build();
+        result.routePolyline_ = routePolylineBuilder_ == null
+            ? routePolyline_
+            : routePolylineBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build();
+        result.metrics_ = metricsBuilder_ == null
+            ? metrics_
+            : metricsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.routeCosts_ = internalGetRouteCosts();
@@ -15444,14 +13578,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute result
         result.routeTotalCost_ = routeTotalCost_;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.vehicleDetour_ =
-            vehicleDetourBuilder_ == null ? vehicleDetour_ : vehicleDetourBuilder_.build();
+        result.vehicleDetour_ = vehicleDetourBuilder_ == null
+            ? vehicleDetour_
+            : vehicleDetourBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.delayBeforeVehicleEnd_ =
-            delayBeforeVehicleEndBuilder_ == null
-                ? delayBeforeVehicleEnd_
-                : delayBeforeVehicleEndBuilder_.build();
+        result.delayBeforeVehicleEnd_ = delayBeforeVehicleEndBuilder_ == null
+            ? delayBeforeVehicleEnd_
+            : delayBeforeVehicleEndBuilder_.build();
       }
     }
 
@@ -15459,39 +13593,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute result
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute) {
-        return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute) other);
+        return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -15532,10 +13665,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             visitsBuilder_ = null;
             visits_ = other.visits_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            visitsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getVisitsFieldBuilder()
-                    : null;
+            visitsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getVisitsFieldBuilder() : null;
           } else {
             visitsBuilder_.addAllMessages(other.visits_);
           }
@@ -15559,10 +13691,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             transitionsBuilder_ = null;
             transitions_ = other.transitions_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            transitionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTransitionsFieldBuilder()
-                    : null;
+            transitionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTransitionsFieldBuilder() : null;
           } else {
             transitionsBuilder_.addAllMessages(other.transitions_);
           }
@@ -15592,10 +13723,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             breaksBuilder_ = null;
             breaks_ = other.breaks_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            breaksBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getBreaksFieldBuilder()
-                    : null;
+            breaksBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getBreaksFieldBuilder() : null;
           } else {
             breaksBuilder_.addAllMessages(other.breaks_);
           }
@@ -15604,7 +13734,8 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
       if (other.hasMetrics()) {
         mergeMetrics(other.getMetrics());
       }
-      internalGetMutableRouteCosts().mergeFrom(other.internalGetRouteCosts());
+      internalGetMutableRouteCosts().mergeFrom(
+          other.internalGetRouteCosts());
       bitField0_ |= 0x00000400;
       if (other.getRouteTotalCost() != 0D) {
         setRouteTotalCost(other.getRouteTotalCost());
@@ -15627,10 +13758,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             endLoadsBuilder_ = null;
             endLoads_ = other.endLoads_;
             bitField0_ = (bitField0_ & ~0x00001000);
-            endLoadsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEndLoadsFieldBuilder()
-                    : null;
+            endLoadsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEndLoadsFieldBuilder() : null;
           } else {
             endLoadsBuilder_.addAllMessages(other.endLoads_);
           }
@@ -15654,10 +13784,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             travelStepsBuilder_ = null;
             travelSteps_ = other.travelSteps_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            travelStepsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTravelStepsFieldBuilder()
-                    : null;
+            travelStepsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTravelStepsFieldBuilder() : null;
           } else {
             travelStepsBuilder_.addAllMessages(other.travelSteps_);
           }
@@ -15693,159 +13822,150 @@ public Builder mergeFrom(
           int tag = input.readTag();
           switch (tag) {
             case 0:
-              done = true;
-              break;
-            case 8:
-              {
-                vehicleIndex_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                vehicleLabel_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 42:
-              {
-                input.readMessage(
-                    getVehicleStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getVehicleEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 50
-            case 58:
-              {
-                com.google.cloud.optimization.v1.ShipmentRoute.Visit m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentRoute.Visit.parser(),
-                        extensionRegistry);
-                if (visitsBuilder_ == null) {
-                  ensureVisitsIsMutable();
-                  visits_.add(m);
-                } else {
-                  visitsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 58
-            case 66:
-              {
-                com.google.cloud.optimization.v1.ShipmentRoute.Transition m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentRoute.Transition.parser(),
-                        extensionRegistry);
-                if (transitionsBuilder_ == null) {
-                  ensureTransitionsIsMutable();
-                  transitions_.add(m);
-                } else {
-                  transitionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 66
-            case 72:
-              {
-                hasTrafficInfeasibilities_ = input.readBool();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 72
-            case 82:
-              {
-                input.readMessage(getRoutePolylineFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 82
-            case 90:
-              {
-                com.google.cloud.optimization.v1.ShipmentRoute.Break m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentRoute.Break.parser(),
-                        extensionRegistry);
-                if (breaksBuilder_ == null) {
-                  ensureBreaksIsMutable();
-                  breaks_.add(m);
-                } else {
-                  breaksBuilder_.addMessage(m);
-                }
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 98
-            case 106:
-              {
-                com.google.cloud.optimization.v1.CapacityQuantity m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                        extensionRegistry);
-                if (endLoadsBuilder_ == null) {
-                  ensureEndLoadsIsMutable();
-                  endLoads_.add(m);
-                } else {
-                  endLoadsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 106
-            case 114:
-              {
-                com.google.cloud.optimization.v1.ShipmentRoute.TravelStep m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.parser(),
-                        extensionRegistry);
-                if (travelStepsBuilder_ == null) {
-                  ensureTravelStepsIsMutable();
-                  travelSteps_.add(m);
-                } else {
-                  travelStepsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 122:
-              {
-                input.readMessage(getVehicleDetourFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 122
-            case 130:
-              {
-                input.readMessage(
-                    getDelayBeforeVehicleEndFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 130
-            case 138:
-              {
-                com.google.protobuf.MapEntry routeCosts__ =
-                    input.readMessage(
-                        RouteCostsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableRouteCosts()
-                    .getMutableMap()
-                    .put(routeCosts__.getKey(), routeCosts__.getValue());
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 138
-            case 145:
-              {
-                routeTotalCost_ = input.readDouble();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 145
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              done = true;
+              break;
+            case 8: {
+              vehicleIndex_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              vehicleLabel_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 42: {
+              input.readMessage(
+                  getVehicleStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getVehicleEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 50
+            case 58: {
+              com.google.cloud.optimization.v1.ShipmentRoute.Visit m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentRoute.Visit.parser(),
+                      extensionRegistry);
+              if (visitsBuilder_ == null) {
+                ensureVisitsIsMutable();
+                visits_.add(m);
+              } else {
+                visitsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 58
+            case 66: {
+              com.google.cloud.optimization.v1.ShipmentRoute.Transition m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentRoute.Transition.parser(),
+                      extensionRegistry);
+              if (transitionsBuilder_ == null) {
+                ensureTransitionsIsMutable();
+                transitions_.add(m);
+              } else {
+                transitionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 66
+            case 72: {
+              hasTrafficInfeasibilities_ = input.readBool();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 72
+            case 82: {
+              input.readMessage(
+                  getRoutePolylineFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 82
+            case 90: {
+              com.google.cloud.optimization.v1.ShipmentRoute.Break m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentRoute.Break.parser(),
+                      extensionRegistry);
+              if (breaksBuilder_ == null) {
+                ensureBreaksIsMutable();
+                breaks_.add(m);
+              } else {
+                breaksBuilder_.addMessage(m);
+              }
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getMetricsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 98
+            case 106: {
+              com.google.cloud.optimization.v1.CapacityQuantity m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                      extensionRegistry);
+              if (endLoadsBuilder_ == null) {
+                ensureEndLoadsIsMutable();
+                endLoads_.add(m);
+              } else {
+                endLoadsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 106
+            case 114: {
+              com.google.cloud.optimization.v1.ShipmentRoute.TravelStep m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.parser(),
+                      extensionRegistry);
+              if (travelStepsBuilder_ == null) {
+                ensureTravelStepsIsMutable();
+                travelSteps_.add(m);
+              } else {
+                travelStepsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 122: {
+              input.readMessage(
+                  getVehicleDetourFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 122
+            case 130: {
+              input.readMessage(
+                  getDelayBeforeVehicleEndFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 130
+            case 138: {
+              com.google.protobuf.MapEntry
+              routeCosts__ = input.readMessage(
+                  RouteCostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableRouteCosts().getMutableMap().put(
+                  routeCosts__.getKey(), routeCosts__.getValue());
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 138
+            case 145: {
+              routeTotalCost_ = input.readDouble();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 145
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -15855,20 +13975,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private int vehicleIndex_;
+    private int vehicleIndex_ ;
     /**
-     *
-     *
      * 
      * Vehicle performing the route, identified by its index in the source
      * `ShipmentModel`.
      * 
* * int32 vehicle_index = 1; - * * @return The vehicleIndex. */ @java.lang.Override @@ -15876,15 +13992,12 @@ public int getVehicleIndex() { return vehicleIndex_; } /** - * - * *
      * Vehicle performing the route, identified by its index in the source
      * `ShipmentModel`.
      * 
* * int32 vehicle_index = 1; - * * @param value The vehicleIndex to set. * @return This builder for chaining. */ @@ -15896,15 +14009,12 @@ public Builder setVehicleIndex(int value) { return this; } /** - * - * *
      * Vehicle performing the route, identified by its index in the source
      * `ShipmentModel`.
      * 
* * int32 vehicle_index = 1; - * * @return This builder for chaining. */ public Builder clearVehicleIndex() { @@ -15916,21 +14026,19 @@ public Builder clearVehicleIndex() { private java.lang.Object vehicleLabel_ = ""; /** - * - * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; - * * @return The vehicleLabel. */ public java.lang.String getVehicleLabel() { java.lang.Object ref = vehicleLabel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vehicleLabel_ = s; return s; @@ -15939,22 +14047,21 @@ public java.lang.String getVehicleLabel() { } } /** - * - * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; - * * @return The bytes for vehicleLabel. */ - public com.google.protobuf.ByteString getVehicleLabelBytes() { + public com.google.protobuf.ByteString + getVehicleLabelBytes() { java.lang.Object ref = vehicleLabel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vehicleLabel_ = b; return b; } else { @@ -15962,37 +14069,30 @@ public com.google.protobuf.ByteString getVehicleLabelBytes() { } } /** - * - * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; - * * @param value The vehicleLabel to set. * @return This builder for chaining. */ - public Builder setVehicleLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVehicleLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } vehicleLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; - * * @return This builder for chaining. */ public Builder clearVehicleLabel() { @@ -16002,22 +14102,18 @@ public Builder clearVehicleLabel() { return this; } /** - * - * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; - * * @param value The bytes for vehicleLabel to set. * @return This builder for chaining. */ - public Builder setVehicleLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVehicleLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vehicleLabel_ = value; bitField0_ |= 0x00000002; @@ -16027,47 +14123,34 @@ public Builder setVehicleLabelBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp vehicleStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - vehicleStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> vehicleStartTimeBuilder_; /** - * - * *
      * Time at which the vehicle starts its route.
      * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; - * * @return Whether the vehicleStartTime field is set. */ public boolean hasVehicleStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Time at which the vehicle starts its route.
      * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; - * * @return The vehicleStartTime. */ public com.google.protobuf.Timestamp getVehicleStartTime() { if (vehicleStartTimeBuilder_ == null) { - return vehicleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : vehicleStartTime_; + return vehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleStartTime_; } else { return vehicleStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Time at which the vehicle starts its route.
      * 
@@ -16088,15 +14171,14 @@ public Builder setVehicleStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the vehicle starts its route.
      * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; */ - public Builder setVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setVehicleStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (vehicleStartTimeBuilder_ == null) { vehicleStartTime_ = builderForValue.build(); } else { @@ -16107,8 +14189,6 @@ public Builder setVehicleStartTime(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
      * Time at which the vehicle starts its route.
      * 
@@ -16117,9 +14197,9 @@ public Builder setVehicleStartTime(com.google.protobuf.Timestamp.Builder builder */ public Builder mergeVehicleStartTime(com.google.protobuf.Timestamp value) { if (vehicleStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && vehicleStartTime_ != null - && vehicleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + vehicleStartTime_ != null && + vehicleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getVehicleStartTimeBuilder().mergeFrom(value); } else { vehicleStartTime_ = value; @@ -16132,8 +14212,6 @@ public Builder mergeVehicleStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the vehicle starts its route.
      * 
@@ -16151,8 +14229,6 @@ public Builder clearVehicleStartTime() { return this; } /** - * - * *
      * Time at which the vehicle starts its route.
      * 
@@ -16165,8 +14241,6 @@ public com.google.protobuf.Timestamp.Builder getVehicleStartTimeBuilder() { return getVehicleStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time at which the vehicle starts its route.
      * 
@@ -16177,14 +14251,11 @@ public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder() { if (vehicleStartTimeBuilder_ != null) { return vehicleStartTimeBuilder_.getMessageOrBuilder(); } else { - return vehicleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : vehicleStartTime_; + return vehicleStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : vehicleStartTime_; } } /** - * - * *
      * Time at which the vehicle starts its route.
      * 
@@ -16192,17 +14263,14 @@ public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder() { * .google.protobuf.Timestamp vehicle_start_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getVehicleStartTimeFieldBuilder() { if (vehicleStartTimeBuilder_ == null) { - vehicleStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getVehicleStartTime(), getParentForChildren(), isClean()); + vehicleStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getVehicleStartTime(), + getParentForChildren(), + isClean()); vehicleStartTime_ = null; } return vehicleStartTimeBuilder_; @@ -16210,47 +14278,34 @@ public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder() { private com.google.protobuf.Timestamp vehicleEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - vehicleEndTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> vehicleEndTimeBuilder_; /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; - * * @return Whether the vehicleEndTime field is set. */ public boolean hasVehicleEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; - * * @return The vehicleEndTime. */ public com.google.protobuf.Timestamp getVehicleEndTime() { if (vehicleEndTimeBuilder_ == null) { - return vehicleEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : vehicleEndTime_; + return vehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleEndTime_; } else { return vehicleEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
@@ -16271,15 +14326,14 @@ public Builder setVehicleEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; */ - public Builder setVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setVehicleEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (vehicleEndTimeBuilder_ == null) { vehicleEndTime_ = builderForValue.build(); } else { @@ -16290,8 +14344,6 @@ public Builder setVehicleEndTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
@@ -16300,9 +14352,9 @@ public Builder setVehicleEndTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeVehicleEndTime(com.google.protobuf.Timestamp value) { if (vehicleEndTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && vehicleEndTime_ != null - && vehicleEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + vehicleEndTime_ != null && + vehicleEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getVehicleEndTimeBuilder().mergeFrom(value); } else { vehicleEndTime_ = value; @@ -16315,8 +14367,6 @@ public Builder mergeVehicleEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
@@ -16334,8 +14384,6 @@ public Builder clearVehicleEndTime() { return this; } /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
@@ -16348,8 +14396,6 @@ public com.google.protobuf.Timestamp.Builder getVehicleEndTimeBuilder() { return getVehicleEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
@@ -16360,14 +14406,11 @@ public com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder() { if (vehicleEndTimeBuilder_ != null) { return vehicleEndTimeBuilder_.getMessageOrBuilder(); } else { - return vehicleEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : vehicleEndTime_; + return vehicleEndTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : vehicleEndTime_; } } /** - * - * *
      * Time at which the vehicle finishes its route.
      * 
@@ -16375,42 +14418,32 @@ public com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder() { * .google.protobuf.Timestamp vehicle_end_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getVehicleEndTimeFieldBuilder() { if (vehicleEndTimeBuilder_ == null) { - vehicleEndTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getVehicleEndTime(), getParentForChildren(), isClean()); + vehicleEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getVehicleEndTime(), + getParentForChildren(), + isClean()); vehicleEndTime_ = null; } return vehicleEndTimeBuilder_; } private java.util.List visits_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVisitsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visits_ = - new java.util.ArrayList(visits_); + visits_ = new java.util.ArrayList(visits_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Visit, - com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder> - visitsBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.Visit, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder, com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder> visitsBuilder_; /** - * - * *
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16427,8 +14460,6 @@ public java.util.List getV
       }
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16445,8 +14476,6 @@ public int getVisitsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16463,8 +14492,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit getVisits(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16488,8 +14515,6 @@ public Builder setVisits(
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16510,8 +14535,6 @@ public Builder setVisits(
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16534,8 +14557,6 @@ public Builder addVisits(com.google.cloud.optimization.v1.ShipmentRoute.Visit va
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16559,8 +14580,6 @@ public Builder addVisits(
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16581,8 +14600,6 @@ public Builder addVisits(
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16603,8 +14620,6 @@ public Builder addVisits(
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16617,7 +14632,8 @@ public Builder addAllVisits(
         java.lang.Iterable values) {
       if (visitsBuilder_ == null) {
         ensureVisitsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visits_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, visits_);
         onChanged();
       } else {
         visitsBuilder_.addAllMessages(values);
@@ -16625,8 +14641,6 @@ public Builder addAllVisits(
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16646,8 +14660,6 @@ public Builder clearVisits() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16667,8 +14679,6 @@ public Builder removeVisits(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16682,8 +14692,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder getVisitsBui
       return getVisitsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16695,14 +14703,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder getVisitsBui
     public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOrBuilder(
         int index) {
       if (visitsBuilder_ == null) {
-        return visits_.get(index);
-      } else {
+        return visits_.get(index);  } else {
         return visitsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16711,8 +14716,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
      */
-    public java.util.List
-        getVisitsOrBuilderList() {
+    public java.util.List 
+         getVisitsOrBuilderList() {
       if (visitsBuilder_ != null) {
         return visitsBuilder_.getMessageOrBuilderList();
       } else {
@@ -16720,8 +14725,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr
       }
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16731,12 +14734,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder addVisitsBuilder() {
-      return getVisitsFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance());
+      return getVisitsFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16747,13 +14748,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder addVisitsBui
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder addVisitsBuilder(
         int index) {
-      return getVisitsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance());
+      return getVisitsFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -16762,57 +14760,45 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder addVisitsBui
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
      */
-    public java.util.List
-        getVisitsBuilderList() {
+    public java.util.List 
+         getVisitsBuilderList() {
       return getVisitsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.Visit,
-            com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder,
-            com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder>
+        com.google.cloud.optimization.v1.ShipmentRoute.Visit, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder, com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder> 
         getVisitsFieldBuilder() {
       if (visitsBuilder_ == null) {
-        visitsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.ShipmentRoute.Visit,
-                com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder,
-                com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder>(
-                visits_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
+        visitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.ShipmentRoute.Visit, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder, com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder>(
+                visits_,
+                ((bitField0_ & 0x00000010) != 0),
+                getParentForChildren(),
+                isClean());
         visits_ = null;
       }
       return visitsBuilder_;
     }
 
     private java.util.List transitions_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTransitionsIsMutable() {
       if (!((bitField0_ & 0x00000020) != 0)) {
-        transitions_ =
-            new java.util.ArrayList(
-                transitions_);
+        transitions_ = new java.util.ArrayList(transitions_);
         bitField0_ |= 0x00000020;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.Transition,
-            com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder,
-            com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder>
-        transitionsBuilder_;
+        com.google.cloud.optimization.v1.ShipmentRoute.Transition, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> transitionsBuilder_;
 
     /**
-     *
-     *
      * 
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public java.util.List - getTransitionsList() { + public java.util.List getTransitionsList() { if (transitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transitions_); } else { @@ -16820,8 +14806,6 @@ private void ensureTransitionsIsMutable() { } } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16836,8 +14820,6 @@ public int getTransitionsCount() { } } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16852,8 +14834,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition getTransitions( } } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16875,8 +14855,6 @@ public Builder setTransitions( return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16884,8 +14862,7 @@ public Builder setTransitions( * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ public Builder setTransitions( - int index, - com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.set(index, builderForValue.build()); @@ -16896,8 +14873,6 @@ public Builder setTransitions( return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16918,8 +14893,6 @@ public Builder addTransitions(com.google.cloud.optimization.v1.ShipmentRoute.Tra return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16941,8 +14914,6 @@ public Builder addTransitions( return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16961,8 +14932,6 @@ public Builder addTransitions( return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16970,8 +14939,7 @@ public Builder addTransitions( * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ public Builder addTransitions( - int index, - com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder builderForValue) { + int index, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.add(index, builderForValue.build()); @@ -16982,8 +14950,6 @@ public Builder addTransitions( return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -16991,11 +14957,11 @@ public Builder addTransitions( * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ public Builder addAllTransitions( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transitions_); onChanged(); } else { transitionsBuilder_.addAllMessages(values); @@ -17003,8 +14969,6 @@ public Builder addAllTransitions( return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -17022,8 +14986,6 @@ public Builder clearTransitions() { return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -17041,8 +15003,6 @@ public Builder removeTransitions(int index) { return this; } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -17054,34 +15014,28 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder getTran return getTransitionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder - getTransitionsOrBuilder(int index) { + public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransitionsOrBuilder( + int index) { if (transitionsBuilder_ == null) { - return transitions_.get(index); - } else { + return transitions_.get(index); } else { return transitionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> - getTransitionsOrBuilderList() { + public java.util.List + getTransitionsOrBuilderList() { if (transitionsBuilder_ != null) { return transitionsBuilder_.getMessageOrBuilderList(); } else { @@ -17089,23 +15043,17 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder getTran } } /** - * - * *
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder - addTransitionsBuilder() { - return getTransitionsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder addTransitionsBuilder() { + return getTransitionsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()); } /** - * - * *
      * Ordered list of transitions for the route.
      * 
@@ -17114,46 +15062,37 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder getTran */ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder addTransitionsBuilder( int index) { - return getTransitionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()); + return getTransitionsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()); } /** - * - * *
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public java.util.List - getTransitionsBuilderList() { + public java.util.List + getTransitionsBuilderList() { return getTransitionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Transition, - com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.Transition, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> getTransitionsFieldBuilder() { if (transitionsBuilder_ == null) { - transitionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Transition, - com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder>( - transitions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + transitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.Transition, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder>( + transitions_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); transitions_ = null; } return transitionsBuilder_; } - private boolean hasTrafficInfeasibilities_; + private boolean hasTrafficInfeasibilities_ ; /** - * - * *
      * When
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -17176,7 +15115,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder addTran
      * 
* * bool has_traffic_infeasibilities = 9; - * * @return The hasTrafficInfeasibilities. */ @java.lang.Override @@ -17184,8 +15122,6 @@ public boolean getHasTrafficInfeasibilities() { return hasTrafficInfeasibilities_; } /** - * - * *
      * When
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -17208,7 +15144,6 @@ public boolean getHasTrafficInfeasibilities() {
      * 
* * bool has_traffic_infeasibilities = 9; - * * @param value The hasTrafficInfeasibilities to set. * @return This builder for chaining. */ @@ -17220,8 +15155,6 @@ public Builder setHasTrafficInfeasibilities(boolean value) { return this; } /** - * - * *
      * When
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -17244,7 +15177,6 @@ public Builder setHasTrafficInfeasibilities(boolean value) {
      * 
* * bool has_traffic_infeasibilities = 9; - * * @return This builder for chaining. */ public Builder clearHasTrafficInfeasibilities() { @@ -17256,13 +15188,8 @@ public Builder clearHasTrafficInfeasibilities() { private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> - routePolylineBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> routePolylineBuilder_; /** - * - * *
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17271,15 +15198,12 @@ public Builder clearHasTrafficInfeasibilities() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; - * * @return Whether the routePolyline field is set. */ public boolean hasRoutePolyline() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17288,21 +15212,16 @@ public boolean hasRoutePolyline() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; - * * @return The routePolyline. */ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { if (routePolylineBuilder_ == null) { - return routePolyline_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() - : routePolyline_; + return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; } else { return routePolylineBuilder_.getMessage(); } } /** - * - * *
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17312,8 +15231,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
-    public Builder setRoutePolyline(
-        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) {
+    public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) {
       if (routePolylineBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -17327,8 +15245,6 @@ public Builder setRoutePolyline(
       return this;
     }
     /**
-     *
-     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17350,8 +15266,6 @@ public Builder setRoutePolyline(
       return this;
     }
     /**
-     *
-     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17361,14 +15275,11 @@ public Builder setRoutePolyline(
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
-    public Builder mergeRoutePolyline(
-        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) {
+    public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) {
       if (routePolylineBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && routePolyline_ != null
-            && routePolyline_
-                != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          routePolyline_ != null &&
+          routePolyline_ != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()) {
           getRoutePolylineBuilder().mergeFrom(value);
         } else {
           routePolyline_ = value;
@@ -17381,8 +15292,6 @@ public Builder mergeRoutePolyline(
       return this;
     }
     /**
-     *
-     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17403,8 +15312,6 @@ public Builder clearRoutePolyline() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17414,15 +15321,12 @@ public Builder clearRoutePolyline() {
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder
-        getRoutePolylineBuilder() {
+    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder getRoutePolylineBuilder() {
       bitField0_ |= 0x00000080;
       onChanged();
       return getRoutePolylineFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17432,19 +15336,15 @@ public Builder clearRoutePolyline() {
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
-        getRoutePolylineOrBuilder() {
+    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() {
       if (routePolylineBuilder_ != null) {
         return routePolylineBuilder_.getMessageOrBuilder();
       } else {
-        return routePolyline_ == null
-            ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()
-            : routePolyline_;
+        return routePolyline_ == null ?
+            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_;
       }
     }
     /**
-     *
-     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -17455,42 +15355,32 @@ public Builder clearRoutePolyline() {
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline,
-            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder,
-            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>
+        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> 
         getRoutePolylineFieldBuilder() {
       if (routePolylineBuilder_ == null) {
-        routePolylineBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline,
-                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder,
-                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>(
-                getRoutePolyline(), getParentForChildren(), isClean());
+        routePolylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>(
+                getRoutePolyline(),
+                getParentForChildren(),
+                isClean());
         routePolyline_ = null;
       }
       return routePolylineBuilder_;
     }
 
     private java.util.List breaks_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureBreaksIsMutable() {
       if (!((bitField0_ & 0x00000100) != 0)) {
-        breaks_ =
-            new java.util.ArrayList(breaks_);
+        breaks_ = new java.util.ArrayList(breaks_);
         bitField0_ |= 0x00000100;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.Break,
-            com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder,
-            com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder>
-        breaksBuilder_;
+        com.google.cloud.optimization.v1.ShipmentRoute.Break, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder, com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder> breaksBuilder_;
 
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17507,8 +15397,6 @@ public java.util.List getB
       }
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17525,8 +15413,6 @@ public int getBreaksCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17543,8 +15429,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getBreaks(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17568,8 +15452,6 @@ public Builder setBreaks(
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17590,8 +15472,6 @@ public Builder setBreaks(
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17614,8 +15494,6 @@ public Builder addBreaks(com.google.cloud.optimization.v1.ShipmentRoute.Break va
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17639,8 +15517,6 @@ public Builder addBreaks(
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17661,8 +15537,6 @@ public Builder addBreaks(
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17683,8 +15557,6 @@ public Builder addBreaks(
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17697,7 +15569,8 @@ public Builder addAllBreaks(
         java.lang.Iterable values) {
       if (breaksBuilder_ == null) {
         ensureBreaksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breaks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, breaks_);
         onChanged();
       } else {
         breaksBuilder_.addAllMessages(values);
@@ -17705,8 +15578,6 @@ public Builder addAllBreaks(
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17726,8 +15597,6 @@ public Builder clearBreaks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17747,8 +15616,6 @@ public Builder removeBreaks(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17762,8 +15629,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder getBreaksBui
       return getBreaksFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17775,14 +15640,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder getBreaksBui
     public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder(
         int index) {
       if (breaksBuilder_ == null) {
-        return breaks_.get(index);
-      } else {
+        return breaks_.get(index);  } else {
         return breaksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17791,8 +15653,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
      */
-    public java.util.List
-        getBreaksOrBuilderList() {
+    public java.util.List 
+         getBreaksOrBuilderList() {
       if (breaksBuilder_ != null) {
         return breaksBuilder_.getMessageOrBuilderList();
       } else {
@@ -17800,8 +15662,6 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
       }
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17811,12 +15671,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBuilder() {
-      return getBreaksFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance());
+      return getBreaksFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17827,13 +15685,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBui
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBuilder(
         int index) {
-      return getBreaksFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance());
+      return getBreaksFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -17842,23 +15697,20 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBui
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
      */
-    public java.util.List
-        getBreaksBuilderList() {
+    public java.util.List 
+         getBreaksBuilderList() {
       return getBreaksFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.Break,
-            com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder,
-            com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder>
+        com.google.cloud.optimization.v1.ShipmentRoute.Break, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder, com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder> 
         getBreaksFieldBuilder() {
       if (breaksBuilder_ == null) {
-        breaksBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.ShipmentRoute.Break,
-                com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder,
-                com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder>(
-                breaks_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean());
+        breaksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.ShipmentRoute.Break, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder, com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder>(
+                breaks_,
+                ((bitField0_ & 0x00000100) != 0),
+                getParentForChildren(),
+                isClean());
         breaks_ = null;
       }
       return breaksBuilder_;
@@ -17866,13 +15718,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBui
 
     private com.google.cloud.optimization.v1.AggregatedMetrics metrics_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.AggregatedMetrics,
-            com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
-            com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>
-        metricsBuilder_;
+        com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> metricsBuilder_;
     /**
-     *
-     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -17884,15 +15731,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBui
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; - * * @return Whether the metrics field is set. */ public boolean hasMetrics() { return ((bitField0_ & 0x00000200) != 0); } - /** - * - * + /** *
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -17904,21 +15748,16 @@ public boolean hasMetrics() {
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; - * * @return The metrics. */ public com.google.cloud.optimization.v1.AggregatedMetrics getMetrics() { if (metricsBuilder_ == null) { - return metrics_ == null - ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() - : metrics_; + return metrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : metrics_; } else { return metricsBuilder_.getMessage(); } } /** - * - * *
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -17945,8 +15784,6 @@ public Builder setMetrics(com.google.cloud.optimization.v1.AggregatedMetrics val
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -17971,8 +15808,6 @@ public Builder setMetrics(
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -17987,10 +15822,9 @@ public Builder setMetrics(
      */
     public Builder mergeMetrics(com.google.cloud.optimization.v1.AggregatedMetrics value) {
       if (metricsBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && metrics_ != null
-            && metrics_
-                != com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          metrics_ != null &&
+          metrics_ != com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) {
           getMetricsBuilder().mergeFrom(value);
         } else {
           metrics_ = value;
@@ -18003,8 +15837,6 @@ public Builder mergeMetrics(com.google.cloud.optimization.v1.AggregatedMetrics v
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -18028,8 +15860,6 @@ public Builder clearMetrics() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -18048,8 +15878,6 @@ public com.google.cloud.optimization.v1.AggregatedMetrics.Builder getMetricsBuil
       return getMetricsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -18066,14 +15894,11 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrB
       if (metricsBuilder_ != null) {
         return metricsBuilder_.getMessageOrBuilder();
       } else {
-        return metrics_ == null
-            ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()
-            : metrics_;
+        return metrics_ == null ?
+            com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : metrics_;
       }
     }
     /**
-     *
-     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -18087,24 +15912,21 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrB
      * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.AggregatedMetrics,
-            com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
-            com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>
+        com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> 
         getMetricsFieldBuilder() {
       if (metricsBuilder_ == null) {
-        metricsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.AggregatedMetrics,
-                com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
-                com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>(
-                getMetrics(), getParentForChildren(), isClean());
+        metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>(
+                getMetrics(),
+                getParentForChildren(),
+                isClean());
         metrics_ = null;
       }
       return metricsBuilder_;
     }
 
-    private com.google.protobuf.MapField routeCosts_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.Double> routeCosts_;
     private com.google.protobuf.MapField
         internalGetRouteCosts() {
       if (routeCosts_ == null) {
@@ -18113,12 +15935,11 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrB
       }
       return routeCosts_;
     }
-
     private com.google.protobuf.MapField
         internalGetMutableRouteCosts() {
       if (routeCosts_ == null) {
-        routeCosts_ =
-            com.google.protobuf.MapField.newMapField(RouteCostsDefaultEntryHolder.defaultEntry);
+        routeCosts_ = com.google.protobuf.MapField.newMapField(
+            RouteCostsDefaultEntryHolder.defaultEntry);
       }
       if (!routeCosts_.isMutable()) {
         routeCosts_ = routeCosts_.copy();
@@ -18127,13 +15948,10 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrB
       onChanged();
       return routeCosts_;
     }
-
     public int getRouteCostsCount() {
       return internalGetRouteCosts().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -18148,21 +15966,20 @@ public int getRouteCostsCount() {
      * map<string, double> route_costs = 17;
      */
     @java.lang.Override
-    public boolean containsRouteCosts(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsRouteCosts(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetRouteCosts().getMap().containsKey(key);
     }
-    /** Use {@link #getRouteCostsMap()} instead. */
+    /**
+     * Use {@link #getRouteCostsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getRouteCosts() {
       return getRouteCostsMap();
     }
     /**
-     *
-     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -18181,8 +15998,6 @@ public java.util.Map getRouteCostsMap() {
       return internalGetRouteCosts().getMap();
     }
     /**
-     *
-     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -18197,16 +16012,15 @@ public java.util.Map getRouteCostsMap() {
      * map<string, double> route_costs = 17;
      */
     @java.lang.Override
-    public double getRouteCostsOrDefault(java.lang.String key, double defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetRouteCosts().getMap();
+    public double getRouteCostsOrDefault(
+        java.lang.String key,
+        double defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetRouteCosts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -18221,25 +16035,23 @@ public double getRouteCostsOrDefault(java.lang.String key, double defaultValue)
      * map<string, double> route_costs = 17;
      */
     @java.lang.Override
-    public double getRouteCostsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetRouteCosts().getMap();
+    public double getRouteCostsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetRouteCosts().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearRouteCosts() {
       bitField0_ = (bitField0_ & ~0x00000400);
-      internalGetMutableRouteCosts().getMutableMap().clear();
+      internalGetMutableRouteCosts().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -18253,22 +16065,23 @@ public Builder clearRouteCosts() {
      *
      * map<string, double> route_costs = 17;
      */
-    public Builder removeRouteCosts(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableRouteCosts().getMutableMap().remove(key);
+    public Builder removeRouteCosts(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableRouteCosts().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableRouteCosts() {
+    public java.util.Map
+        getMutableRouteCosts() {
       bitField0_ |= 0x00000400;
       return internalGetMutableRouteCosts().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -18282,18 +16095,17 @@ public java.util.Map getMutableRouteCosts()
      *
      * map<string, double> route_costs = 17;
      */
-    public Builder putRouteCosts(java.lang.String key, double value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putRouteCosts(
+        java.lang.String key,
+        double value) {
+      if (key == null) { throw new NullPointerException("map key"); }
 
-      internalGetMutableRouteCosts().getMutableMap().put(key, value);
+      internalGetMutableRouteCosts().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000400;
       return this;
     }
     /**
-     *
-     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -18307,22 +16119,21 @@ public Builder putRouteCosts(java.lang.String key, double value) {
      *
      * map<string, double> route_costs = 17;
      */
-    public Builder putAllRouteCosts(java.util.Map values) {
-      internalGetMutableRouteCosts().getMutableMap().putAll(values);
+    public Builder putAllRouteCosts(
+        java.util.Map values) {
+      internalGetMutableRouteCosts().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000400;
       return this;
     }
 
-    private double routeTotalCost_;
+    private double routeTotalCost_ ;
     /**
-     *
-     *
      * 
      * Total cost of the route. The sum of all costs in the cost map.
      * 
* * double route_total_cost = 18; - * * @return The routeTotalCost. */ @java.lang.Override @@ -18330,14 +16141,11 @@ public double getRouteTotalCost() { return routeTotalCost_; } /** - * - * *
      * Total cost of the route. The sum of all costs in the cost map.
      * 
* * double route_total_cost = 18; - * * @param value The routeTotalCost to set. * @return This builder for chaining. */ @@ -18349,14 +16157,11 @@ public Builder setRouteTotalCost(double value) { return this; } /** - * - * *
      * Total cost of the route. The sum of all costs in the cost map.
      * 
* * double route_total_cost = 18; - * * @return This builder for chaining. */ public Builder clearRouteTotalCost() { @@ -18367,25 +16172,18 @@ public Builder clearRouteTotalCost() { } private java.util.List endLoads_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEndLoadsIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { - endLoads_ = - new java.util.ArrayList(endLoads_); + endLoads_ = new java.util.ArrayList(endLoads_); bitField0_ |= 0x00001000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> - endLoadsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> endLoadsBuilder_; /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18397,12 +16195,9 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List getEndLoadsList() { + @java.lang.Deprecated public java.util.List getEndLoadsList() { if (endLoadsBuilder_ == null) { return java.util.Collections.unmodifiableList(endLoads_); } else { @@ -18410,8 +16205,6 @@ public java.util.List getEndL } } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18423,12 +16216,9 @@ public java.util.List getEndL
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public int getEndLoadsCount() { + @java.lang.Deprecated public int getEndLoadsCount() { if (endLoadsBuilder_ == null) { return endLoads_.size(); } else { @@ -18436,8 +16226,6 @@ public int getEndLoadsCount() { } } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18449,12 +16237,9 @@ public int getEndLoadsCount() {
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) { if (endLoadsBuilder_ == null) { return endLoads_.get(index); } else { @@ -18462,8 +16247,6 @@ public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) } } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18475,12 +16258,10 @@ public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index)
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setEndLoads(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder setEndLoads( + int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (endLoadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18494,8 +16275,6 @@ public Builder setEndLoads(int index, com.google.cloud.optimization.v1.CapacityQ return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18507,12 +16286,9 @@ public Builder setEndLoads(int index, com.google.cloud.optimization.v1.CapacityQ
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setEndLoads( + @java.lang.Deprecated public Builder setEndLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); @@ -18524,8 +16300,6 @@ public Builder setEndLoads( return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18537,12 +16311,9 @@ public Builder setEndLoads(
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addEndLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addEndLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { if (endLoadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18556,8 +16327,6 @@ public Builder addEndLoads(com.google.cloud.optimization.v1.CapacityQuantity val return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18569,12 +16338,10 @@ public Builder addEndLoads(com.google.cloud.optimization.v1.CapacityQuantity val
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addEndLoads(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addEndLoads( + int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (endLoadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18588,8 +16355,6 @@ public Builder addEndLoads(int index, com.google.cloud.optimization.v1.CapacityQ return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18601,12 +16366,9 @@ public Builder addEndLoads(int index, com.google.cloud.optimization.v1.CapacityQ
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addEndLoads( + @java.lang.Deprecated public Builder addEndLoads( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); @@ -18618,8 +16380,6 @@ public Builder addEndLoads( return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18631,12 +16391,9 @@ public Builder addEndLoads(
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addEndLoads( + @java.lang.Deprecated public Builder addEndLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); @@ -18648,8 +16405,6 @@ public Builder addEndLoads( return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18661,16 +16416,14 @@ public Builder addEndLoads(
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllEndLoads( + @java.lang.Deprecated public Builder addAllEndLoads( java.lang.Iterable values) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endLoads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, endLoads_); onChanged(); } else { endLoadsBuilder_.addAllMessages(values); @@ -18678,8 +16431,6 @@ public Builder addAllEndLoads( return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18691,12 +16442,9 @@ public Builder addAllEndLoads(
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearEndLoads() { + @java.lang.Deprecated public Builder clearEndLoads() { if (endLoadsBuilder_ == null) { endLoads_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); @@ -18707,8 +16455,6 @@ public Builder clearEndLoads() { return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18720,12 +16466,9 @@ public Builder clearEndLoads() {
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeEndLoads(int index) { + @java.lang.Deprecated public Builder removeEndLoads(int index) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); endLoads_.remove(index); @@ -18736,8 +16479,6 @@ public Builder removeEndLoads(int index) { return this; } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18749,17 +16490,13 @@ public Builder removeEndLoads(int index) {
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder getEndLoadsBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getEndLoadsBuilder( + int index) { return getEndLoadsFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18771,22 +16508,16 @@ public com.google.cloud.optimization.v1.CapacityQuantity.Builder getEndLoadsBuil
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( int index) { if (endLoadsBuilder_ == null) { - return endLoads_.get(index); - } else { + return endLoads_.get(index); } else { return endLoadsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18798,13 +16529,10 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrB
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getEndLoadsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getEndLoadsOrBuilderList() { if (endLoadsBuilder_ != null) { return endLoadsBuilder_.getMessageOrBuilderList(); } else { @@ -18812,8 +16540,6 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrB } } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18825,18 +16551,13 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrB
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuilder() { - return getEndLoadsFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuilder() { + return getEndLoadsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18848,19 +16569,14 @@ public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuil
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuilder(int index) { - return getEndLoadsFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuilder( + int index) { + return getEndLoadsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -18872,67 +16588,49 @@ public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuil
      * non-zero demand on the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getEndLoadsBuilderList() { + @java.lang.Deprecated public java.util.List + getEndLoadsBuilderList() { return getEndLoadsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getEndLoadsFieldBuilder() { if (endLoadsBuilder_ == null) { - endLoadsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - endLoads_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + endLoadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + endLoads_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); endLoads_ = null; } return endLoadsBuilder_; } private java.util.List travelSteps_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTravelStepsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - travelSteps_ = - new java.util.ArrayList( - travelSteps_); + travelSteps_ = new java.util.ArrayList(travelSteps_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> - travelStepsBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> travelStepsBuilder_; /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getTravelStepsList() { + @java.lang.Deprecated public java.util.List getTravelStepsList() { if (travelStepsBuilder_ == null) { return java.util.Collections.unmodifiableList(travelSteps_); } else { @@ -18940,20 +16638,15 @@ private void ensureTravelStepsIsMutable() { } } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public int getTravelStepsCount() { + @java.lang.Deprecated public int getTravelStepsCount() { if (travelStepsBuilder_ == null) { return travelSteps_.size(); } else { @@ -18961,20 +16654,15 @@ public int getTravelStepsCount() { } } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index) { if (travelStepsBuilder_ == null) { return travelSteps_.get(index); } else { @@ -18982,20 +16670,15 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps( } } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setTravelSteps( + @java.lang.Deprecated public Builder setTravelSteps( int index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep value) { if (travelStepsBuilder_ == null) { if (value == null) { @@ -19010,22 +16693,16 @@ public Builder setTravelSteps( return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setTravelSteps( - int index, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { + @java.lang.Deprecated public Builder setTravelSteps( + int index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); travelSteps_.set(index, builderForValue.build()); @@ -19036,20 +16713,15 @@ public Builder setTravelSteps( return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addTravelSteps(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep value) { + @java.lang.Deprecated public Builder addTravelSteps(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep value) { if (travelStepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19063,20 +16735,15 @@ public Builder addTravelSteps(com.google.cloud.optimization.v1.ShipmentRoute.Tra return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addTravelSteps( + @java.lang.Deprecated public Builder addTravelSteps( int index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep value) { if (travelStepsBuilder_ == null) { if (value == null) { @@ -19091,20 +16758,15 @@ public Builder addTravelSteps( return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addTravelSteps( + @java.lang.Deprecated public Builder addTravelSteps( com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); @@ -19116,22 +16778,16 @@ public Builder addTravelSteps( return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addTravelSteps( - int index, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { + @java.lang.Deprecated public Builder addTravelSteps( + int index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); travelSteps_.add(index, builderForValue.build()); @@ -19142,25 +16798,20 @@ public Builder addTravelSteps( return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllTravelSteps( - java.lang.Iterable - values) { + @java.lang.Deprecated public Builder addAllTravelSteps( + java.lang.Iterable values) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, travelSteps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, travelSteps_); onChanged(); } else { travelStepsBuilder_.addAllMessages(values); @@ -19168,20 +16819,15 @@ public Builder addAllTravelSteps( return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearTravelSteps() { + @java.lang.Deprecated public Builder clearTravelSteps() { if (travelStepsBuilder_ == null) { travelSteps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); @@ -19192,20 +16838,15 @@ public Builder clearTravelSteps() { return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeTravelSteps(int index) { + @java.lang.Deprecated public Builder removeTravelSteps(int index) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); travelSteps_.remove(index); @@ -19216,62 +16857,45 @@ public Builder removeTravelSteps(int index) { return this; } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder getTravelStepsBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder getTravelStepsBuilder( int index) { return getTravelStepsFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder - getTravelStepsOrBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( + int index) { if (travelStepsBuilder_ == null) { - return travelSteps_.get(index); - } else { + return travelSteps_.get(index); } else { return travelStepsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List< - ? extends com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> - getTravelStepsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getTravelStepsOrBuilderList() { if (travelStepsBuilder_ != null) { return travelStepsBuilder_.getMessageOrBuilderList(); } else { @@ -19279,77 +16903,55 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder getTrav } } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder - addTravelStepsBuilder() { - return getTravelStepsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder addTravelStepsBuilder() { + return getTravelStepsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder addTravelStepsBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder addTravelStepsBuilder( int index) { - return getTravelStepsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()); + return getTravelStepsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getTravelStepsBuilderList() { + @java.lang.Deprecated public java.util.List + getTravelStepsBuilderList() { return getTravelStepsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> getTravelStepsFieldBuilder() { if (travelStepsBuilder_ == null) { - travelStepsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder>( - travelSteps_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + travelStepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder>( + travelSteps_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); travelSteps_ = null; } return travelStepsBuilder_; @@ -19357,13 +16959,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder addTrav private com.google.protobuf.Duration vehicleDetour_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - vehicleDetourBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> vehicleDetourBuilder_; /** - * - * *
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19378,18 +16975,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder addTrav
      * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2185 + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return Whether the vehicleDetour field is set. */ - @java.lang.Deprecated - public boolean hasVehicleDetour() { + @java.lang.Deprecated public boolean hasVehicleDetour() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19404,24 +16997,18 @@ public boolean hasVehicleDetour() {
      * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2185 + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return The vehicleDetour. */ - @java.lang.Deprecated - public com.google.protobuf.Duration getVehicleDetour() { + @java.lang.Deprecated public com.google.protobuf.Duration getVehicleDetour() { if (vehicleDetourBuilder_ == null) { - return vehicleDetour_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : vehicleDetour_; + return vehicleDetour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : vehicleDetour_; } else { return vehicleDetourBuilder_.getMessage(); } } /** - * - * *
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19437,8 +17024,7 @@ public com.google.protobuf.Duration getVehicleDetour() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public Builder setVehicleDetour(com.google.protobuf.Duration value) {
+    @java.lang.Deprecated public Builder setVehicleDetour(com.google.protobuf.Duration value) {
       if (vehicleDetourBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -19452,8 +17038,6 @@ public Builder setVehicleDetour(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19469,8 +17053,8 @@ public Builder setVehicleDetour(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public Builder setVehicleDetour(com.google.protobuf.Duration.Builder builderForValue) {
+    @java.lang.Deprecated public Builder setVehicleDetour(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (vehicleDetourBuilder_ == null) {
         vehicleDetour_ = builderForValue.build();
       } else {
@@ -19481,8 +17065,6 @@ public Builder setVehicleDetour(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19498,12 +17080,11 @@ public Builder setVehicleDetour(com.google.protobuf.Duration.Builder builderForV
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public Builder mergeVehicleDetour(com.google.protobuf.Duration value) {
+    @java.lang.Deprecated public Builder mergeVehicleDetour(com.google.protobuf.Duration value) {
       if (vehicleDetourBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0)
-            && vehicleDetour_ != null
-            && vehicleDetour_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0) &&
+          vehicleDetour_ != null &&
+          vehicleDetour_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getVehicleDetourBuilder().mergeFrom(value);
         } else {
           vehicleDetour_ = value;
@@ -19516,8 +17097,6 @@ public Builder mergeVehicleDetour(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19533,8 +17112,7 @@ public Builder mergeVehicleDetour(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public Builder clearVehicleDetour() {
+    @java.lang.Deprecated public Builder clearVehicleDetour() {
       bitField0_ = (bitField0_ & ~0x00004000);
       vehicleDetour_ = null;
       if (vehicleDetourBuilder_ != null) {
@@ -19545,8 +17123,6 @@ public Builder clearVehicleDetour() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19562,15 +17138,12 @@ public Builder clearVehicleDetour() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public com.google.protobuf.Duration.Builder getVehicleDetourBuilder() {
+    @java.lang.Deprecated public com.google.protobuf.Duration.Builder getVehicleDetourBuilder() {
       bitField0_ |= 0x00004000;
       onChanged();
       return getVehicleDetourFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19586,19 +17159,15 @@ public com.google.protobuf.Duration.Builder getVehicleDetourBuilder() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated
-    public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
+    @java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
       if (vehicleDetourBuilder_ != null) {
         return vehicleDetourBuilder_.getMessageOrBuilder();
       } else {
-        return vehicleDetour_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : vehicleDetour_;
+        return vehicleDetour_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : vehicleDetour_;
       }
     }
     /**
-     *
-     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -19615,17 +17184,14 @@ public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getVehicleDetourFieldBuilder() {
       if (vehicleDetourBuilder_ == null) {
-        vehicleDetourBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getVehicleDetour(), getParentForChildren(), isClean());
+        vehicleDetourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getVehicleDetour(),
+                getParentForChildren(),
+                isClean());
         vehicleDetour_ = null;
       }
       return vehicleDetourBuilder_;
@@ -19633,71 +17199,48 @@ public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
 
     private com.google.cloud.optimization.v1.ShipmentRoute.Delay delayBeforeVehicleEnd_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.Delay,
-            com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder,
-            com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>
-        delayBeforeVehicleEndBuilder_;
+        com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> delayBeforeVehicleEndBuilder_;
     /**
-     *
-     *
      * 
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2189 + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return Whether the delayBeforeVehicleEnd field is set. */ - @java.lang.Deprecated - public boolean hasDelayBeforeVehicleEnd() { + @java.lang.Deprecated public boolean hasDelayBeforeVehicleEnd() { return ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is - * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2189 + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return The delayBeforeVehicleEnd. */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd() { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd() { if (delayBeforeVehicleEndBuilder_ == null) { - return delayBeforeVehicleEnd_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() - : delayBeforeVehicleEnd_; + return delayBeforeVehicleEnd_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeVehicleEnd_; } else { return delayBeforeVehicleEndBuilder_.getMessage(); } } /** - * - * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDelayBeforeVehicleEnd( - com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { + @java.lang.Deprecated public Builder setDelayBeforeVehicleEnd(com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { if (delayBeforeVehicleEndBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19711,19 +17254,14 @@ public Builder setDelayBeforeVehicleEnd( return this; } /** - * - * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setDelayBeforeVehicleEnd( + @java.lang.Deprecated public Builder setDelayBeforeVehicleEnd( com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder builderForValue) { if (delayBeforeVehicleEndBuilder_ == null) { delayBeforeVehicleEnd_ = builderForValue.build(); @@ -19735,25 +17273,18 @@ public Builder setDelayBeforeVehicleEnd( return this; } /** - * - * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeDelayBeforeVehicleEnd( - com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { + @java.lang.Deprecated public Builder mergeDelayBeforeVehicleEnd(com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { if (delayBeforeVehicleEndBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && delayBeforeVehicleEnd_ != null - && delayBeforeVehicleEnd_ - != com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) && + delayBeforeVehicleEnd_ != null && + delayBeforeVehicleEnd_ != com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) { getDelayBeforeVehicleEndBuilder().mergeFrom(value); } else { delayBeforeVehicleEnd_ = value; @@ -19766,19 +17297,14 @@ public Builder mergeDelayBeforeVehicleEnd( return this; } /** - * - * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearDelayBeforeVehicleEnd() { + @java.lang.Deprecated public Builder clearDelayBeforeVehicleEnd() { bitField0_ = (bitField0_ & ~0x00008000); delayBeforeVehicleEnd_ = null; if (delayBeforeVehicleEndBuilder_ != null) { @@ -19789,78 +17315,58 @@ public Builder clearDelayBeforeVehicleEnd() { return this; } /** - * - * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder - getDelayBeforeVehicleEndBuilder() { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder getDelayBeforeVehicleEndBuilder() { bitField0_ |= 0x00008000; onChanged(); return getDelayBeforeVehicleEndFieldBuilder().getBuilder(); } /** - * - * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder - getDelayBeforeVehicleEndOrBuilder() { + @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeVehicleEndOrBuilder() { if (delayBeforeVehicleEndBuilder_ != null) { return delayBeforeVehicleEndBuilder_.getMessageOrBuilder(); } else { - return delayBeforeVehicleEnd_ == null - ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() - : delayBeforeVehicleEnd_; + return delayBeforeVehicleEnd_ == null ? + com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeVehicleEnd_; } } /** - * - * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, - com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> getDelayBeforeVehicleEndFieldBuilder() { if (delayBeforeVehicleEndBuilder_ == null) { - delayBeforeVehicleEndBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, - com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, - com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>( - getDelayBeforeVehicleEnd(), getParentForChildren(), isClean()); + delayBeforeVehicleEndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>( + getDelayBeforeVehicleEnd(), + getParentForChildren(), + isClean()); delayBeforeVehicleEnd_ = null; } return delayBeforeVehicleEndBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -19870,12 +17376,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute) private static final com.google.cloud.optimization.v1.ShipmentRoute DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute(); } @@ -19884,27 +17390,27 @@ public static com.google.cloud.optimization.v1.ShipmentRoute getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShipmentRoute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShipmentRoute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -19919,4 +17425,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java similarity index 80% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java index 7ac866b13d39..4d4d2137a95e 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java @@ -1,96 +1,64 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentRouteOrBuilder - extends +public interface ShipmentRouteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Vehicle performing the route, identified by its index in the source
    * `ShipmentModel`.
    * 
* * int32 vehicle_index = 1; - * * @return The vehicleIndex. */ int getVehicleIndex(); /** - * - * *
    * Label of the vehicle performing this route, equal to
    * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
    * 
* * string vehicle_label = 2; - * * @return The vehicleLabel. */ java.lang.String getVehicleLabel(); /** - * - * *
    * Label of the vehicle performing this route, equal to
    * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
    * 
* * string vehicle_label = 2; - * * @return The bytes for vehicleLabel. */ - com.google.protobuf.ByteString getVehicleLabelBytes(); + com.google.protobuf.ByteString + getVehicleLabelBytes(); /** - * - * *
    * Time at which the vehicle starts its route.
    * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; - * * @return Whether the vehicleStartTime field is set. */ boolean hasVehicleStartTime(); /** - * - * *
    * Time at which the vehicle starts its route.
    * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; - * * @return The vehicleStartTime. */ com.google.protobuf.Timestamp getVehicleStartTime(); /** - * - * *
    * Time at which the vehicle starts its route.
    * 
@@ -100,32 +68,24 @@ public interface ShipmentRouteOrBuilder com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder(); /** - * - * *
    * Time at which the vehicle finishes its route.
    * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; - * * @return Whether the vehicleEndTime field is set. */ boolean hasVehicleEndTime(); /** - * - * *
    * Time at which the vehicle finishes its route.
    * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; - * * @return The vehicleEndTime. */ com.google.protobuf.Timestamp getVehicleEndTime(); /** - * - * *
    * Time at which the vehicle finishes its route.
    * 
@@ -135,8 +95,6 @@ public interface ShipmentRouteOrBuilder com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder(); /** - * - * *
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -145,10 +103,9 @@ public interface ShipmentRouteOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
    */
-  java.util.List getVisitsList();
+  java.util.List 
+      getVisitsList();
   /**
-   *
-   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -159,8 +116,6 @@ public interface ShipmentRouteOrBuilder
    */
   com.google.cloud.optimization.v1.ShipmentRoute.Visit getVisits(int index);
   /**
-   *
-   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -171,8 +126,6 @@ public interface ShipmentRouteOrBuilder
    */
   int getVisitsCount();
   /**
-   *
-   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -181,11 +134,9 @@ public interface ShipmentRouteOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
    */
-  java.util.List
+  java.util.List 
       getVisitsOrBuilderList();
   /**
-   *
-   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -194,21 +145,19 @@ public interface ShipmentRouteOrBuilder
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
    */
-  com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOrBuilder(int index);
+  com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Ordered list of transitions for the route.
    * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - java.util.List getTransitionsList(); + java.util.List + getTransitionsList(); /** - * - * *
    * Ordered list of transitions for the route.
    * 
@@ -217,8 +166,6 @@ public interface ShipmentRouteOrBuilder */ com.google.cloud.optimization.v1.ShipmentRoute.Transition getTransitions(int index); /** - * - * *
    * Ordered list of transitions for the route.
    * 
@@ -227,19 +174,15 @@ public interface ShipmentRouteOrBuilder */ int getTransitionsCount(); /** - * - * *
    * Ordered list of transitions for the route.
    * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - java.util.List + java.util.List getTransitionsOrBuilderList(); /** - * - * *
    * Ordered list of transitions for the route.
    * 
@@ -250,8 +193,6 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition int index); /** - * - * *
    * When
    * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -274,14 +215,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * 
* * bool has_traffic_infeasibilities = 9; - * * @return The hasTrafficInfeasibilities. */ boolean getHasTrafficInfeasibilities(); /** - * - * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -290,13 +228,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; - * * @return Whether the routePolyline field is set. */ boolean hasRoutePolyline(); /** - * - * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -305,13 +240,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; - * * @return The routePolyline. */ com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline(); /** - * - * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -321,12 +253,9 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
    */
-  com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
-      getRoutePolylineOrBuilder();
+  com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder();
 
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -335,10 +264,9 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
    */
-  java.util.List getBreaksList();
+  java.util.List 
+      getBreaksList();
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -349,8 +277,6 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    */
   com.google.cloud.optimization.v1.ShipmentRoute.Break getBreaks(int index);
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -361,8 +287,6 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    */
   int getBreaksCount();
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -371,11 +295,9 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
    */
-  java.util.List
+  java.util.List 
       getBreaksOrBuilderList();
   /**
-   *
-   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -384,11 +306,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
    */
-  com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder(int index);
+  com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -400,13 +321,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; - * * @return Whether the metrics field is set. */ boolean hasMetrics(); /** - * - * *
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -418,13 +336,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; - * * @return The metrics. */ com.google.cloud.optimization.v1.AggregatedMetrics getMetrics(); /** - * - * *
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -440,8 +355,6 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
   com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrBuilder();
 
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -457,8 +370,6 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    */
   int getRouteCostsCount();
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -472,13 +383,15 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * map<string, double> route_costs = 17;
    */
-  boolean containsRouteCosts(java.lang.String key);
-  /** Use {@link #getRouteCostsMap()} instead. */
+  boolean containsRouteCosts(
+      java.lang.String key);
+  /**
+   * Use {@link #getRouteCostsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getRouteCosts();
+  java.util.Map
+  getRouteCosts();
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -492,10 +405,9 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * map<string, double> route_costs = 17;
    */
-  java.util.Map getRouteCostsMap();
+  java.util.Map
+  getRouteCostsMap();
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -509,10 +421,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * map<string, double> route_costs = 17;
    */
-  double getRouteCostsOrDefault(java.lang.String key, double defaultValue);
+  double getRouteCostsOrDefault(
+      java.lang.String key,
+      double defaultValue);
   /**
-   *
-   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -526,24 +438,20 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * map<string, double> route_costs = 17;
    */
-  double getRouteCostsOrThrow(java.lang.String key);
+  double getRouteCostsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Total cost of the route. The sum of all costs in the cost map.
    * 
* * double route_total_cost = 18; - * * @return The routeTotalCost. */ double getRouteTotalCost(); /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -555,15 +463,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getEndLoadsList(); + @java.lang.Deprecated java.util.List + getEndLoadsList(); /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -575,15 +479,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index); /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -595,15 +494,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - int getEndLoadsCount(); + @java.lang.Deprecated int getEndLoadsCount(); /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -615,16 +509,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getEndLoadsOrBuilderList(); /** - * - * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -636,94 +525,66 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * non-zero demand on the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( + int index); /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getTravelStepsList(); + @java.lang.Deprecated java.util.List + getTravelStepsList(); /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index); /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - int getTravelStepsCount(); + @java.lang.Deprecated int getTravelStepsCount(); /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getTravelStepsOrBuilderList(); /** - * - * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( + @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( int index); /** - * - * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -738,16 +599,12 @@ com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStep
    * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2185 + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return Whether the vehicleDetour field is set. */ - @java.lang.Deprecated - boolean hasVehicleDetour(); + @java.lang.Deprecated boolean hasVehicleDetour(); /** - * - * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -762,16 +619,12 @@ com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStep
    * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=2185 + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return The vehicleDetour. */ - @java.lang.Deprecated - com.google.protobuf.Duration getVehicleDetour(); + @java.lang.Deprecated com.google.protobuf.Duration getVehicleDetour(); /** - * - * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -787,57 +640,39 @@ com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStep
    *
    * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
    */
-  @java.lang.Deprecated
-  com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder();
+  @java.lang.Deprecated com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder();
 
   /**
-   *
-   *
    * 
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2189 + * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return Whether the delayBeforeVehicleEnd field is set. */ - @java.lang.Deprecated - boolean hasDelayBeforeVehicleEnd(); + @java.lang.Deprecated boolean hasDelayBeforeVehicleEnd(); /** - * - * *
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2189 + * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return The delayBeforeVehicleEnd. */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd(); + @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd(); /** - * - * *
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeVehicleEndOrBuilder(); + @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeVehicleEndOrBuilder(); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java similarity index 66% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java index bc062497f910..30cabdaf2650 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Specifies incompatibilties between shipments depending on their
  * shipment_type. The appearance of incompatible shipments on the same route is
@@ -29,57 +12,52 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.ShipmentTypeIncompatibility}
  */
-public final class ShipmentTypeIncompatibility extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ShipmentTypeIncompatibility extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentTypeIncompatibility)
     ShipmentTypeIncompatibilityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ShipmentTypeIncompatibility.newBuilder() to construct.
   private ShipmentTypeIncompatibility(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ShipmentTypeIncompatibility() {
-    types_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    types_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     incompatibilityMode_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ShipmentTypeIncompatibility();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.class,
-            com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder.class);
+            com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.class, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Modes defining how the appearance of incompatible shipments are restricted
    * on the same route.
    * 
* - * Protobuf enum {@code - * google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode} + * Protobuf enum {@code google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode} */ - public enum IncompatibilityMode implements com.google.protobuf.ProtocolMessageEnum { + public enum IncompatibilityMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified incompatibility mode. This value should never be used.
      * 
@@ -88,8 +66,6 @@ public enum IncompatibilityMode implements com.google.protobuf.ProtocolMessageEn */ INCOMPATIBILITY_MODE_UNSPECIFIED(0), /** - * - * *
      * In this mode, two shipments with incompatible types can never share the
      * same vehicle.
@@ -99,8 +75,6 @@ public enum IncompatibilityMode implements com.google.protobuf.ProtocolMessageEn
      */
     NOT_PERFORMED_BY_SAME_VEHICLE(1),
     /**
-     *
-     *
      * 
      * For two shipments with incompatible types with the
      * `NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY` incompatibility mode:
@@ -119,8 +93,6 @@ public enum IncompatibilityMode implements com.google.protobuf.ProtocolMessageEn
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified incompatibility mode. This value should never be used.
      * 
@@ -129,8 +101,6 @@ public enum IncompatibilityMode implements com.google.protobuf.ProtocolMessageEn */ public static final int INCOMPATIBILITY_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * In this mode, two shipments with incompatible types can never share the
      * same vehicle.
@@ -140,8 +110,6 @@ public enum IncompatibilityMode implements com.google.protobuf.ProtocolMessageEn
      */
     public static final int NOT_PERFORMED_BY_SAME_VEHICLE_VALUE = 1;
     /**
-     *
-     *
      * 
      * For two shipments with incompatible types with the
      * `NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY` incompatibility mode:
@@ -157,6 +125,7 @@ public enum IncompatibilityMode implements com.google.protobuf.ProtocolMessageEn
      */
     public static final int NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -181,14 +150,10 @@ public static IncompatibilityMode valueOf(int value) {
      */
     public static IncompatibilityMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return INCOMPATIBILITY_MODE_UNSPECIFIED;
-        case 1:
-          return NOT_PERFORMED_BY_SAME_VEHICLE;
-        case 2:
-          return NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY;
-        default:
-          return null;
+        case 0: return INCOMPATIBILITY_MODE_UNSPECIFIED;
+        case 1: return NOT_PERFORMED_BY_SAME_VEHICLE;
+        case 2: return NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY;
+        default: return null;
       }
     }
 
@@ -196,31 +161,29 @@ public static IncompatibilityMode forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        IncompatibilityMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public IncompatibilityMode findValueByNumber(int number) {
+              return IncompatibilityMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public IncompatibilityMode findValueByNumber(int number) {
-                return IncompatibilityMode.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final IncompatibilityMode[] VALUES = values();
@@ -228,7 +191,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static IncompatibilityMode valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -246,50 +210,41 @@ private IncompatibilityMode(int value) {
   }
 
   public static final int TYPES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList types_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; - * * @return A list containing the types. */ - public com.google.protobuf.ProtocolStringList getTypesList() { + public com.google.protobuf.ProtocolStringList + getTypesList() { return types_; } /** - * - * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; - * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** - * - * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; - * * @param index The index of the element to return. * @return The types at the given index. */ @@ -297,68 +252,47 @@ public java.lang.String getTypes(int index) { return types_.get(index); } /** - * - * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; - * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - public com.google.protobuf.ByteString getTypesBytes(int index) { + public com.google.protobuf.ByteString + getTypesBytes(int index) { return types_.getByteString(index); } public static final int INCOMPATIBILITY_MODE_FIELD_NUMBER = 2; private int incompatibilityMode_ = 0; /** - * - * *
    * Mode applied to the incompatibility.
    * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @return The enum numeric value on the wire for incompatibilityMode. */ - @java.lang.Override - public int getIncompatibilityModeValue() { + @java.lang.Override public int getIncompatibilityModeValue() { return incompatibilityMode_; } /** - * - * *
    * Mode applied to the incompatibility.
    * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @return The incompatibilityMode. */ - @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode - getIncompatibilityMode() { - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode result = - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.forNumber( - incompatibilityMode_); - return result == null - ? com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode() { + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode result = com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.forNumber(incompatibilityMode_); + return result == null ? com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -370,14 +304,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < types_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, types_.getRaw(i)); } - if (incompatibilityMode_ - != com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode - .INCOMPATIBILITY_MODE_UNSPECIFIED - .getNumber()) { + if (incompatibilityMode_ != com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.INCOMPATIBILITY_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, incompatibilityMode_); } getUnknownFields().writeTo(output); @@ -397,11 +329,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTypesList().size(); } - if (incompatibilityMode_ - != com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode - .INCOMPATIBILITY_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, incompatibilityMode_); + if (incompatibilityMode_ != com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.INCOMPATIBILITY_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, incompatibilityMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -411,15 +341,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentTypeIncompatibility)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility other = - (com.google.cloud.optimization.v1.ShipmentTypeIncompatibility) obj; + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility other = (com.google.cloud.optimization.v1.ShipmentTypeIncompatibility) obj; - if (!getTypesList().equals(other.getTypesList())) return false; + if (!getTypesList() + .equals(other.getTypesList())) return false; if (incompatibilityMode_ != other.incompatibilityMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -444,104 +374,98 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies incompatibilties between shipments depending on their
    * shipment_type. The appearance of incompatible shipments on the same route is
@@ -550,50 +474,51 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentTypeIncompatibility}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentTypeIncompatibility)
       com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.class,
-              com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.class, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      types_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      types_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       incompatibilityMode_ = 0;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility
-        getDefaultInstanceForType() {
+    public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getDefaultInstanceForType() {
       return com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance();
     }
 
@@ -608,17 +533,13 @@ public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility buildPartial() {
-      com.google.cloud.optimization.v1.ShipmentTypeIncompatibility result =
-          new com.google.cloud.optimization.v1.ShipmentTypeIncompatibility(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.ShipmentTypeIncompatibility result = new com.google.cloud.optimization.v1.ShipmentTypeIncompatibility(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.optimization.v1.ShipmentTypeIncompatibility result) {
+    private void buildPartial0(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         types_.makeImmutable();
@@ -633,39 +554,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.ShipmentTypeIncompatibility) {
-        return mergeFrom((com.google.cloud.optimization.v1.ShipmentTypeIncompatibility) other);
+        return mergeFrom((com.google.cloud.optimization.v1.ShipmentTypeIncompatibility)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,9 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility other) {
-      if (other
-          == com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()) return this;
       if (!other.types_.isEmpty()) {
         if (types_.isEmpty()) {
           types_ = other.types_;
@@ -715,26 +633,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTypesIsMutable();
-                types_.add(s);
-                break;
-              } // case 10
-            case 16:
-              {
-                incompatibilityMode_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureTypesIsMutable();
+              types_.add(s);
+              break;
+            } // case 10
+            case 16: {
+              incompatibilityMode_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -744,12 +659,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList types_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureTypesIsMutable() {
       if (!types_.isModifiable()) {
         types_ = new com.google.protobuf.LazyStringArrayList(types_);
@@ -757,46 +670,38 @@ private void ensureTypesIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @return A list containing the types. */ - public com.google.protobuf.ProtocolStringList getTypesList() { + public com.google.protobuf.ProtocolStringList + getTypesList() { types_.makeImmutable(); return types_; } /** - * - * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** - * - * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @param index The index of the element to return. * @return The types at the given index. */ @@ -804,39 +709,33 @@ public java.lang.String getTypes(int index) { return types_.get(index); } /** - * - * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - public com.google.protobuf.ByteString getTypesBytes(int index) { + public com.google.protobuf.ByteString + getTypesBytes(int index) { return types_.getByteString(index); } /** - * - * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @param index The index to set the value at. * @param value The types to set. * @return This builder for chaining. */ - public Builder setTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.set(index, value); bitField0_ |= 0x00000001; @@ -844,22 +743,18 @@ public Builder setTypes(int index, java.lang.String value) { return this; } /** - * - * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @param value The types to add. * @return This builder for chaining. */ - public Builder addTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.add(value); bitField0_ |= 0x00000001; @@ -867,61 +762,53 @@ public Builder addTypes(java.lang.String value) { return this; } /** - * - * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @param values The types to add. * @return This builder for chaining. */ - public Builder addAllTypes(java.lang.Iterable values) { + public Builder addAllTypes( + java.lang.Iterable values) { ensureTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, types_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @return This builder for chaining. */ public Builder clearTypes() { - types_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + types_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; - * * @param value The bytes of the types to add. * @return This builder for chaining. */ - public Builder addTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTypesIsMutable(); types_.add(value); @@ -932,33 +819,22 @@ public Builder addTypesBytes(com.google.protobuf.ByteString value) { private int incompatibilityMode_ = 0; /** - * - * *
      * Mode applied to the incompatibility.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @return The enum numeric value on the wire for incompatibilityMode. */ - @java.lang.Override - public int getIncompatibilityModeValue() { + @java.lang.Override public int getIncompatibilityModeValue() { return incompatibilityMode_; } /** - * - * *
      * Mode applied to the incompatibility.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @param value The enum numeric value on the wire for incompatibilityMode to set. * @return This builder for chaining. */ @@ -969,45 +845,28 @@ public Builder setIncompatibilityModeValue(int value) { return this; } /** - * - * *
      * Mode applied to the incompatibility.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @return The incompatibilityMode. */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode - getIncompatibilityMode() { - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode result = - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode - .forNumber(incompatibilityMode_); - return result == null - ? com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode - .UNRECOGNIZED - : result; + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode() { + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode result = com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.forNumber(incompatibilityMode_); + return result == null ? com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.UNRECOGNIZED : result; } /** - * - * *
      * Mode applied to the incompatibility.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @param value The incompatibilityMode to set. * @return This builder for chaining. */ - public Builder setIncompatibilityMode( - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode value) { + public Builder setIncompatibilityMode(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode value) { if (value == null) { throw new NullPointerException(); } @@ -1017,16 +876,11 @@ public Builder setIncompatibilityMode( return this; } /** - * - * *
      * Mode applied to the incompatibility.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @return This builder for chaining. */ public Builder clearIncompatibilityMode() { @@ -1035,9 +889,9 @@ public Builder clearIncompatibilityMode() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1047,13 +901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentTypeIncompatibility) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentTypeIncompatibility) - private static final com.google.cloud.optimization.v1.ShipmentTypeIncompatibility - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.ShipmentTypeIncompatibility DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentTypeIncompatibility(); } @@ -1062,27 +915,27 @@ public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShipmentTypeIncompatibility parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShipmentTypeIncompatibility parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,4 +950,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java similarity index 61% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java index 3664f0cba42e..6a234b277081 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java @@ -1,110 +1,73 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentTypeIncompatibilityOrBuilder - extends +public interface ShipmentTypeIncompatibilityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentTypeIncompatibility) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; - * * @return A list containing the types. */ - java.util.List getTypesList(); + java.util.List + getTypesList(); /** - * - * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; - * * @return The count of types. */ int getTypesCount(); /** - * - * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; - * * @param index The index of the element to return. * @return The types at the given index. */ java.lang.String getTypes(int index); /** - * - * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; - * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - com.google.protobuf.ByteString getTypesBytes(int index); + com.google.protobuf.ByteString + getTypesBytes(int index); /** - * - * *
    * Mode applied to the incompatibility.
    * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @return The enum numeric value on the wire for incompatibilityMode. */ int getIncompatibilityModeValue(); /** - * - * *
    * Mode applied to the incompatibility.
    * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; - * - * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; * @return The incompatibilityMode. */ - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode - getIncompatibilityMode(); + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode(); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java similarity index 71% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java index ff88ac8e9013..2c438924c054 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Specifies requirements between shipments based on their shipment_type.
  * The specifics of the requirement are defined by the requirement mode.
@@ -28,56 +11,53 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.ShipmentTypeRequirement}
  */
-public final class ShipmentTypeRequirement extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ShipmentTypeRequirement extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentTypeRequirement)
     ShipmentTypeRequirementOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ShipmentTypeRequirement.newBuilder() to construct.
   private ShipmentTypeRequirement(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ShipmentTypeRequirement() {
-    requiredShipmentTypeAlternatives_ = com.google.protobuf.LazyStringArrayList.emptyList();
-    dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    requiredShipmentTypeAlternatives_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
+    dependentShipmentTypes_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     requirementMode_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ShipmentTypeRequirement();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.ShipmentTypeRequirement.class,
-            com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder.class);
+            com.google.cloud.optimization.v1.ShipmentTypeRequirement.class, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Modes defining the appearance of dependent shipments on a route.
    * 
* * Protobuf enum {@code google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode} */ - public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum { + public enum RequirementMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified requirement mode. This value should never be used.
      * 
@@ -86,8 +66,6 @@ public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum { */ REQUIREMENT_MODE_UNSPECIFIED(0), /** - * - * *
      * In this mode, all "dependent" shipments must share the same vehicle as at
      * least one of their "required" shipments.
@@ -97,8 +75,6 @@ public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     PERFORMED_BY_SAME_VEHICLE(1),
     /**
-     *
-     *
      * 
      * With the `IN_SAME_VEHICLE_AT_PICKUP_TIME` mode, all "dependent"
      * shipments need to have at least one "required" shipment on their vehicle
@@ -116,8 +92,6 @@ public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     IN_SAME_VEHICLE_AT_PICKUP_TIME(2),
     /**
-     *
-     *
      * 
      * Same as before, except the "dependent" shipments need to have a
      * "required" shipment on their vehicle at the time of their *delivery*.
@@ -130,8 +104,6 @@ public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified requirement mode. This value should never be used.
      * 
@@ -140,8 +112,6 @@ public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REQUIREMENT_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * In this mode, all "dependent" shipments must share the same vehicle as at
      * least one of their "required" shipments.
@@ -151,8 +121,6 @@ public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PERFORMED_BY_SAME_VEHICLE_VALUE = 1;
     /**
-     *
-     *
      * 
      * With the `IN_SAME_VEHICLE_AT_PICKUP_TIME` mode, all "dependent"
      * shipments need to have at least one "required" shipment on their vehicle
@@ -170,8 +138,6 @@ public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IN_SAME_VEHICLE_AT_PICKUP_TIME_VALUE = 2;
     /**
-     *
-     *
      * 
      * Same as before, except the "dependent" shipments need to have a
      * "required" shipment on their vehicle at the time of their *delivery*.
@@ -181,6 +147,7 @@ public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int IN_SAME_VEHICLE_AT_DELIVERY_TIME_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -205,47 +172,41 @@ public static RequirementMode valueOf(int value) {
      */
     public static RequirementMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return REQUIREMENT_MODE_UNSPECIFIED;
-        case 1:
-          return PERFORMED_BY_SAME_VEHICLE;
-        case 2:
-          return IN_SAME_VEHICLE_AT_PICKUP_TIME;
-        case 3:
-          return IN_SAME_VEHICLE_AT_DELIVERY_TIME;
-        default:
-          return null;
+        case 0: return REQUIREMENT_MODE_UNSPECIFIED;
+        case 1: return PERFORMED_BY_SAME_VEHICLE;
+        case 2: return IN_SAME_VEHICLE_AT_PICKUP_TIME;
+        case 3: return IN_SAME_VEHICLE_AT_DELIVERY_TIME;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        RequirementMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public RequirementMode findValueByNumber(int number) {
+              return RequirementMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public RequirementMode findValueByNumber(int number) {
-                return RequirementMode.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final RequirementMode[] VALUES = values();
@@ -253,7 +214,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static RequirementMode valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -271,50 +233,41 @@ private RequirementMode(int value) {
   }
 
   public static final int REQUIRED_SHIPMENT_TYPE_ALTERNATIVES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList requiredShipmentTypeAlternatives_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; - * * @return A list containing the requiredShipmentTypeAlternatives. */ - public com.google.protobuf.ProtocolStringList getRequiredShipmentTypeAlternativesList() { + public com.google.protobuf.ProtocolStringList + getRequiredShipmentTypeAlternativesList() { return requiredShipmentTypeAlternatives_; } /** - * - * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; - * * @return The count of requiredShipmentTypeAlternatives. */ public int getRequiredShipmentTypeAlternativesCount() { return requiredShipmentTypeAlternatives_.size(); } /** - * - * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param index The index of the element to return. * @return The requiredShipmentTypeAlternatives at the given index. */ @@ -322,30 +275,25 @@ public java.lang.String getRequiredShipmentTypeAlternatives(int index) { return requiredShipmentTypeAlternatives_.get(index); } /** - * - * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param index The index of the value to return. * @return The bytes of the requiredShipmentTypeAlternatives at the given index. */ - public com.google.protobuf.ByteString getRequiredShipmentTypeAlternativesBytes(int index) { + public com.google.protobuf.ByteString + getRequiredShipmentTypeAlternativesBytes(int index) { return requiredShipmentTypeAlternatives_.getByteString(index); } public static final int DEPENDENT_SHIPMENT_TYPES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -356,15 +304,13 @@ public com.google.protobuf.ByteString getRequiredShipmentTypeAlternativesBytes(i
    * 
* * repeated string dependent_shipment_types = 2; - * * @return A list containing the dependentShipmentTypes. */ - public com.google.protobuf.ProtocolStringList getDependentShipmentTypesList() { + public com.google.protobuf.ProtocolStringList + getDependentShipmentTypesList() { return dependentShipmentTypes_; } /** - * - * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -375,15 +321,12 @@ public com.google.protobuf.ProtocolStringList getDependentShipmentTypesList() {
    * 
* * repeated string dependent_shipment_types = 2; - * * @return The count of dependentShipmentTypes. */ public int getDependentShipmentTypesCount() { return dependentShipmentTypes_.size(); } /** - * - * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -394,7 +337,6 @@ public int getDependentShipmentTypesCount() {
    * 
* * repeated string dependent_shipment_types = 2; - * * @param index The index of the element to return. * @return The dependentShipmentTypes at the given index. */ @@ -402,8 +344,6 @@ public java.lang.String getDependentShipmentTypes(int index) { return dependentShipmentTypes_.get(index); } /** - * - * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -414,59 +354,41 @@ public java.lang.String getDependentShipmentTypes(int index) {
    * 
* * repeated string dependent_shipment_types = 2; - * * @param index The index of the value to return. * @return The bytes of the dependentShipmentTypes at the given index. */ - public com.google.protobuf.ByteString getDependentShipmentTypesBytes(int index) { + public com.google.protobuf.ByteString + getDependentShipmentTypesBytes(int index) { return dependentShipmentTypes_.getByteString(index); } public static final int REQUIREMENT_MODE_FIELD_NUMBER = 3; private int requirementMode_ = 0; /** - * - * *
    * Mode applied to the requirement.
    * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @return The enum numeric value on the wire for requirementMode. */ - @java.lang.Override - public int getRequirementModeValue() { + @java.lang.Override public int getRequirementModeValue() { return requirementMode_; } /** - * - * *
    * Mode applied to the requirement.
    * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @return The requirementMode. */ - @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode - getRequirementMode() { - com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode result = - com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.forNumber( - requirementMode_); - return result == null - ? com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode getRequirementMode() { + com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode result = com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.forNumber(requirementMode_); + return result == null ? com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -478,19 +400,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < requiredShipmentTypeAlternatives_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 1, requiredShipmentTypeAlternatives_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requiredShipmentTypeAlternatives_.getRaw(i)); } for (int i = 0; i < dependentShipmentTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, dependentShipmentTypes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dependentShipmentTypes_.getRaw(i)); } - if (requirementMode_ - != com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode - .REQUIREMENT_MODE_UNSPECIFIED - .getNumber()) { + if (requirementMode_ != com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.REQUIREMENT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, requirementMode_); } getUnknownFields().writeTo(output); @@ -518,11 +436,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getDependentShipmentTypesList().size(); } - if (requirementMode_ - != com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode - .REQUIREMENT_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, requirementMode_); + if (requirementMode_ != com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.REQUIREMENT_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, requirementMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -532,18 +448,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentTypeRequirement)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentTypeRequirement other = - (com.google.cloud.optimization.v1.ShipmentTypeRequirement) obj; + com.google.cloud.optimization.v1.ShipmentTypeRequirement other = (com.google.cloud.optimization.v1.ShipmentTypeRequirement) obj; if (!getRequiredShipmentTypeAlternativesList() .equals(other.getRequiredShipmentTypeAlternativesList())) return false; - if (!getDependentShipmentTypesList().equals(other.getDependentShipmentTypesList())) - return false; + if (!getDependentShipmentTypesList() + .equals(other.getDependentShipmentTypesList())) return false; if (requirementMode_ != other.requirementMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -572,104 +487,98 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.ShipmentTypeRequirement prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentTypeRequirement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies requirements between shipments based on their shipment_type.
    * The specifics of the requirement are defined by the requirement mode.
@@ -677,46 +586,49 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentTypeRequirement}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentTypeRequirement)
       com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentTypeRequirement.class,
-              com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentTypeRequirement.class, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.ShipmentTypeRequirement.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      requiredShipmentTypeAlternatives_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      requiredShipmentTypeAlternatives_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      dependentShipmentTypes_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       requirementMode_ = 0;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
     }
 
     @java.lang.Override
@@ -735,11 +647,8 @@ public com.google.cloud.optimization.v1.ShipmentTypeRequirement build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.ShipmentTypeRequirement buildPartial() {
-      com.google.cloud.optimization.v1.ShipmentTypeRequirement result =
-          new com.google.cloud.optimization.v1.ShipmentTypeRequirement(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.ShipmentTypeRequirement result = new com.google.cloud.optimization.v1.ShipmentTypeRequirement(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -763,39 +672,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentTypeRequirem
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.ShipmentTypeRequirement) {
-        return mergeFrom((com.google.cloud.optimization.v1.ShipmentTypeRequirement) other);
+        return mergeFrom((com.google.cloud.optimization.v1.ShipmentTypeRequirement)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -803,8 +711,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentTypeRequirement other) {
-      if (other == com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()) return this;
       if (!other.requiredShipmentTypeAlternatives_.isEmpty()) {
         if (requiredShipmentTypeAlternatives_.isEmpty()) {
           requiredShipmentTypeAlternatives_ = other.requiredShipmentTypeAlternatives_;
@@ -854,33 +761,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureRequiredShipmentTypeAlternativesIsMutable();
-                requiredShipmentTypeAlternatives_.add(s);
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureDependentShipmentTypesIsMutable();
-                dependentShipmentTypes_.add(s);
-                break;
-              } // case 18
-            case 24:
-              {
-                requirementMode_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureRequiredShipmentTypeAlternativesIsMutable();
+              requiredShipmentTypeAlternatives_.add(s);
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureDependentShipmentTypesIsMutable();
+              dependentShipmentTypes_.add(s);
+              break;
+            } // case 18
+            case 24: {
+              requirementMode_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -890,60 +793,49 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList requiredShipmentTypeAlternatives_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureRequiredShipmentTypeAlternativesIsMutable() {
       if (!requiredShipmentTypeAlternatives_.isModifiable()) {
-        requiredShipmentTypeAlternatives_ =
-            new com.google.protobuf.LazyStringArrayList(requiredShipmentTypeAlternatives_);
+        requiredShipmentTypeAlternatives_ = new com.google.protobuf.LazyStringArrayList(requiredShipmentTypeAlternatives_);
       }
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @return A list containing the requiredShipmentTypeAlternatives. */ - public com.google.protobuf.ProtocolStringList getRequiredShipmentTypeAlternativesList() { + public com.google.protobuf.ProtocolStringList + getRequiredShipmentTypeAlternativesList() { requiredShipmentTypeAlternatives_.makeImmutable(); return requiredShipmentTypeAlternatives_; } /** - * - * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @return The count of requiredShipmentTypeAlternatives. */ public int getRequiredShipmentTypeAlternativesCount() { return requiredShipmentTypeAlternatives_.size(); } /** - * - * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param index The index of the element to return. * @return The requiredShipmentTypeAlternatives at the given index. */ @@ -951,39 +843,33 @@ public java.lang.String getRequiredShipmentTypeAlternatives(int index) { return requiredShipmentTypeAlternatives_.get(index); } /** - * - * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param index The index of the value to return. * @return The bytes of the requiredShipmentTypeAlternatives at the given index. */ - public com.google.protobuf.ByteString getRequiredShipmentTypeAlternativesBytes(int index) { + public com.google.protobuf.ByteString + getRequiredShipmentTypeAlternativesBytes(int index) { return requiredShipmentTypeAlternatives_.getByteString(index); } /** - * - * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param index The index to set the value at. * @param value The requiredShipmentTypeAlternatives to set. * @return This builder for chaining. */ - public Builder setRequiredShipmentTypeAlternatives(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequiredShipmentTypeAlternatives( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRequiredShipmentTypeAlternativesIsMutable(); requiredShipmentTypeAlternatives_.set(index, value); bitField0_ |= 0x00000001; @@ -991,22 +877,18 @@ public Builder setRequiredShipmentTypeAlternatives(int index, java.lang.String v return this; } /** - * - * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param value The requiredShipmentTypeAlternatives to add. * @return This builder for chaining. */ - public Builder addRequiredShipmentTypeAlternatives(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRequiredShipmentTypeAlternatives( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRequiredShipmentTypeAlternativesIsMutable(); requiredShipmentTypeAlternatives_.add(value); bitField0_ |= 0x00000001; @@ -1014,15 +896,12 @@ public Builder addRequiredShipmentTypeAlternatives(java.lang.String value) { return this; } /** - * - * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param values The requiredShipmentTypeAlternatives to add. * @return This builder for chaining. */ @@ -1036,41 +915,34 @@ public Builder addAllRequiredShipmentTypeAlternatives( return this; } /** - * - * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @return This builder for chaining. */ public Builder clearRequiredShipmentTypeAlternatives() { - requiredShipmentTypeAlternatives_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + requiredShipmentTypeAlternatives_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param value The bytes of the requiredShipmentTypeAlternatives to add. * @return This builder for chaining. */ - public Builder addRequiredShipmentTypeAlternativesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRequiredShipmentTypeAlternativesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRequiredShipmentTypeAlternativesIsMutable(); requiredShipmentTypeAlternatives_.add(value); @@ -1081,17 +953,13 @@ public Builder addRequiredShipmentTypeAlternativesBytes(com.google.protobuf.Byte private com.google.protobuf.LazyStringArrayList dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDependentShipmentTypesIsMutable() { if (!dependentShipmentTypes_.isModifiable()) { - dependentShipmentTypes_ = - new com.google.protobuf.LazyStringArrayList(dependentShipmentTypes_); + dependentShipmentTypes_ = new com.google.protobuf.LazyStringArrayList(dependentShipmentTypes_); } bitField0_ |= 0x00000002; } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1102,16 +970,14 @@ private void ensureDependentShipmentTypesIsMutable() {
      * 
* * repeated string dependent_shipment_types = 2; - * * @return A list containing the dependentShipmentTypes. */ - public com.google.protobuf.ProtocolStringList getDependentShipmentTypesList() { + public com.google.protobuf.ProtocolStringList + getDependentShipmentTypesList() { dependentShipmentTypes_.makeImmutable(); return dependentShipmentTypes_; } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1122,15 +988,12 @@ public com.google.protobuf.ProtocolStringList getDependentShipmentTypesList() {
      * 
* * repeated string dependent_shipment_types = 2; - * * @return The count of dependentShipmentTypes. */ public int getDependentShipmentTypesCount() { return dependentShipmentTypes_.size(); } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1141,7 +1004,6 @@ public int getDependentShipmentTypesCount() {
      * 
* * repeated string dependent_shipment_types = 2; - * * @param index The index of the element to return. * @return The dependentShipmentTypes at the given index. */ @@ -1149,8 +1011,6 @@ public java.lang.String getDependentShipmentTypes(int index) { return dependentShipmentTypes_.get(index); } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1161,16 +1021,14 @@ public java.lang.String getDependentShipmentTypes(int index) {
      * 
* * repeated string dependent_shipment_types = 2; - * * @param index The index of the value to return. * @return The bytes of the dependentShipmentTypes at the given index. */ - public com.google.protobuf.ByteString getDependentShipmentTypesBytes(int index) { + public com.google.protobuf.ByteString + getDependentShipmentTypesBytes(int index) { return dependentShipmentTypes_.getByteString(index); } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1181,15 +1039,13 @@ public com.google.protobuf.ByteString getDependentShipmentTypesBytes(int index)
      * 
* * repeated string dependent_shipment_types = 2; - * * @param index The index to set the value at. * @param value The dependentShipmentTypes to set. * @return This builder for chaining. */ - public Builder setDependentShipmentTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDependentShipmentTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDependentShipmentTypesIsMutable(); dependentShipmentTypes_.set(index, value); bitField0_ |= 0x00000002; @@ -1197,8 +1053,6 @@ public Builder setDependentShipmentTypes(int index, java.lang.String value) { return this; } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1209,14 +1063,12 @@ public Builder setDependentShipmentTypes(int index, java.lang.String value) {
      * 
* * repeated string dependent_shipment_types = 2; - * * @param value The dependentShipmentTypes to add. * @return This builder for chaining. */ - public Builder addDependentShipmentTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDependentShipmentTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDependentShipmentTypesIsMutable(); dependentShipmentTypes_.add(value); bitField0_ |= 0x00000002; @@ -1224,8 +1076,6 @@ public Builder addDependentShipmentTypes(java.lang.String value) { return this; } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1236,20 +1086,19 @@ public Builder addDependentShipmentTypes(java.lang.String value) {
      * 
* * repeated string dependent_shipment_types = 2; - * * @param values The dependentShipmentTypes to add. * @return This builder for chaining. */ - public Builder addAllDependentShipmentTypes(java.lang.Iterable values) { + public Builder addAllDependentShipmentTypes( + java.lang.Iterable values) { ensureDependentShipmentTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependentShipmentTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dependentShipmentTypes_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1260,19 +1109,16 @@ public Builder addAllDependentShipmentTypes(java.lang.Iterable
      * 
* * repeated string dependent_shipment_types = 2; - * * @return This builder for chaining. */ public Builder clearDependentShipmentTypes() { - dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + dependentShipmentTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1283,14 +1129,12 @@ public Builder clearDependentShipmentTypes() {
      * 
* * repeated string dependent_shipment_types = 2; - * * @param value The bytes of the dependentShipmentTypes to add. * @return This builder for chaining. */ - public Builder addDependentShipmentTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDependentShipmentTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDependentShipmentTypesIsMutable(); dependentShipmentTypes_.add(value); @@ -1301,33 +1145,22 @@ public Builder addDependentShipmentTypesBytes(com.google.protobuf.ByteString val private int requirementMode_ = 0; /** - * - * *
      * Mode applied to the requirement.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @return The enum numeric value on the wire for requirementMode. */ - @java.lang.Override - public int getRequirementModeValue() { + @java.lang.Override public int getRequirementModeValue() { return requirementMode_; } /** - * - * *
      * Mode applied to the requirement.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @param value The enum numeric value on the wire for requirementMode to set. * @return This builder for chaining. */ @@ -1338,44 +1171,28 @@ public Builder setRequirementModeValue(int value) { return this; } /** - * - * *
      * Mode applied to the requirement.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @return The requirementMode. */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode - getRequirementMode() { - com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode result = - com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.forNumber( - requirementMode_); - return result == null - ? com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.UNRECOGNIZED - : result; + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode getRequirementMode() { + com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode result = com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.forNumber(requirementMode_); + return result == null ? com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.UNRECOGNIZED : result; } /** - * - * *
      * Mode applied to the requirement.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @param value The requirementMode to set. * @return This builder for chaining. */ - public Builder setRequirementMode( - com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode value) { + public Builder setRequirementMode(com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode value) { if (value == null) { throw new NullPointerException(); } @@ -1385,16 +1202,11 @@ public Builder setRequirementMode( return this; } /** - * - * *
      * Mode applied to the requirement.
      * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @return This builder for chaining. */ public Builder clearRequirementMode() { @@ -1403,9 +1215,9 @@ public Builder clearRequirementMode() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1415,12 +1227,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentTypeRequirement) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentTypeRequirement) private static final com.google.cloud.optimization.v1.ShipmentTypeRequirement DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentTypeRequirement(); } @@ -1429,27 +1241,27 @@ public static com.google.cloud.optimization.v1.ShipmentTypeRequirement getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShipmentTypeRequirement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShipmentTypeRequirement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1464,4 +1276,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentTypeRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java similarity index 74% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java index 9ee24164366c..b3417d282de2 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java @@ -1,86 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentTypeRequirementOrBuilder - extends +public interface ShipmentTypeRequirementOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentTypeRequirement) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; - * * @return A list containing the requiredShipmentTypeAlternatives. */ - java.util.List getRequiredShipmentTypeAlternativesList(); + java.util.List + getRequiredShipmentTypeAlternativesList(); /** - * - * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; - * * @return The count of requiredShipmentTypeAlternatives. */ int getRequiredShipmentTypeAlternativesCount(); /** - * - * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param index The index of the element to return. * @return The requiredShipmentTypeAlternatives at the given index. */ java.lang.String getRequiredShipmentTypeAlternatives(int index); /** - * - * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; - * * @param index The index of the value to return. * @return The bytes of the requiredShipmentTypeAlternatives at the given index. */ - com.google.protobuf.ByteString getRequiredShipmentTypeAlternativesBytes(int index); + com.google.protobuf.ByteString + getRequiredShipmentTypeAlternativesBytes(int index); /** - * - * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -91,13 +63,11 @@ public interface ShipmentTypeRequirementOrBuilder
    * 
* * repeated string dependent_shipment_types = 2; - * * @return A list containing the dependentShipmentTypes. */ - java.util.List getDependentShipmentTypesList(); + java.util.List + getDependentShipmentTypesList(); /** - * - * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -108,13 +78,10 @@ public interface ShipmentTypeRequirementOrBuilder
    * 
* * repeated string dependent_shipment_types = 2; - * * @return The count of dependentShipmentTypes. */ int getDependentShipmentTypesCount(); /** - * - * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -125,14 +92,11 @@ public interface ShipmentTypeRequirementOrBuilder
    * 
* * repeated string dependent_shipment_types = 2; - * * @param index The index of the element to return. * @return The dependentShipmentTypes at the given index. */ java.lang.String getDependentShipmentTypes(int index); /** - * - * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -143,37 +107,27 @@ public interface ShipmentTypeRequirementOrBuilder
    * 
* * repeated string dependent_shipment_types = 2; - * * @param index The index of the value to return. * @return The bytes of the dependentShipmentTypes at the given index. */ - com.google.protobuf.ByteString getDependentShipmentTypesBytes(int index); + com.google.protobuf.ByteString + getDependentShipmentTypesBytes(int index); /** - * - * *
    * Mode applied to the requirement.
    * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @return The enum numeric value on the wire for requirementMode. */ int getRequirementModeValue(); /** - * - * *
    * Mode applied to the requirement.
    * 
* - * - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; - * - * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; * @return The requirementMode. */ com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode getRequirementMode(); diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java similarity index 75% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java index bda15fa75473..faa2a53b3da9 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Specifies details of unperformed shipments in a solution. For trivial cases
  * and/or if we are able to identify the cause for skipping, we report the
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.SkippedShipment}
  */
-public final class SkippedShipment extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SkippedShipment extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.SkippedShipment)
     SkippedShipmentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SkippedShipment.newBuilder() to construct.
   private SkippedShipment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SkippedShipment() {
     label_ = "";
     reasons_ = java.util.Collections.emptyList();
@@ -46,112 +28,91 @@ private SkippedShipment() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SkippedShipment();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.SkippedShipment.class,
-            com.google.cloud.optimization.v1.SkippedShipment.Builder.class);
+            com.google.cloud.optimization.v1.SkippedShipment.class, com.google.cloud.optimization.v1.SkippedShipment.Builder.class);
   }
 
-  public interface ReasonOrBuilder
-      extends
+  public interface ReasonOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.SkippedShipment.Reason)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Refer to the comments of Code.
      * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
      * Refer to the comments of Code.
      * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @return The code. */ com.google.cloud.optimization.v1.SkippedShipment.Reason.Code getCode(); /** - * - * *
      * If the reason is related to a shipment-vehicle incompatibility, this
      * field provides the index of one relevant vehicle.
      * 
* * optional int32 example_vehicle_index = 2; - * * @return Whether the exampleVehicleIndex field is set. */ boolean hasExampleVehicleIndex(); /** - * - * *
      * If the reason is related to a shipment-vehicle incompatibility, this
      * field provides the index of one relevant vehicle.
      * 
* * optional int32 example_vehicle_index = 2; - * * @return The exampleVehicleIndex. */ int getExampleVehicleIndex(); /** - * - * *
      * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
      * capacity type that is exceeded.
      * 
* * string example_exceeded_capacity_type = 3; - * * @return The exampleExceededCapacityType. */ java.lang.String getExampleExceededCapacityType(); /** - * - * *
      * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
      * capacity type that is exceeded.
      * 
* * string example_exceeded_capacity_type = 3; - * * @return The bytes for exampleExceededCapacityType. */ - com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes(); + com.google.protobuf.ByteString + getExampleExceededCapacityTypeBytes(); } /** - * - * *
    * If we can explain why the shipment was skipped, reasons will be listed
    * here. If the reason is not the same for all vehicles, `reason` will have
@@ -183,16 +144,15 @@ public interface ReasonOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.SkippedShipment.Reason}
    */
-  public static final class Reason extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Reason extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.SkippedShipment.Reason)
       ReasonOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Reason.newBuilder() to construct.
     private Reason(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Reason() {
       code_ = 0;
       exampleExceededCapacityType_ = "";
@@ -200,28 +160,25 @@ private Reason() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Reason();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.SkippedShipment.Reason.class,
-              com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder.class);
+              com.google.cloud.optimization.v1.SkippedShipment.Reason.class, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * Code identifying the reason type. The order here is meaningless. In
      * particular, it gives no indication of whether a given reason will
@@ -230,10 +187,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.optimization.v1.SkippedShipment.Reason.Code}
      */
-    public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Code
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * This should never be used. If we are unable to understand why a
        * shipment was skipped, we simply return an empty set of reasons.
@@ -243,8 +199,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       CODE_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * There is no vehicle in the model making all shipments infeasible.
        * 
@@ -253,8 +207,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ NO_VEHICLE(1), /** - * - * *
        * The demand of the shipment exceeds a vehicle's capacity for some
        * capacity types, one of which is `example_exceeded_capacity_type`.
@@ -264,8 +216,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       DEMAND_EXCEEDS_VEHICLE_CAPACITY(2),
       /**
-       *
-       *
        * 
        * The minimum distance necessary to perform this shipment, i.e. from
        * the vehicle's `start_location` to the shipment's pickup and/or delivery
@@ -279,8 +229,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT(3),
       /**
-       *
-       *
        * 
        * The minimum time necessary to perform this shipment, including travel
        * time, wait time and service time exceeds the vehicle's
@@ -294,8 +242,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT(4),
       /**
-       *
-       *
        * 
        * Same as above but we only compare minimum travel time and the
        * vehicle's `travel_duration_limit`.
@@ -305,8 +251,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT(5),
       /**
-       *
-       *
        * 
        * The vehicle cannot perform this shipment in the best-case scenario
        * (see `CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT` for time
@@ -318,8 +262,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS(6),
       /**
-       *
-       *
        * 
        * The `allowed_vehicle_indices` field of the shipment is not empty and
        * this vehicle does not belong to it.
@@ -332,8 +274,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * This should never be used. If we are unable to understand why a
        * shipment was skipped, we simply return an empty set of reasons.
@@ -343,8 +283,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CODE_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * There is no vehicle in the model making all shipments infeasible.
        * 
@@ -353,8 +291,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_VEHICLE_VALUE = 1; /** - * - * *
        * The demand of the shipment exceeds a vehicle's capacity for some
        * capacity types, one of which is `example_exceeded_capacity_type`.
@@ -364,8 +300,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int DEMAND_EXCEEDS_VEHICLE_CAPACITY_VALUE = 2;
       /**
-       *
-       *
        * 
        * The minimum distance necessary to perform this shipment, i.e. from
        * the vehicle's `start_location` to the shipment's pickup and/or delivery
@@ -379,8 +313,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT_VALUE = 3;
       /**
-       *
-       *
        * 
        * The minimum time necessary to perform this shipment, including travel
        * time, wait time and service time exceeds the vehicle's
@@ -394,8 +326,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT_VALUE = 4;
       /**
-       *
-       *
        * 
        * Same as above but we only compare minimum travel time and the
        * vehicle's `travel_duration_limit`.
@@ -405,8 +335,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT_VALUE = 5;
       /**
-       *
-       *
        * 
        * The vehicle cannot perform this shipment in the best-case scenario
        * (see `CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT` for time
@@ -418,8 +346,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS_VALUE = 6;
       /**
-       *
-       *
        * 
        * The `allowed_vehicle_indices` field of the shipment is not empty and
        * this vehicle does not belong to it.
@@ -429,6 +355,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int VEHICLE_NOT_ALLOWED_VALUE = 7;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -453,61 +380,54 @@ public static Code valueOf(int value) {
        */
       public static Code forNumber(int value) {
         switch (value) {
-          case 0:
-            return CODE_UNSPECIFIED;
-          case 1:
-            return NO_VEHICLE;
-          case 2:
-            return DEMAND_EXCEEDS_VEHICLE_CAPACITY;
-          case 3:
-            return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT;
-          case 4:
-            return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT;
-          case 5:
-            return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT;
-          case 6:
-            return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS;
-          case 7:
-            return VEHICLE_NOT_ALLOWED;
-          default:
-            return null;
+          case 0: return CODE_UNSPECIFIED;
+          case 1: return NO_VEHICLE;
+          case 2: return DEMAND_EXCEEDS_VEHICLE_CAPACITY;
+          case 3: return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT;
+          case 4: return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT;
+          case 5: return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT;
+          case 6: return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS;
+          case 7: return VEHICLE_NOT_ALLOWED;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          Code> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public Code findValueByNumber(int number) {
+                return Code.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Code findValueByNumber(int number) {
-              return Code.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.SkippedShipment.Reason.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.SkippedShipment.Reason.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final Code[] VALUES = values();
 
-      public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Code valueOf(
+          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -528,52 +448,38 @@ private Code(int value) {
     public static final int CODE_FIELD_NUMBER = 1;
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Refer to the comments of Code.
      * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Refer to the comments of Code.
      * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.optimization.v1.SkippedShipment.Reason.Code getCode() { - com.google.cloud.optimization.v1.SkippedShipment.Reason.Code result = - com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.forNumber(code_); - return result == null - ? com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.optimization.v1.SkippedShipment.Reason.Code getCode() { + com.google.cloud.optimization.v1.SkippedShipment.Reason.Code result = com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.forNumber(code_); + return result == null ? com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.UNRECOGNIZED : result; } public static final int EXAMPLE_VEHICLE_INDEX_FIELD_NUMBER = 2; private int exampleVehicleIndex_ = 0; /** - * - * *
      * If the reason is related to a shipment-vehicle incompatibility, this
      * field provides the index of one relevant vehicle.
      * 
* * optional int32 example_vehicle_index = 2; - * * @return Whether the exampleVehicleIndex field is set. */ @java.lang.Override @@ -581,15 +487,12 @@ public boolean hasExampleVehicleIndex() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * If the reason is related to a shipment-vehicle incompatibility, this
      * field provides the index of one relevant vehicle.
      * 
* * optional int32 example_vehicle_index = 2; - * * @return The exampleVehicleIndex. */ @java.lang.Override @@ -598,19 +501,15 @@ public int getExampleVehicleIndex() { } public static final int EXAMPLE_EXCEEDED_CAPACITY_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object exampleExceededCapacityType_ = ""; /** - * - * *
      * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
      * capacity type that is exceeded.
      * 
* * string example_exceeded_capacity_type = 3; - * * @return The exampleExceededCapacityType. */ @java.lang.Override @@ -619,30 +518,30 @@ public java.lang.String getExampleExceededCapacityType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exampleExceededCapacityType_ = s; return s; } } /** - * - * *
      * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
      * capacity type that is exceeded.
      * 
* * string example_exceeded_capacity_type = 3; - * * @return The bytes for exampleExceededCapacityType. */ @java.lang.Override - public com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes() { + public com.google.protobuf.ByteString + getExampleExceededCapacityTypeBytes() { java.lang.Object ref = exampleExceededCapacityType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exampleExceededCapacityType_ = b; return b; } else { @@ -651,7 +550,6 @@ public com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -663,10 +561,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -684,18 +581,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, exampleVehicleIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, exampleVehicleIndex_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exampleExceededCapacityType_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 3, exampleExceededCapacityType_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, exampleExceededCapacityType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -705,21 +600,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.SkippedShipment.Reason)) { return super.equals(obj); } - com.google.cloud.optimization.v1.SkippedShipment.Reason other = - (com.google.cloud.optimization.v1.SkippedShipment.Reason) obj; + com.google.cloud.optimization.v1.SkippedShipment.Reason other = (com.google.cloud.optimization.v1.SkippedShipment.Reason) obj; if (code_ != other.code_) return false; if (hasExampleVehicleIndex() != other.hasExampleVehicleIndex()) return false; if (hasExampleVehicleIndex()) { - if (getExampleVehicleIndex() != other.getExampleVehicleIndex()) return false; + if (getExampleVehicleIndex() + != other.getExampleVehicleIndex()) return false; } - if (!getExampleExceededCapacityType().equals(other.getExampleExceededCapacityType())) - return false; + if (!getExampleExceededCapacityType() + .equals(other.getExampleExceededCapacityType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -745,94 +640,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.SkippedShipment.Reason prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.SkippedShipment.Reason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -842,8 +732,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * If we can explain why the shipment was skipped, reasons will be listed
      * here. If the reason is not the same for all vehicles, `reason` will have
@@ -875,33 +763,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.SkippedShipment.Reason}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.SkippedShipment.Reason)
         com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.SkippedShipment.Reason.class,
-                com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder.class);
+                com.google.cloud.optimization.v1.SkippedShipment.Reason.class, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.SkippedShipment.Reason.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -913,9 +801,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
       }
 
       @java.lang.Override
@@ -934,11 +822,8 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.SkippedShipment.Reason buildPartial() {
-        com.google.cloud.optimization.v1.SkippedShipment.Reason result =
-            new com.google.cloud.optimization.v1.SkippedShipment.Reason(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.SkippedShipment.Reason result = new com.google.cloud.optimization.v1.SkippedShipment.Reason(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -963,41 +848,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.SkippedShipment.Reas
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.SkippedShipment.Reason) {
-          return mergeFrom((com.google.cloud.optimization.v1.SkippedShipment.Reason) other);
+          return mergeFrom((com.google.cloud.optimization.v1.SkippedShipment.Reason)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1005,8 +887,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.SkippedShipment.Reason other) {
-        if (other == com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance()) return this;
         if (other.code_ != 0) {
           setCodeValue(other.getCodeValue());
         }
@@ -1044,31 +925,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  code_ = input.readEnum();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  exampleVehicleIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              case 26:
-                {
-                  exampleExceededCapacityType_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                exampleVehicleIndex_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              case 26: {
+                exampleExceededCapacityType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1078,34 +955,26 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private int code_ = 0;
       /**
-       *
-       *
        * 
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -1116,33 +985,24 @@ public Builder setCodeValue(int value) { return this; } /** - * - * *
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.optimization.v1.SkippedShipment.Reason.Code getCode() { - com.google.cloud.optimization.v1.SkippedShipment.Reason.Code result = - com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.forNumber(code_); - return result == null - ? com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.UNRECOGNIZED - : result; + com.google.cloud.optimization.v1.SkippedShipment.Reason.Code result = com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.forNumber(code_); + return result == null ? com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.UNRECOGNIZED : result; } /** - * - * *
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -1156,14 +1016,11 @@ public Builder setCode(com.google.cloud.optimization.v1.SkippedShipment.Reason.C return this; } /** - * - * *
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -1173,17 +1030,14 @@ public Builder clearCode() { return this; } - private int exampleVehicleIndex_; + private int exampleVehicleIndex_ ; /** - * - * *
        * If the reason is related to a shipment-vehicle incompatibility, this
        * field provides the index of one relevant vehicle.
        * 
* * optional int32 example_vehicle_index = 2; - * * @return Whether the exampleVehicleIndex field is set. */ @java.lang.Override @@ -1191,15 +1045,12 @@ public boolean hasExampleVehicleIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * If the reason is related to a shipment-vehicle incompatibility, this
        * field provides the index of one relevant vehicle.
        * 
* * optional int32 example_vehicle_index = 2; - * * @return The exampleVehicleIndex. */ @java.lang.Override @@ -1207,15 +1058,12 @@ public int getExampleVehicleIndex() { return exampleVehicleIndex_; } /** - * - * *
        * If the reason is related to a shipment-vehicle incompatibility, this
        * field provides the index of one relevant vehicle.
        * 
* * optional int32 example_vehicle_index = 2; - * * @param value The exampleVehicleIndex to set. * @return This builder for chaining. */ @@ -1227,15 +1075,12 @@ public Builder setExampleVehicleIndex(int value) { return this; } /** - * - * *
        * If the reason is related to a shipment-vehicle incompatibility, this
        * field provides the index of one relevant vehicle.
        * 
* * optional int32 example_vehicle_index = 2; - * * @return This builder for chaining. */ public Builder clearExampleVehicleIndex() { @@ -1247,21 +1092,19 @@ public Builder clearExampleVehicleIndex() { private java.lang.Object exampleExceededCapacityType_ = ""; /** - * - * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; - * * @return The exampleExceededCapacityType. */ public java.lang.String getExampleExceededCapacityType() { java.lang.Object ref = exampleExceededCapacityType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exampleExceededCapacityType_ = s; return s; @@ -1270,22 +1113,21 @@ public java.lang.String getExampleExceededCapacityType() { } } /** - * - * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; - * * @return The bytes for exampleExceededCapacityType. */ - public com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes() { + public com.google.protobuf.ByteString + getExampleExceededCapacityTypeBytes() { java.lang.Object ref = exampleExceededCapacityType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); exampleExceededCapacityType_ = b; return b; } else { @@ -1293,37 +1135,30 @@ public com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes() { } } /** - * - * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; - * * @param value The exampleExceededCapacityType to set. * @return This builder for chaining. */ - public Builder setExampleExceededCapacityType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExampleExceededCapacityType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } exampleExceededCapacityType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; - * * @return This builder for chaining. */ public Builder clearExampleExceededCapacityType() { @@ -1333,29 +1168,24 @@ public Builder clearExampleExceededCapacityType() { return this; } /** - * - * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; - * * @param value The bytes for exampleExceededCapacityType to set. * @return This builder for chaining. */ - public Builder setExampleExceededCapacityTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExampleExceededCapacityTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); exampleExceededCapacityType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1368,12 +1198,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.SkippedShipment.Reason) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.SkippedShipment.Reason) private static final com.google.cloud.optimization.v1.SkippedShipment.Reason DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.SkippedShipment.Reason(); } @@ -1382,28 +1212,27 @@ public static com.google.cloud.optimization.v1.SkippedShipment.Reason getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1418,20 +1247,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.SkippedShipment.Reason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int INDEX_FIELD_NUMBER = 1; private int index_ = 0; /** - * - * *
    * The index corresponds to the index of the shipment in the source
    * `ShipmentModel`.
    * 
* * int32 index = 1; - * * @return The index. */ @java.lang.Override @@ -1440,12 +1267,9 @@ public int getIndex() { } public static final int LABEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** - * - * *
    * Copy of the corresponding
    * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1453,7 +1277,6 @@ public int getIndex() {
    * 
* * string label = 2; - * * @return The label. */ @java.lang.Override @@ -1462,15 +1285,14 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
    * Copy of the corresponding
    * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1478,15 +1300,16 @@ public java.lang.String getLabel() {
    * 
* * string label = 2; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -1495,12 +1318,9 @@ public com.google.protobuf.ByteString getLabelBytes() { } public static final int REASONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List reasons_; /** - * - * *
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1513,8 +1333,6 @@ public java.util.List g
     return reasons_;
   }
   /**
-   *
-   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1523,13 +1341,11 @@ public java.util.List g
    * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getReasonsOrBuilderList() {
     return reasons_;
   }
   /**
-   *
-   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1542,8 +1358,6 @@ public int getReasonsCount() {
     return reasons_.size();
   }
   /**
-   *
-   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1556,8 +1370,6 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason getReasons(int in
     return reasons_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1572,7 +1384,6 @@ public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReaso
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1584,7 +1395,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (index_ != 0) {
       output.writeInt32(1, index_);
     }
@@ -1604,13 +1416,15 @@ public int getSerializedSize() {
 
     size = 0;
     if (index_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, index_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(1, index_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_);
     }
     for (int i = 0; i < reasons_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, reasons_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, reasons_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1620,17 +1434,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.SkippedShipment)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.SkippedShipment other =
-        (com.google.cloud.optimization.v1.SkippedShipment) obj;
+    com.google.cloud.optimization.v1.SkippedShipment other = (com.google.cloud.optimization.v1.SkippedShipment) obj;
 
-    if (getIndex() != other.getIndex()) return false;
-    if (!getLabel().equals(other.getLabel())) return false;
-    if (!getReasonsList().equals(other.getReasonsList())) return false;
+    if (getIndex()
+        != other.getIndex()) return false;
+    if (!getLabel()
+        .equals(other.getLabel())) return false;
+    if (!getReasonsList()
+        .equals(other.getReasonsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1655,104 +1471,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.SkippedShipment parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.SkippedShipment parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.SkippedShipment parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.optimization.v1.SkippedShipment prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Specifies details of unperformed shipments in a solution. For trivial cases
    * and/or if we are able to identify the cause for skipping, we report the
@@ -1761,32 +1572,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.SkippedShipment}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.SkippedShipment)
       com.google.cloud.optimization.v1.SkippedShipmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.SkippedShipment.class,
-              com.google.cloud.optimization.v1.SkippedShipment.Builder.class);
+              com.google.cloud.optimization.v1.SkippedShipment.class, com.google.cloud.optimization.v1.SkippedShipment.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.SkippedShipment.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1804,9 +1616,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
     }
 
     @java.lang.Override
@@ -1825,18 +1637,14 @@ public com.google.cloud.optimization.v1.SkippedShipment build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.SkippedShipment buildPartial() {
-      com.google.cloud.optimization.v1.SkippedShipment result =
-          new com.google.cloud.optimization.v1.SkippedShipment(this);
+      com.google.cloud.optimization.v1.SkippedShipment result = new com.google.cloud.optimization.v1.SkippedShipment(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.optimization.v1.SkippedShipment result) {
+    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.SkippedShipment result) {
       if (reasonsBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           reasons_ = java.util.Collections.unmodifiableList(reasons_);
@@ -1862,39 +1670,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.SkippedShipment resu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.SkippedShipment) {
-        return mergeFrom((com.google.cloud.optimization.v1.SkippedShipment) other);
+        return mergeFrom((com.google.cloud.optimization.v1.SkippedShipment)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1902,8 +1709,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.SkippedShipment other) {
-      if (other == com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()) return this;
       if (other.getIndex() != 0) {
         setIndex(other.getIndex());
       }
@@ -1930,10 +1736,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.SkippedShipment other)
             reasonsBuilder_ = null;
             reasons_ = other.reasons_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            reasonsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReasonsFieldBuilder()
-                    : null;
+            reasonsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReasonsFieldBuilder() : null;
           } else {
             reasonsBuilder_.addAllMessages(other.reasons_);
           }
@@ -1965,39 +1770,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                index_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                label_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.optimization.v1.SkippedShipment.Reason m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.SkippedShipment.Reason.parser(),
-                        extensionRegistry);
-                if (reasonsBuilder_ == null) {
-                  ensureReasonsIsMutable();
-                  reasons_.add(m);
-                } else {
-                  reasonsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              index_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              label_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.optimization.v1.SkippedShipment.Reason m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.SkippedShipment.Reason.parser(),
+                      extensionRegistry);
+              if (reasonsBuilder_ == null) {
+                ensureReasonsIsMutable();
+                reasons_.add(m);
+              } else {
+                reasonsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2007,20 +1808,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private int index_;
+    private int index_ ;
     /**
-     *
-     *
      * 
      * The index corresponds to the index of the shipment in the source
      * `ShipmentModel`.
      * 
* * int32 index = 1; - * * @return The index. */ @java.lang.Override @@ -2028,15 +1825,12 @@ public int getIndex() { return index_; } /** - * - * *
      * The index corresponds to the index of the shipment in the source
      * `ShipmentModel`.
      * 
* * int32 index = 1; - * * @param value The index to set. * @return This builder for chaining. */ @@ -2048,15 +1842,12 @@ public Builder setIndex(int value) { return this; } /** - * - * *
      * The index corresponds to the index of the shipment in the source
      * `ShipmentModel`.
      * 
* * int32 index = 1; - * * @return This builder for chaining. */ public Builder clearIndex() { @@ -2068,8 +1859,6 @@ public Builder clearIndex() { private java.lang.Object label_ = ""; /** - * - * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -2077,13 +1866,13 @@ public Builder clearIndex() {
      * 
* * string label = 2; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -2092,8 +1881,6 @@ public java.lang.String getLabel() { } } /** - * - * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -2101,14 +1888,15 @@ public java.lang.String getLabel() {
      * 
* * string label = 2; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -2116,8 +1904,6 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -2125,22 +1911,18 @@ public com.google.protobuf.ByteString getLabelBytes() {
      * 
* * string label = 2; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } label_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -2148,7 +1930,6 @@ public Builder setLabel(java.lang.String value) {
      * 
* * string label = 2; - * * @return This builder for chaining. */ public Builder clearLabel() { @@ -2158,8 +1939,6 @@ public Builder clearLabel() { return this; } /** - * - * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -2167,14 +1946,12 @@ public Builder clearLabel() {
      * 
* * string label = 2; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000002; @@ -2183,26 +1960,18 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) { } private java.util.List reasons_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - reasons_ = - new java.util.ArrayList( - reasons_); + reasons_ = new java.util.ArrayList(reasons_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.SkippedShipment.Reason, - com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder, - com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder> - reasonsBuilder_; + com.google.cloud.optimization.v1.SkippedShipment.Reason, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder, com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder> reasonsBuilder_; /** - * - * *
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2210,8 +1979,7 @@ private void ensureReasonsIsMutable() {
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
-    public java.util.List
-        getReasonsList() {
+    public java.util.List getReasonsList() {
       if (reasonsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(reasons_);
       } else {
@@ -2219,8 +1987,6 @@ private void ensureReasonsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2236,8 +2002,6 @@ public int getReasonsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2253,8 +2017,6 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason getReasons(int in
       }
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2277,8 +2039,6 @@ public Builder setReasons(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2287,8 +2047,7 @@ public Builder setReasons(
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
     public Builder setReasons(
-        int index,
-        com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder builderForValue) {
+        int index, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder builderForValue) {
       if (reasonsBuilder_ == null) {
         ensureReasonsIsMutable();
         reasons_.set(index, builderForValue.build());
@@ -2299,8 +2058,6 @@ public Builder setReasons(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2322,8 +2079,6 @@ public Builder addReasons(com.google.cloud.optimization.v1.SkippedShipment.Reaso
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2346,8 +2101,6 @@ public Builder addReasons(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2367,8 +2120,6 @@ public Builder addReasons(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2377,8 +2128,7 @@ public Builder addReasons(
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
     public Builder addReasons(
-        int index,
-        com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder builderForValue) {
+        int index, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder builderForValue) {
       if (reasonsBuilder_ == null) {
         ensureReasonsIsMutable();
         reasons_.add(index, builderForValue.build());
@@ -2389,8 +2139,6 @@ public Builder addReasons(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2399,11 +2147,11 @@ public Builder addReasons(
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
     public Builder addAllReasons(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (reasonsBuilder_ == null) {
         ensureReasonsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reasons_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, reasons_);
         onChanged();
       } else {
         reasonsBuilder_.addAllMessages(values);
@@ -2411,8 +2159,6 @@ public Builder addAllReasons(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2431,8 +2177,6 @@ public Builder clearReasons() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2451,8 +2195,6 @@ public Builder removeReasons(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2465,8 +2207,6 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder getReason
       return getReasonsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2477,14 +2217,11 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder getReason
     public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReasonsOrBuilder(
         int index) {
       if (reasonsBuilder_ == null) {
-        return reasons_.get(index);
-      } else {
+        return reasons_.get(index);  } else {
         return reasonsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2492,9 +2229,8 @@ public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReaso
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
-    public java.util.List<
-            ? extends com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>
-        getReasonsOrBuilderList() {
+    public java.util.List 
+         getReasonsOrBuilderList() {
       if (reasonsBuilder_ != null) {
         return reasonsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2502,8 +2238,6 @@ public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReaso
       }
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2512,12 +2246,10 @@ public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReaso
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
     public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder addReasonsBuilder() {
-      return getReasonsFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance());
+      return getReasonsFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2527,13 +2259,10 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder addReason
      */
     public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder addReasonsBuilder(
         int index) {
-      return getReasonsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance());
+      return getReasonsFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2541,30 +2270,27 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder addReason
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
-    public java.util.List
-        getReasonsBuilderList() {
+    public java.util.List 
+         getReasonsBuilderList() {
       return getReasonsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.SkippedShipment.Reason,
-            com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder,
-            com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>
+        com.google.cloud.optimization.v1.SkippedShipment.Reason, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder, com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder> 
         getReasonsFieldBuilder() {
       if (reasonsBuilder_ == null) {
-        reasonsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.SkippedShipment.Reason,
-                com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder,
-                com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>(
-                reasons_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        reasonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.SkippedShipment.Reason, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder, com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>(
+                reasons_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         reasons_ = null;
       }
       return reasonsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2574,12 +2300,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.SkippedShipment)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.SkippedShipment)
   private static final com.google.cloud.optimization.v1.SkippedShipment DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.SkippedShipment();
   }
@@ -2588,27 +2314,27 @@ public static com.google.cloud.optimization.v1.SkippedShipment getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SkippedShipment parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SkippedShipment parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2623,4 +2349,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.optimization.v1.SkippedShipment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
similarity index 73%
rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
index 592face1616c..8f67c3824cfc 100644
--- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
@@ -1,45 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
-public interface SkippedShipmentOrBuilder
-    extends
+public interface SkippedShipmentOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.SkippedShipment)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The index corresponds to the index of the shipment in the source
    * `ShipmentModel`.
    * 
* * int32 index = 1; - * * @return The index. */ int getIndex(); /** - * - * *
    * Copy of the corresponding
    * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -47,13 +26,10 @@ public interface SkippedShipmentOrBuilder
    * 
* * string label = 2; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
    * Copy of the corresponding
    * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -61,14 +37,12 @@ public interface SkippedShipmentOrBuilder
    * 
* * string label = 2; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -76,10 +50,9 @@ public interface SkippedShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
    */
-  java.util.List getReasonsList();
+  java.util.List 
+      getReasonsList();
   /**
-   *
-   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -89,8 +62,6 @@ public interface SkippedShipmentOrBuilder
    */
   com.google.cloud.optimization.v1.SkippedShipment.Reason getReasons(int index);
   /**
-   *
-   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -100,8 +71,6 @@ public interface SkippedShipmentOrBuilder
    */
   int getReasonsCount();
   /**
-   *
-   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -109,11 +78,9 @@ public interface SkippedShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
    */
-  java.util.List
+  java.util.List 
       getReasonsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -121,5 +88,6 @@ public interface SkippedShipmentOrBuilder
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
    */
-  com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReasonsOrBuilder(int index);
+  com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReasonsOrBuilder(
+      int index);
 }
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
similarity index 76%
rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
index 88ba96975e10..2e7a712ec357 100644
--- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
- *
- *
  * 
  * Time windows constrain the time of an event, such as the arrival time at a
  * visit, or the start and end time of a vehicle.
@@ -47,52 +30,48 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.TimeWindow}
  */
-public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TimeWindow extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.TimeWindow)
     TimeWindowOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TimeWindow.newBuilder() to construct.
   private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TimeWindow() {}
+  private TimeWindow() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TimeWindow();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.TimeWindow.class,
-            com.google.cloud.optimization.v1.TimeWindow.Builder.class);
+            com.google.cloud.optimization.v1.TimeWindow.class, com.google.cloud.optimization.v1.TimeWindow.Builder.class);
   }
 
   private int bitField0_;
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
-   *
-   *
    * 
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -100,15 +79,12 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -116,8 +92,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
@@ -133,15 +107,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp endTime_;
   /**
-   *
-   *
    * 
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -149,15 +120,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -165,8 +133,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
@@ -182,14 +148,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int SOFT_START_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp softStartTime_;
   /**
-   *
-   *
    * 
    * The soft start time of the time window.
    * 
* * .google.protobuf.Timestamp soft_start_time = 3; - * * @return Whether the softStartTime field is set. */ @java.lang.Override @@ -197,25 +160,18 @@ public boolean hasSoftStartTime() { return softStartTime_ != null; } /** - * - * *
    * The soft start time of the time window.
    * 
* * .google.protobuf.Timestamp soft_start_time = 3; - * * @return The softStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSoftStartTime() { - return softStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softStartTime_; + return softStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softStartTime_; } /** - * - * *
    * The soft start time of the time window.
    * 
@@ -224,22 +180,17 @@ public com.google.protobuf.Timestamp getSoftStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder() { - return softStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softStartTime_; + return softStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softStartTime_; } public static final int SOFT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp softEndTime_; /** - * - * *
    * The soft end time of the time window.
    * 
* * .google.protobuf.Timestamp soft_end_time = 4; - * * @return Whether the softEndTime field is set. */ @java.lang.Override @@ -247,14 +198,11 @@ public boolean hasSoftEndTime() { return softEndTime_ != null; } /** - * - * *
    * The soft end time of the time window.
    * 
* * .google.protobuf.Timestamp soft_end_time = 4; - * * @return The softEndTime. */ @java.lang.Override @@ -262,8 +210,6 @@ public com.google.protobuf.Timestamp getSoftEndTime() { return softEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softEndTime_; } /** - * - * *
    * The soft end time of the time window.
    * 
@@ -278,8 +224,6 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() { public static final int COST_PER_HOUR_BEFORE_SOFT_START_TIME_FIELD_NUMBER = 5; private double costPerHourBeforeSoftStartTime_ = 0D; /** - * - * *
    * A cost per hour added to other costs in the model if the event occurs
    * before soft_start_time, computed as:
@@ -295,7 +239,6 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() {
    * 
* * optional double cost_per_hour_before_soft_start_time = 5; - * * @return Whether the costPerHourBeforeSoftStartTime field is set. */ @java.lang.Override @@ -303,8 +246,6 @@ public boolean hasCostPerHourBeforeSoftStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * A cost per hour added to other costs in the model if the event occurs
    * before soft_start_time, computed as:
@@ -320,7 +261,6 @@ public boolean hasCostPerHourBeforeSoftStartTime() {
    * 
* * optional double cost_per_hour_before_soft_start_time = 5; - * * @return The costPerHourBeforeSoftStartTime. */ @java.lang.Override @@ -331,8 +271,6 @@ public double getCostPerHourBeforeSoftStartTime() { public static final int COST_PER_HOUR_AFTER_SOFT_END_TIME_FIELD_NUMBER = 6; private double costPerHourAfterSoftEndTime_ = 0D; /** - * - * *
    * A cost per hour added to other costs in the model if the event occurs after
    * `soft_end_time`, computed as:
@@ -348,7 +286,6 @@ public double getCostPerHourBeforeSoftStartTime() {
    * 
* * optional double cost_per_hour_after_soft_end_time = 6; - * * @return Whether the costPerHourAfterSoftEndTime field is set. */ @java.lang.Override @@ -356,8 +293,6 @@ public boolean hasCostPerHourAfterSoftEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * A cost per hour added to other costs in the model if the event occurs after
    * `soft_end_time`, computed as:
@@ -373,7 +308,6 @@ public boolean hasCostPerHourAfterSoftEndTime() {
    * 
* * optional double cost_per_hour_after_soft_end_time = 6; - * * @return The costPerHourAfterSoftEndTime. */ @java.lang.Override @@ -382,7 +316,6 @@ public double getCostPerHourAfterSoftEndTime() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -394,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -423,25 +357,28 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (softStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSoftStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSoftStartTime()); } if (softEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSoftEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSoftEndTime()); } if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 5, costPerHourBeforeSoftStartTime_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, costPerHourBeforeSoftStartTime_); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(6, costPerHourAfterSoftEndTime_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, costPerHourAfterSoftEndTime_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -451,42 +388,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.TimeWindow)) { return super.equals(obj); } - com.google.cloud.optimization.v1.TimeWindow other = - (com.google.cloud.optimization.v1.TimeWindow) obj; + com.google.cloud.optimization.v1.TimeWindow other = (com.google.cloud.optimization.v1.TimeWindow) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (hasSoftStartTime() != other.hasSoftStartTime()) return false; if (hasSoftStartTime()) { - if (!getSoftStartTime().equals(other.getSoftStartTime())) return false; + if (!getSoftStartTime() + .equals(other.getSoftStartTime())) return false; } if (hasSoftEndTime() != other.hasSoftEndTime()) return false; if (hasSoftEndTime()) { - if (!getSoftEndTime().equals(other.getSoftEndTime())) return false; + if (!getSoftEndTime() + .equals(other.getSoftEndTime())) return false; } - if (hasCostPerHourBeforeSoftStartTime() != other.hasCostPerHourBeforeSoftStartTime()) - return false; + if (hasCostPerHourBeforeSoftStartTime() != other.hasCostPerHourBeforeSoftStartTime()) return false; if (hasCostPerHourBeforeSoftStartTime()) { if (java.lang.Double.doubleToLongBits(getCostPerHourBeforeSoftStartTime()) - != java.lang.Double.doubleToLongBits(other.getCostPerHourBeforeSoftStartTime())) - return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerHourBeforeSoftStartTime())) return false; } if (hasCostPerHourAfterSoftEndTime() != other.hasCostPerHourAfterSoftEndTime()) return false; if (hasCostPerHourAfterSoftEndTime()) { if (java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftEndTime()) - != java.lang.Double.doubleToLongBits(other.getCostPerHourAfterSoftEndTime())) - return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerHourAfterSoftEndTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -517,121 +456,112 @@ public int hashCode() { } if (hasCostPerHourBeforeSoftStartTime()) { hash = (37 * hash) + COST_PER_HOUR_BEFORE_SOFT_START_TIME_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerHourBeforeSoftStartTime())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerHourBeforeSoftStartTime())); } if (hasCostPerHourAfterSoftEndTime()) { hash = (37 * hash) + COST_PER_HOUR_AFTER_SOFT_END_TIME_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftEndTime())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftEndTime())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.TimeWindow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.TimeWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.TimeWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.TimeWindow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.TimeWindow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Time windows constrain the time of an event, such as the arrival time at a
    * visit, or the start and end time of a vehicle.
@@ -658,32 +588,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.TimeWindow}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.TimeWindow)
       com.google.cloud.optimization.v1.TimeWindowOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.TimeWindow.class,
-              com.google.cloud.optimization.v1.TimeWindow.Builder.class);
+              com.google.cloud.optimization.v1.TimeWindow.class, com.google.cloud.optimization.v1.TimeWindow.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.TimeWindow.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -714,9 +645,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
     }
 
     @java.lang.Override
@@ -735,11 +666,8 @@ public com.google.cloud.optimization.v1.TimeWindow build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.TimeWindow buildPartial() {
-      com.google.cloud.optimization.v1.TimeWindow result =
-          new com.google.cloud.optimization.v1.TimeWindow(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.TimeWindow result = new com.google.cloud.optimization.v1.TimeWindow(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -747,18 +675,24 @@ public com.google.cloud.optimization.v1.TimeWindow buildPartial() {
     private void buildPartial0(com.google.cloud.optimization.v1.TimeWindow result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.softStartTime_ =
-            softStartTimeBuilder_ == null ? softStartTime_ : softStartTimeBuilder_.build();
+        result.softStartTime_ = softStartTimeBuilder_ == null
+            ? softStartTime_
+            : softStartTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.softEndTime_ =
-            softEndTimeBuilder_ == null ? softEndTime_ : softEndTimeBuilder_.build();
+        result.softEndTime_ = softEndTimeBuilder_ == null
+            ? softEndTime_
+            : softEndTimeBuilder_.build();
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000010) != 0)) {
@@ -776,39 +710,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.TimeWindow result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.TimeWindow) {
-        return mergeFrom((com.google.cloud.optimization.v1.TimeWindow) other);
+        return mergeFrom((com.google.cloud.optimization.v1.TimeWindow)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -861,49 +794,50 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getSoftStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getSoftEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 41:
-              {
-                costPerHourBeforeSoftStartTime_ = input.readDouble();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 41
-            case 49:
-              {
-                costPerHourAfterSoftEndTime_ = input.readDouble();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 49
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getSoftStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getSoftEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 41: {
+              costPerHourBeforeSoftStartTime_ = input.readDouble();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 41
+            case 49: {
+              costPerHourAfterSoftEndTime_ = input.readDouble();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 49
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -913,40 +847,30 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        startTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
     /**
-     *
-     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
      * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -957,8 +881,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -980,8 +902,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -989,7 +909,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 1;
      */
-    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
       } else {
@@ -1000,8 +921,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -1011,9 +930,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
      */
     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && startTime_ != null
-            && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          startTime_ != null &&
+          startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -1026,8 +945,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -1046,8 +963,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -1061,8 +976,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -1074,12 +987,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -1088,17 +1000,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(), getParentForChildren(), isClean());
+        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(),
+                getParentForChildren(),
+                isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -1106,35 +1015,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        endTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
     /**
-     *
-     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1145,8 +1045,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1168,8 +1066,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1177,7 +1073,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 2;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1188,8 +1085,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1199,9 +1094,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1214,8 +1109,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1234,8 +1127,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1249,8 +1140,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1262,12 +1151,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1276,17 +1164,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1294,47 +1179,34 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp softStartTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        softStartTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> softStartTimeBuilder_;
     /**
-     *
-     *
      * 
      * The soft start time of the time window.
      * 
* * .google.protobuf.Timestamp soft_start_time = 3; - * * @return Whether the softStartTime field is set. */ public boolean hasSoftStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The soft start time of the time window.
      * 
* * .google.protobuf.Timestamp soft_start_time = 3; - * * @return The softStartTime. */ public com.google.protobuf.Timestamp getSoftStartTime() { if (softStartTimeBuilder_ == null) { - return softStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softStartTime_; + return softStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softStartTime_; } else { return softStartTimeBuilder_.getMessage(); } } /** - * - * *
      * The soft start time of the time window.
      * 
@@ -1355,15 +1227,14 @@ public Builder setSoftStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The soft start time of the time window.
      * 
* * .google.protobuf.Timestamp soft_start_time = 3; */ - public Builder setSoftStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSoftStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (softStartTimeBuilder_ == null) { softStartTime_ = builderForValue.build(); } else { @@ -1374,8 +1245,6 @@ public Builder setSoftStartTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
      * The soft start time of the time window.
      * 
@@ -1384,9 +1253,9 @@ public Builder setSoftStartTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeSoftStartTime(com.google.protobuf.Timestamp value) { if (softStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && softStartTime_ != null - && softStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + softStartTime_ != null && + softStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSoftStartTimeBuilder().mergeFrom(value); } else { softStartTime_ = value; @@ -1399,8 +1268,6 @@ public Builder mergeSoftStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The soft start time of the time window.
      * 
@@ -1418,8 +1285,6 @@ public Builder clearSoftStartTime() { return this; } /** - * - * *
      * The soft start time of the time window.
      * 
@@ -1432,8 +1297,6 @@ public com.google.protobuf.Timestamp.Builder getSoftStartTimeBuilder() { return getSoftStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The soft start time of the time window.
      * 
@@ -1444,14 +1307,11 @@ public com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder() { if (softStartTimeBuilder_ != null) { return softStartTimeBuilder_.getMessageOrBuilder(); } else { - return softStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softStartTime_; + return softStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : softStartTime_; } } /** - * - * *
      * The soft start time of the time window.
      * 
@@ -1459,17 +1319,14 @@ public com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder() { * .google.protobuf.Timestamp soft_start_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSoftStartTimeFieldBuilder() { if (softStartTimeBuilder_ == null) { - softStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSoftStartTime(), getParentForChildren(), isClean()); + softStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSoftStartTime(), + getParentForChildren(), + isClean()); softStartTime_ = null; } return softStartTimeBuilder_; @@ -1477,47 +1334,34 @@ public com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder() { private com.google.protobuf.Timestamp softEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - softEndTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> softEndTimeBuilder_; /** - * - * *
      * The soft end time of the time window.
      * 
* * .google.protobuf.Timestamp soft_end_time = 4; - * * @return Whether the softEndTime field is set. */ public boolean hasSoftEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The soft end time of the time window.
      * 
* * .google.protobuf.Timestamp soft_end_time = 4; - * * @return The softEndTime. */ public com.google.protobuf.Timestamp getSoftEndTime() { if (softEndTimeBuilder_ == null) { - return softEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softEndTime_; + return softEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softEndTime_; } else { return softEndTimeBuilder_.getMessage(); } } /** - * - * *
      * The soft end time of the time window.
      * 
@@ -1538,15 +1382,14 @@ public Builder setSoftEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The soft end time of the time window.
      * 
* * .google.protobuf.Timestamp soft_end_time = 4; */ - public Builder setSoftEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSoftEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (softEndTimeBuilder_ == null) { softEndTime_ = builderForValue.build(); } else { @@ -1557,8 +1400,6 @@ public Builder setSoftEndTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * The soft end time of the time window.
      * 
@@ -1567,9 +1408,9 @@ public Builder setSoftEndTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergeSoftEndTime(com.google.protobuf.Timestamp value) { if (softEndTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && softEndTime_ != null - && softEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + softEndTime_ != null && + softEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSoftEndTimeBuilder().mergeFrom(value); } else { softEndTime_ = value; @@ -1582,8 +1423,6 @@ public Builder mergeSoftEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The soft end time of the time window.
      * 
@@ -1601,8 +1440,6 @@ public Builder clearSoftEndTime() { return this; } /** - * - * *
      * The soft end time of the time window.
      * 
@@ -1615,8 +1452,6 @@ public com.google.protobuf.Timestamp.Builder getSoftEndTimeBuilder() { return getSoftEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The soft end time of the time window.
      * 
@@ -1627,14 +1462,11 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() { if (softEndTimeBuilder_ != null) { return softEndTimeBuilder_.getMessageOrBuilder(); } else { - return softEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softEndTime_; + return softEndTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : softEndTime_; } } /** - * - * *
      * The soft end time of the time window.
      * 
@@ -1642,26 +1474,21 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() { * .google.protobuf.Timestamp soft_end_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSoftEndTimeFieldBuilder() { if (softEndTimeBuilder_ == null) { - softEndTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSoftEndTime(), getParentForChildren(), isClean()); + softEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSoftEndTime(), + getParentForChildren(), + isClean()); softEndTime_ = null; } return softEndTimeBuilder_; } - private double costPerHourBeforeSoftStartTime_; + private double costPerHourBeforeSoftStartTime_ ; /** - * - * *
      * A cost per hour added to other costs in the model if the event occurs
      * before soft_start_time, computed as:
@@ -1677,7 +1504,6 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() {
      * 
* * optional double cost_per_hour_before_soft_start_time = 5; - * * @return Whether the costPerHourBeforeSoftStartTime field is set. */ @java.lang.Override @@ -1685,8 +1511,6 @@ public boolean hasCostPerHourBeforeSoftStartTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * A cost per hour added to other costs in the model if the event occurs
      * before soft_start_time, computed as:
@@ -1702,7 +1526,6 @@ public boolean hasCostPerHourBeforeSoftStartTime() {
      * 
* * optional double cost_per_hour_before_soft_start_time = 5; - * * @return The costPerHourBeforeSoftStartTime. */ @java.lang.Override @@ -1710,8 +1533,6 @@ public double getCostPerHourBeforeSoftStartTime() { return costPerHourBeforeSoftStartTime_; } /** - * - * *
      * A cost per hour added to other costs in the model if the event occurs
      * before soft_start_time, computed as:
@@ -1727,7 +1548,6 @@ public double getCostPerHourBeforeSoftStartTime() {
      * 
* * optional double cost_per_hour_before_soft_start_time = 5; - * * @param value The costPerHourBeforeSoftStartTime to set. * @return This builder for chaining. */ @@ -1739,8 +1559,6 @@ public Builder setCostPerHourBeforeSoftStartTime(double value) { return this; } /** - * - * *
      * A cost per hour added to other costs in the model if the event occurs
      * before soft_start_time, computed as:
@@ -1756,7 +1574,6 @@ public Builder setCostPerHourBeforeSoftStartTime(double value) {
      * 
* * optional double cost_per_hour_before_soft_start_time = 5; - * * @return This builder for chaining. */ public Builder clearCostPerHourBeforeSoftStartTime() { @@ -1766,10 +1583,8 @@ public Builder clearCostPerHourBeforeSoftStartTime() { return this; } - private double costPerHourAfterSoftEndTime_; + private double costPerHourAfterSoftEndTime_ ; /** - * - * *
      * A cost per hour added to other costs in the model if the event occurs after
      * `soft_end_time`, computed as:
@@ -1785,7 +1600,6 @@ public Builder clearCostPerHourBeforeSoftStartTime() {
      * 
* * optional double cost_per_hour_after_soft_end_time = 6; - * * @return Whether the costPerHourAfterSoftEndTime field is set. */ @java.lang.Override @@ -1793,8 +1607,6 @@ public boolean hasCostPerHourAfterSoftEndTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * A cost per hour added to other costs in the model if the event occurs after
      * `soft_end_time`, computed as:
@@ -1810,7 +1622,6 @@ public boolean hasCostPerHourAfterSoftEndTime() {
      * 
* * optional double cost_per_hour_after_soft_end_time = 6; - * * @return The costPerHourAfterSoftEndTime. */ @java.lang.Override @@ -1818,8 +1629,6 @@ public double getCostPerHourAfterSoftEndTime() { return costPerHourAfterSoftEndTime_; } /** - * - * *
      * A cost per hour added to other costs in the model if the event occurs after
      * `soft_end_time`, computed as:
@@ -1835,7 +1644,6 @@ public double getCostPerHourAfterSoftEndTime() {
      * 
* * optional double cost_per_hour_after_soft_end_time = 6; - * * @param value The costPerHourAfterSoftEndTime to set. * @return This builder for chaining. */ @@ -1847,8 +1655,6 @@ public Builder setCostPerHourAfterSoftEndTime(double value) { return this; } /** - * - * *
      * A cost per hour added to other costs in the model if the event occurs after
      * `soft_end_time`, computed as:
@@ -1864,7 +1670,6 @@ public Builder setCostPerHourAfterSoftEndTime(double value) {
      * 
* * optional double cost_per_hour_after_soft_end_time = 6; - * * @return This builder for chaining. */ public Builder clearCostPerHourAfterSoftEndTime() { @@ -1873,9 +1678,9 @@ public Builder clearCostPerHourAfterSoftEndTime() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1885,12 +1690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.TimeWindow) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.TimeWindow) private static final com.google.cloud.optimization.v1.TimeWindow DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.TimeWindow(); } @@ -1899,27 +1704,27 @@ public static com.google.cloud.optimization.v1.TimeWindow getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1934,4 +1739,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.TimeWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java similarity index 87% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java index ef3fd1cfb377..90917b1d9b8c 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface TimeWindowOrBuilder - extends +public interface TimeWindowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.TimeWindow) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
@@ -62,34 +38,26 @@ public interface TimeWindowOrBuilder
   com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
@@ -100,32 +68,24 @@ public interface TimeWindowOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The soft start time of the time window.
    * 
* * .google.protobuf.Timestamp soft_start_time = 3; - * * @return Whether the softStartTime field is set. */ boolean hasSoftStartTime(); /** - * - * *
    * The soft start time of the time window.
    * 
* * .google.protobuf.Timestamp soft_start_time = 3; - * * @return The softStartTime. */ com.google.protobuf.Timestamp getSoftStartTime(); /** - * - * *
    * The soft start time of the time window.
    * 
@@ -135,32 +95,24 @@ public interface TimeWindowOrBuilder com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder(); /** - * - * *
    * The soft end time of the time window.
    * 
* * .google.protobuf.Timestamp soft_end_time = 4; - * * @return Whether the softEndTime field is set. */ boolean hasSoftEndTime(); /** - * - * *
    * The soft end time of the time window.
    * 
* * .google.protobuf.Timestamp soft_end_time = 4; - * * @return The softEndTime. */ com.google.protobuf.Timestamp getSoftEndTime(); /** - * - * *
    * The soft end time of the time window.
    * 
@@ -170,8 +122,6 @@ public interface TimeWindowOrBuilder com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder(); /** - * - * *
    * A cost per hour added to other costs in the model if the event occurs
    * before soft_start_time, computed as:
@@ -187,13 +137,10 @@ public interface TimeWindowOrBuilder
    * 
* * optional double cost_per_hour_before_soft_start_time = 5; - * * @return Whether the costPerHourBeforeSoftStartTime field is set. */ boolean hasCostPerHourBeforeSoftStartTime(); /** - * - * *
    * A cost per hour added to other costs in the model if the event occurs
    * before soft_start_time, computed as:
@@ -209,14 +156,11 @@ public interface TimeWindowOrBuilder
    * 
* * optional double cost_per_hour_before_soft_start_time = 5; - * * @return The costPerHourBeforeSoftStartTime. */ double getCostPerHourBeforeSoftStartTime(); /** - * - * *
    * A cost per hour added to other costs in the model if the event occurs after
    * `soft_end_time`, computed as:
@@ -232,13 +176,10 @@ public interface TimeWindowOrBuilder
    * 
* * optional double cost_per_hour_after_soft_end_time = 6; - * * @return Whether the costPerHourAfterSoftEndTime field is set. */ boolean hasCostPerHourAfterSoftEndTime(); /** - * - * *
    * A cost per hour added to other costs in the model if the event occurs after
    * `soft_end_time`, computed as:
@@ -254,7 +195,6 @@ public interface TimeWindowOrBuilder
    * 
* * optional double cost_per_hour_after_soft_end_time = 6; - * * @return The costPerHourAfterSoftEndTime. */ double getCostPerHourAfterSoftEndTime(); diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java similarity index 75% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java index e926ebe3dc10..2e50ba4ca0e3 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Specifies attributes of transitions between two consecutive visits on a
  * route. Several `TransitionAttributes` may apply to the same transition: in
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.TransitionAttributes}
  */
-public final class TransitionAttributes extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TransitionAttributes extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.TransitionAttributes)
     TransitionAttributesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TransitionAttributes.newBuilder() to construct.
   private TransitionAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TransitionAttributes() {
     srcTag_ = "";
     excludedSrcTag_ = "";
@@ -49,32 +31,28 @@ private TransitionAttributes() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TransitionAttributes();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.TransitionAttributes.class,
-            com.google.cloud.optimization.v1.TransitionAttributes.Builder.class);
+            com.google.cloud.optimization.v1.TransitionAttributes.class, com.google.cloud.optimization.v1.TransitionAttributes.Builder.class);
   }
 
   public static final int SRC_TAG_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object srcTag_ = "";
   /**
-   *
-   *
    * 
    * Tags defining the set of (src->dst) transitions these attributes apply to.
    *
@@ -86,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string src_tag = 1; - * * @return The srcTag. */ @java.lang.Override @@ -95,15 +72,14 @@ public java.lang.String getSrcTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcTag_ = s; return s; } } /** - * - * *
    * Tags defining the set of (src->dst) transitions these attributes apply to.
    *
@@ -115,15 +91,16 @@ public java.lang.String getSrcTag() {
    * 
* * string src_tag = 1; - * * @return The bytes for srcTag. */ @java.lang.Override - public com.google.protobuf.ByteString getSrcTagBytes() { + public com.google.protobuf.ByteString + getSrcTagBytes() { java.lang.Object ref = srcTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); srcTag_ = b; return b; } else { @@ -132,19 +109,15 @@ public com.google.protobuf.ByteString getSrcTagBytes() { } public static final int EXCLUDED_SRC_TAG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object excludedSrcTag_ = ""; /** - * - * *
    * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
    * non-empty.
    * 
* * string excluded_src_tag = 2; - * * @return The excludedSrcTag. */ @java.lang.Override @@ -153,30 +126,30 @@ public java.lang.String getExcludedSrcTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excludedSrcTag_ = s; return s; } } /** - * - * *
    * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
    * non-empty.
    * 
* * string excluded_src_tag = 2; - * * @return The bytes for excludedSrcTag. */ @java.lang.Override - public com.google.protobuf.ByteString getExcludedSrcTagBytes() { + public com.google.protobuf.ByteString + getExcludedSrcTagBytes() { java.lang.Object ref = excludedSrcTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); excludedSrcTag_ = b; return b; } else { @@ -185,12 +158,9 @@ public com.google.protobuf.ByteString getExcludedSrcTagBytes() { } public static final int DST_TAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object dstTag_ = ""; /** - * - * *
    * A destination visit or vehicle end matches iff its
    * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -200,7 +170,6 @@ public com.google.protobuf.ByteString getExcludedSrcTagBytes() {
    * 
* * string dst_tag = 3; - * * @return The dstTag. */ @java.lang.Override @@ -209,15 +178,14 @@ public java.lang.String getDstTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dstTag_ = s; return s; } } /** - * - * *
    * A destination visit or vehicle end matches iff its
    * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -227,15 +195,16 @@ public java.lang.String getDstTag() {
    * 
* * string dst_tag = 3; - * * @return The bytes for dstTag. */ @java.lang.Override - public com.google.protobuf.ByteString getDstTagBytes() { + public com.google.protobuf.ByteString + getDstTagBytes() { java.lang.Object ref = dstTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dstTag_ = b; return b; } else { @@ -244,19 +213,15 @@ public com.google.protobuf.ByteString getDstTagBytes() { } public static final int EXCLUDED_DST_TAG_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object excludedDstTag_ = ""; /** - * - * *
    * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
    * non-empty.
    * 
* * string excluded_dst_tag = 4; - * * @return The excludedDstTag. */ @java.lang.Override @@ -265,30 +230,30 @@ public java.lang.String getExcludedDstTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excludedDstTag_ = s; return s; } } /** - * - * *
    * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
    * non-empty.
    * 
* * string excluded_dst_tag = 4; - * * @return The bytes for excludedDstTag. */ @java.lang.Override - public com.google.protobuf.ByteString getExcludedDstTagBytes() { + public com.google.protobuf.ByteString + getExcludedDstTagBytes() { java.lang.Object ref = excludedDstTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); excludedDstTag_ = b; return b; } else { @@ -299,8 +264,6 @@ public com.google.protobuf.ByteString getExcludedDstTagBytes() { public static final int COST_FIELD_NUMBER = 5; private double cost_ = 0D; /** - * - * *
    * Specifies a cost for performing this transition. This is in the same unit
    * as all other costs in the model and must not be negative. It is applied on
@@ -308,7 +271,6 @@ public com.google.protobuf.ByteString getExcludedDstTagBytes() {
    * 
* * double cost = 5; - * * @return The cost. */ @java.lang.Override @@ -319,8 +281,6 @@ public double getCost() { public static final int COST_PER_KILOMETER_FIELD_NUMBER = 6; private double costPerKilometer_ = 0D; /** - * - * *
    * Specifies a cost per kilometer applied to the distance traveled while
    * performing this transition. It adds up to any
@@ -329,7 +289,6 @@ public double getCost() {
    * 
* * double cost_per_kilometer = 6; - * * @return The costPerKilometer. */ @java.lang.Override @@ -340,8 +299,6 @@ public double getCostPerKilometer() { public static final int DISTANCE_LIMIT_FIELD_NUMBER = 7; private com.google.cloud.optimization.v1.DistanceLimit distanceLimit_; /** - * - * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -350,7 +307,6 @@ public double getCostPerKilometer() {
    * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; - * * @return Whether the distanceLimit field is set. */ @java.lang.Override @@ -358,8 +314,6 @@ public boolean hasDistanceLimit() { return distanceLimit_ != null; } /** - * - * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -368,18 +322,13 @@ public boolean hasDistanceLimit() {
    * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; - * * @return The distanceLimit. */ @java.lang.Override public com.google.cloud.optimization.v1.DistanceLimit getDistanceLimit() { - return distanceLimit_ == null - ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() - : distanceLimit_; + return distanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : distanceLimit_; } /** - * - * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -391,16 +340,12 @@ public com.google.cloud.optimization.v1.DistanceLimit getDistanceLimit() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitOrBuilder() {
-    return distanceLimit_ == null
-        ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()
-        : distanceLimit_;
+    return distanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : distanceLimit_;
   }
 
   public static final int DELAY_FIELD_NUMBER = 8;
   private com.google.protobuf.Duration delay_;
   /**
-   *
-   *
    * 
    * Specifies a delay incurred when performing this transition.
    *
@@ -409,7 +354,6 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
    * 
* * .google.protobuf.Duration delay = 8; - * * @return Whether the delay field is set. */ @java.lang.Override @@ -417,8 +361,6 @@ public boolean hasDelay() { return delay_ != null; } /** - * - * *
    * Specifies a delay incurred when performing this transition.
    *
@@ -427,7 +369,6 @@ public boolean hasDelay() {
    * 
* * .google.protobuf.Duration delay = 8; - * * @return The delay. */ @java.lang.Override @@ -435,8 +376,6 @@ public com.google.protobuf.Duration getDelay() { return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; } /** - * - * *
    * Specifies a delay incurred when performing this transition.
    *
@@ -452,7 +391,6 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -464,7 +402,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcTag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, srcTag_);
     }
@@ -511,16 +450,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, excludedDstTag_);
     }
     if (java.lang.Double.doubleToRawLongBits(cost_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, cost_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeDoubleSize(5, cost_);
     }
     if (java.lang.Double.doubleToRawLongBits(costPerKilometer_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, costPerKilometer_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeDoubleSize(6, costPerKilometer_);
     }
     if (distanceLimit_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDistanceLimit());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getDistanceLimit());
     }
     if (delay_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDelay());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getDelay());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -530,29 +473,36 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.TransitionAttributes)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.TransitionAttributes other =
-        (com.google.cloud.optimization.v1.TransitionAttributes) obj;
+    com.google.cloud.optimization.v1.TransitionAttributes other = (com.google.cloud.optimization.v1.TransitionAttributes) obj;
 
-    if (!getSrcTag().equals(other.getSrcTag())) return false;
-    if (!getExcludedSrcTag().equals(other.getExcludedSrcTag())) return false;
-    if (!getDstTag().equals(other.getDstTag())) return false;
-    if (!getExcludedDstTag().equals(other.getExcludedDstTag())) return false;
+    if (!getSrcTag()
+        .equals(other.getSrcTag())) return false;
+    if (!getExcludedSrcTag()
+        .equals(other.getExcludedSrcTag())) return false;
+    if (!getDstTag()
+        .equals(other.getDstTag())) return false;
+    if (!getExcludedDstTag()
+        .equals(other.getExcludedDstTag())) return false;
     if (java.lang.Double.doubleToLongBits(getCost())
-        != java.lang.Double.doubleToLongBits(other.getCost())) return false;
+        != java.lang.Double.doubleToLongBits(
+            other.getCost())) return false;
     if (java.lang.Double.doubleToLongBits(getCostPerKilometer())
-        != java.lang.Double.doubleToLongBits(other.getCostPerKilometer())) return false;
+        != java.lang.Double.doubleToLongBits(
+            other.getCostPerKilometer())) return false;
     if (hasDistanceLimit() != other.hasDistanceLimit()) return false;
     if (hasDistanceLimit()) {
-      if (!getDistanceLimit().equals(other.getDistanceLimit())) return false;
+      if (!getDistanceLimit()
+          .equals(other.getDistanceLimit())) return false;
     }
     if (hasDelay() != other.hasDelay()) return false;
     if (hasDelay()) {
-      if (!getDelay().equals(other.getDelay())) return false;
+      if (!getDelay()
+          .equals(other.getDelay())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -574,14 +524,11 @@ public int hashCode() {
     hash = (37 * hash) + EXCLUDED_DST_TAG_FIELD_NUMBER;
     hash = (53 * hash) + getExcludedDstTag().hashCode();
     hash = (37 * hash) + COST_FIELD_NUMBER;
-    hash =
-        (53 * hash)
-            + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getCost()));
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        java.lang.Double.doubleToLongBits(getCost()));
     hash = (37 * hash) + COST_PER_KILOMETER_FIELD_NUMBER;
-    hash =
-        (53 * hash)
-            + com.google.protobuf.Internal.hashLong(
-                java.lang.Double.doubleToLongBits(getCostPerKilometer()));
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        java.lang.Double.doubleToLongBits(getCostPerKilometer()));
     if (hasDistanceLimit()) {
       hash = (37 * hash) + DISTANCE_LIMIT_FIELD_NUMBER;
       hash = (53 * hash) + getDistanceLimit().hashCode();
@@ -596,104 +543,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.TransitionAttributes parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.TransitionAttributes parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.TransitionAttributes parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.optimization.v1.TransitionAttributes prototype) {
+  public static Builder newBuilder(com.google.cloud.optimization.v1.TransitionAttributes prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Specifies attributes of transitions between two consecutive visits on a
    * route. Several `TransitionAttributes` may apply to the same transition: in
@@ -703,32 +644,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.TransitionAttributes}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.TransitionAttributes)
       com.google.cloud.optimization.v1.TransitionAttributesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.TransitionAttributes.class,
-              com.google.cloud.optimization.v1.TransitionAttributes.Builder.class);
+              com.google.cloud.optimization.v1.TransitionAttributes.class, com.google.cloud.optimization.v1.TransitionAttributes.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.TransitionAttributes.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -753,9 +695,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
     }
 
     @java.lang.Override
@@ -774,11 +716,8 @@ public com.google.cloud.optimization.v1.TransitionAttributes build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.TransitionAttributes buildPartial() {
-      com.google.cloud.optimization.v1.TransitionAttributes result =
-          new com.google.cloud.optimization.v1.TransitionAttributes(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.TransitionAttributes result = new com.google.cloud.optimization.v1.TransitionAttributes(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -804,11 +743,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.TransitionAttributes
         result.costPerKilometer_ = costPerKilometer_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.distanceLimit_ =
-            distanceLimitBuilder_ == null ? distanceLimit_ : distanceLimitBuilder_.build();
+        result.distanceLimit_ = distanceLimitBuilder_ == null
+            ? distanceLimit_
+            : distanceLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.delay_ = delayBuilder_ == null ? delay_ : delayBuilder_.build();
+        result.delay_ = delayBuilder_ == null
+            ? delay_
+            : delayBuilder_.build();
       }
     }
 
@@ -816,39 +758,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.TransitionAttributes
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.TransitionAttributes) {
-        return mergeFrom((com.google.cloud.optimization.v1.TransitionAttributes) other);
+        return mergeFrom((com.google.cloud.optimization.v1.TransitionAttributes)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -856,8 +797,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.TransitionAttributes other) {
-      if (other == com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()) return this;
       if (!other.getSrcTag().isEmpty()) {
         srcTag_ = other.srcTag_;
         bitField0_ |= 0x00000001;
@@ -916,61 +856,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                srcTag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                excludedSrcTag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                dstTag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                excludedDstTag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 41:
-              {
-                cost_ = input.readDouble();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 41
-            case 49:
-              {
-                costPerKilometer_ = input.readDouble();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 49
-            case 58:
-              {
-                input.readMessage(getDistanceLimitFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDelayFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              srcTag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              excludedSrcTag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              dstTag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              excludedDstTag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 41: {
+              cost_ = input.readDouble();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 41
+            case 49: {
+              costPerKilometer_ = input.readDouble();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 49
+            case 58: {
+              input.readMessage(
+                  getDistanceLimitFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDelayFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -980,13 +915,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object srcTag_ = "";
     /**
-     *
-     *
      * 
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -998,13 +930,13 @@ public Builder mergeFrom(
      * 
* * string src_tag = 1; - * * @return The srcTag. */ public java.lang.String getSrcTag() { java.lang.Object ref = srcTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcTag_ = s; return s; @@ -1013,8 +945,6 @@ public java.lang.String getSrcTag() { } } /** - * - * *
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -1026,14 +956,15 @@ public java.lang.String getSrcTag() {
      * 
* * string src_tag = 1; - * * @return The bytes for srcTag. */ - public com.google.protobuf.ByteString getSrcTagBytes() { + public com.google.protobuf.ByteString + getSrcTagBytes() { java.lang.Object ref = srcTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); srcTag_ = b; return b; } else { @@ -1041,8 +972,6 @@ public com.google.protobuf.ByteString getSrcTagBytes() { } } /** - * - * *
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -1054,22 +983,18 @@ public com.google.protobuf.ByteString getSrcTagBytes() {
      * 
* * string src_tag = 1; - * * @param value The srcTag to set. * @return This builder for chaining. */ - public Builder setSrcTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSrcTag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } srcTag_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -1081,7 +1006,6 @@ public Builder setSrcTag(java.lang.String value) {
      * 
* * string src_tag = 1; - * * @return This builder for chaining. */ public Builder clearSrcTag() { @@ -1091,8 +1015,6 @@ public Builder clearSrcTag() { return this; } /** - * - * *
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -1104,14 +1026,12 @@ public Builder clearSrcTag() {
      * 
* * string src_tag = 1; - * * @param value The bytes for srcTag to set. * @return This builder for chaining. */ - public Builder setSrcTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSrcTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); srcTag_ = value; bitField0_ |= 0x00000001; @@ -1121,21 +1041,19 @@ public Builder setSrcTagBytes(com.google.protobuf.ByteString value) { private java.lang.Object excludedSrcTag_ = ""; /** - * - * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; - * * @return The excludedSrcTag. */ public java.lang.String getExcludedSrcTag() { java.lang.Object ref = excludedSrcTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excludedSrcTag_ = s; return s; @@ -1144,22 +1062,21 @@ public java.lang.String getExcludedSrcTag() { } } /** - * - * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; - * * @return The bytes for excludedSrcTag. */ - public com.google.protobuf.ByteString getExcludedSrcTagBytes() { + public com.google.protobuf.ByteString + getExcludedSrcTagBytes() { java.lang.Object ref = excludedSrcTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); excludedSrcTag_ = b; return b; } else { @@ -1167,37 +1084,30 @@ public com.google.protobuf.ByteString getExcludedSrcTagBytes() { } } /** - * - * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; - * * @param value The excludedSrcTag to set. * @return This builder for chaining. */ - public Builder setExcludedSrcTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExcludedSrcTag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } excludedSrcTag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; - * * @return This builder for chaining. */ public Builder clearExcludedSrcTag() { @@ -1207,22 +1117,18 @@ public Builder clearExcludedSrcTag() { return this; } /** - * - * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; - * * @param value The bytes for excludedSrcTag to set. * @return This builder for chaining. */ - public Builder setExcludedSrcTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExcludedSrcTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); excludedSrcTag_ = value; bitField0_ |= 0x00000002; @@ -1232,8 +1138,6 @@ public Builder setExcludedSrcTagBytes(com.google.protobuf.ByteString value) { private java.lang.Object dstTag_ = ""; /** - * - * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1243,13 +1147,13 @@ public Builder setExcludedSrcTagBytes(com.google.protobuf.ByteString value) {
      * 
* * string dst_tag = 3; - * * @return The dstTag. */ public java.lang.String getDstTag() { java.lang.Object ref = dstTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dstTag_ = s; return s; @@ -1258,8 +1162,6 @@ public java.lang.String getDstTag() { } } /** - * - * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1269,14 +1171,15 @@ public java.lang.String getDstTag() {
      * 
* * string dst_tag = 3; - * * @return The bytes for dstTag. */ - public com.google.protobuf.ByteString getDstTagBytes() { + public com.google.protobuf.ByteString + getDstTagBytes() { java.lang.Object ref = dstTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dstTag_ = b; return b; } else { @@ -1284,8 +1187,6 @@ public com.google.protobuf.ByteString getDstTagBytes() { } } /** - * - * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1295,22 +1196,18 @@ public com.google.protobuf.ByteString getDstTagBytes() {
      * 
* * string dst_tag = 3; - * * @param value The dstTag to set. * @return This builder for chaining. */ - public Builder setDstTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDstTag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dstTag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1320,7 +1217,6 @@ public Builder setDstTag(java.lang.String value) {
      * 
* * string dst_tag = 3; - * * @return This builder for chaining. */ public Builder clearDstTag() { @@ -1330,8 +1226,6 @@ public Builder clearDstTag() { return this; } /** - * - * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1341,14 +1235,12 @@ public Builder clearDstTag() {
      * 
* * string dst_tag = 3; - * * @param value The bytes for dstTag to set. * @return This builder for chaining. */ - public Builder setDstTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDstTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dstTag_ = value; bitField0_ |= 0x00000004; @@ -1358,21 +1250,19 @@ public Builder setDstTagBytes(com.google.protobuf.ByteString value) { private java.lang.Object excludedDstTag_ = ""; /** - * - * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; - * * @return The excludedDstTag. */ public java.lang.String getExcludedDstTag() { java.lang.Object ref = excludedDstTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excludedDstTag_ = s; return s; @@ -1381,22 +1271,21 @@ public java.lang.String getExcludedDstTag() { } } /** - * - * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; - * * @return The bytes for excludedDstTag. */ - public com.google.protobuf.ByteString getExcludedDstTagBytes() { + public com.google.protobuf.ByteString + getExcludedDstTagBytes() { java.lang.Object ref = excludedDstTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); excludedDstTag_ = b; return b; } else { @@ -1404,37 +1293,30 @@ public com.google.protobuf.ByteString getExcludedDstTagBytes() { } } /** - * - * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; - * * @param value The excludedDstTag to set. * @return This builder for chaining. */ - public Builder setExcludedDstTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExcludedDstTag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } excludedDstTag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; - * * @return This builder for chaining. */ public Builder clearExcludedDstTag() { @@ -1444,22 +1326,18 @@ public Builder clearExcludedDstTag() { return this; } /** - * - * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; - * * @param value The bytes for excludedDstTag to set. * @return This builder for chaining. */ - public Builder setExcludedDstTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExcludedDstTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); excludedDstTag_ = value; bitField0_ |= 0x00000008; @@ -1467,10 +1345,8 @@ public Builder setExcludedDstTagBytes(com.google.protobuf.ByteString value) { return this; } - private double cost_; + private double cost_ ; /** - * - * *
      * Specifies a cost for performing this transition. This is in the same unit
      * as all other costs in the model and must not be negative. It is applied on
@@ -1478,7 +1354,6 @@ public Builder setExcludedDstTagBytes(com.google.protobuf.ByteString value) {
      * 
* * double cost = 5; - * * @return The cost. */ @java.lang.Override @@ -1486,8 +1361,6 @@ public double getCost() { return cost_; } /** - * - * *
      * Specifies a cost for performing this transition. This is in the same unit
      * as all other costs in the model and must not be negative. It is applied on
@@ -1495,7 +1368,6 @@ public double getCost() {
      * 
* * double cost = 5; - * * @param value The cost to set. * @return This builder for chaining. */ @@ -1507,8 +1379,6 @@ public Builder setCost(double value) { return this; } /** - * - * *
      * Specifies a cost for performing this transition. This is in the same unit
      * as all other costs in the model and must not be negative. It is applied on
@@ -1516,7 +1386,6 @@ public Builder setCost(double value) {
      * 
* * double cost = 5; - * * @return This builder for chaining. */ public Builder clearCost() { @@ -1526,10 +1395,8 @@ public Builder clearCost() { return this; } - private double costPerKilometer_; + private double costPerKilometer_ ; /** - * - * *
      * Specifies a cost per kilometer applied to the distance traveled while
      * performing this transition. It adds up to any
@@ -1538,7 +1405,6 @@ public Builder clearCost() {
      * 
* * double cost_per_kilometer = 6; - * * @return The costPerKilometer. */ @java.lang.Override @@ -1546,8 +1412,6 @@ public double getCostPerKilometer() { return costPerKilometer_; } /** - * - * *
      * Specifies a cost per kilometer applied to the distance traveled while
      * performing this transition. It adds up to any
@@ -1556,7 +1420,6 @@ public double getCostPerKilometer() {
      * 
* * double cost_per_kilometer = 6; - * * @param value The costPerKilometer to set. * @return This builder for chaining. */ @@ -1568,8 +1431,6 @@ public Builder setCostPerKilometer(double value) { return this; } /** - * - * *
      * Specifies a cost per kilometer applied to the distance traveled while
      * performing this transition. It adds up to any
@@ -1578,7 +1439,6 @@ public Builder setCostPerKilometer(double value) {
      * 
* * double cost_per_kilometer = 6; - * * @return This builder for chaining. */ public Builder clearCostPerKilometer() { @@ -1590,13 +1450,8 @@ public Builder clearCostPerKilometer() { private com.google.cloud.optimization.v1.DistanceLimit distanceLimit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.DistanceLimit, - com.google.cloud.optimization.v1.DistanceLimit.Builder, - com.google.cloud.optimization.v1.DistanceLimitOrBuilder> - distanceLimitBuilder_; + com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder> distanceLimitBuilder_; /** - * - * *
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1605,15 +1460,12 @@ public Builder clearCostPerKilometer() {
      * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; - * * @return Whether the distanceLimit field is set. */ public boolean hasDistanceLimit() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1622,21 +1474,16 @@ public boolean hasDistanceLimit() {
      * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; - * * @return The distanceLimit. */ public com.google.cloud.optimization.v1.DistanceLimit getDistanceLimit() { if (distanceLimitBuilder_ == null) { - return distanceLimit_ == null - ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() - : distanceLimit_; + return distanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : distanceLimit_; } else { return distanceLimitBuilder_.getMessage(); } } /** - * - * *
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1660,8 +1507,6 @@ public Builder setDistanceLimit(com.google.cloud.optimization.v1.DistanceLimit v
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1683,8 +1528,6 @@ public Builder setDistanceLimit(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1696,10 +1539,9 @@ public Builder setDistanceLimit(
      */
     public Builder mergeDistanceLimit(com.google.cloud.optimization.v1.DistanceLimit value) {
       if (distanceLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0)
-            && distanceLimit_ != null
-            && distanceLimit_
-                != com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0) &&
+          distanceLimit_ != null &&
+          distanceLimit_ != com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()) {
           getDistanceLimitBuilder().mergeFrom(value);
         } else {
           distanceLimit_ = value;
@@ -1712,8 +1554,6 @@ public Builder mergeDistanceLimit(com.google.cloud.optimization.v1.DistanceLimit
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1734,8 +1574,6 @@ public Builder clearDistanceLimit() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1751,8 +1589,6 @@ public com.google.cloud.optimization.v1.DistanceLimit.Builder getDistanceLimitBu
       return getDistanceLimitFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1766,14 +1602,11 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
       if (distanceLimitBuilder_ != null) {
         return distanceLimitBuilder_.getMessageOrBuilder();
       } else {
-        return distanceLimit_ == null
-            ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()
-            : distanceLimit_;
+        return distanceLimit_ == null ?
+            com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : distanceLimit_;
       }
     }
     /**
-     *
-     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1784,17 +1617,14 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
      * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.DistanceLimit,
-            com.google.cloud.optimization.v1.DistanceLimit.Builder,
-            com.google.cloud.optimization.v1.DistanceLimitOrBuilder>
+        com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder> 
         getDistanceLimitFieldBuilder() {
       if (distanceLimitBuilder_ == null) {
-        distanceLimitBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.DistanceLimit,
-                com.google.cloud.optimization.v1.DistanceLimit.Builder,
-                com.google.cloud.optimization.v1.DistanceLimitOrBuilder>(
-                getDistanceLimit(), getParentForChildren(), isClean());
+        distanceLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder>(
+                getDistanceLimit(),
+                getParentForChildren(),
+                isClean());
         distanceLimit_ = null;
       }
       return distanceLimitBuilder_;
@@ -1802,13 +1632,8 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
 
     private com.google.protobuf.Duration delay_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        delayBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayBuilder_;
     /**
-     *
-     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1817,15 +1642,12 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
      * 
* * .google.protobuf.Duration delay = 8; - * * @return Whether the delay field is set. */ public boolean hasDelay() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Specifies a delay incurred when performing this transition.
      *
@@ -1834,7 +1656,6 @@ public boolean hasDelay() {
      * 
* * .google.protobuf.Duration delay = 8; - * * @return The delay. */ public com.google.protobuf.Duration getDelay() { @@ -1845,8 +1666,6 @@ public com.google.protobuf.Duration getDelay() { } } /** - * - * *
      * Specifies a delay incurred when performing this transition.
      *
@@ -1870,8 +1689,6 @@ public Builder setDelay(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1881,7 +1698,8 @@ public Builder setDelay(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration delay = 8;
      */
-    public Builder setDelay(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setDelay(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (delayBuilder_ == null) {
         delay_ = builderForValue.build();
       } else {
@@ -1892,8 +1710,6 @@ public Builder setDelay(com.google.protobuf.Duration.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1905,9 +1721,9 @@ public Builder setDelay(com.google.protobuf.Duration.Builder builderForValue) {
      */
     public Builder mergeDelay(com.google.protobuf.Duration value) {
       if (delayBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && delay_ != null
-            && delay_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          delay_ != null &&
+          delay_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getDelayBuilder().mergeFrom(value);
         } else {
           delay_ = value;
@@ -1920,8 +1736,6 @@ public Builder mergeDelay(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1942,8 +1756,6 @@ public Builder clearDelay() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1959,8 +1771,6 @@ public com.google.protobuf.Duration.Builder getDelayBuilder() {
       return getDelayFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1974,12 +1784,11 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
       if (delayBuilder_ != null) {
         return delayBuilder_.getMessageOrBuilder();
       } else {
-        return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
+        return delay_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : delay_;
       }
     }
     /**
-     *
-     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1990,24 +1799,21 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
      * .google.protobuf.Duration delay = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getDelayFieldBuilder() {
       if (delayBuilder_ == null) {
-        delayBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getDelay(), getParentForChildren(), isClean());
+        delayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getDelay(),
+                getParentForChildren(),
+                isClean());
         delay_ = null;
       }
       return delayBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2017,12 +1823,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.TransitionAttributes)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.TransitionAttributes)
   private static final com.google.cloud.optimization.v1.TransitionAttributes DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.TransitionAttributes();
   }
@@ -2031,27 +1837,27 @@ public static com.google.cloud.optimization.v1.TransitionAttributes getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TransitionAttributes parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TransitionAttributes parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2066,4 +1872,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.optimization.v1.TransitionAttributes getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
similarity index 84%
rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
index 7fda8f7070f2..de86c910b200 100644
--- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
-public interface TransitionAttributesOrBuilder
-    extends
+public interface TransitionAttributesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.TransitionAttributes)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Tags defining the set of (src->dst) transitions these attributes apply to.
    *
@@ -37,13 +19,10 @@ public interface TransitionAttributesOrBuilder
    * 
* * string src_tag = 1; - * * @return The srcTag. */ java.lang.String getSrcTag(); /** - * - * *
    * Tags defining the set of (src->dst) transitions these attributes apply to.
    *
@@ -55,41 +34,34 @@ public interface TransitionAttributesOrBuilder
    * 
* * string src_tag = 1; - * * @return The bytes for srcTag. */ - com.google.protobuf.ByteString getSrcTagBytes(); + com.google.protobuf.ByteString + getSrcTagBytes(); /** - * - * *
    * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
    * non-empty.
    * 
* * string excluded_src_tag = 2; - * * @return The excludedSrcTag. */ java.lang.String getExcludedSrcTag(); /** - * - * *
    * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
    * non-empty.
    * 
* * string excluded_src_tag = 2; - * * @return The bytes for excludedSrcTag. */ - com.google.protobuf.ByteString getExcludedSrcTagBytes(); + com.google.protobuf.ByteString + getExcludedSrcTagBytes(); /** - * - * *
    * A destination visit or vehicle end matches iff its
    * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -99,13 +71,10 @@ public interface TransitionAttributesOrBuilder
    * 
* * string dst_tag = 3; - * * @return The dstTag. */ java.lang.String getDstTag(); /** - * - * *
    * A destination visit or vehicle end matches iff its
    * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -115,41 +84,34 @@ public interface TransitionAttributesOrBuilder
    * 
* * string dst_tag = 3; - * * @return The bytes for dstTag. */ - com.google.protobuf.ByteString getDstTagBytes(); + com.google.protobuf.ByteString + getDstTagBytes(); /** - * - * *
    * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
    * non-empty.
    * 
* * string excluded_dst_tag = 4; - * * @return The excludedDstTag. */ java.lang.String getExcludedDstTag(); /** - * - * *
    * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
    * non-empty.
    * 
* * string excluded_dst_tag = 4; - * * @return The bytes for excludedDstTag. */ - com.google.protobuf.ByteString getExcludedDstTagBytes(); + com.google.protobuf.ByteString + getExcludedDstTagBytes(); /** - * - * *
    * Specifies a cost for performing this transition. This is in the same unit
    * as all other costs in the model and must not be negative. It is applied on
@@ -157,14 +119,11 @@ public interface TransitionAttributesOrBuilder
    * 
* * double cost = 5; - * * @return The cost. */ double getCost(); /** - * - * *
    * Specifies a cost per kilometer applied to the distance traveled while
    * performing this transition. It adds up to any
@@ -173,14 +132,11 @@ public interface TransitionAttributesOrBuilder
    * 
* * double cost_per_kilometer = 6; - * * @return The costPerKilometer. */ double getCostPerKilometer(); /** - * - * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -189,13 +145,10 @@ public interface TransitionAttributesOrBuilder
    * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; - * * @return Whether the distanceLimit field is set. */ boolean hasDistanceLimit(); /** - * - * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -204,13 +157,10 @@ public interface TransitionAttributesOrBuilder
    * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; - * * @return The distanceLimit. */ com.google.cloud.optimization.v1.DistanceLimit getDistanceLimit(); /** - * - * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -223,8 +173,6 @@ public interface TransitionAttributesOrBuilder
   com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies a delay incurred when performing this transition.
    *
@@ -233,13 +181,10 @@ public interface TransitionAttributesOrBuilder
    * 
* * .google.protobuf.Duration delay = 8; - * * @return Whether the delay field is set. */ boolean hasDelay(); /** - * - * *
    * Specifies a delay incurred when performing this transition.
    *
@@ -248,13 +193,10 @@ public interface TransitionAttributesOrBuilder
    * 
* * .google.protobuf.Duration delay = 8; - * * @return The delay. */ com.google.protobuf.Duration getDelay(); /** - * - * *
    * Specifies a delay incurred when performing this transition.
    *
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
similarity index 76%
rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
index 06ffe046aefe..2a99d0e75f10 100644
--- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
+++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
- *
- *
  * 
  * Models a vehicle in a shipment problem. Solving a shipment problem will
  * build a route starting from `start_location` and ending at `end_location`
@@ -29,20 +12,21 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.Vehicle}
  */
-public final class Vehicle extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Vehicle extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Vehicle)
     VehicleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Vehicle.newBuilder() to construct.
   private Vehicle(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Vehicle() {
     travelMode_ = 0;
-    startTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
-    endTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    startTags_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
+    endTags_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     startTimeWindows_ = java.util.Collections.emptyList();
     endTimeWindows_ = java.util.Collections.emptyList();
     unloadingPolicy_ = 0;
@@ -55,41 +39,39 @@ private Vehicle() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Vehicle();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 30:
         return internalGetLoadLimits();
       case 24:
         return internalGetExtraVisitDurationForVisitType();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.Vehicle.class,
-            com.google.cloud.optimization.v1.Vehicle.Builder.class);
+            com.google.cloud.optimization.v1.Vehicle.class, com.google.cloud.optimization.v1.Vehicle.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Travel modes which can be used by vehicles.
    *
@@ -100,10 +82,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.optimization.v1.Vehicle.TravelMode}
    */
-  public enum TravelMode implements com.google.protobuf.ProtocolMessageEnum {
+  public enum TravelMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified travel mode, equivalent to `DRIVING`.
      * 
@@ -112,8 +93,6 @@ public enum TravelMode implements com.google.protobuf.ProtocolMessageEnum { */ TRAVEL_MODE_UNSPECIFIED(0), /** - * - * *
      * Travel mode corresponding to driving directions (car, ...).
      * 
@@ -122,8 +101,6 @@ public enum TravelMode implements com.google.protobuf.ProtocolMessageEnum { */ DRIVING(1), /** - * - * *
      * Travel mode corresponding to walking directions.
      * 
@@ -135,8 +112,6 @@ public enum TravelMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified travel mode, equivalent to `DRIVING`.
      * 
@@ -145,8 +120,6 @@ public enum TravelMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRAVEL_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Travel mode corresponding to driving directions (car, ...).
      * 
@@ -155,8 +128,6 @@ public enum TravelMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DRIVING_VALUE = 1; /** - * - * *
      * Travel mode corresponding to walking directions.
      * 
@@ -165,6 +136,7 @@ public enum TravelMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WALKING_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -189,49 +161,49 @@ public static TravelMode valueOf(int value) { */ public static TravelMode forNumber(int value) { switch (value) { - case 0: - return TRAVEL_MODE_UNSPECIFIED; - case 1: - return DRIVING; - case 2: - return WALKING; - default: - return null; + case 0: return TRAVEL_MODE_UNSPECIFIED; + case 1: return DRIVING; + case 2: return WALKING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TravelMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TravelMode findValueByNumber(int number) { + return TravelMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TravelMode findValueByNumber(int number) { - return TravelMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.optimization.v1.Vehicle.getDescriptor().getEnumTypes().get(0); } private static final TravelMode[] VALUES = values(); - public static TravelMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TravelMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -249,8 +221,6 @@ private TravelMode(int value) { } /** - * - * *
    * Policy on how a vehicle can be unloaded. Applies only to shipments having
    * both a pickup and a delivery.
@@ -261,10 +231,9 @@ private TravelMode(int value) {
    *
    * Protobuf enum {@code google.cloud.optimization.v1.Vehicle.UnloadingPolicy}
    */
-  public enum UnloadingPolicy implements com.google.protobuf.ProtocolMessageEnum {
+  public enum UnloadingPolicy
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified unloading policy; deliveries must just occur after their
      * corresponding pickups.
@@ -274,8 +243,6 @@ public enum UnloadingPolicy implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNLOADING_POLICY_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Deliveries must occur in reverse order of pickups
      * 
@@ -284,8 +251,6 @@ public enum UnloadingPolicy implements com.google.protobuf.ProtocolMessageEnum { */ LAST_IN_FIRST_OUT(1), /** - * - * *
      * Deliveries must occur in the same order as pickups
      * 
@@ -297,8 +262,6 @@ public enum UnloadingPolicy implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified unloading policy; deliveries must just occur after their
      * corresponding pickups.
@@ -308,8 +271,6 @@ public enum UnloadingPolicy implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNLOADING_POLICY_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Deliveries must occur in reverse order of pickups
      * 
@@ -318,8 +279,6 @@ public enum UnloadingPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LAST_IN_FIRST_OUT_VALUE = 1; /** - * - * *
      * Deliveries must occur in the same order as pickups
      * 
@@ -328,6 +287,7 @@ public enum UnloadingPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FIRST_IN_FIRST_OUT_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -352,42 +312,39 @@ public static UnloadingPolicy valueOf(int value) { */ public static UnloadingPolicy forNumber(int value) { switch (value) { - case 0: - return UNLOADING_POLICY_UNSPECIFIED; - case 1: - return LAST_IN_FIRST_OUT; - case 2: - return FIRST_IN_FIRST_OUT; - default: - return null; + case 0: return UNLOADING_POLICY_UNSPECIFIED; + case 1: return LAST_IN_FIRST_OUT; + case 2: return FIRST_IN_FIRST_OUT; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + UnloadingPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UnloadingPolicy findValueByNumber(int number) { + return UnloadingPolicy.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UnloadingPolicy findValueByNumber(int number) { - return UnloadingPolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.optimization.v1.Vehicle.getDescriptor().getEnumTypes().get(1); } @@ -396,7 +353,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static UnloadingPolicy valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -413,53 +371,41 @@ private UnloadingPolicy(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.optimization.v1.Vehicle.UnloadingPolicy) } - public interface LoadLimitOrBuilder - extends + public interface LoadLimitOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Vehicle.LoadLimit) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The maximum acceptable amount of load.
      * 
* * optional int64 max_load = 1; - * * @return Whether the maxLoad field is set. */ boolean hasMaxLoad(); /** - * - * *
      * The maximum acceptable amount of load.
      * 
* * optional int64 max_load = 1; - * * @return The maxLoad. */ long getMaxLoad(); /** - * - * *
      * A soft limit of the load. See
      * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
      * 
* * int64 soft_max_load = 2; - * * @return The softMaxLoad. */ long getSoftMaxLoad(); /** - * - * *
      * If the load ever exceeds
      * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -472,89 +418,65 @@ public interface LoadLimitOrBuilder
      * 
* * double cost_per_unit_above_soft_max = 3; - * * @return The costPerUnitAboveSoftMax. */ double getCostPerUnitAboveSoftMax(); /** - * - * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; * @return Whether the startLoadInterval field is set. */ boolean hasStartLoadInterval(); /** - * - * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; * @return The startLoadInterval. */ com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getStartLoadInterval(); /** - * - * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder - getStartLoadIntervalOrBuilder(); + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getStartLoadIntervalOrBuilder(); /** - * - * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * * @return Whether the endLoadInterval field is set. */ boolean hasEndLoadInterval(); /** - * - * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * * @return The endLoadInterval. */ com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getEndLoadInterval(); /** - * - * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder - getEndLoadIntervalOrBuilder(); + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getEndLoadIntervalOrBuilder(); } /** - * - * *
    * Defines a load limit applying to a vehicle, e.g. "this truck may only
    * carry up to 3500 kg". See
@@ -563,47 +485,43 @@ public interface LoadLimitOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.Vehicle.LoadLimit}
    */
-  public static final class LoadLimit extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class LoadLimit extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Vehicle.LoadLimit)
       LoadLimitOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use LoadLimit.newBuilder() to construct.
     private LoadLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private LoadLimit() {}
+    private LoadLimit() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new LoadLimit();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Vehicle.LoadLimit.class,
-              com.google.cloud.optimization.v1.Vehicle.LoadLimit.Builder.class);
+              com.google.cloud.optimization.v1.Vehicle.LoadLimit.class, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Builder.class);
     }
 
-    public interface IntervalOrBuilder
-        extends
+    public interface IntervalOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * A minimum acceptable load. Must be ≥ 0.
        * If they're both specified,
@@ -613,14 +531,11 @@ public interface IntervalOrBuilder
        * 
* * int64 min = 1; - * * @return The min. */ long getMin(); /** - * - * *
        * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
        * load is unrestricted by this message.
@@ -631,13 +546,10 @@ public interface IntervalOrBuilder
        * 
* * optional int64 max = 2; - * * @return Whether the max field is set. */ boolean hasMax(); /** - * - * *
        * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
        * load is unrestricted by this message.
@@ -648,59 +560,53 @@ public interface IntervalOrBuilder
        * 
* * optional int64 max = 2; - * * @return The max. */ long getMax(); } /** - * - * *
      * Interval of acceptable load amounts.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.Vehicle.LoadLimit.Interval} */ - public static final class Interval extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Interval extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) IntervalOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Interval.newBuilder() to construct. private Interval(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Interval() {} + private Interval() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Interval(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.class, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder.class); + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.class, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder.class); } private int bitField0_; public static final int MIN_FIELD_NUMBER = 1; private long min_ = 0L; /** - * - * *
        * A minimum acceptable load. Must be ≥ 0.
        * If they're both specified,
@@ -710,7 +616,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * int64 min = 1; - * * @return The min. */ @java.lang.Override @@ -721,8 +626,6 @@ public long getMin() { public static final int MAX_FIELD_NUMBER = 2; private long max_ = 0L; /** - * - * *
        * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
        * load is unrestricted by this message.
@@ -733,7 +636,6 @@ public long getMin() {
        * 
* * optional int64 max = 2; - * * @return Whether the max field is set. */ @java.lang.Override @@ -741,8 +643,6 @@ public boolean hasMax() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
        * load is unrestricted by this message.
@@ -753,7 +653,6 @@ public boolean hasMax() {
        * 
* * optional int64 max = 2; - * * @return The max. */ @java.lang.Override @@ -762,7 +661,6 @@ public long getMax() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -774,7 +672,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (min_ != 0L) { output.writeInt64(1, min_); } @@ -791,10 +690,12 @@ public int getSerializedSize() { size = 0; if (min_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, min_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, min_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, max_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, max_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -804,18 +705,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval other = - (com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) obj; + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval other = (com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) obj; - if (getMin() != other.getMin()) return false; + if (getMin() + != other.getMin()) return false; if (hasMax() != other.hasMax()) return false; if (hasMax()) { - if (getMax() != other.getMax()) return false; + if (getMax() + != other.getMax()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -829,10 +731,12 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMin()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMin()); if (hasMax()) { hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMax()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMax()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -840,94 +744,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -937,41 +836,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Interval of acceptable load amounts.
        * 
* * Protobuf type {@code google.cloud.optimization.v1.Vehicle.LoadLimit.Interval} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.class, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder.class); + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.class, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder.class); } // Construct using com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -982,14 +879,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getDefaultInstanceForType() { return com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance(); } @@ -1004,17 +900,13 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval build() { @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval buildPartial() { - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval result = - new com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval result = new com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval result) { + private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.min_ = min_; @@ -1031,52 +923,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) { - return mergeFrom((com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) other); + return mergeFrom((com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval other) { - if (other - == com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval other) { + if (other == com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance()) return this; if (other.getMin() != 0L) { setMin(other.getMin()); } @@ -1109,25 +995,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - min_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - max_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + min_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + max_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1137,13 +1020,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long min_; + private long min_ ; /** - * - * *
          * A minimum acceptable load. Must be ≥ 0.
          * If they're both specified,
@@ -1153,7 +1033,6 @@ public Builder mergeFrom(
          * 
* * int64 min = 1; - * * @return The min. */ @java.lang.Override @@ -1161,8 +1040,6 @@ public long getMin() { return min_; } /** - * - * *
          * A minimum acceptable load. Must be ≥ 0.
          * If they're both specified,
@@ -1172,7 +1049,6 @@ public long getMin() {
          * 
* * int64 min = 1; - * * @param value The min to set. * @return This builder for chaining. */ @@ -1184,8 +1060,6 @@ public Builder setMin(long value) { return this; } /** - * - * *
          * A minimum acceptable load. Must be ≥ 0.
          * If they're both specified,
@@ -1195,7 +1069,6 @@ public Builder setMin(long value) {
          * 
* * int64 min = 1; - * * @return This builder for chaining. */ public Builder clearMin() { @@ -1205,10 +1078,8 @@ public Builder clearMin() { return this; } - private long max_; + private long max_ ; /** - * - * *
          * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
          * load is unrestricted by this message.
@@ -1219,7 +1090,6 @@ public Builder clearMin() {
          * 
* * optional int64 max = 2; - * * @return Whether the max field is set. */ @java.lang.Override @@ -1227,8 +1097,6 @@ public boolean hasMax() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
          * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
          * load is unrestricted by this message.
@@ -1239,7 +1107,6 @@ public boolean hasMax() {
          * 
* * optional int64 max = 2; - * * @return The max. */ @java.lang.Override @@ -1247,8 +1114,6 @@ public long getMax() { return max_; } /** - * - * *
          * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
          * load is unrestricted by this message.
@@ -1259,7 +1124,6 @@ public long getMax() {
          * 
* * optional int64 max = 2; - * * @param value The max to set. * @return This builder for chaining. */ @@ -1271,8 +1135,6 @@ public Builder setMax(long value) { return this; } /** - * - * *
          * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
          * load is unrestricted by this message.
@@ -1283,7 +1145,6 @@ public Builder setMax(long value) {
          * 
* * optional int64 max = 2; - * * @return This builder for chaining. */ public Builder clearMax() { @@ -1292,7 +1153,6 @@ public Builder clearMax() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1305,44 +1165,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) - private static final com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval - DEFAULT_INSTANCE; - + private static final com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval(); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval - getDefaultInstance() { + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Interval parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Interval parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1354,24 +1211,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval - getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int MAX_LOAD_FIELD_NUMBER = 1; private long maxLoad_ = 0L; /** - * - * *
      * The maximum acceptable amount of load.
      * 
* * optional int64 max_load = 1; - * * @return Whether the maxLoad field is set. */ @java.lang.Override @@ -1379,14 +1233,11 @@ public boolean hasMaxLoad() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The maximum acceptable amount of load.
      * 
* * optional int64 max_load = 1; - * * @return The maxLoad. */ @java.lang.Override @@ -1397,15 +1248,12 @@ public long getMaxLoad() { public static final int SOFT_MAX_LOAD_FIELD_NUMBER = 2; private long softMaxLoad_ = 0L; /** - * - * *
      * A soft limit of the load. See
      * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
      * 
* * int64 soft_max_load = 2; - * * @return The softMaxLoad. */ @java.lang.Override @@ -1416,8 +1264,6 @@ public long getSoftMaxLoad() { public static final int COST_PER_UNIT_ABOVE_SOFT_MAX_FIELD_NUMBER = 3; private double costPerUnitAboveSoftMax_ = 0D; /** - * - * *
      * If the load ever exceeds
      * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -1430,7 +1276,6 @@ public long getSoftMaxLoad() {
      * 
* * double cost_per_unit_above_soft_max = 3; - * * @return The costPerUnitAboveSoftMax. */ @java.lang.Override @@ -1441,15 +1286,11 @@ public double getCostPerUnitAboveSoftMax() { public static final int START_LOAD_INTERVAL_FIELD_NUMBER = 4; private com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval startLoadInterval_; /** - * - * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; * @return Whether the startLoadInterval field is set. */ @java.lang.Override @@ -1457,52 +1298,37 @@ public boolean hasStartLoadInterval() { return startLoadInterval_ != null; } /** - * - * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; * @return The startLoadInterval. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getStartLoadInterval() { - return startLoadInterval_ == null - ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() - : startLoadInterval_; + return startLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : startLoadInterval_; } /** - * - * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder - getStartLoadIntervalOrBuilder() { - return startLoadInterval_ == null - ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() - : startLoadInterval_; + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getStartLoadIntervalOrBuilder() { + return startLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : startLoadInterval_; } public static final int END_LOAD_INTERVAL_FIELD_NUMBER = 5; private com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval endLoadInterval_; /** - * - * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * * @return Whether the endLoadInterval field is set. */ @java.lang.Override @@ -1510,25 +1336,18 @@ public boolean hasEndLoadInterval() { return endLoadInterval_ != null; } /** - * - * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * * @return The endLoadInterval. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getEndLoadInterval() { - return endLoadInterval_ == null - ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() - : endLoadInterval_; + return endLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : endLoadInterval_; } /** - * - * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
@@ -1536,15 +1355,11 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getEndLoadInt * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder - getEndLoadIntervalOrBuilder() { - return endLoadInterval_ == null - ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() - : endLoadInterval_; + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getEndLoadIntervalOrBuilder() { + return endLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : endLoadInterval_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1556,7 +1371,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, maxLoad_); } @@ -1582,20 +1398,24 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxLoad_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxLoad_); } if (softMaxLoad_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, softMaxLoad_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, softMaxLoad_); } if (java.lang.Double.doubleToRawLongBits(costPerUnitAboveSoftMax_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(3, costPerUnitAboveSoftMax_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, costPerUnitAboveSoftMax_); } if (startLoadInterval_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartLoadInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartLoadInterval()); } if (endLoadInterval_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndLoadInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndLoadInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1605,28 +1425,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Vehicle.LoadLimit)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Vehicle.LoadLimit other = - (com.google.cloud.optimization.v1.Vehicle.LoadLimit) obj; + com.google.cloud.optimization.v1.Vehicle.LoadLimit other = (com.google.cloud.optimization.v1.Vehicle.LoadLimit) obj; if (hasMaxLoad() != other.hasMaxLoad()) return false; if (hasMaxLoad()) { - if (getMaxLoad() != other.getMaxLoad()) return false; + if (getMaxLoad() + != other.getMaxLoad()) return false; } - if (getSoftMaxLoad() != other.getSoftMaxLoad()) return false; + if (getSoftMaxLoad() + != other.getSoftMaxLoad()) return false; if (java.lang.Double.doubleToLongBits(getCostPerUnitAboveSoftMax()) - != java.lang.Double.doubleToLongBits(other.getCostPerUnitAboveSoftMax())) return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerUnitAboveSoftMax())) return false; if (hasStartLoadInterval() != other.hasStartLoadInterval()) return false; if (hasStartLoadInterval()) { - if (!getStartLoadInterval().equals(other.getStartLoadInterval())) return false; + if (!getStartLoadInterval() + .equals(other.getStartLoadInterval())) return false; } if (hasEndLoadInterval() != other.hasEndLoadInterval()) return false; if (hasEndLoadInterval()) { - if (!getEndLoadInterval().equals(other.getEndLoadInterval())) return false; + if (!getEndLoadInterval() + .equals(other.getEndLoadInterval())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1641,15 +1465,15 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasMaxLoad()) { hash = (37 * hash) + MAX_LOAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxLoad()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxLoad()); } hash = (37 * hash) + SOFT_MAX_LOAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSoftMaxLoad()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSoftMaxLoad()); hash = (37 * hash) + COST_PER_UNIT_ABOVE_SOFT_MAX_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerUnitAboveSoftMax())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerUnitAboveSoftMax())); if (hasStartLoadInterval()) { hash = (37 * hash) + START_LOAD_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getStartLoadInterval().hashCode(); @@ -1664,93 +1488,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Vehicle.LoadLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1760,8 +1580,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Defines a load limit applying to a vehicle, e.g. "this truck may only
      * carry up to 3500 kg". See
@@ -1770,33 +1588,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.Vehicle.LoadLimit}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Vehicle.LoadLimit)
         com.google.cloud.optimization.v1.Vehicle.LoadLimitOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.Vehicle.LoadLimit.class,
-                com.google.cloud.optimization.v1.Vehicle.LoadLimit.Builder.class);
+                com.google.cloud.optimization.v1.Vehicle.LoadLimit.class, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.Vehicle.LoadLimit.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1818,9 +1636,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
       }
 
       @java.lang.Override
@@ -1839,11 +1657,8 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.Vehicle.LoadLimit buildPartial() {
-        com.google.cloud.optimization.v1.Vehicle.LoadLimit result =
-            new com.google.cloud.optimization.v1.Vehicle.LoadLimit(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.Vehicle.LoadLimit result = new com.google.cloud.optimization.v1.Vehicle.LoadLimit(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -1862,14 +1677,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.LoadLimit re
           result.costPerUnitAboveSoftMax_ = costPerUnitAboveSoftMax_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.startLoadInterval_ =
-              startLoadIntervalBuilder_ == null
-                  ? startLoadInterval_
-                  : startLoadIntervalBuilder_.build();
+          result.startLoadInterval_ = startLoadIntervalBuilder_ == null
+              ? startLoadInterval_
+              : startLoadIntervalBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.endLoadInterval_ =
-              endLoadIntervalBuilder_ == null ? endLoadInterval_ : endLoadIntervalBuilder_.build();
+          result.endLoadInterval_ = endLoadIntervalBuilder_ == null
+              ? endLoadInterval_
+              : endLoadIntervalBuilder_.build();
         }
         result.bitField0_ |= to_bitField0_;
       }
@@ -1878,41 +1693,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.LoadLimit re
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.Vehicle.LoadLimit) {
-          return mergeFrom((com.google.cloud.optimization.v1.Vehicle.LoadLimit) other);
+          return mergeFrom((com.google.cloud.optimization.v1.Vehicle.LoadLimit)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1920,8 +1732,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle.LoadLimit other) {
-        if (other == com.google.cloud.optimization.v1.Vehicle.LoadLimit.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.Vehicle.LoadLimit.getDefaultInstance()) return this;
         if (other.hasMaxLoad()) {
           setMaxLoad(other.getMaxLoad());
         }
@@ -1963,45 +1774,41 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  maxLoad_ = input.readInt64();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  softMaxLoad_ = input.readInt64();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              case 25:
-                {
-                  costPerUnitAboveSoftMax_ = input.readDouble();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 25
-              case 34:
-                {
-                  input.readMessage(
-                      getStartLoadIntervalFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              case 42:
-                {
-                  input.readMessage(
-                      getEndLoadIntervalFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 42
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                maxLoad_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                softMaxLoad_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              case 25: {
+                costPerUnitAboveSoftMax_ = input.readDouble();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 25
+              case 34: {
+                input.readMessage(
+                    getStartLoadIntervalFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              case 42: {
+                input.readMessage(
+                    getEndLoadIntervalFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2011,19 +1818,15 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private long maxLoad_;
+      private long maxLoad_ ;
       /**
-       *
-       *
        * 
        * The maximum acceptable amount of load.
        * 
* * optional int64 max_load = 1; - * * @return Whether the maxLoad field is set. */ @java.lang.Override @@ -2031,14 +1834,11 @@ public boolean hasMaxLoad() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The maximum acceptable amount of load.
        * 
* * optional int64 max_load = 1; - * * @return The maxLoad. */ @java.lang.Override @@ -2046,14 +1846,11 @@ public long getMaxLoad() { return maxLoad_; } /** - * - * *
        * The maximum acceptable amount of load.
        * 
* * optional int64 max_load = 1; - * * @param value The maxLoad to set. * @return This builder for chaining. */ @@ -2065,14 +1862,11 @@ public Builder setMaxLoad(long value) { return this; } /** - * - * *
        * The maximum acceptable amount of load.
        * 
* * optional int64 max_load = 1; - * * @return This builder for chaining. */ public Builder clearMaxLoad() { @@ -2082,17 +1876,14 @@ public Builder clearMaxLoad() { return this; } - private long softMaxLoad_; + private long softMaxLoad_ ; /** - * - * *
        * A soft limit of the load. See
        * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
        * 
* * int64 soft_max_load = 2; - * * @return The softMaxLoad. */ @java.lang.Override @@ -2100,15 +1891,12 @@ public long getSoftMaxLoad() { return softMaxLoad_; } /** - * - * *
        * A soft limit of the load. See
        * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
        * 
* * int64 soft_max_load = 2; - * * @param value The softMaxLoad to set. * @return This builder for chaining. */ @@ -2120,15 +1908,12 @@ public Builder setSoftMaxLoad(long value) { return this; } /** - * - * *
        * A soft limit of the load. See
        * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
        * 
* * int64 soft_max_load = 2; - * * @return This builder for chaining. */ public Builder clearSoftMaxLoad() { @@ -2138,10 +1923,8 @@ public Builder clearSoftMaxLoad() { return this; } - private double costPerUnitAboveSoftMax_; + private double costPerUnitAboveSoftMax_ ; /** - * - * *
        * If the load ever exceeds
        * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -2154,7 +1937,6 @@ public Builder clearSoftMaxLoad() {
        * 
* * double cost_per_unit_above_soft_max = 3; - * * @return The costPerUnitAboveSoftMax. */ @java.lang.Override @@ -2162,8 +1944,6 @@ public double getCostPerUnitAboveSoftMax() { return costPerUnitAboveSoftMax_; } /** - * - * *
        * If the load ever exceeds
        * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -2176,7 +1956,6 @@ public double getCostPerUnitAboveSoftMax() {
        * 
* * double cost_per_unit_above_soft_max = 3; - * * @param value The costPerUnitAboveSoftMax to set. * @return This builder for chaining. */ @@ -2188,8 +1967,6 @@ public Builder setCostPerUnitAboveSoftMax(double value) { return this; } /** - * - * *
        * If the load ever exceeds
        * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -2202,7 +1979,6 @@ public Builder setCostPerUnitAboveSoftMax(double value) {
        * 
* * double cost_per_unit_above_soft_max = 3; - * * @return This builder for chaining. */ public Builder clearCostPerUnitAboveSoftMax() { @@ -2214,58 +1990,41 @@ public Builder clearCostPerUnitAboveSoftMax() { private com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval startLoadInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> - startLoadIntervalBuilder_; + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> startLoadIntervalBuilder_; /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; * @return Whether the startLoadInterval field is set. */ public boolean hasStartLoadInterval() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; * @return The startLoadInterval. */ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getStartLoadInterval() { if (startLoadIntervalBuilder_ == null) { - return startLoadInterval_ == null - ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() - : startLoadInterval_; + return startLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : startLoadInterval_; } else { return startLoadIntervalBuilder_.getMessage(); } } /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ - public Builder setStartLoadInterval( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { + public Builder setStartLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { if (startLoadIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2279,14 +2038,11 @@ public Builder setStartLoadInterval( return this; } /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ public Builder setStartLoadInterval( com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder builderForValue) { @@ -2300,23 +2056,17 @@ public Builder setStartLoadInterval( return this; } /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ - public Builder mergeStartLoadInterval( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { + public Builder mergeStartLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { if (startLoadIntervalBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && startLoadInterval_ != null - && startLoadInterval_ - != com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + startLoadInterval_ != null && + startLoadInterval_ != com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance()) { getStartLoadIntervalBuilder().mergeFrom(value); } else { startLoadInterval_ = value; @@ -2329,14 +2079,11 @@ public Builder mergeStartLoadInterval( return this; } /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ public Builder clearStartLoadInterval() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2349,63 +2096,48 @@ public Builder clearStartLoadInterval() { return this; } /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder - getStartLoadIntervalBuilder() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder getStartLoadIntervalBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStartLoadIntervalFieldBuilder().getBuilder(); } /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder - getStartLoadIntervalOrBuilder() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getStartLoadIntervalOrBuilder() { if (startLoadIntervalBuilder_ != null) { return startLoadIntervalBuilder_.getMessageOrBuilder(); } else { - return startLoadInterval_ == null - ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() - : startLoadInterval_; + return startLoadInterval_ == null ? + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : startLoadInterval_; } } /** - * - * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> getStartLoadIntervalFieldBuilder() { if (startLoadIntervalBuilder_ == null) { - startLoadIntervalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder>( - getStartLoadInterval(), getParentForChildren(), isClean()); + startLoadIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder>( + getStartLoadInterval(), + getParentForChildren(), + isClean()); startLoadInterval_ = null; } return startLoadIntervalBuilder_; @@ -2413,58 +2145,41 @@ public Builder clearStartLoadInterval() { private com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval endLoadInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> - endLoadIntervalBuilder_; + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> endLoadIntervalBuilder_; /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; * @return Whether the endLoadInterval field is set. */ public boolean hasEndLoadInterval() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; * @return The endLoadInterval. */ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getEndLoadInterval() { if (endLoadIntervalBuilder_ == null) { - return endLoadInterval_ == null - ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() - : endLoadInterval_; + return endLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : endLoadInterval_; } else { return endLoadIntervalBuilder_.getMessage(); } } /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ - public Builder setEndLoadInterval( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { + public Builder setEndLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { if (endLoadIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2478,14 +2193,11 @@ public Builder setEndLoadInterval( return this; } /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ public Builder setEndLoadInterval( com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder builderForValue) { @@ -2499,23 +2211,17 @@ public Builder setEndLoadInterval( return this; } /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ - public Builder mergeEndLoadInterval( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { + public Builder mergeEndLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { if (endLoadIntervalBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && endLoadInterval_ != null - && endLoadInterval_ - != com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + endLoadInterval_ != null && + endLoadInterval_ != com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance()) { getEndLoadIntervalBuilder().mergeFrom(value); } else { endLoadInterval_ = value; @@ -2528,14 +2234,11 @@ public Builder mergeEndLoadInterval( return this; } /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ public Builder clearEndLoadInterval() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2548,68 +2251,52 @@ public Builder clearEndLoadInterval() { return this; } /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder - getEndLoadIntervalBuilder() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder getEndLoadIntervalBuilder() { bitField0_ |= 0x00000010; onChanged(); return getEndLoadIntervalFieldBuilder().getBuilder(); } /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder - getEndLoadIntervalOrBuilder() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getEndLoadIntervalOrBuilder() { if (endLoadIntervalBuilder_ != null) { return endLoadIntervalBuilder_.getMessageOrBuilder(); } else { - return endLoadInterval_ == null - ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() - : endLoadInterval_; + return endLoadInterval_ == null ? + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : endLoadInterval_; } } /** - * - * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; - * + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> getEndLoadIntervalFieldBuilder() { if (endLoadIntervalBuilder_ == null) { - endLoadIntervalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder>( - getEndLoadInterval(), getParentForChildren(), isClean()); + endLoadIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder>( + getEndLoadInterval(), + getParentForChildren(), + isClean()); endLoadInterval_ = null; } return endLoadIntervalBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2622,12 +2309,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Vehicle.LoadLimit) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Vehicle.LoadLimit) private static final com.google.cloud.optimization.v1.Vehicle.LoadLimit DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Vehicle.LoadLimit(); } @@ -2636,28 +2323,27 @@ public static com.google.cloud.optimization.v1.Vehicle.LoadLimit getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoadLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2672,40 +2358,32 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Vehicle.LoadLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DurationLimitOrBuilder - extends + public interface DurationLimitOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Vehicle.DurationLimit) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
* * .google.protobuf.Duration max_duration = 1; - * * @return Whether the maxDuration field is set. */ boolean hasMaxDuration(); /** - * - * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
* * .google.protobuf.Duration max_duration = 1; - * * @return The maxDuration. */ com.google.protobuf.Duration getMaxDuration(); /** - * - * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
@@ -2715,8 +2393,6 @@ public interface DurationLimitOrBuilder com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder(); /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2727,13 +2403,10 @@ public interface DurationLimitOrBuilder
      * 
* * .google.protobuf.Duration soft_max_duration = 2; - * * @return Whether the softMaxDuration field is set. */ boolean hasSoftMaxDuration(); /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2744,13 +2417,10 @@ public interface DurationLimitOrBuilder
      * 
* * .google.protobuf.Duration soft_max_duration = 2; - * * @return The softMaxDuration. */ com.google.protobuf.Duration getSoftMaxDuration(); /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2765,8 +2435,6 @@ public interface DurationLimitOrBuilder
     com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder();
 
     /**
-     *
-     *
      * 
      * Cost per hour incurred if the `soft_max_duration` threshold is violated.
      * The additional cost is 0 if the duration is under the threshold,
@@ -2778,13 +2446,10 @@ public interface DurationLimitOrBuilder
      * 
* * optional double cost_per_hour_after_soft_max = 3; - * * @return Whether the costPerHourAfterSoftMax field is set. */ boolean hasCostPerHourAfterSoftMax(); /** - * - * *
      * Cost per hour incurred if the `soft_max_duration` threshold is violated.
      * The additional cost is 0 if the duration is under the threshold,
@@ -2796,14 +2461,11 @@ public interface DurationLimitOrBuilder
      * 
* * optional double cost_per_hour_after_soft_max = 3; - * * @return The costPerHourAfterSoftMax. */ double getCostPerHourAfterSoftMax(); /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2818,13 +2480,10 @@ public interface DurationLimitOrBuilder
      * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; - * * @return Whether the quadraticSoftMaxDuration field is set. */ boolean hasQuadraticSoftMaxDuration(); /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2839,13 +2498,10 @@ public interface DurationLimitOrBuilder
      * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; - * * @return The quadraticSoftMaxDuration. */ com.google.protobuf.Duration getQuadraticSoftMaxDuration(); /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2864,8 +2520,6 @@ public interface DurationLimitOrBuilder
     com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilder();
 
     /**
-     *
-     *
      * 
      * Cost per square hour incurred if the
      * `quadratic_soft_max_duration` threshold is violated.
@@ -2882,13 +2536,10 @@ public interface DurationLimitOrBuilder
      * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; - * * @return Whether the costPerSquareHourAfterQuadraticSoftMax field is set. */ boolean hasCostPerSquareHourAfterQuadraticSoftMax(); /** - * - * *
      * Cost per square hour incurred if the
      * `quadratic_soft_max_duration` threshold is violated.
@@ -2905,14 +2556,11 @@ public interface DurationLimitOrBuilder
      * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; - * * @return The costPerSquareHourAfterQuadraticSoftMax. */ double getCostPerSquareHourAfterQuadraticSoftMax(); } /** - * - * *
    * A limit defining a maximum duration of the route of a vehicle. It can be
    * either hard or soft.
@@ -2923,51 +2571,47 @@ public interface DurationLimitOrBuilder
    *
    * Protobuf type {@code google.cloud.optimization.v1.Vehicle.DurationLimit}
    */
-  public static final class DurationLimit extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class DurationLimit extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Vehicle.DurationLimit)
       DurationLimitOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use DurationLimit.newBuilder() to construct.
     private DurationLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private DurationLimit() {}
+    private DurationLimit() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new DurationLimit();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Vehicle.DurationLimit.class,
-              com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder.class);
+              com.google.cloud.optimization.v1.Vehicle.DurationLimit.class, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder.class);
     }
 
     private int bitField0_;
     public static final int MAX_DURATION_FIELD_NUMBER = 1;
     private com.google.protobuf.Duration maxDuration_;
     /**
-     *
-     *
      * 
      * A hard limit constraining the duration to be at most max_duration.
      * 
* * .google.protobuf.Duration max_duration = 1; - * * @return Whether the maxDuration field is set. */ @java.lang.Override @@ -2975,25 +2619,18 @@ public boolean hasMaxDuration() { return maxDuration_ != null; } /** - * - * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
* * .google.protobuf.Duration max_duration = 1; - * * @return The maxDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxDuration() { - return maxDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxDuration_; + return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; } /** - * - * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
@@ -3002,16 +2639,12 @@ public com.google.protobuf.Duration getMaxDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { - return maxDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxDuration_; + return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; } public static final int SOFT_MAX_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration softMaxDuration_; /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3022,7 +2655,6 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() {
      * 
* * .google.protobuf.Duration soft_max_duration = 2; - * * @return Whether the softMaxDuration field is set. */ @java.lang.Override @@ -3030,8 +2662,6 @@ public boolean hasSoftMaxDuration() { return softMaxDuration_ != null; } /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3042,18 +2672,13 @@ public boolean hasSoftMaxDuration() {
      * 
* * .google.protobuf.Duration soft_max_duration = 2; - * * @return The softMaxDuration. */ @java.lang.Override public com.google.protobuf.Duration getSoftMaxDuration() { - return softMaxDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : softMaxDuration_; + return softMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : softMaxDuration_; } /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3067,16 +2692,12 @@ public com.google.protobuf.Duration getSoftMaxDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
-      return softMaxDuration_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : softMaxDuration_;
+      return softMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : softMaxDuration_;
     }
 
     public static final int COST_PER_HOUR_AFTER_SOFT_MAX_FIELD_NUMBER = 3;
     private double costPerHourAfterSoftMax_ = 0D;
     /**
-     *
-     *
      * 
      * Cost per hour incurred if the `soft_max_duration` threshold is violated.
      * The additional cost is 0 if the duration is under the threshold,
@@ -3088,7 +2709,6 @@ public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
      * 
* * optional double cost_per_hour_after_soft_max = 3; - * * @return Whether the costPerHourAfterSoftMax field is set. */ @java.lang.Override @@ -3096,8 +2716,6 @@ public boolean hasCostPerHourAfterSoftMax() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Cost per hour incurred if the `soft_max_duration` threshold is violated.
      * The additional cost is 0 if the duration is under the threshold,
@@ -3109,7 +2727,6 @@ public boolean hasCostPerHourAfterSoftMax() {
      * 
* * optional double cost_per_hour_after_soft_max = 3; - * * @return The costPerHourAfterSoftMax. */ @java.lang.Override @@ -3120,8 +2737,6 @@ public double getCostPerHourAfterSoftMax() { public static final int QUADRATIC_SOFT_MAX_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration quadraticSoftMaxDuration_; /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3136,7 +2751,6 @@ public double getCostPerHourAfterSoftMax() {
      * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; - * * @return Whether the quadraticSoftMaxDuration field is set. */ @java.lang.Override @@ -3144,8 +2758,6 @@ public boolean hasQuadraticSoftMaxDuration() { return quadraticSoftMaxDuration_ != null; } /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3160,18 +2772,13 @@ public boolean hasQuadraticSoftMaxDuration() {
      * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; - * * @return The quadraticSoftMaxDuration. */ @java.lang.Override public com.google.protobuf.Duration getQuadraticSoftMaxDuration() { - return quadraticSoftMaxDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : quadraticSoftMaxDuration_; + return quadraticSoftMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : quadraticSoftMaxDuration_; } /** - * - * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3189,16 +2796,12 @@ public com.google.protobuf.Duration getQuadraticSoftMaxDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilder() {
-      return quadraticSoftMaxDuration_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : quadraticSoftMaxDuration_;
+      return quadraticSoftMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : quadraticSoftMaxDuration_;
     }
 
     public static final int COST_PER_SQUARE_HOUR_AFTER_QUADRATIC_SOFT_MAX_FIELD_NUMBER = 5;
     private double costPerSquareHourAfterQuadraticSoftMax_ = 0D;
     /**
-     *
-     *
      * 
      * Cost per square hour incurred if the
      * `quadratic_soft_max_duration` threshold is violated.
@@ -3215,7 +2818,6 @@ public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilde
      * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; - * * @return Whether the costPerSquareHourAfterQuadraticSoftMax field is set. */ @java.lang.Override @@ -3223,8 +2825,6 @@ public boolean hasCostPerSquareHourAfterQuadraticSoftMax() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Cost per square hour incurred if the
      * `quadratic_soft_max_duration` threshold is violated.
@@ -3241,7 +2841,6 @@ public boolean hasCostPerSquareHourAfterQuadraticSoftMax() {
      * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; - * * @return The costPerSquareHourAfterQuadraticSoftMax. */ @java.lang.Override @@ -3250,7 +2849,6 @@ public double getCostPerSquareHourAfterQuadraticSoftMax() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3262,7 +2860,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (maxDuration_ != null) { output.writeMessage(1, getMaxDuration()); } @@ -3288,24 +2887,24 @@ public int getSerializedSize() { size = 0; if (maxDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMaxDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMaxDuration()); } if (softMaxDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSoftMaxDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSoftMaxDuration()); } if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(3, costPerHourAfterSoftMax_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, costPerHourAfterSoftMax_); } if (quadraticSoftMaxDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getQuadraticSoftMaxDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getQuadraticSoftMaxDuration()); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 5, costPerSquareHourAfterQuadraticSoftMax_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, costPerSquareHourAfterQuadraticSoftMax_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3315,38 +2914,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Vehicle.DurationLimit)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Vehicle.DurationLimit other = - (com.google.cloud.optimization.v1.Vehicle.DurationLimit) obj; + com.google.cloud.optimization.v1.Vehicle.DurationLimit other = (com.google.cloud.optimization.v1.Vehicle.DurationLimit) obj; if (hasMaxDuration() != other.hasMaxDuration()) return false; if (hasMaxDuration()) { - if (!getMaxDuration().equals(other.getMaxDuration())) return false; + if (!getMaxDuration() + .equals(other.getMaxDuration())) return false; } if (hasSoftMaxDuration() != other.hasSoftMaxDuration()) return false; if (hasSoftMaxDuration()) { - if (!getSoftMaxDuration().equals(other.getSoftMaxDuration())) return false; + if (!getSoftMaxDuration() + .equals(other.getSoftMaxDuration())) return false; } if (hasCostPerHourAfterSoftMax() != other.hasCostPerHourAfterSoftMax()) return false; if (hasCostPerHourAfterSoftMax()) { if (java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftMax()) - != java.lang.Double.doubleToLongBits(other.getCostPerHourAfterSoftMax())) return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerHourAfterSoftMax())) return false; } if (hasQuadraticSoftMaxDuration() != other.hasQuadraticSoftMaxDuration()) return false; if (hasQuadraticSoftMaxDuration()) { - if (!getQuadraticSoftMaxDuration().equals(other.getQuadraticSoftMaxDuration())) - return false; + if (!getQuadraticSoftMaxDuration() + .equals(other.getQuadraticSoftMaxDuration())) return false; } - if (hasCostPerSquareHourAfterQuadraticSoftMax() - != other.hasCostPerSquareHourAfterQuadraticSoftMax()) return false; + if (hasCostPerSquareHourAfterQuadraticSoftMax() != other.hasCostPerSquareHourAfterQuadraticSoftMax()) return false; if (hasCostPerSquareHourAfterQuadraticSoftMax()) { if (java.lang.Double.doubleToLongBits(getCostPerSquareHourAfterQuadraticSoftMax()) - != java.lang.Double.doubleToLongBits(other.getCostPerSquareHourAfterQuadraticSoftMax())) - return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerSquareHourAfterQuadraticSoftMax())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3369,10 +2969,8 @@ public int hashCode() { } if (hasCostPerHourAfterSoftMax()) { hash = (37 * hash) + COST_PER_HOUR_AFTER_SOFT_MAX_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftMax())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftMax())); } if (hasQuadraticSoftMaxDuration()) { hash = (37 * hash) + QUADRATIC_SOFT_MAX_DURATION_FIELD_NUMBER; @@ -3380,10 +2978,8 @@ public int hashCode() { } if (hasCostPerSquareHourAfterQuadraticSoftMax()) { hash = (37 * hash) + COST_PER_SQUARE_HOUR_AFTER_QUADRATIC_SOFT_MAX_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerSquareHourAfterQuadraticSoftMax())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerSquareHourAfterQuadraticSoftMax())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -3391,94 +2987,89 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.optimization.v1.Vehicle.DurationLimit prototype) { + public static Builder newBuilder(com.google.cloud.optimization.v1.Vehicle.DurationLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3488,8 +3079,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A limit defining a maximum duration of the route of a vehicle. It can be
      * either hard or soft.
@@ -3500,33 +3089,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.Vehicle.DurationLimit}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Vehicle.DurationLimit)
         com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.Vehicle.DurationLimit.class,
-                com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder.class);
+                com.google.cloud.optimization.v1.Vehicle.DurationLimit.class, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.Vehicle.DurationLimit.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3552,9 +3141,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto
-            .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
       }
 
       @java.lang.Override
@@ -3573,11 +3162,8 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.Vehicle.DurationLimit buildPartial() {
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit result =
-            new com.google.cloud.optimization.v1.Vehicle.DurationLimit(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit result = new com.google.cloud.optimization.v1.Vehicle.DurationLimit(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -3585,12 +3171,14 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit buildPartial() {
       private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.DurationLimit result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.maxDuration_ =
-              maxDurationBuilder_ == null ? maxDuration_ : maxDurationBuilder_.build();
+          result.maxDuration_ = maxDurationBuilder_ == null
+              ? maxDuration_
+              : maxDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.softMaxDuration_ =
-              softMaxDurationBuilder_ == null ? softMaxDuration_ : softMaxDurationBuilder_.build();
+          result.softMaxDuration_ = softMaxDurationBuilder_ == null
+              ? softMaxDuration_
+              : softMaxDurationBuilder_.build();
         }
         int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000004) != 0)) {
@@ -3598,10 +3186,9 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.DurationLimi
           to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.quadraticSoftMaxDuration_ =
-              quadraticSoftMaxDurationBuilder_ == null
-                  ? quadraticSoftMaxDuration_
-                  : quadraticSoftMaxDurationBuilder_.build();
+          result.quadraticSoftMaxDuration_ = quadraticSoftMaxDurationBuilder_ == null
+              ? quadraticSoftMaxDuration_
+              : quadraticSoftMaxDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
           result.costPerSquareHourAfterQuadraticSoftMax_ = costPerSquareHourAfterQuadraticSoftMax_;
@@ -3614,41 +3201,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.DurationLimi
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.Vehicle.DurationLimit) {
-          return mergeFrom((com.google.cloud.optimization.v1.Vehicle.DurationLimit) other);
+          return mergeFrom((com.google.cloud.optimization.v1.Vehicle.DurationLimit)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3656,8 +3240,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle.DurationLimit other) {
-        if (other == com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) return this;
         if (other.hasMaxDuration()) {
           mergeMaxDuration(other.getMaxDuration());
         }
@@ -3671,8 +3254,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle.DurationLimit
           mergeQuadraticSoftMaxDuration(other.getQuadraticSoftMaxDuration());
         }
         if (other.hasCostPerSquareHourAfterQuadraticSoftMax()) {
-          setCostPerSquareHourAfterQuadraticSoftMax(
-              other.getCostPerSquareHourAfterQuadraticSoftMax());
+          setCostPerSquareHourAfterQuadraticSoftMax(other.getCostPerSquareHourAfterQuadraticSoftMax());
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -3700,45 +3282,43 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(getMaxDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getSoftMaxDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 25:
-                {
-                  costPerHourAfterSoftMax_ = input.readDouble();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 25
-              case 34:
-                {
-                  input.readMessage(
-                      getQuadraticSoftMaxDurationFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 34
-              case 41:
-                {
-                  costPerSquareHourAfterQuadraticSoftMax_ = input.readDouble();
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 41
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getMaxDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getSoftMaxDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 25: {
+                costPerHourAfterSoftMax_ = input.readDouble();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 25
+              case 34: {
+                input.readMessage(
+                    getQuadraticSoftMaxDurationFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+              case 41: {
+                costPerSquareHourAfterQuadraticSoftMax_ = input.readDouble();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 41
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3748,52 +3328,38 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.protobuf.Duration maxDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          maxDurationBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxDurationBuilder_;
       /**
-       *
-       *
        * 
        * A hard limit constraining the duration to be at most max_duration.
        * 
* * .google.protobuf.Duration max_duration = 1; - * * @return Whether the maxDuration field is set. */ public boolean hasMaxDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
* * .google.protobuf.Duration max_duration = 1; - * * @return The maxDuration. */ public com.google.protobuf.Duration getMaxDuration() { if (maxDurationBuilder_ == null) { - return maxDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxDuration_; + return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; } else { return maxDurationBuilder_.getMessage(); } } /** - * - * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3814,15 +3380,14 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
* * .google.protobuf.Duration max_duration = 1; */ - public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMaxDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (maxDurationBuilder_ == null) { maxDuration_ = builderForValue.build(); } else { @@ -3833,8 +3398,6 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal return this; } /** - * - * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3843,9 +3406,9 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal */ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && maxDuration_ != null - && maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + maxDuration_ != null && + maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxDurationBuilder().mergeFrom(value); } else { maxDuration_ = value; @@ -3858,8 +3421,6 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3877,8 +3438,6 @@ public Builder clearMaxDuration() { return this; } /** - * - * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3891,8 +3450,6 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { return getMaxDurationFieldBuilder().getBuilder(); } /** - * - * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3903,14 +3460,11 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { if (maxDurationBuilder_ != null) { return maxDurationBuilder_.getMessageOrBuilder(); } else { - return maxDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxDuration_; + return maxDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; } } /** - * - * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3918,17 +3472,14 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * .google.protobuf.Duration max_duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxDurationFieldBuilder() { if (maxDurationBuilder_ == null) { - maxDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxDuration(), getParentForChildren(), isClean()); + maxDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaxDuration(), + getParentForChildren(), + isClean()); maxDuration_ = null; } return maxDurationBuilder_; @@ -3936,13 +3487,8 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { private com.google.protobuf.Duration softMaxDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - softMaxDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> softMaxDurationBuilder_; /** - * - * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3953,15 +3499,12 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() {
        * 
* * .google.protobuf.Duration soft_max_duration = 2; - * * @return Whether the softMaxDuration field is set. */ public boolean hasSoftMaxDuration() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3972,21 +3515,16 @@ public boolean hasSoftMaxDuration() {
        * 
* * .google.protobuf.Duration soft_max_duration = 2; - * * @return The softMaxDuration. */ public com.google.protobuf.Duration getSoftMaxDuration() { if (softMaxDurationBuilder_ == null) { - return softMaxDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : softMaxDuration_; + return softMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : softMaxDuration_; } else { return softMaxDurationBuilder_.getMessage(); } } /** - * - * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -4012,8 +3550,6 @@ public Builder setSoftMaxDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -4025,7 +3561,8 @@ public Builder setSoftMaxDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration soft_max_duration = 2;
        */
-      public Builder setSoftMaxDuration(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSoftMaxDuration(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (softMaxDurationBuilder_ == null) {
           softMaxDuration_ = builderForValue.build();
         } else {
@@ -4036,8 +3573,6 @@ public Builder setSoftMaxDuration(com.google.protobuf.Duration.Builder builderFo
         return this;
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -4051,9 +3586,9 @@ public Builder setSoftMaxDuration(com.google.protobuf.Duration.Builder builderFo
        */
       public Builder mergeSoftMaxDuration(com.google.protobuf.Duration value) {
         if (softMaxDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && softMaxDuration_ != null
-              && softMaxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            softMaxDuration_ != null &&
+            softMaxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSoftMaxDurationBuilder().mergeFrom(value);
           } else {
             softMaxDuration_ = value;
@@ -4066,8 +3601,6 @@ public Builder mergeSoftMaxDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -4090,8 +3623,6 @@ public Builder clearSoftMaxDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -4109,8 +3640,6 @@ public com.google.protobuf.Duration.Builder getSoftMaxDurationBuilder() {
         return getSoftMaxDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -4126,14 +3655,11 @@ public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
         if (softMaxDurationBuilder_ != null) {
           return softMaxDurationBuilder_.getMessageOrBuilder();
         } else {
-          return softMaxDuration_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : softMaxDuration_;
+          return softMaxDuration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : softMaxDuration_;
         }
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -4146,26 +3672,21 @@ public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
        * .google.protobuf.Duration soft_max_duration = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getSoftMaxDurationFieldBuilder() {
         if (softMaxDurationBuilder_ == null) {
-          softMaxDurationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getSoftMaxDuration(), getParentForChildren(), isClean());
+          softMaxDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getSoftMaxDuration(),
+                  getParentForChildren(),
+                  isClean());
           softMaxDuration_ = null;
         }
         return softMaxDurationBuilder_;
       }
 
-      private double costPerHourAfterSoftMax_;
+      private double costPerHourAfterSoftMax_ ;
       /**
-       *
-       *
        * 
        * Cost per hour incurred if the `soft_max_duration` threshold is violated.
        * The additional cost is 0 if the duration is under the threshold,
@@ -4177,7 +3698,6 @@ public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
        * 
* * optional double cost_per_hour_after_soft_max = 3; - * * @return Whether the costPerHourAfterSoftMax field is set. */ @java.lang.Override @@ -4185,8 +3705,6 @@ public boolean hasCostPerHourAfterSoftMax() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Cost per hour incurred if the `soft_max_duration` threshold is violated.
        * The additional cost is 0 if the duration is under the threshold,
@@ -4198,7 +3716,6 @@ public boolean hasCostPerHourAfterSoftMax() {
        * 
* * optional double cost_per_hour_after_soft_max = 3; - * * @return The costPerHourAfterSoftMax. */ @java.lang.Override @@ -4206,8 +3723,6 @@ public double getCostPerHourAfterSoftMax() { return costPerHourAfterSoftMax_; } /** - * - * *
        * Cost per hour incurred if the `soft_max_duration` threshold is violated.
        * The additional cost is 0 if the duration is under the threshold,
@@ -4219,7 +3734,6 @@ public double getCostPerHourAfterSoftMax() {
        * 
* * optional double cost_per_hour_after_soft_max = 3; - * * @param value The costPerHourAfterSoftMax to set. * @return This builder for chaining. */ @@ -4231,8 +3745,6 @@ public Builder setCostPerHourAfterSoftMax(double value) { return this; } /** - * - * *
        * Cost per hour incurred if the `soft_max_duration` threshold is violated.
        * The additional cost is 0 if the duration is under the threshold,
@@ -4244,7 +3756,6 @@ public Builder setCostPerHourAfterSoftMax(double value) {
        * 
* * optional double cost_per_hour_after_soft_max = 3; - * * @return This builder for chaining. */ public Builder clearCostPerHourAfterSoftMax() { @@ -4256,13 +3767,8 @@ public Builder clearCostPerHourAfterSoftMax() { private com.google.protobuf.Duration quadraticSoftMaxDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - quadraticSoftMaxDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> quadraticSoftMaxDurationBuilder_; /** - * - * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4277,15 +3783,12 @@ public Builder clearCostPerHourAfterSoftMax() {
        * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; - * * @return Whether the quadraticSoftMaxDuration field is set. */ public boolean hasQuadraticSoftMaxDuration() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4300,21 +3803,16 @@ public boolean hasQuadraticSoftMaxDuration() {
        * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; - * * @return The quadraticSoftMaxDuration. */ public com.google.protobuf.Duration getQuadraticSoftMaxDuration() { if (quadraticSoftMaxDurationBuilder_ == null) { - return quadraticSoftMaxDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : quadraticSoftMaxDuration_; + return quadraticSoftMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : quadraticSoftMaxDuration_; } else { return quadraticSoftMaxDurationBuilder_.getMessage(); } } /** - * - * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4344,8 +3842,6 @@ public Builder setQuadraticSoftMaxDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4373,8 +3869,6 @@ public Builder setQuadraticSoftMaxDuration(
         return this;
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4392,9 +3886,9 @@ public Builder setQuadraticSoftMaxDuration(
        */
       public Builder mergeQuadraticSoftMaxDuration(com.google.protobuf.Duration value) {
         if (quadraticSoftMaxDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0)
-              && quadraticSoftMaxDuration_ != null
-              && quadraticSoftMaxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0) &&
+            quadraticSoftMaxDuration_ != null &&
+            quadraticSoftMaxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getQuadraticSoftMaxDurationBuilder().mergeFrom(value);
           } else {
             quadraticSoftMaxDuration_ = value;
@@ -4407,8 +3901,6 @@ public Builder mergeQuadraticSoftMaxDuration(com.google.protobuf.Duration value)
         return this;
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4435,8 +3927,6 @@ public Builder clearQuadraticSoftMaxDuration() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4458,8 +3948,6 @@ public com.google.protobuf.Duration.Builder getQuadraticSoftMaxDurationBuilder()
         return getQuadraticSoftMaxDurationFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4479,14 +3967,11 @@ public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilde
         if (quadraticSoftMaxDurationBuilder_ != null) {
           return quadraticSoftMaxDurationBuilder_.getMessageOrBuilder();
         } else {
-          return quadraticSoftMaxDuration_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : quadraticSoftMaxDuration_;
+          return quadraticSoftMaxDuration_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : quadraticSoftMaxDuration_;
         }
       }
       /**
-       *
-       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -4503,26 +3988,21 @@ public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilde
        * .google.protobuf.Duration quadratic_soft_max_duration = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getQuadraticSoftMaxDurationFieldBuilder() {
         if (quadraticSoftMaxDurationBuilder_ == null) {
-          quadraticSoftMaxDurationBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getQuadraticSoftMaxDuration(), getParentForChildren(), isClean());
+          quadraticSoftMaxDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getQuadraticSoftMaxDuration(),
+                  getParentForChildren(),
+                  isClean());
           quadraticSoftMaxDuration_ = null;
         }
         return quadraticSoftMaxDurationBuilder_;
       }
 
-      private double costPerSquareHourAfterQuadraticSoftMax_;
+      private double costPerSquareHourAfterQuadraticSoftMax_ ;
       /**
-       *
-       *
        * 
        * Cost per square hour incurred if the
        * `quadratic_soft_max_duration` threshold is violated.
@@ -4539,7 +4019,6 @@ public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilde
        * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; - * * @return Whether the costPerSquareHourAfterQuadraticSoftMax field is set. */ @java.lang.Override @@ -4547,8 +4026,6 @@ public boolean hasCostPerSquareHourAfterQuadraticSoftMax() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * Cost per square hour incurred if the
        * `quadratic_soft_max_duration` threshold is violated.
@@ -4565,7 +4042,6 @@ public boolean hasCostPerSquareHourAfterQuadraticSoftMax() {
        * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; - * * @return The costPerSquareHourAfterQuadraticSoftMax. */ @java.lang.Override @@ -4573,8 +4049,6 @@ public double getCostPerSquareHourAfterQuadraticSoftMax() { return costPerSquareHourAfterQuadraticSoftMax_; } /** - * - * *
        * Cost per square hour incurred if the
        * `quadratic_soft_max_duration` threshold is violated.
@@ -4591,7 +4065,6 @@ public double getCostPerSquareHourAfterQuadraticSoftMax() {
        * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; - * * @param value The costPerSquareHourAfterQuadraticSoftMax to set. * @return This builder for chaining. */ @@ -4603,8 +4076,6 @@ public Builder setCostPerSquareHourAfterQuadraticSoftMax(double value) { return this; } /** - * - * *
        * Cost per square hour incurred if the
        * `quadratic_soft_max_duration` threshold is violated.
@@ -4621,7 +4092,6 @@ public Builder setCostPerSquareHourAfterQuadraticSoftMax(double value) {
        * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; - * * @return This builder for chaining. */ public Builder clearCostPerSquareHourAfterQuadraticSoftMax() { @@ -4630,7 +4100,6 @@ public Builder clearCostPerSquareHourAfterQuadraticSoftMax() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4643,12 +4112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Vehicle.DurationLimit) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Vehicle.DurationLimit) private static final com.google.cloud.optimization.v1.Vehicle.DurationLimit DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Vehicle.DurationLimit(); } @@ -4657,28 +4126,27 @@ public static com.google.cloud.optimization.v1.Vehicle.DurationLimit getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DurationLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4693,53 +4161,82 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Vehicle.DurationLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int TRAVEL_MODE_FIELD_NUMBER = 1; private int travelMode_ = 0; /** - * - * *
    * The travel mode which affects the roads usable by the vehicle and its
    * speed. See also `travel_duration_multiple`.
    * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override - public int getTravelModeValue() { + @java.lang.Override public int getTravelModeValue() { return travelMode_; } /** - * - * *
    * The travel mode which affects the roads usable by the vehicle and its
    * speed. See also `travel_duration_multiple`.
    * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @return The travelMode. */ + @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode() { + com.google.cloud.optimization.v1.Vehicle.TravelMode result = com.google.cloud.optimization.v1.Vehicle.TravelMode.forNumber(travelMode_); + return result == null ? com.google.cloud.optimization.v1.Vehicle.TravelMode.UNRECOGNIZED : result; + } + + public static final int ROUTE_MODIFIERS_FIELD_NUMBER = 2; + private com.google.cloud.optimization.v1.RouteModifiers routeModifiers_; + /** + *
+   * Optional. A set of conditions to satisfy that affect the way routes are
+   * calculated for the given vehicle.
+   * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the routeModifiers field is set. + */ + @java.lang.Override + public boolean hasRouteModifiers() { + return routeModifiers_ != null; + } + /** + *
+   * Optional. A set of conditions to satisfy that affect the way routes are
+   * calculated for the given vehicle.
+   * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The routeModifiers. + */ + @java.lang.Override + public com.google.cloud.optimization.v1.RouteModifiers getRouteModifiers() { + return routeModifiers_ == null ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() : routeModifiers_; + } + /** + *
+   * Optional. A set of conditions to satisfy that affect the way routes are
+   * calculated for the given vehicle.
+   * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode() { - com.google.cloud.optimization.v1.Vehicle.TravelMode result = - com.google.cloud.optimization.v1.Vehicle.TravelMode.forNumber(travelMode_); - return result == null - ? com.google.cloud.optimization.v1.Vehicle.TravelMode.UNRECOGNIZED - : result; + public com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { + return routeModifiers_ == null ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() : routeModifiers_; } public static final int START_LOCATION_FIELD_NUMBER = 3; private com.google.type.LatLng startLocation_; /** - * - * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -4748,7 +4245,6 @@ public com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode() {
    * 
* * .google.type.LatLng start_location = 3; - * * @return Whether the startLocation field is set. */ @java.lang.Override @@ -4756,8 +4252,6 @@ public boolean hasStartLocation() { return startLocation_ != null; } /** - * - * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -4766,7 +4260,6 @@ public boolean hasStartLocation() {
    * 
* * .google.type.LatLng start_location = 3; - * * @return The startLocation. */ @java.lang.Override @@ -4774,8 +4267,6 @@ public com.google.type.LatLng getStartLocation() { return startLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : startLocation_; } /** - * - * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -4793,8 +4284,6 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
   public static final int START_WAYPOINT_FIELD_NUMBER = 4;
   private com.google.cloud.optimization.v1.Waypoint startWaypoint_;
   /**
-   *
-   *
    * 
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -4804,7 +4293,6 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
    * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; - * * @return Whether the startWaypoint field is set. */ @java.lang.Override @@ -4812,8 +4300,6 @@ public boolean hasStartWaypoint() { return startWaypoint_ != null; } /** - * - * *
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -4823,18 +4309,13 @@ public boolean hasStartWaypoint() {
    * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; - * * @return The startWaypoint. */ @java.lang.Override public com.google.cloud.optimization.v1.Waypoint getStartWaypoint() { - return startWaypoint_ == null - ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() - : startWaypoint_; + return startWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : startWaypoint_; } /** - * - * *
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -4847,16 +4328,12 @@ public com.google.cloud.optimization.v1.Waypoint getStartWaypoint() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuilder() {
-    return startWaypoint_ == null
-        ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
-        : startWaypoint_;
+    return startWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : startWaypoint_;
   }
 
   public static final int END_LOCATION_FIELD_NUMBER = 5;
   private com.google.type.LatLng endLocation_;
   /**
-   *
-   *
    * 
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -4866,7 +4343,6 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
    * 
* * .google.type.LatLng end_location = 5; - * * @return Whether the endLocation field is set. */ @java.lang.Override @@ -4874,8 +4350,6 @@ public boolean hasEndLocation() { return endLocation_ != null; } /** - * - * *
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -4885,7 +4359,6 @@ public boolean hasEndLocation() {
    * 
* * .google.type.LatLng end_location = 5; - * * @return The endLocation. */ @java.lang.Override @@ -4893,8 +4366,6 @@ public com.google.type.LatLng getEndLocation() { return endLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : endLocation_; } /** - * - * *
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -4913,8 +4384,6 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
   public static final int END_WAYPOINT_FIELD_NUMBER = 6;
   private com.google.cloud.optimization.v1.Waypoint endWaypoint_;
   /**
-   *
-   *
    * 
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -4925,7 +4394,6 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
    * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; - * * @return Whether the endWaypoint field is set. */ @java.lang.Override @@ -4933,8 +4401,6 @@ public boolean hasEndWaypoint() { return endWaypoint_ != null; } /** - * - * *
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -4945,18 +4411,13 @@ public boolean hasEndWaypoint() {
    * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; - * * @return The endWaypoint. */ @java.lang.Override public com.google.cloud.optimization.v1.Waypoint getEndWaypoint() { - return endWaypoint_ == null - ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() - : endWaypoint_; + return endWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : endWaypoint_; } /** - * - * *
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -4970,19 +4431,14 @@ public com.google.cloud.optimization.v1.Waypoint getEndWaypoint() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilder() {
-    return endWaypoint_ == null
-        ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
-        : endWaypoint_;
+    return endWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : endWaypoint_;
   }
 
   public static final int START_TAGS_FIELD_NUMBER = 7;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList startTags_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -4990,15 +4446,13 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
    * 
* * repeated string start_tags = 7; - * * @return A list containing the startTags. */ - public com.google.protobuf.ProtocolStringList getStartTagsList() { + public com.google.protobuf.ProtocolStringList + getStartTagsList() { return startTags_; } /** - * - * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -5006,15 +4460,12 @@ public com.google.protobuf.ProtocolStringList getStartTagsList() {
    * 
* * repeated string start_tags = 7; - * * @return The count of startTags. */ public int getStartTagsCount() { return startTags_.size(); } /** - * - * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -5022,7 +4473,6 @@ public int getStartTagsCount() {
    * 
* * repeated string start_tags = 7; - * * @param index The index of the element to return. * @return The startTags at the given index. */ @@ -5030,8 +4480,6 @@ public java.lang.String getStartTags(int index) { return startTags_.get(index); } /** - * - * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -5039,22 +4487,19 @@ public java.lang.String getStartTags(int index) {
    * 
* * repeated string start_tags = 7; - * * @param index The index of the value to return. * @return The bytes of the startTags at the given index. */ - public com.google.protobuf.ByteString getStartTagsBytes(int index) { + public com.google.protobuf.ByteString + getStartTagsBytes(int index) { return startTags_.getByteString(index); } public static final int END_TAGS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList endTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -5062,15 +4507,13 @@ public com.google.protobuf.ByteString getStartTagsBytes(int index) {
    * 
* * repeated string end_tags = 8; - * * @return A list containing the endTags. */ - public com.google.protobuf.ProtocolStringList getEndTagsList() { + public com.google.protobuf.ProtocolStringList + getEndTagsList() { return endTags_; } /** - * - * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -5078,15 +4521,12 @@ public com.google.protobuf.ProtocolStringList getEndTagsList() {
    * 
* * repeated string end_tags = 8; - * * @return The count of endTags. */ public int getEndTagsCount() { return endTags_.size(); } /** - * - * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -5094,7 +4534,6 @@ public int getEndTagsCount() {
    * 
* * repeated string end_tags = 8; - * * @param index The index of the element to return. * @return The endTags at the given index. */ @@ -5102,8 +4541,6 @@ public java.lang.String getEndTags(int index) { return endTags_.get(index); } /** - * - * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -5111,21 +4548,18 @@ public java.lang.String getEndTags(int index) {
    * 
* * repeated string end_tags = 8; - * * @param index The index of the value to return. * @return The bytes of the endTags at the given index. */ - public com.google.protobuf.ByteString getEndTagsBytes(int index) { + public com.google.protobuf.ByteString + getEndTagsBytes(int index) { return endTags_.getByteString(index); } public static final int START_TIME_WINDOWS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List startTimeWindows_; /** - * - * *
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -5148,8 +4582,6 @@ public java.util.List getStartTimeW
     return startTimeWindows_;
   }
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -5168,13 +4600,11 @@ public java.util.List getStartTimeW
    * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getStartTimeWindowsOrBuilderList() {
     return startTimeWindows_;
   }
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -5197,8 +4627,6 @@ public int getStartTimeWindowsCount() {
     return startTimeWindows_.size();
   }
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -5221,8 +4649,6 @@ public com.google.cloud.optimization.v1.TimeWindow getStartTimeWindows(int index
     return startTimeWindows_.get(index);
   }
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -5247,12 +4673,9 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsO
   }
 
   public static final int END_TIME_WINDOWS_FIELD_NUMBER = 10;
-
   @SuppressWarnings("serial")
   private java.util.List endTimeWindows_;
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -5275,8 +4698,6 @@ public java.util.List getEndTimeWin
     return endTimeWindows_;
   }
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -5295,13 +4716,11 @@ public java.util.List getEndTimeWin
    * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getEndTimeWindowsOrBuilderList() {
     return endTimeWindows_;
   }
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -5324,8 +4743,6 @@ public int getEndTimeWindowsCount() {
     return endTimeWindows_.size();
   }
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -5348,8 +4765,6 @@ public com.google.cloud.optimization.v1.TimeWindow getEndTimeWindows(int index)
     return endTimeWindows_.get(index);
   }
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -5376,8 +4791,6 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
   public static final int TRAVEL_DURATION_MULTIPLE_FIELD_NUMBER = 11;
   private double travelDurationMultiple_ = 0D;
   /**
-   *
-   *
    * 
    * Specifies a multiplicative factor that can be used to increase or decrease
    * travel times of this vehicle. For example, setting this to 2.0 means
@@ -5395,7 +4808,6 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
    * 
* * optional double travel_duration_multiple = 11; - * * @return Whether the travelDurationMultiple field is set. */ @java.lang.Override @@ -5403,8 +4815,6 @@ public boolean hasTravelDurationMultiple() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Specifies a multiplicative factor that can be used to increase or decrease
    * travel times of this vehicle. For example, setting this to 2.0 means
@@ -5422,7 +4832,6 @@ public boolean hasTravelDurationMultiple() {
    * 
* * optional double travel_duration_multiple = 11; - * * @return The travelDurationMultiple. */ @java.lang.Override @@ -5433,77 +4842,56 @@ public double getTravelDurationMultiple() { public static final int UNLOADING_POLICY_FIELD_NUMBER = 12; private int unloadingPolicy_ = 0; /** - * - * *
    * Unloading policy enforced on the vehicle.
    * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @return The enum numeric value on the wire for unloadingPolicy. */ - @java.lang.Override - public int getUnloadingPolicyValue() { + @java.lang.Override public int getUnloadingPolicyValue() { return unloadingPolicy_; } /** - * - * *
    * Unloading policy enforced on the vehicle.
    * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @return The unloadingPolicy. */ - @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy getUnloadingPolicy() { - com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy result = - com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.forNumber(unloadingPolicy_); - return result == null - ? com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy getUnloadingPolicy() { + com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy result = com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.forNumber(unloadingPolicy_); + return result == null ? com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNRECOGNIZED : result; } public static final int LOAD_LIMITS_FIELD_NUMBER = 30; - private static final class LoadLimitsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> - defaultEntry = + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.optimization.v1.FleetRoutingProto - .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> - loadLimits_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> - internalGetLoadLimits() { + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> loadLimits_; + private com.google.protobuf.MapField + internalGetLoadLimits() { if (loadLimits_ == null) { - return com.google.protobuf.MapField.emptyMapField(LoadLimitsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LoadLimitsDefaultEntryHolder.defaultEntry); } return loadLimits_; } - public int getLoadLimitsCount() { return internalGetLoadLimits().getMap().size(); } /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -5513,26 +4901,23 @@ public int getLoadLimitsCount() {
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ @java.lang.Override - public boolean containsLoadLimits(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLoadLimits( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLoadLimits().getMap().containsKey(key); } - /** Use {@link #getLoadLimitsMap()} instead. */ + /** + * Use {@link #getLoadLimitsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getLoadLimits() { + public java.util.Map getLoadLimits() { return getLoadLimitsMap(); } /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -5542,17 +4927,13 @@ public boolean containsLoadLimits(java.lang.String key) {
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ @java.lang.Override - public java.util.Map - getLoadLimitsMap() { + public java.util.Map getLoadLimitsMap() { return internalGetLoadLimits().getMap(); } /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -5562,24 +4943,20 @@ public boolean containsLoadLimits(java.lang.String key) {
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault( + public /* nullable */ +com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadLimits().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -5589,15 +4966,12 @@ public boolean containsLoadLimits(java.lang.String key) {
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadLimits().getMap(); if (!map.containsKey(key)) { @@ -5609,8 +4983,6 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( public static final int COST_PER_HOUR_FIELD_NUMBER = 16; private double costPerHour_ = 0D; /** - * - * *
    * Vehicle costs: all costs add up and must be in the same unit as
    * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -5622,7 +4994,6 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * double cost_per_hour = 16; - * * @return The costPerHour. */ @java.lang.Override @@ -5633,8 +5004,6 @@ public double getCostPerHour() { public static final int COST_PER_TRAVELED_HOUR_FIELD_NUMBER = 17; private double costPerTraveledHour_ = 0D; /** - * - * *
    * Cost per traveled hour of the vehicle route. This cost is applied only to
    * travel time taken by the route (i.e., that reported in
@@ -5643,7 +5012,6 @@ public double getCostPerHour() {
    * 
* * double cost_per_traveled_hour = 17; - * * @return The costPerTraveledHour. */ @java.lang.Override @@ -5654,8 +5022,6 @@ public double getCostPerTraveledHour() { public static final int COST_PER_KILOMETER_FIELD_NUMBER = 18; private double costPerKilometer_ = 0D; /** - * - * *
    * Cost per kilometer of the vehicle route. This cost is applied to the
    * distance reported in the
@@ -5665,7 +5031,6 @@ public double getCostPerTraveledHour() {
    * 
* * double cost_per_kilometer = 18; - * * @return The costPerKilometer. */ @java.lang.Override @@ -5676,14 +5041,11 @@ public double getCostPerKilometer() { public static final int FIXED_COST_FIELD_NUMBER = 19; private double fixedCost_ = 0D; /** - * - * *
    * Fixed cost applied if this vehicle is used to handle a shipment.
    * 
* * double fixed_cost = 19; - * * @return The fixedCost. */ @java.lang.Override @@ -5694,8 +5056,6 @@ public double getFixedCost() { public static final int USED_IF_ROUTE_IS_EMPTY_FIELD_NUMBER = 20; private boolean usedIfRouteIsEmpty_ = false; /** - * - * *
    * This field only applies to vehicles when their route does not serve any
    * shipments. It indicates if the vehicle should be considered as used or not
@@ -5712,7 +5072,6 @@ public double getFixedCost() {
    * 
* * bool used_if_route_is_empty = 20; - * * @return The usedIfRouteIsEmpty. */ @java.lang.Override @@ -5723,8 +5082,6 @@ public boolean getUsedIfRouteIsEmpty() { public static final int ROUTE_DURATION_LIMIT_FIELD_NUMBER = 21; private com.google.cloud.optimization.v1.Vehicle.DurationLimit routeDurationLimit_; /** - * - * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -5732,7 +5089,6 @@ public boolean getUsedIfRouteIsEmpty() {
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; - * * @return Whether the routeDurationLimit field is set. */ @java.lang.Override @@ -5740,8 +5096,6 @@ public boolean hasRouteDurationLimit() { return routeDurationLimit_ != null; } /** - * - * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -5749,18 +5103,13 @@ public boolean hasRouteDurationLimit() {
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; - * * @return The routeDurationLimit. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLimit() { - return routeDurationLimit_ == null - ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() - : routeDurationLimit_; + return routeDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : routeDurationLimit_; } /** - * - * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -5770,18 +5119,13 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLi
    * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder
-      getRouteDurationLimitOrBuilder() {
-    return routeDurationLimit_ == null
-        ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()
-        : routeDurationLimit_;
+  public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteDurationLimitOrBuilder() {
+    return routeDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : routeDurationLimit_;
   }
 
   public static final int TRAVEL_DURATION_LIMIT_FIELD_NUMBER = 22;
   private com.google.cloud.optimization.v1.Vehicle.DurationLimit travelDurationLimit_;
   /**
-   *
-   *
    * 
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -5789,7 +5133,6 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLi
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; - * * @return Whether the travelDurationLimit field is set. */ @java.lang.Override @@ -5797,8 +5140,6 @@ public boolean hasTravelDurationLimit() { return travelDurationLimit_ != null; } /** - * - * *
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -5806,18 +5147,13 @@ public boolean hasTravelDurationLimit() {
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; - * * @return The travelDurationLimit. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationLimit() { - return travelDurationLimit_ == null - ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() - : travelDurationLimit_; + return travelDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : travelDurationLimit_; } /** - * - * *
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -5827,18 +5163,13 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationL
    * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder
-      getTravelDurationLimitOrBuilder() {
-    return travelDurationLimit_ == null
-        ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()
-        : travelDurationLimit_;
+  public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravelDurationLimitOrBuilder() {
+    return travelDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : travelDurationLimit_;
   }
 
   public static final int ROUTE_DISTANCE_LIMIT_FIELD_NUMBER = 23;
   private com.google.cloud.optimization.v1.DistanceLimit routeDistanceLimit_;
   /**
-   *
-   *
    * 
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -5846,7 +5177,6 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationL
    * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; - * * @return Whether the routeDistanceLimit field is set. */ @java.lang.Override @@ -5854,8 +5184,6 @@ public boolean hasRouteDistanceLimit() { return routeDistanceLimit_ != null; } /** - * - * *
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -5863,18 +5191,13 @@ public boolean hasRouteDistanceLimit() {
    * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; - * * @return The routeDistanceLimit. */ @java.lang.Override public com.google.cloud.optimization.v1.DistanceLimit getRouteDistanceLimit() { - return routeDistanceLimit_ == null - ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() - : routeDistanceLimit_; + return routeDistanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : routeDistanceLimit_; } /** - * - * *
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -5885,45 +5208,36 @@ public com.google.cloud.optimization.v1.DistanceLimit getRouteDistanceLimit() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceLimitOrBuilder() {
-    return routeDistanceLimit_ == null
-        ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()
-        : routeDistanceLimit_;
+    return routeDistanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : routeDistanceLimit_;
   }
 
   public static final int EXTRA_VISIT_DURATION_FOR_VISIT_TYPE_FIELD_NUMBER = 24;
-
   private static final class ExtraVisitDurationForVisitTypeDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry
-        defaultEntry =
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, com.google.protobuf.Duration> defaultEntry =
             com.google.protobuf.MapEntry
-                .newDefaultInstance(
-                    com.google.cloud.optimization.v1.FleetRoutingProto
-                        .internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor,
-                    com.google.protobuf.WireFormat.FieldType.STRING,
-                    "",
-                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                    com.google.protobuf.Duration.getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.protobuf.Duration.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
+  private com.google.protobuf.MapField<
+      java.lang.String, com.google.protobuf.Duration> extraVisitDurationForVisitType_;
   private com.google.protobuf.MapField
-      extraVisitDurationForVisitType_;
-
-  private com.google.protobuf.MapField
-      internalGetExtraVisitDurationForVisitType() {
+  internalGetExtraVisitDurationForVisitType() {
     if (extraVisitDurationForVisitType_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry);
     }
     return extraVisitDurationForVisitType_;
   }
-
   public int getExtraVisitDurationForVisitTypeCount() {
     return internalGetExtraVisitDurationForVisitType().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -5936,26 +5250,23 @@ public int getExtraVisitDurationForVisitTypeCount() {
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ @java.lang.Override - public boolean containsExtraVisitDurationForVisitType(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsExtraVisitDurationForVisitType( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetExtraVisitDurationForVisitType().getMap().containsKey(key); } - /** Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. */ + /** + * Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getExtraVisitDurationForVisitType() { + public java.util.Map getExtraVisitDurationForVisitType() { return getExtraVisitDurationForVisitTypeMap(); } /** - * - * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -5968,17 +5279,13 @@ public boolean containsExtraVisitDurationForVisitType(java.lang.String key) {
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ @java.lang.Override - public java.util.Map - getExtraVisitDurationForVisitTypeMap() { + public java.util.Map getExtraVisitDurationForVisitTypeMap() { return internalGetExtraVisitDurationForVisitType().getMap(); } /** - * - * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -5991,24 +5298,20 @@ public boolean containsExtraVisitDurationForVisitType(java.lang.String key) {
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ @java.lang.Override - public /* nullable */ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( + public /* nullable */ +com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.Duration defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.Duration defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtraVisitDurationForVisitType().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -6021,15 +5324,12 @@ public boolean containsExtraVisitDurationForVisitType(java.lang.String key) {
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ @java.lang.Override public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtraVisitDurationForVisitType().getMap(); if (!map.containsKey(key)) { @@ -6041,15 +5341,12 @@ public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( public static final int BREAK_RULE_FIELD_NUMBER = 25; private com.google.cloud.optimization.v1.BreakRule breakRule_; /** - * - * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
    * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; - * * @return Whether the breakRule field is set. */ @java.lang.Override @@ -6057,26 +5354,19 @@ public boolean hasBreakRule() { return breakRule_ != null; } /** - * - * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
    * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; - * * @return The breakRule. */ @java.lang.Override public com.google.cloud.optimization.v1.BreakRule getBreakRule() { - return breakRule_ == null - ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() - : breakRule_; + return breakRule_ == null ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() : breakRule_; } /** - * - * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
@@ -6086,18 +5376,13 @@ public com.google.cloud.optimization.v1.BreakRule getBreakRule() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder() {
-    return breakRule_ == null
-        ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance()
-        : breakRule_;
+    return breakRule_ == null ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() : breakRule_;
   }
 
   public static final int LABEL_FIELD_NUMBER = 27;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object label_ = "";
   /**
-   *
-   *
    * 
    * Specifies a label for this vehicle. This label is reported in the response
    * as the `vehicle_label` of the corresponding
@@ -6105,7 +5390,6 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
    * 
* * string label = 27; - * * @return The label. */ @java.lang.Override @@ -6114,15 +5398,14 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** - * - * *
    * Specifies a label for this vehicle. This label is reported in the response
    * as the `vehicle_label` of the corresponding
@@ -6130,15 +5413,16 @@ public java.lang.String getLabel() {
    * 
* * string label = 27; - * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -6149,8 +5433,6 @@ public com.google.protobuf.ByteString getLabelBytes() { public static final int IGNORE_FIELD_NUMBER = 28; private boolean ignore_ = false; /** - * - * *
    * If true, `used_if_route_is_empty` must be false, and this vehicle will
    * remain unused.
@@ -6168,7 +5450,6 @@ public com.google.protobuf.ByteString getLabelBytes() {
    * 
* * bool ignore = 28; - * * @return The ignore. */ @java.lang.Override @@ -6177,12 +5458,9 @@ public boolean getIgnore() { } public static final int BREAK_RULE_INDICES_FIELD_NUMBER = 29; - @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList breakRuleIndices_; /** - * - * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -6193,19 +5471,16 @@ public boolean getIgnore() {
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return A list containing the breakRuleIndices. */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getBreakRuleIndicesList() { + @java.lang.Deprecated public java.util.List + getBreakRuleIndicesList() { return breakRuleIndices_; } /** - * - * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -6216,18 +5491,14 @@ public java.util.List getBreakRuleIndicesList() {
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return The count of breakRuleIndices. */ - @java.lang.Deprecated - public int getBreakRuleIndicesCount() { + @java.lang.Deprecated public int getBreakRuleIndicesCount() { return breakRuleIndices_.size(); } /** - * - * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -6238,319 +5509,230 @@ public int getBreakRuleIndicesCount() {
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param index The index of the element to return. * @return The breakRuleIndices at the given index. */ - @java.lang.Deprecated - public int getBreakRuleIndices(int index) { + @java.lang.Deprecated public int getBreakRuleIndices(int index) { return breakRuleIndices_.getInt(index); } - private int breakRuleIndicesMemoizedSerializedSize = -1; public static final int CAPACITIES_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private java.util.List capacities_; /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List getCapacitiesList() { + @java.lang.Deprecated public java.util.List getCapacitiesList() { return capacities_; } /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List + @java.lang.Deprecated public java.util.List getCapacitiesOrBuilderList() { return capacities_; } /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getCapacitiesCount() { + @java.lang.Deprecated public int getCapacitiesCount() { return capacities_.size(); } /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index) { return capacities_.get(index); } /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( int index) { return capacities_.get(index); } public static final int START_LOAD_INTERVALS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private java.util.List - startLoadIntervals_; + private java.util.List startLoadIntervals_; /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List - getStartLoadIntervalsList() { + @java.lang.Deprecated public java.util.List getStartLoadIntervalsList() { return startLoadIntervals_; } /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List< - ? extends com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + @java.lang.Deprecated public java.util.List getStartLoadIntervalsOrBuilderList() { return startLoadIntervals_; } /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getStartLoadIntervalsCount() { + @java.lang.Deprecated public int getStartLoadIntervalsCount() { return startLoadIntervals_.size(); } /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals( - int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals(int index) { return startLoadIntervals_.get(index); } /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder - getStartLoadIntervalsOrBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder( + int index) { return startLoadIntervals_.get(index); } public static final int END_LOAD_INTERVALS_FIELD_NUMBER = 15; - @SuppressWarnings("serial") - private java.util.List - endLoadIntervals_; + private java.util.List endLoadIntervals_; /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List - getEndLoadIntervalsList() { + @java.lang.Deprecated public java.util.List getEndLoadIntervalsList() { return endLoadIntervals_; } /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public java.util.List< - ? extends com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + @java.lang.Deprecated public java.util.List getEndLoadIntervalsOrBuilderList() { return endLoadIntervals_; } /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public int getEndLoadIntervalsCount() { + @java.lang.Deprecated public int getEndLoadIntervalsCount() { return endLoadIntervals_.size(); } /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index) { return endLoadIntervals_.get(index); } /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder - getEndLoadIntervalsOrBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder( + int index) { return endLoadIntervals_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6562,13 +5744,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); - if (travelMode_ - != com.google.cloud.optimization.v1.Vehicle.TravelMode.TRAVEL_MODE_UNSPECIFIED - .getNumber()) { + if (travelMode_ != com.google.cloud.optimization.v1.Vehicle.TravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, travelMode_); } + if (routeModifiers_ != null) { + output.writeMessage(2, getRouteModifiers()); + } if (startLocation_ != null) { output.writeMessage(3, getStartLocation()); } @@ -6596,9 +5780,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(11, travelDurationMultiple_); } - if (unloadingPolicy_ - != com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNLOADING_POLICY_UNSPECIFIED - .getNumber()) { + if (unloadingPolicy_ != com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNLOADING_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(12, unloadingPolicy_); } for (int i = 0; i < capacities_.size(); i++) { @@ -6634,7 +5816,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (routeDistanceLimit_ != null) { output.writeMessage(23, getRouteDistanceLimit()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetExtraVisitDurationForVisitType(), ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry, @@ -6655,8 +5838,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < breakRuleIndices_.size(); i++) { output.writeInt32NoTag(breakRuleIndices_.getInt(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLoadLimits(), LoadLimitsDefaultEntryHolder.defaultEntry, 30); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLoadLimits(), + LoadLimitsDefaultEntryHolder.defaultEntry, + 30); getUnknownFields().writeTo(output); } @@ -6666,22 +5853,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (travelMode_ - != com.google.cloud.optimization.v1.Vehicle.TravelMode.TRAVEL_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, travelMode_); + if (travelMode_ != com.google.cloud.optimization.v1.Vehicle.TravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, travelMode_); + } + if (routeModifiers_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRouteModifiers()); } if (startLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartLocation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartLocation()); } if (startWaypoint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartWaypoint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartWaypoint()); } if (endLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndLocation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndLocation()); } if (endWaypoint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndWaypoint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getEndWaypoint()); } { int dataSize = 0; @@ -6700,102 +5894,109 @@ public int getSerializedSize() { size += 1 * getEndTagsList().size(); } for (int i = 0; i < startTimeWindows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, startTimeWindows_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, startTimeWindows_.get(i)); } for (int i = 0; i < endTimeWindows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, endTimeWindows_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, endTimeWindows_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, travelDurationMultiple_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, travelDurationMultiple_); } - if (unloadingPolicy_ - != com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNLOADING_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, unloadingPolicy_); + if (unloadingPolicy_ != com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNLOADING_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, unloadingPolicy_); } for (int i = 0; i < capacities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, capacities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, capacities_.get(i)); } for (int i = 0; i < startLoadIntervals_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, startLoadIntervals_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, startLoadIntervals_.get(i)); } for (int i = 0; i < endLoadIntervals_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(15, endLoadIntervals_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, endLoadIntervals_.get(i)); } if (java.lang.Double.doubleToRawLongBits(costPerHour_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(16, costPerHour_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(16, costPerHour_); } if (java.lang.Double.doubleToRawLongBits(costPerTraveledHour_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(17, costPerTraveledHour_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(17, costPerTraveledHour_); } if (java.lang.Double.doubleToRawLongBits(costPerKilometer_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(18, costPerKilometer_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(18, costPerKilometer_); } if (java.lang.Double.doubleToRawLongBits(fixedCost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(19, fixedCost_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(19, fixedCost_); } if (usedIfRouteIsEmpty_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, usedIfRouteIsEmpty_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, usedIfRouteIsEmpty_); } if (routeDurationLimit_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRouteDurationLimit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getRouteDurationLimit()); } if (travelDurationLimit_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(22, getTravelDurationLimit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getTravelDurationLimit()); } if (routeDistanceLimit_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getRouteDistanceLimit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getRouteDistanceLimit()); } - for (java.util.Map.Entry entry : - internalGetExtraVisitDurationForVisitType().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetExtraVisitDurationForVisitType().getMap().entrySet()) { com.google.protobuf.MapEntry - extraVisitDurationForVisitType__ = - ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, extraVisitDurationForVisitType__); + extraVisitDurationForVisitType__ = ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, extraVisitDurationForVisitType__); } if (breakRule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getBreakRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getBreakRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, label_); } if (ignore_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, ignore_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(28, ignore_); } { int dataSize = 0; for (int i = 0; i < breakRuleIndices_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - breakRuleIndices_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(breakRuleIndices_.getInt(i)); } size += dataSize; if (!getBreakRuleIndicesList().isEmpty()) { size += 2; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } breakRuleIndicesMemoizedSerializedSize = dataSize; } - for (java.util.Map.Entry - entry : internalGetLoadLimits().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> - loadLimits__ = - LoadLimitsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, loadLimits__); + for (java.util.Map.Entry entry + : internalGetLoadLimits().getMap().entrySet()) { + com.google.protobuf.MapEntry + loadLimits__ = LoadLimitsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, loadLimits__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6805,7 +6006,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Vehicle)) { return super.equals(obj); @@ -6813,66 +6014,96 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.optimization.v1.Vehicle other = (com.google.cloud.optimization.v1.Vehicle) obj; if (travelMode_ != other.travelMode_) return false; + if (hasRouteModifiers() != other.hasRouteModifiers()) return false; + if (hasRouteModifiers()) { + if (!getRouteModifiers() + .equals(other.getRouteModifiers())) return false; + } if (hasStartLocation() != other.hasStartLocation()) return false; if (hasStartLocation()) { - if (!getStartLocation().equals(other.getStartLocation())) return false; + if (!getStartLocation() + .equals(other.getStartLocation())) return false; } if (hasStartWaypoint() != other.hasStartWaypoint()) return false; if (hasStartWaypoint()) { - if (!getStartWaypoint().equals(other.getStartWaypoint())) return false; + if (!getStartWaypoint() + .equals(other.getStartWaypoint())) return false; } if (hasEndLocation() != other.hasEndLocation()) return false; if (hasEndLocation()) { - if (!getEndLocation().equals(other.getEndLocation())) return false; + if (!getEndLocation() + .equals(other.getEndLocation())) return false; } if (hasEndWaypoint() != other.hasEndWaypoint()) return false; if (hasEndWaypoint()) { - if (!getEndWaypoint().equals(other.getEndWaypoint())) return false; - } - if (!getStartTagsList().equals(other.getStartTagsList())) return false; - if (!getEndTagsList().equals(other.getEndTagsList())) return false; - if (!getStartTimeWindowsList().equals(other.getStartTimeWindowsList())) return false; - if (!getEndTimeWindowsList().equals(other.getEndTimeWindowsList())) return false; + if (!getEndWaypoint() + .equals(other.getEndWaypoint())) return false; + } + if (!getStartTagsList() + .equals(other.getStartTagsList())) return false; + if (!getEndTagsList() + .equals(other.getEndTagsList())) return false; + if (!getStartTimeWindowsList() + .equals(other.getStartTimeWindowsList())) return false; + if (!getEndTimeWindowsList() + .equals(other.getEndTimeWindowsList())) return false; if (hasTravelDurationMultiple() != other.hasTravelDurationMultiple()) return false; if (hasTravelDurationMultiple()) { if (java.lang.Double.doubleToLongBits(getTravelDurationMultiple()) - != java.lang.Double.doubleToLongBits(other.getTravelDurationMultiple())) return false; + != java.lang.Double.doubleToLongBits( + other.getTravelDurationMultiple())) return false; } if (unloadingPolicy_ != other.unloadingPolicy_) return false; - if (!internalGetLoadLimits().equals(other.internalGetLoadLimits())) return false; + if (!internalGetLoadLimits().equals( + other.internalGetLoadLimits())) return false; if (java.lang.Double.doubleToLongBits(getCostPerHour()) - != java.lang.Double.doubleToLongBits(other.getCostPerHour())) return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerHour())) return false; if (java.lang.Double.doubleToLongBits(getCostPerTraveledHour()) - != java.lang.Double.doubleToLongBits(other.getCostPerTraveledHour())) return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerTraveledHour())) return false; if (java.lang.Double.doubleToLongBits(getCostPerKilometer()) - != java.lang.Double.doubleToLongBits(other.getCostPerKilometer())) return false; + != java.lang.Double.doubleToLongBits( + other.getCostPerKilometer())) return false; if (java.lang.Double.doubleToLongBits(getFixedCost()) - != java.lang.Double.doubleToLongBits(other.getFixedCost())) return false; - if (getUsedIfRouteIsEmpty() != other.getUsedIfRouteIsEmpty()) return false; + != java.lang.Double.doubleToLongBits( + other.getFixedCost())) return false; + if (getUsedIfRouteIsEmpty() + != other.getUsedIfRouteIsEmpty()) return false; if (hasRouteDurationLimit() != other.hasRouteDurationLimit()) return false; if (hasRouteDurationLimit()) { - if (!getRouteDurationLimit().equals(other.getRouteDurationLimit())) return false; + if (!getRouteDurationLimit() + .equals(other.getRouteDurationLimit())) return false; } if (hasTravelDurationLimit() != other.hasTravelDurationLimit()) return false; if (hasTravelDurationLimit()) { - if (!getTravelDurationLimit().equals(other.getTravelDurationLimit())) return false; + if (!getTravelDurationLimit() + .equals(other.getTravelDurationLimit())) return false; } if (hasRouteDistanceLimit() != other.hasRouteDistanceLimit()) return false; if (hasRouteDistanceLimit()) { - if (!getRouteDistanceLimit().equals(other.getRouteDistanceLimit())) return false; + if (!getRouteDistanceLimit() + .equals(other.getRouteDistanceLimit())) return false; } - if (!internalGetExtraVisitDurationForVisitType() - .equals(other.internalGetExtraVisitDurationForVisitType())) return false; + if (!internalGetExtraVisitDurationForVisitType().equals( + other.internalGetExtraVisitDurationForVisitType())) return false; if (hasBreakRule() != other.hasBreakRule()) return false; if (hasBreakRule()) { - if (!getBreakRule().equals(other.getBreakRule())) return false; - } - if (!getLabel().equals(other.getLabel())) return false; - if (getIgnore() != other.getIgnore()) return false; - if (!getBreakRuleIndicesList().equals(other.getBreakRuleIndicesList())) return false; - if (!getCapacitiesList().equals(other.getCapacitiesList())) return false; - if (!getStartLoadIntervalsList().equals(other.getStartLoadIntervalsList())) return false; - if (!getEndLoadIntervalsList().equals(other.getEndLoadIntervalsList())) return false; + if (!getBreakRule() + .equals(other.getBreakRule())) return false; + } + if (!getLabel() + .equals(other.getLabel())) return false; + if (getIgnore() + != other.getIgnore()) return false; + if (!getBreakRuleIndicesList() + .equals(other.getBreakRuleIndicesList())) return false; + if (!getCapacitiesList() + .equals(other.getCapacitiesList())) return false; + if (!getStartLoadIntervalsList() + .equals(other.getStartLoadIntervalsList())) return false; + if (!getEndLoadIntervalsList() + .equals(other.getEndLoadIntervalsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6886,6 +6117,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRAVEL_MODE_FIELD_NUMBER; hash = (53 * hash) + travelMode_; + if (hasRouteModifiers()) { + hash = (37 * hash) + ROUTE_MODIFIERS_FIELD_NUMBER; + hash = (53 * hash) + getRouteModifiers().hashCode(); + } if (hasStartLocation()) { hash = (37 * hash) + START_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getStartLocation().hashCode(); @@ -6920,10 +6155,8 @@ public int hashCode() { } if (hasTravelDurationMultiple()) { hash = (37 * hash) + TRAVEL_DURATION_MULTIPLE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTravelDurationMultiple())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTravelDurationMultiple())); } hash = (37 * hash) + UNLOADING_POLICY_FIELD_NUMBER; hash = (53 * hash) + unloadingPolicy_; @@ -6932,27 +6165,20 @@ public int hashCode() { hash = (53 * hash) + internalGetLoadLimits().hashCode(); } hash = (37 * hash) + COST_PER_HOUR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerHour())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerHour())); hash = (37 * hash) + COST_PER_TRAVELED_HOUR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerTraveledHour())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerTraveledHour())); hash = (37 * hash) + COST_PER_KILOMETER_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerKilometer())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerKilometer())); hash = (37 * hash) + FIXED_COST_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFixedCost())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFixedCost())); hash = (37 * hash) + USED_IF_ROUTE_IS_EMPTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsedIfRouteIsEmpty()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUsedIfRouteIsEmpty()); if (hasRouteDurationLimit()) { hash = (37 * hash) + ROUTE_DURATION_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getRouteDurationLimit().hashCode(); @@ -6976,7 +6202,8 @@ public int hashCode() { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + IGNORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnore()); if (getBreakRuleIndicesCount() > 0) { hash = (37 * hash) + BREAK_RULE_INDICES_FIELD_NUMBER; hash = (53 * hash) + getBreakRuleIndicesList().hashCode(); @@ -6998,104 +6225,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.Vehicle parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Vehicle parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Vehicle parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Vehicle parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Vehicle prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Models a vehicle in a shipment problem. Solving a shipment problem will
    * build a route starting from `start_location` and ending at `end_location`
@@ -7104,61 +6326,69 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.Vehicle}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Vehicle)
       com.google.cloud.optimization.v1.VehicleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 30:
           return internalGetLoadLimits();
         case 24:
           return internalGetExtraVisitDurationForVisitType();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 30:
           return internalGetMutableLoadLimits();
         case 24:
           return internalGetMutableExtraVisitDurationForVisitType();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Vehicle.class,
-              com.google.cloud.optimization.v1.Vehicle.Builder.class);
+              com.google.cloud.optimization.v1.Vehicle.class, com.google.cloud.optimization.v1.Vehicle.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.Vehicle.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       travelMode_ = 0;
+      routeModifiers_ = null;
+      if (routeModifiersBuilder_ != null) {
+        routeModifiersBuilder_.dispose();
+        routeModifiersBuilder_ = null;
+      }
       startLocation_ = null;
       if (startLocationBuilder_ != null) {
         startLocationBuilder_.dispose();
@@ -7179,22 +6409,24 @@ public Builder clear() {
         endWaypointBuilder_.dispose();
         endWaypointBuilder_ = null;
       }
-      startTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
-      endTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      startTags_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
+      endTags_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       if (startTimeWindowsBuilder_ == null) {
         startTimeWindows_ = java.util.Collections.emptyList();
       } else {
         startTimeWindows_ = null;
         startTimeWindowsBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x00000080);
+      bitField0_ = (bitField0_ & ~0x00000100);
       if (endTimeWindowsBuilder_ == null) {
         endTimeWindows_ = java.util.Collections.emptyList();
       } else {
         endTimeWindows_ = null;
         endTimeWindowsBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x00000100);
+      bitField0_ = (bitField0_ & ~0x00000200);
       travelDurationMultiple_ = 0D;
       unloadingPolicy_ = 0;
       internalGetMutableLoadLimits().clear();
@@ -7233,28 +6465,28 @@ public Builder clear() {
         capacities_ = null;
         capacitiesBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x02000000);
+      bitField0_ = (bitField0_ & ~0x04000000);
       if (startLoadIntervalsBuilder_ == null) {
         startLoadIntervals_ = java.util.Collections.emptyList();
       } else {
         startLoadIntervals_ = null;
         startLoadIntervalsBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x04000000);
+      bitField0_ = (bitField0_ & ~0x08000000);
       if (endLoadIntervalsBuilder_ == null) {
         endLoadIntervals_ = java.util.Collections.emptyList();
       } else {
         endLoadIntervals_ = null;
         endLoadIntervalsBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x08000000);
+      bitField0_ = (bitField0_ & ~0x10000000);
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
     }
 
     @java.lang.Override
@@ -7273,62 +6505,59 @@ public com.google.cloud.optimization.v1.Vehicle build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.Vehicle buildPartial() {
-      com.google.cloud.optimization.v1.Vehicle result =
-          new com.google.cloud.optimization.v1.Vehicle(this);
+      com.google.cloud.optimization.v1.Vehicle result = new com.google.cloud.optimization.v1.Vehicle(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
     private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Vehicle result) {
       if (startTimeWindowsBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)) {
+        if (((bitField0_ & 0x00000100) != 0)) {
           startTimeWindows_ = java.util.Collections.unmodifiableList(startTimeWindows_);
-          bitField0_ = (bitField0_ & ~0x00000080);
+          bitField0_ = (bitField0_ & ~0x00000100);
         }
         result.startTimeWindows_ = startTimeWindows_;
       } else {
         result.startTimeWindows_ = startTimeWindowsBuilder_.build();
       }
       if (endTimeWindowsBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0)) {
+        if (((bitField0_ & 0x00000200) != 0)) {
           endTimeWindows_ = java.util.Collections.unmodifiableList(endTimeWindows_);
-          bitField0_ = (bitField0_ & ~0x00000100);
+          bitField0_ = (bitField0_ & ~0x00000200);
         }
         result.endTimeWindows_ = endTimeWindows_;
       } else {
         result.endTimeWindows_ = endTimeWindowsBuilder_.build();
       }
-      if (((bitField0_ & 0x01000000) != 0)) {
+      if (((bitField0_ & 0x02000000) != 0)) {
         breakRuleIndices_.makeImmutable();
-        bitField0_ = (bitField0_ & ~0x01000000);
+        bitField0_ = (bitField0_ & ~0x02000000);
       }
       result.breakRuleIndices_ = breakRuleIndices_;
       if (capacitiesBuilder_ == null) {
-        if (((bitField0_ & 0x02000000) != 0)) {
+        if (((bitField0_ & 0x04000000) != 0)) {
           capacities_ = java.util.Collections.unmodifiableList(capacities_);
-          bitField0_ = (bitField0_ & ~0x02000000);
+          bitField0_ = (bitField0_ & ~0x04000000);
         }
         result.capacities_ = capacities_;
       } else {
         result.capacities_ = capacitiesBuilder_.build();
       }
       if (startLoadIntervalsBuilder_ == null) {
-        if (((bitField0_ & 0x04000000) != 0)) {
+        if (((bitField0_ & 0x08000000) != 0)) {
           startLoadIntervals_ = java.util.Collections.unmodifiableList(startLoadIntervals_);
-          bitField0_ = (bitField0_ & ~0x04000000);
+          bitField0_ = (bitField0_ & ~0x08000000);
         }
         result.startLoadIntervals_ = startLoadIntervals_;
       } else {
         result.startLoadIntervals_ = startLoadIntervalsBuilder_.build();
       }
       if (endLoadIntervalsBuilder_ == null) {
-        if (((bitField0_ & 0x08000000) != 0)) {
+        if (((bitField0_ & 0x10000000) != 0)) {
           endLoadIntervals_ = java.util.Collections.unmodifiableList(endLoadIntervals_);
-          bitField0_ = (bitField0_ & ~0x08000000);
+          bitField0_ = (bitField0_ & ~0x10000000);
         }
         result.endLoadIntervals_ = endLoadIntervals_;
       } else {
@@ -7342,85 +6571,93 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle result) {
         result.travelMode_ = travelMode_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startLocation_ =
-            startLocationBuilder_ == null ? startLocation_ : startLocationBuilder_.build();
+        result.routeModifiers_ = routeModifiersBuilder_ == null
+            ? routeModifiers_
+            : routeModifiersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.startWaypoint_ =
-            startWaypointBuilder_ == null ? startWaypoint_ : startWaypointBuilder_.build();
+        result.startLocation_ = startLocationBuilder_ == null
+            ? startLocation_
+            : startLocationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.endLocation_ =
-            endLocationBuilder_ == null ? endLocation_ : endLocationBuilder_.build();
+        result.startWaypoint_ = startWaypointBuilder_ == null
+            ? startWaypoint_
+            : startWaypointBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endWaypoint_ =
-            endWaypointBuilder_ == null ? endWaypoint_ : endWaypointBuilder_.build();
+        result.endLocation_ = endLocationBuilder_ == null
+            ? endLocation_
+            : endLocationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
+        result.endWaypoint_ = endWaypointBuilder_ == null
+            ? endWaypoint_
+            : endWaypointBuilder_.build();
+      }
+      if (((from_bitField0_ & 0x00000040) != 0)) {
         startTags_.makeImmutable();
         result.startTags_ = startTags_;
       }
-      if (((from_bitField0_ & 0x00000040) != 0)) {
+      if (((from_bitField0_ & 0x00000080) != 0)) {
         endTags_.makeImmutable();
         result.endTags_ = endTags_;
       }
       int to_bitField0_ = 0;
-      if (((from_bitField0_ & 0x00000200) != 0)) {
+      if (((from_bitField0_ & 0x00000400) != 0)) {
         result.travelDurationMultiple_ = travelDurationMultiple_;
         to_bitField0_ |= 0x00000001;
       }
-      if (((from_bitField0_ & 0x00000400) != 0)) {
+      if (((from_bitField0_ & 0x00000800) != 0)) {
         result.unloadingPolicy_ = unloadingPolicy_;
       }
-      if (((from_bitField0_ & 0x00000800) != 0)) {
+      if (((from_bitField0_ & 0x00001000) != 0)) {
         result.loadLimits_ = internalGetLoadLimits();
         result.loadLimits_.makeImmutable();
       }
-      if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.costPerHour_ = costPerHour_;
-      }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.costPerTraveledHour_ = costPerTraveledHour_;
+        result.costPerHour_ = costPerHour_;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.costPerKilometer_ = costPerKilometer_;
+        result.costPerTraveledHour_ = costPerTraveledHour_;
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.fixedCost_ = fixedCost_;
+        result.costPerKilometer_ = costPerKilometer_;
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.usedIfRouteIsEmpty_ = usedIfRouteIsEmpty_;
+        result.fixedCost_ = fixedCost_;
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
-        result.routeDurationLimit_ =
-            routeDurationLimitBuilder_ == null
-                ? routeDurationLimit_
-                : routeDurationLimitBuilder_.build();
+        result.usedIfRouteIsEmpty_ = usedIfRouteIsEmpty_;
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
-        result.travelDurationLimit_ =
-            travelDurationLimitBuilder_ == null
-                ? travelDurationLimit_
-                : travelDurationLimitBuilder_.build();
+        result.routeDurationLimit_ = routeDurationLimitBuilder_ == null
+            ? routeDurationLimit_
+            : routeDurationLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00080000) != 0)) {
-        result.routeDistanceLimit_ =
-            routeDistanceLimitBuilder_ == null
-                ? routeDistanceLimit_
-                : routeDistanceLimitBuilder_.build();
+        result.travelDurationLimit_ = travelDurationLimitBuilder_ == null
+            ? travelDurationLimit_
+            : travelDurationLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00100000) != 0)) {
-        result.extraVisitDurationForVisitType_ = internalGetExtraVisitDurationForVisitType();
-        result.extraVisitDurationForVisitType_.makeImmutable();
+        result.routeDistanceLimit_ = routeDistanceLimitBuilder_ == null
+            ? routeDistanceLimit_
+            : routeDistanceLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00200000) != 0)) {
-        result.breakRule_ = breakRuleBuilder_ == null ? breakRule_ : breakRuleBuilder_.build();
+        result.extraVisitDurationForVisitType_ = internalGetExtraVisitDurationForVisitType();
+        result.extraVisitDurationForVisitType_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00400000) != 0)) {
-        result.label_ = label_;
+        result.breakRule_ = breakRuleBuilder_ == null
+            ? breakRule_
+            : breakRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00800000) != 0)) {
+        result.label_ = label_;
+      }
+      if (((from_bitField0_ & 0x01000000) != 0)) {
         result.ignore_ = ignore_;
       }
       result.bitField0_ |= to_bitField0_;
@@ -7430,39 +6667,38 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.Vehicle) {
-        return mergeFrom((com.google.cloud.optimization.v1.Vehicle) other);
+        return mergeFrom((com.google.cloud.optimization.v1.Vehicle)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -7474,6 +6710,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
       if (other.travelMode_ != 0) {
         setTravelModeValue(other.getTravelModeValue());
       }
+      if (other.hasRouteModifiers()) {
+        mergeRouteModifiers(other.getRouteModifiers());
+      }
       if (other.hasStartLocation()) {
         mergeStartLocation(other.getStartLocation());
       }
@@ -7489,7 +6728,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
       if (!other.startTags_.isEmpty()) {
         if (startTags_.isEmpty()) {
           startTags_ = other.startTags_;
-          bitField0_ |= 0x00000020;
+          bitField0_ |= 0x00000040;
         } else {
           ensureStartTagsIsMutable();
           startTags_.addAll(other.startTags_);
@@ -7499,7 +6738,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
       if (!other.endTags_.isEmpty()) {
         if (endTags_.isEmpty()) {
           endTags_ = other.endTags_;
-          bitField0_ |= 0x00000040;
+          bitField0_ |= 0x00000080;
         } else {
           ensureEndTagsIsMutable();
           endTags_.addAll(other.endTags_);
@@ -7510,7 +6749,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
         if (!other.startTimeWindows_.isEmpty()) {
           if (startTimeWindows_.isEmpty()) {
             startTimeWindows_ = other.startTimeWindows_;
-            bitField0_ = (bitField0_ & ~0x00000080);
+            bitField0_ = (bitField0_ & ~0x00000100);
           } else {
             ensureStartTimeWindowsIsMutable();
             startTimeWindows_.addAll(other.startTimeWindows_);
@@ -7523,11 +6762,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             startTimeWindowsBuilder_.dispose();
             startTimeWindowsBuilder_ = null;
             startTimeWindows_ = other.startTimeWindows_;
-            bitField0_ = (bitField0_ & ~0x00000080);
-            startTimeWindowsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getStartTimeWindowsFieldBuilder()
-                    : null;
+            bitField0_ = (bitField0_ & ~0x00000100);
+            startTimeWindowsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getStartTimeWindowsFieldBuilder() : null;
           } else {
             startTimeWindowsBuilder_.addAllMessages(other.startTimeWindows_);
           }
@@ -7537,7 +6775,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
         if (!other.endTimeWindows_.isEmpty()) {
           if (endTimeWindows_.isEmpty()) {
             endTimeWindows_ = other.endTimeWindows_;
-            bitField0_ = (bitField0_ & ~0x00000100);
+            bitField0_ = (bitField0_ & ~0x00000200);
           } else {
             ensureEndTimeWindowsIsMutable();
             endTimeWindows_.addAll(other.endTimeWindows_);
@@ -7550,11 +6788,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             endTimeWindowsBuilder_.dispose();
             endTimeWindowsBuilder_ = null;
             endTimeWindows_ = other.endTimeWindows_;
-            bitField0_ = (bitField0_ & ~0x00000100);
-            endTimeWindowsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEndTimeWindowsFieldBuilder()
-                    : null;
+            bitField0_ = (bitField0_ & ~0x00000200);
+            endTimeWindowsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEndTimeWindowsFieldBuilder() : null;
           } else {
             endTimeWindowsBuilder_.addAllMessages(other.endTimeWindows_);
           }
@@ -7566,8 +6803,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
       if (other.unloadingPolicy_ != 0) {
         setUnloadingPolicyValue(other.getUnloadingPolicyValue());
       }
-      internalGetMutableLoadLimits().mergeFrom(other.internalGetLoadLimits());
-      bitField0_ |= 0x00000800;
+      internalGetMutableLoadLimits().mergeFrom(
+          other.internalGetLoadLimits());
+      bitField0_ |= 0x00001000;
       if (other.getCostPerHour() != 0D) {
         setCostPerHour(other.getCostPerHour());
       }
@@ -7592,15 +6830,15 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
       if (other.hasRouteDistanceLimit()) {
         mergeRouteDistanceLimit(other.getRouteDistanceLimit());
       }
-      internalGetMutableExtraVisitDurationForVisitType()
-          .mergeFrom(other.internalGetExtraVisitDurationForVisitType());
-      bitField0_ |= 0x00100000;
+      internalGetMutableExtraVisitDurationForVisitType().mergeFrom(
+          other.internalGetExtraVisitDurationForVisitType());
+      bitField0_ |= 0x00200000;
       if (other.hasBreakRule()) {
         mergeBreakRule(other.getBreakRule());
       }
       if (!other.getLabel().isEmpty()) {
         label_ = other.label_;
-        bitField0_ |= 0x00400000;
+        bitField0_ |= 0x00800000;
         onChanged();
       }
       if (other.getIgnore() != false) {
@@ -7609,7 +6847,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
       if (!other.breakRuleIndices_.isEmpty()) {
         if (breakRuleIndices_.isEmpty()) {
           breakRuleIndices_ = other.breakRuleIndices_;
-          bitField0_ = (bitField0_ & ~0x01000000);
+          bitField0_ = (bitField0_ & ~0x02000000);
         } else {
           ensureBreakRuleIndicesIsMutable();
           breakRuleIndices_.addAll(other.breakRuleIndices_);
@@ -7620,7 +6858,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
         if (!other.capacities_.isEmpty()) {
           if (capacities_.isEmpty()) {
             capacities_ = other.capacities_;
-            bitField0_ = (bitField0_ & ~0x02000000);
+            bitField0_ = (bitField0_ & ~0x04000000);
           } else {
             ensureCapacitiesIsMutable();
             capacities_.addAll(other.capacities_);
@@ -7633,11 +6871,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             capacitiesBuilder_.dispose();
             capacitiesBuilder_ = null;
             capacities_ = other.capacities_;
-            bitField0_ = (bitField0_ & ~0x02000000);
-            capacitiesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCapacitiesFieldBuilder()
-                    : null;
+            bitField0_ = (bitField0_ & ~0x04000000);
+            capacitiesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCapacitiesFieldBuilder() : null;
           } else {
             capacitiesBuilder_.addAllMessages(other.capacities_);
           }
@@ -7647,7 +6884,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
         if (!other.startLoadIntervals_.isEmpty()) {
           if (startLoadIntervals_.isEmpty()) {
             startLoadIntervals_ = other.startLoadIntervals_;
-            bitField0_ = (bitField0_ & ~0x04000000);
+            bitField0_ = (bitField0_ & ~0x08000000);
           } else {
             ensureStartLoadIntervalsIsMutable();
             startLoadIntervals_.addAll(other.startLoadIntervals_);
@@ -7660,11 +6897,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             startLoadIntervalsBuilder_.dispose();
             startLoadIntervalsBuilder_ = null;
             startLoadIntervals_ = other.startLoadIntervals_;
-            bitField0_ = (bitField0_ & ~0x04000000);
-            startLoadIntervalsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getStartLoadIntervalsFieldBuilder()
-                    : null;
+            bitField0_ = (bitField0_ & ~0x08000000);
+            startLoadIntervalsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getStartLoadIntervalsFieldBuilder() : null;
           } else {
             startLoadIntervalsBuilder_.addAllMessages(other.startLoadIntervals_);
           }
@@ -7674,7 +6910,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
         if (!other.endLoadIntervals_.isEmpty()) {
           if (endLoadIntervals_.isEmpty()) {
             endLoadIntervals_ = other.endLoadIntervals_;
-            bitField0_ = (bitField0_ & ~0x08000000);
+            bitField0_ = (bitField0_ & ~0x10000000);
           } else {
             ensureEndLoadIntervalsIsMutable();
             endLoadIntervals_.addAll(other.endLoadIntervals_);
@@ -7687,11 +6923,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             endLoadIntervalsBuilder_.dispose();
             endLoadIntervalsBuilder_ = null;
             endLoadIntervals_ = other.endLoadIntervals_;
-            bitField0_ = (bitField0_ & ~0x08000000);
-            endLoadIntervalsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEndLoadIntervalsFieldBuilder()
-                    : null;
+            bitField0_ = (bitField0_ & ~0x10000000);
+            endLoadIntervalsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEndLoadIntervalsFieldBuilder() : null;
           } else {
             endLoadIntervalsBuilder_.addAllMessages(other.endLoadIntervals_);
           }
@@ -7723,254 +6958,236 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                travelMode_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 26:
-              {
-                input.readMessage(getStartLocationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getStartWaypointFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getEndLocationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getEndWaypointFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 50
-            case 58:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureStartTagsIsMutable();
-                startTags_.add(s);
-                break;
-              } // case 58
-            case 66:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureEndTagsIsMutable();
-                endTags_.add(s);
-                break;
-              } // case 66
-            case 74:
-              {
-                com.google.cloud.optimization.v1.TimeWindow m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.TimeWindow.parser(), extensionRegistry);
-                if (startTimeWindowsBuilder_ == null) {
-                  ensureStartTimeWindowsIsMutable();
-                  startTimeWindows_.add(m);
-                } else {
-                  startTimeWindowsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.cloud.optimization.v1.TimeWindow m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.TimeWindow.parser(), extensionRegistry);
-                if (endTimeWindowsBuilder_ == null) {
-                  ensureEndTimeWindowsIsMutable();
-                  endTimeWindows_.add(m);
-                } else {
-                  endTimeWindowsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 82
-            case 89:
-              {
-                travelDurationMultiple_ = input.readDouble();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 89
-            case 96:
-              {
-                unloadingPolicy_ = input.readEnum();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 96
-            case 106:
-              {
-                com.google.cloud.optimization.v1.CapacityQuantity m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                        extensionRegistry);
-                if (capacitiesBuilder_ == null) {
-                  ensureCapacitiesIsMutable();
-                  capacities_.add(m);
-                } else {
-                  capacitiesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 106
-            case 114:
-              {
-                com.google.cloud.optimization.v1.CapacityQuantityInterval m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantityInterval.parser(),
-                        extensionRegistry);
-                if (startLoadIntervalsBuilder_ == null) {
-                  ensureStartLoadIntervalsIsMutable();
-                  startLoadIntervals_.add(m);
-                } else {
-                  startLoadIntervalsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 122:
-              {
-                com.google.cloud.optimization.v1.CapacityQuantityInterval m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantityInterval.parser(),
-                        extensionRegistry);
-                if (endLoadIntervalsBuilder_ == null) {
-                  ensureEndLoadIntervalsIsMutable();
-                  endLoadIntervals_.add(m);
-                } else {
-                  endLoadIntervalsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 122
-            case 129:
-              {
-                costPerHour_ = input.readDouble();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 129
-            case 137:
-              {
-                costPerTraveledHour_ = input.readDouble();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 137
-            case 145:
-              {
-                costPerKilometer_ = input.readDouble();
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 145
-            case 153:
-              {
-                fixedCost_ = input.readDouble();
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 153
-            case 160:
-              {
-                usedIfRouteIsEmpty_ = input.readBool();
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 160
-            case 170:
-              {
-                input.readMessage(
-                    getRouteDurationLimitFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 170
-            case 178:
-              {
-                input.readMessage(
-                    getTravelDurationLimitFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 178
-            case 186:
-              {
-                input.readMessage(
-                    getRouteDistanceLimitFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00080000;
-                break;
-              } // case 186
-            case 194:
-              {
-                com.google.protobuf.MapEntry
-                    extraVisitDurationForVisitType__ =
-                        input.readMessage(
-                            ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry
-                                .getParserForType(),
-                            extensionRegistry);
-                internalGetMutableExtraVisitDurationForVisitType()
-                    .getMutableMap()
-                    .put(
-                        extraVisitDurationForVisitType__.getKey(),
-                        extraVisitDurationForVisitType__.getValue());
-                bitField0_ |= 0x00100000;
-                break;
-              } // case 194
-            case 202:
-              {
-                input.readMessage(getBreakRuleFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00200000;
-                break;
-              } // case 202
-            case 218:
-              {
-                label_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00400000;
-                break;
-              } // case 218
-            case 224:
-              {
-                ignore_ = input.readBool();
-                bitField0_ |= 0x00800000;
-                break;
-              } // case 224
-            case 232:
-              {
-                int v = input.readInt32();
-                ensureBreakRuleIndicesIsMutable();
-                breakRuleIndices_.addInt(v);
-                break;
-              } // case 232
-            case 234:
-              {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                ensureBreakRuleIndicesIsMutable();
-                while (input.getBytesUntilLimit() > 0) {
-                  breakRuleIndices_.addInt(input.readInt32());
-                }
-                input.popLimit(limit);
-                break;
-              } // case 234
-            case 242:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit>
-                    loadLimits__ =
-                        input.readMessage(
-                            LoadLimitsDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableLoadLimits()
-                    .getMutableMap()
-                    .put(loadLimits__.getKey(), loadLimits__.getValue());
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 242
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              travelMode_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getRouteModifiersFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getStartLocationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getStartWaypointFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getEndLocationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getEndWaypointFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureStartTagsIsMutable();
+              startTags_.add(s);
+              break;
+            } // case 58
+            case 66: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureEndTagsIsMutable();
+              endTags_.add(s);
+              break;
+            } // case 66
+            case 74: {
+              com.google.cloud.optimization.v1.TimeWindow m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.TimeWindow.parser(),
+                      extensionRegistry);
+              if (startTimeWindowsBuilder_ == null) {
+                ensureStartTimeWindowsIsMutable();
+                startTimeWindows_.add(m);
+              } else {
+                startTimeWindowsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 74
+            case 82: {
+              com.google.cloud.optimization.v1.TimeWindow m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.TimeWindow.parser(),
+                      extensionRegistry);
+              if (endTimeWindowsBuilder_ == null) {
+                ensureEndTimeWindowsIsMutable();
+                endTimeWindows_.add(m);
+              } else {
+                endTimeWindowsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 82
+            case 89: {
+              travelDurationMultiple_ = input.readDouble();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 89
+            case 96: {
+              unloadingPolicy_ = input.readEnum();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 96
+            case 106: {
+              com.google.cloud.optimization.v1.CapacityQuantity m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                      extensionRegistry);
+              if (capacitiesBuilder_ == null) {
+                ensureCapacitiesIsMutable();
+                capacities_.add(m);
+              } else {
+                capacitiesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 106
+            case 114: {
+              com.google.cloud.optimization.v1.CapacityQuantityInterval m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.CapacityQuantityInterval.parser(),
+                      extensionRegistry);
+              if (startLoadIntervalsBuilder_ == null) {
+                ensureStartLoadIntervalsIsMutable();
+                startLoadIntervals_.add(m);
+              } else {
+                startLoadIntervalsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 122: {
+              com.google.cloud.optimization.v1.CapacityQuantityInterval m =
+                  input.readMessage(
+                      com.google.cloud.optimization.v1.CapacityQuantityInterval.parser(),
+                      extensionRegistry);
+              if (endLoadIntervalsBuilder_ == null) {
+                ensureEndLoadIntervalsIsMutable();
+                endLoadIntervals_.add(m);
+              } else {
+                endLoadIntervalsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 122
+            case 129: {
+              costPerHour_ = input.readDouble();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 129
+            case 137: {
+              costPerTraveledHour_ = input.readDouble();
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 137
+            case 145: {
+              costPerKilometer_ = input.readDouble();
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 145
+            case 153: {
+              fixedCost_ = input.readDouble();
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 153
+            case 160: {
+              usedIfRouteIsEmpty_ = input.readBool();
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 160
+            case 170: {
+              input.readMessage(
+                  getRouteDurationLimitFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 170
+            case 178: {
+              input.readMessage(
+                  getTravelDurationLimitFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00080000;
+              break;
+            } // case 178
+            case 186: {
+              input.readMessage(
+                  getRouteDistanceLimitFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00100000;
+              break;
+            } // case 186
+            case 194: {
+              com.google.protobuf.MapEntry
+              extraVisitDurationForVisitType__ = input.readMessage(
+                  ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableExtraVisitDurationForVisitType().getMutableMap().put(
+                  extraVisitDurationForVisitType__.getKey(), extraVisitDurationForVisitType__.getValue());
+              bitField0_ |= 0x00200000;
+              break;
+            } // case 194
+            case 202: {
+              input.readMessage(
+                  getBreakRuleFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00400000;
+              break;
+            } // case 202
+            case 218: {
+              label_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00800000;
+              break;
+            } // case 218
+            case 224: {
+              ignore_ = input.readBool();
+              bitField0_ |= 0x01000000;
+              break;
+            } // case 224
+            case 232: {
+              int v = input.readInt32();
+              ensureBreakRuleIndicesIsMutable();
+              breakRuleIndices_.addInt(v);
+              break;
+            } // case 232
+            case 234: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureBreakRuleIndicesIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                breakRuleIndices_.addInt(input.readInt32());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 234
+            case 242: {
+              com.google.protobuf.MapEntry
+              loadLimits__ = input.readMessage(
+                  LoadLimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLoadLimits().getMutableMap().put(
+                  loadLimits__.getKey(), loadLimits__.getValue());
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 242
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7980,36 +7197,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int travelMode_ = 0;
     /**
-     *
-     *
      * 
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override - public int getTravelModeValue() { + @java.lang.Override public int getTravelModeValue() { return travelMode_; } /** - * - * *
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @param value The enum numeric value on the wire for travelMode to set. * @return This builder for chaining. */ @@ -8020,35 +7229,26 @@ public Builder setTravelModeValue(int value) { return this; } /** - * - * *
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @return The travelMode. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode() { - com.google.cloud.optimization.v1.Vehicle.TravelMode result = - com.google.cloud.optimization.v1.Vehicle.TravelMode.forNumber(travelMode_); - return result == null - ? com.google.cloud.optimization.v1.Vehicle.TravelMode.UNRECOGNIZED - : result; + com.google.cloud.optimization.v1.Vehicle.TravelMode result = com.google.cloud.optimization.v1.Vehicle.TravelMode.forNumber(travelMode_); + return result == null ? com.google.cloud.optimization.v1.Vehicle.TravelMode.UNRECOGNIZED : result; } /** - * - * *
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @param value The travelMode to set. * @return This builder for chaining. */ @@ -8062,15 +7262,12 @@ public Builder setTravelMode(com.google.cloud.optimization.v1.Vehicle.TravelMode return this; } /** - * - * *
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @return This builder for chaining. */ public Builder clearTravelMode() { @@ -8080,13 +7277,174 @@ public Builder clearTravelMode() { return this; } - private com.google.type.LatLng startLocation_; + private com.google.cloud.optimization.v1.RouteModifiers routeModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - startLocationBuilder_; + com.google.cloud.optimization.v1.RouteModifiers, com.google.cloud.optimization.v1.RouteModifiers.Builder, com.google.cloud.optimization.v1.RouteModifiersOrBuilder> routeModifiersBuilder_; /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
* + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the routeModifiers field is set. + */ + public boolean hasRouteModifiers() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
* + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The routeModifiers. + */ + public com.google.cloud.optimization.v1.RouteModifiers getRouteModifiers() { + if (routeModifiersBuilder_ == null) { + return routeModifiers_ == null ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() : routeModifiers_; + } else { + return routeModifiersBuilder_.getMessage(); + } + } + /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setRouteModifiers(com.google.cloud.optimization.v1.RouteModifiers value) { + if (routeModifiersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + routeModifiers_ = value; + } else { + routeModifiersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setRouteModifiers( + com.google.cloud.optimization.v1.RouteModifiers.Builder builderForValue) { + if (routeModifiersBuilder_ == null) { + routeModifiers_ = builderForValue.build(); + } else { + routeModifiersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeRouteModifiers(com.google.cloud.optimization.v1.RouteModifiers value) { + if (routeModifiersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + routeModifiers_ != null && + routeModifiers_ != com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance()) { + getRouteModifiersBuilder().mergeFrom(value); + } else { + routeModifiers_ = value; + } + } else { + routeModifiersBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearRouteModifiers() { + bitField0_ = (bitField0_ & ~0x00000002); + routeModifiers_ = null; + if (routeModifiersBuilder_ != null) { + routeModifiersBuilder_.dispose(); + routeModifiersBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.optimization.v1.RouteModifiers.Builder getRouteModifiersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRouteModifiersFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { + if (routeModifiersBuilder_ != null) { + return routeModifiersBuilder_.getMessageOrBuilder(); + } else { + return routeModifiers_ == null ? + com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() : routeModifiers_; + } + } + /** + *
+     * Optional. A set of conditions to satisfy that affect the way routes are
+     * calculated for the given vehicle.
+     * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.RouteModifiers, com.google.cloud.optimization.v1.RouteModifiers.Builder, com.google.cloud.optimization.v1.RouteModifiersOrBuilder> + getRouteModifiersFieldBuilder() { + if (routeModifiersBuilder_ == null) { + routeModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.RouteModifiers, com.google.cloud.optimization.v1.RouteModifiers.Builder, com.google.cloud.optimization.v1.RouteModifiersOrBuilder>( + getRouteModifiers(), + getParentForChildren(), + isClean()); + routeModifiers_ = null; + } + return routeModifiersBuilder_; + } + + private com.google.type.LatLng startLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> startLocationBuilder_; + /** *
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8095,15 +7453,12 @@ public Builder clearTravelMode() {
      * 
* * .google.type.LatLng start_location = 3; - * * @return Whether the startLocation field is set. */ public boolean hasStartLocation() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8112,21 +7467,16 @@ public boolean hasStartLocation() {
      * 
* * .google.type.LatLng start_location = 3; - * * @return The startLocation. */ public com.google.type.LatLng getStartLocation() { if (startLocationBuilder_ == null) { - return startLocation_ == null - ? com.google.type.LatLng.getDefaultInstance() - : startLocation_; + return startLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : startLocation_; } else { return startLocationBuilder_.getMessage(); } } /** - * - * *
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8145,13 +7495,11 @@ public Builder setStartLocation(com.google.type.LatLng value) {
       } else {
         startLocationBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8161,19 +7509,18 @@ public Builder setStartLocation(com.google.type.LatLng value) {
      *
      * .google.type.LatLng start_location = 3;
      */
-    public Builder setStartLocation(com.google.type.LatLng.Builder builderForValue) {
+    public Builder setStartLocation(
+        com.google.type.LatLng.Builder builderForValue) {
       if (startLocationBuilder_ == null) {
         startLocation_ = builderForValue.build();
       } else {
         startLocationBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8185,9 +7532,9 @@ public Builder setStartLocation(com.google.type.LatLng.Builder builderForValue)
      */
     public Builder mergeStartLocation(com.google.type.LatLng value) {
       if (startLocationBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && startLocation_ != null
-            && startLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          startLocation_ != null &&
+          startLocation_ != com.google.type.LatLng.getDefaultInstance()) {
           getStartLocationBuilder().mergeFrom(value);
         } else {
           startLocation_ = value;
@@ -8195,13 +7542,11 @@ public Builder mergeStartLocation(com.google.type.LatLng value) {
       } else {
         startLocationBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8212,7 +7557,7 @@ public Builder mergeStartLocation(com.google.type.LatLng value) {
      * .google.type.LatLng start_location = 3;
      */
     public Builder clearStartLocation() {
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000004);
       startLocation_ = null;
       if (startLocationBuilder_ != null) {
         startLocationBuilder_.dispose();
@@ -8222,8 +7567,6 @@ public Builder clearStartLocation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8234,13 +7577,11 @@ public Builder clearStartLocation() {
      * .google.type.LatLng start_location = 3;
      */
     public com.google.type.LatLng.Builder getStartLocationBuilder() {
-      bitField0_ |= 0x00000002;
+      bitField0_ |= 0x00000004;
       onChanged();
       return getStartLocationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8254,14 +7595,11 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
       if (startLocationBuilder_ != null) {
         return startLocationBuilder_.getMessageOrBuilder();
       } else {
-        return startLocation_ == null
-            ? com.google.type.LatLng.getDefaultInstance()
-            : startLocation_;
+        return startLocation_ == null ?
+            com.google.type.LatLng.getDefaultInstance() : startLocation_;
       }
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -8272,15 +7610,14 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
      * .google.type.LatLng start_location = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>
+        com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> 
         getStartLocationFieldBuilder() {
       if (startLocationBuilder_ == null) {
-        startLocationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.LatLng,
-                com.google.type.LatLng.Builder,
-                com.google.type.LatLngOrBuilder>(
-                getStartLocation(), getParentForChildren(), isClean());
+        startLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
+                getStartLocation(),
+                getParentForChildren(),
+                isClean());
         startLocation_ = null;
       }
       return startLocationBuilder_;
@@ -8288,13 +7625,8 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
 
     private com.google.cloud.optimization.v1.Waypoint startWaypoint_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Waypoint,
-            com.google.cloud.optimization.v1.Waypoint.Builder,
-            com.google.cloud.optimization.v1.WaypointOrBuilder>
-        startWaypointBuilder_;
+        com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> startWaypointBuilder_;
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8304,15 +7636,12 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
      * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; - * * @return Whether the startWaypoint field is set. */ public boolean hasStartWaypoint() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8322,21 +7651,16 @@ public boolean hasStartWaypoint() {
      * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; - * * @return The startWaypoint. */ public com.google.cloud.optimization.v1.Waypoint getStartWaypoint() { if (startWaypointBuilder_ == null) { - return startWaypoint_ == null - ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() - : startWaypoint_; + return startWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : startWaypoint_; } else { return startWaypointBuilder_.getMessage(); } } /** - * - * *
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8356,13 +7680,11 @@ public Builder setStartWaypoint(com.google.cloud.optimization.v1.Waypoint value)
       } else {
         startWaypointBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8380,13 +7702,11 @@ public Builder setStartWaypoint(
       } else {
         startWaypointBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8399,9 +7719,9 @@ public Builder setStartWaypoint(
      */
     public Builder mergeStartWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
       if (startWaypointBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && startWaypoint_ != null
-            && startWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          startWaypoint_ != null &&
+          startWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
           getStartWaypointBuilder().mergeFrom(value);
         } else {
           startWaypoint_ = value;
@@ -8409,13 +7729,11 @@ public Builder mergeStartWaypoint(com.google.cloud.optimization.v1.Waypoint valu
       } else {
         startWaypointBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8427,7 +7745,7 @@ public Builder mergeStartWaypoint(com.google.cloud.optimization.v1.Waypoint valu
      * .google.cloud.optimization.v1.Waypoint start_waypoint = 4;
      */
     public Builder clearStartWaypoint() {
-      bitField0_ = (bitField0_ & ~0x00000004);
+      bitField0_ = (bitField0_ & ~0x00000008);
       startWaypoint_ = null;
       if (startWaypointBuilder_ != null) {
         startWaypointBuilder_.dispose();
@@ -8437,8 +7755,6 @@ public Builder clearStartWaypoint() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8450,13 +7766,11 @@ public Builder clearStartWaypoint() {
      * .google.cloud.optimization.v1.Waypoint start_waypoint = 4;
      */
     public com.google.cloud.optimization.v1.Waypoint.Builder getStartWaypointBuilder() {
-      bitField0_ |= 0x00000004;
+      bitField0_ |= 0x00000008;
       onChanged();
       return getStartWaypointFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8471,14 +7785,11 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
       if (startWaypointBuilder_ != null) {
         return startWaypointBuilder_.getMessageOrBuilder();
       } else {
-        return startWaypoint_ == null
-            ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
-            : startWaypoint_;
+        return startWaypoint_ == null ?
+            com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : startWaypoint_;
       }
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -8490,17 +7801,14 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
      * .google.cloud.optimization.v1.Waypoint start_waypoint = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Waypoint,
-            com.google.cloud.optimization.v1.Waypoint.Builder,
-            com.google.cloud.optimization.v1.WaypointOrBuilder>
+        com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> 
         getStartWaypointFieldBuilder() {
       if (startWaypointBuilder_ == null) {
-        startWaypointBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.Waypoint,
-                com.google.cloud.optimization.v1.Waypoint.Builder,
-                com.google.cloud.optimization.v1.WaypointOrBuilder>(
-                getStartWaypoint(), getParentForChildren(), isClean());
+        startWaypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder>(
+                getStartWaypoint(),
+                getParentForChildren(),
+                isClean());
         startWaypoint_ = null;
       }
       return startWaypointBuilder_;
@@ -8508,11 +7816,8 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
 
     private com.google.type.LatLng endLocation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>
-        endLocationBuilder_;
+        com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> endLocationBuilder_;
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8522,15 +7827,12 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
      * 
* * .google.type.LatLng end_location = 5; - * * @return Whether the endLocation field is set. */ public boolean hasEndLocation() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8540,7 +7842,6 @@ public boolean hasEndLocation() {
      * 
* * .google.type.LatLng end_location = 5; - * * @return The endLocation. */ public com.google.type.LatLng getEndLocation() { @@ -8551,8 +7852,6 @@ public com.google.type.LatLng getEndLocation() { } } /** - * - * *
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8572,13 +7871,11 @@ public Builder setEndLocation(com.google.type.LatLng value) {
       } else {
         endLocationBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8589,19 +7886,18 @@ public Builder setEndLocation(com.google.type.LatLng value) {
      *
      * .google.type.LatLng end_location = 5;
      */
-    public Builder setEndLocation(com.google.type.LatLng.Builder builderForValue) {
+    public Builder setEndLocation(
+        com.google.type.LatLng.Builder builderForValue) {
       if (endLocationBuilder_ == null) {
         endLocation_ = builderForValue.build();
       } else {
         endLocationBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8614,9 +7910,9 @@ public Builder setEndLocation(com.google.type.LatLng.Builder builderForValue) {
      */
     public Builder mergeEndLocation(com.google.type.LatLng value) {
       if (endLocationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && endLocation_ != null
-            && endLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          endLocation_ != null &&
+          endLocation_ != com.google.type.LatLng.getDefaultInstance()) {
           getEndLocationBuilder().mergeFrom(value);
         } else {
           endLocation_ = value;
@@ -8624,13 +7920,11 @@ public Builder mergeEndLocation(com.google.type.LatLng value) {
       } else {
         endLocationBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8642,7 +7936,7 @@ public Builder mergeEndLocation(com.google.type.LatLng value) {
      * .google.type.LatLng end_location = 5;
      */
     public Builder clearEndLocation() {
-      bitField0_ = (bitField0_ & ~0x00000008);
+      bitField0_ = (bitField0_ & ~0x00000010);
       endLocation_ = null;
       if (endLocationBuilder_ != null) {
         endLocationBuilder_.dispose();
@@ -8652,8 +7946,6 @@ public Builder clearEndLocation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8665,13 +7957,11 @@ public Builder clearEndLocation() {
      * .google.type.LatLng end_location = 5;
      */
     public com.google.type.LatLng.Builder getEndLocationBuilder() {
-      bitField0_ |= 0x00000008;
+      bitField0_ |= 0x00000010;
       onChanged();
       return getEndLocationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8686,12 +7976,11 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
       if (endLocationBuilder_ != null) {
         return endLocationBuilder_.getMessageOrBuilder();
       } else {
-        return endLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : endLocation_;
+        return endLocation_ == null ?
+            com.google.type.LatLng.getDefaultInstance() : endLocation_;
       }
     }
     /**
-     *
-     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -8703,15 +7992,14 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
      * .google.type.LatLng end_location = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>
+        com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> 
         getEndLocationFieldBuilder() {
       if (endLocationBuilder_ == null) {
-        endLocationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.type.LatLng,
-                com.google.type.LatLng.Builder,
-                com.google.type.LatLngOrBuilder>(
-                getEndLocation(), getParentForChildren(), isClean());
+        endLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
+                getEndLocation(),
+                getParentForChildren(),
+                isClean());
         endLocation_ = null;
       }
       return endLocationBuilder_;
@@ -8719,13 +8007,8 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
 
     private com.google.cloud.optimization.v1.Waypoint endWaypoint_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Waypoint,
-            com.google.cloud.optimization.v1.Waypoint.Builder,
-            com.google.cloud.optimization.v1.WaypointOrBuilder>
-        endWaypointBuilder_;
+        com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> endWaypointBuilder_;
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8736,15 +8019,12 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
      * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; - * * @return Whether the endWaypoint field is set. */ public boolean hasEndWaypoint() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8755,21 +8035,16 @@ public boolean hasEndWaypoint() {
      * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; - * * @return The endWaypoint. */ public com.google.cloud.optimization.v1.Waypoint getEndWaypoint() { if (endWaypointBuilder_ == null) { - return endWaypoint_ == null - ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() - : endWaypoint_; + return endWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : endWaypoint_; } else { return endWaypointBuilder_.getMessage(); } } /** - * - * *
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8790,13 +8065,11 @@ public Builder setEndWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
       } else {
         endWaypointBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8815,13 +8088,11 @@ public Builder setEndWaypoint(
       } else {
         endWaypointBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8835,9 +8106,9 @@ public Builder setEndWaypoint(
      */
     public Builder mergeEndWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
       if (endWaypointBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && endWaypoint_ != null
-            && endWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0) &&
+          endWaypoint_ != null &&
+          endWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
           getEndWaypointBuilder().mergeFrom(value);
         } else {
           endWaypoint_ = value;
@@ -8845,13 +8116,11 @@ public Builder mergeEndWaypoint(com.google.cloud.optimization.v1.Waypoint value)
       } else {
         endWaypointBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8864,7 +8133,7 @@ public Builder mergeEndWaypoint(com.google.cloud.optimization.v1.Waypoint value)
      * .google.cloud.optimization.v1.Waypoint end_waypoint = 6;
      */
     public Builder clearEndWaypoint() {
-      bitField0_ = (bitField0_ & ~0x00000010);
+      bitField0_ = (bitField0_ & ~0x00000020);
       endWaypoint_ = null;
       if (endWaypointBuilder_ != null) {
         endWaypointBuilder_.dispose();
@@ -8874,8 +8143,6 @@ public Builder clearEndWaypoint() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8888,13 +8155,11 @@ public Builder clearEndWaypoint() {
      * .google.cloud.optimization.v1.Waypoint end_waypoint = 6;
      */
     public com.google.cloud.optimization.v1.Waypoint.Builder getEndWaypointBuilder() {
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000020;
       onChanged();
       return getEndWaypointFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8910,14 +8175,11 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
       if (endWaypointBuilder_ != null) {
         return endWaypointBuilder_.getMessageOrBuilder();
       } else {
-        return endWaypoint_ == null
-            ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
-            : endWaypoint_;
+        return endWaypoint_ == null ?
+            com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : endWaypoint_;
       }
     }
     /**
-     *
-     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8930,17 +8192,14 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
      * .google.cloud.optimization.v1.Waypoint end_waypoint = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Waypoint,
-            com.google.cloud.optimization.v1.Waypoint.Builder,
-            com.google.cloud.optimization.v1.WaypointOrBuilder>
+        com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> 
         getEndWaypointFieldBuilder() {
       if (endWaypointBuilder_ == null) {
-        endWaypointBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.Waypoint,
-                com.google.cloud.optimization.v1.Waypoint.Builder,
-                com.google.cloud.optimization.v1.WaypointOrBuilder>(
-                getEndWaypoint(), getParentForChildren(), isClean());
+        endWaypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder>(
+                getEndWaypoint(),
+                getParentForChildren(),
+                isClean());
         endWaypoint_ = null;
       }
       return endWaypointBuilder_;
@@ -8948,16 +8207,13 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
 
     private com.google.protobuf.LazyStringArrayList startTags_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureStartTagsIsMutable() {
       if (!startTags_.isModifiable()) {
         startTags_ = new com.google.protobuf.LazyStringArrayList(startTags_);
       }
-      bitField0_ |= 0x00000020;
+      bitField0_ |= 0x00000040;
     }
     /**
-     *
-     *
      * 
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8965,16 +8221,14 @@ private void ensureStartTagsIsMutable() {
      * 
* * repeated string start_tags = 7; - * * @return A list containing the startTags. */ - public com.google.protobuf.ProtocolStringList getStartTagsList() { + public com.google.protobuf.ProtocolStringList + getStartTagsList() { startTags_.makeImmutable(); return startTags_; } /** - * - * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8982,15 +8236,12 @@ public com.google.protobuf.ProtocolStringList getStartTagsList() {
      * 
* * repeated string start_tags = 7; - * * @return The count of startTags. */ public int getStartTagsCount() { return startTags_.size(); } /** - * - * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8998,7 +8249,6 @@ public int getStartTagsCount() {
      * 
* * repeated string start_tags = 7; - * * @param index The index of the element to return. * @return The startTags at the given index. */ @@ -9006,8 +8256,6 @@ public java.lang.String getStartTags(int index) { return startTags_.get(index); } /** - * - * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -9015,16 +8263,14 @@ public java.lang.String getStartTags(int index) {
      * 
* * repeated string start_tags = 7; - * * @param index The index of the value to return. * @return The bytes of the startTags at the given index. */ - public com.google.protobuf.ByteString getStartTagsBytes(int index) { + public com.google.protobuf.ByteString + getStartTagsBytes(int index) { return startTags_.getByteString(index); } /** - * - * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -9032,24 +8278,20 @@ public com.google.protobuf.ByteString getStartTagsBytes(int index) {
      * 
* * repeated string start_tags = 7; - * * @param index The index to set the value at. * @param value The startTags to set. * @return This builder for chaining. */ - public Builder setStartTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStartTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStartTagsIsMutable(); startTags_.set(index, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -9057,23 +8299,19 @@ public Builder setStartTags(int index, java.lang.String value) {
      * 
* * repeated string start_tags = 7; - * * @param value The startTags to add. * @return This builder for chaining. */ - public Builder addStartTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStartTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStartTagsIsMutable(); startTags_.add(value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -9081,20 +8319,19 @@ public Builder addStartTags(java.lang.String value) {
      * 
* * repeated string start_tags = 7; - * * @param values The startTags to add. * @return This builder for chaining. */ - public Builder addAllStartTags(java.lang.Iterable values) { + public Builder addAllStartTags( + java.lang.Iterable values) { ensureStartTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startTags_); - bitField0_ |= 0x00000020; + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, startTags_); + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -9102,19 +8339,16 @@ public Builder addAllStartTags(java.lang.Iterable values) {
      * 
* * repeated string start_tags = 7; - * * @return This builder for chaining. */ public Builder clearStartTags() { - startTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; + startTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } /** - * - * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -9122,34 +8356,29 @@ public Builder clearStartTags() {
      * 
* * repeated string start_tags = 7; - * * @param value The bytes of the startTags to add. * @return This builder for chaining. */ - public Builder addStartTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStartTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStartTagsIsMutable(); startTags_.add(value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList endTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureEndTagsIsMutable() { if (!endTags_.isModifiable()) { endTags_ = new com.google.protobuf.LazyStringArrayList(endTags_); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9157,16 +8386,14 @@ private void ensureEndTagsIsMutable() {
      * 
* * repeated string end_tags = 8; - * * @return A list containing the endTags. */ - public com.google.protobuf.ProtocolStringList getEndTagsList() { + public com.google.protobuf.ProtocolStringList + getEndTagsList() { endTags_.makeImmutable(); return endTags_; } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9174,15 +8401,12 @@ public com.google.protobuf.ProtocolStringList getEndTagsList() {
      * 
* * repeated string end_tags = 8; - * * @return The count of endTags. */ public int getEndTagsCount() { return endTags_.size(); } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9190,7 +8414,6 @@ public int getEndTagsCount() {
      * 
* * repeated string end_tags = 8; - * * @param index The index of the element to return. * @return The endTags at the given index. */ @@ -9198,8 +8421,6 @@ public java.lang.String getEndTags(int index) { return endTags_.get(index); } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9207,16 +8428,14 @@ public java.lang.String getEndTags(int index) {
      * 
* * repeated string end_tags = 8; - * * @param index The index of the value to return. * @return The bytes of the endTags at the given index. */ - public com.google.protobuf.ByteString getEndTagsBytes(int index) { + public com.google.protobuf.ByteString + getEndTagsBytes(int index) { return endTags_.getByteString(index); } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9224,24 +8443,20 @@ public com.google.protobuf.ByteString getEndTagsBytes(int index) {
      * 
* * repeated string end_tags = 8; - * * @param index The index to set the value at. * @param value The endTags to set. * @return This builder for chaining. */ - public Builder setEndTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEndTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEndTagsIsMutable(); endTags_.set(index, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9249,23 +8464,19 @@ public Builder setEndTags(int index, java.lang.String value) {
      * 
* * repeated string end_tags = 8; - * * @param value The endTags to add. * @return This builder for chaining. */ - public Builder addEndTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEndTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEndTagsIsMutable(); endTags_.add(value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9273,20 +8484,19 @@ public Builder addEndTags(java.lang.String value) {
      * 
* * repeated string end_tags = 8; - * * @param values The endTags to add. * @return This builder for chaining. */ - public Builder addAllEndTags(java.lang.Iterable values) { + public Builder addAllEndTags( + java.lang.Iterable values) { ensureEndTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endTags_); - bitField0_ |= 0x00000040; + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, endTags_); + bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9294,19 +8504,16 @@ public Builder addAllEndTags(java.lang.Iterable values) {
      * 
* * repeated string end_tags = 8; - * * @return This builder for chaining. */ public Builder clearEndTags() { - endTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; + endTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; onChanged(); return this; } /** - * - * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -9314,42 +8521,33 @@ public Builder clearEndTags() {
      * 
* * repeated string end_tags = 8; - * * @param value The bytes of the endTags to add. * @return This builder for chaining. */ - public Builder addEndTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEndTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEndTagsIsMutable(); endTags_.add(value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } private java.util.List startTimeWindows_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStartTimeWindowsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - startTimeWindows_ = - new java.util.ArrayList(startTimeWindows_); - bitField0_ |= 0x00000080; - } + if (!((bitField0_ & 0x00000100) != 0)) { + startTimeWindows_ = new java.util.ArrayList(startTimeWindows_); + bitField0_ |= 0x00000100; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TimeWindow, - com.google.cloud.optimization.v1.TimeWindow.Builder, - com.google.cloud.optimization.v1.TimeWindowOrBuilder> - startTimeWindowsBuilder_; + com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> startTimeWindowsBuilder_; /** - * - * *
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9375,8 +8573,6 @@ public java.util.List getStartTimeW
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9402,8 +8598,6 @@ public int getStartTimeWindowsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9429,8 +8623,6 @@ public com.google.cloud.optimization.v1.TimeWindow getStartTimeWindows(int index
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9463,8 +8655,6 @@ public Builder setStartTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9494,8 +8684,6 @@ public Builder setStartTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9527,8 +8715,6 @@ public Builder addStartTimeWindows(com.google.cloud.optimization.v1.TimeWindow v
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9561,8 +8747,6 @@ public Builder addStartTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9592,8 +8776,6 @@ public Builder addStartTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9623,8 +8805,6 @@ public Builder addStartTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9646,7 +8826,8 @@ public Builder addAllStartTimeWindows(
         java.lang.Iterable values) {
       if (startTimeWindowsBuilder_ == null) {
         ensureStartTimeWindowsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startTimeWindows_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, startTimeWindows_);
         onChanged();
       } else {
         startTimeWindowsBuilder_.addAllMessages(values);
@@ -9654,8 +8835,6 @@ public Builder addAllStartTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9676,7 +8855,7 @@ public Builder addAllStartTimeWindows(
     public Builder clearStartTimeWindows() {
       if (startTimeWindowsBuilder_ == null) {
         startTimeWindows_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000080);
+        bitField0_ = (bitField0_ & ~0x00000100);
         onChanged();
       } else {
         startTimeWindowsBuilder_.clear();
@@ -9684,8 +8863,6 @@ public Builder clearStartTimeWindows() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9714,8 +8891,6 @@ public Builder removeStartTimeWindows(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9738,8 +8913,6 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder getStartTimeWindowsBu
       return getStartTimeWindowsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9760,14 +8933,11 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder getStartTimeWindowsBu
     public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilder(
         int index) {
       if (startTimeWindowsBuilder_ == null) {
-        return startTimeWindows_.get(index);
-      } else {
+        return startTimeWindows_.get(index);  } else {
         return startTimeWindowsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9785,8 +8955,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsO
      *
      * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
      */
-    public java.util.List
-        getStartTimeWindowsOrBuilderList() {
+    public java.util.List 
+         getStartTimeWindowsOrBuilderList() {
       if (startTimeWindowsBuilder_ != null) {
         return startTimeWindowsBuilder_.getMessageOrBuilderList();
       } else {
@@ -9794,8 +8964,6 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsO
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9814,12 +8982,10 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsO
      * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
      */
     public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBuilder() {
-      return getStartTimeWindowsFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+      return getStartTimeWindowsFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9839,12 +9005,10 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBu
      */
     public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBuilder(
         int index) {
-      return getStartTimeWindowsFieldBuilder()
-          .addBuilder(index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+      return getStartTimeWindowsFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9862,24 +9026,18 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBu
      *
      * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
      */
-    public java.util.List
-        getStartTimeWindowsBuilderList() {
+    public java.util.List 
+         getStartTimeWindowsBuilderList() {
       return getStartTimeWindowsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.TimeWindow,
-            com.google.cloud.optimization.v1.TimeWindow.Builder,
-            com.google.cloud.optimization.v1.TimeWindowOrBuilder>
+        com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> 
         getStartTimeWindowsFieldBuilder() {
       if (startTimeWindowsBuilder_ == null) {
-        startTimeWindowsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.TimeWindow,
-                com.google.cloud.optimization.v1.TimeWindow.Builder,
-                com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
+        startTimeWindowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
                 startTimeWindows_,
-                ((bitField0_ & 0x00000080) != 0),
+                ((bitField0_ & 0x00000100) != 0),
                 getParentForChildren(),
                 isClean());
         startTimeWindows_ = null;
@@ -9888,25 +9046,18 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBu
     }
 
     private java.util.List endTimeWindows_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureEndTimeWindowsIsMutable() {
-      if (!((bitField0_ & 0x00000100) != 0)) {
-        endTimeWindows_ =
-            new java.util.ArrayList(endTimeWindows_);
-        bitField0_ |= 0x00000100;
-      }
+      if (!((bitField0_ & 0x00000200) != 0)) {
+        endTimeWindows_ = new java.util.ArrayList(endTimeWindows_);
+        bitField0_ |= 0x00000200;
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.TimeWindow,
-            com.google.cloud.optimization.v1.TimeWindow.Builder,
-            com.google.cloud.optimization.v1.TimeWindowOrBuilder>
-        endTimeWindowsBuilder_;
+        com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> endTimeWindowsBuilder_;
 
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9932,8 +9083,6 @@ public java.util.List getEndTimeWin
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9959,8 +9108,6 @@ public int getEndTimeWindowsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9986,8 +9133,6 @@ public com.google.cloud.optimization.v1.TimeWindow getEndTimeWindows(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10005,7 +9150,8 @@ public com.google.cloud.optimization.v1.TimeWindow getEndTimeWindows(int index)
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public Builder setEndTimeWindows(int index, com.google.cloud.optimization.v1.TimeWindow value) {
+    public Builder setEndTimeWindows(
+        int index, com.google.cloud.optimization.v1.TimeWindow value) {
       if (endTimeWindowsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -10019,8 +9165,6 @@ public Builder setEndTimeWindows(int index, com.google.cloud.optimization.v1.Tim
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10050,8 +9194,6 @@ public Builder setEndTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10083,8 +9225,6 @@ public Builder addEndTimeWindows(com.google.cloud.optimization.v1.TimeWindow val
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10102,7 +9242,8 @@ public Builder addEndTimeWindows(com.google.cloud.optimization.v1.TimeWindow val
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public Builder addEndTimeWindows(int index, com.google.cloud.optimization.v1.TimeWindow value) {
+    public Builder addEndTimeWindows(
+        int index, com.google.cloud.optimization.v1.TimeWindow value) {
       if (endTimeWindowsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -10116,8 +9257,6 @@ public Builder addEndTimeWindows(int index, com.google.cloud.optimization.v1.Tim
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10147,8 +9286,6 @@ public Builder addEndTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10178,8 +9315,6 @@ public Builder addEndTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10201,7 +9336,8 @@ public Builder addAllEndTimeWindows(
         java.lang.Iterable values) {
       if (endTimeWindowsBuilder_ == null) {
         ensureEndTimeWindowsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endTimeWindows_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, endTimeWindows_);
         onChanged();
       } else {
         endTimeWindowsBuilder_.addAllMessages(values);
@@ -10209,8 +9345,6 @@ public Builder addAllEndTimeWindows(
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10231,7 +9365,7 @@ public Builder addAllEndTimeWindows(
     public Builder clearEndTimeWindows() {
       if (endTimeWindowsBuilder_ == null) {
         endTimeWindows_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000100);
+        bitField0_ = (bitField0_ & ~0x00000200);
         onChanged();
       } else {
         endTimeWindowsBuilder_.clear();
@@ -10239,8 +9373,6 @@ public Builder clearEndTimeWindows() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10269,8 +9401,6 @@ public Builder removeEndTimeWindows(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10288,12 +9418,11 @@ public Builder removeEndTimeWindows(int index) {
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public com.google.cloud.optimization.v1.TimeWindow.Builder getEndTimeWindowsBuilder(int index) {
+    public com.google.cloud.optimization.v1.TimeWindow.Builder getEndTimeWindowsBuilder(
+        int index) {
       return getEndTimeWindowsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10314,14 +9443,11 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder getEndTimeWindowsBuil
     public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(
         int index) {
       if (endTimeWindowsBuilder_ == null) {
-        return endTimeWindows_.get(index);
-      } else {
+        return endTimeWindows_.get(index);  } else {
         return endTimeWindowsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10339,8 +9465,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public java.util.List
-        getEndTimeWindowsOrBuilderList() {
+    public java.util.List 
+         getEndTimeWindowsOrBuilderList() {
       if (endTimeWindowsBuilder_ != null) {
         return endTimeWindowsBuilder_.getMessageOrBuilderList();
       } else {
@@ -10348,8 +9474,6 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10368,12 +9492,10 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
     public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuilder() {
-      return getEndTimeWindowsFieldBuilder()
-          .addBuilder(com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+      return getEndTimeWindowsFieldBuilder().addBuilder(
+          com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10391,13 +9513,12 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuil
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuilder(int index) {
-      return getEndTimeWindowsFieldBuilder()
-          .addBuilder(index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+    public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuilder(
+        int index) {
+      return getEndTimeWindowsFieldBuilder().addBuilder(
+          index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -10415,24 +9536,18 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuil
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public java.util.List
-        getEndTimeWindowsBuilderList() {
+    public java.util.List 
+         getEndTimeWindowsBuilderList() {
       return getEndTimeWindowsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.TimeWindow,
-            com.google.cloud.optimization.v1.TimeWindow.Builder,
-            com.google.cloud.optimization.v1.TimeWindowOrBuilder>
+        com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> 
         getEndTimeWindowsFieldBuilder() {
       if (endTimeWindowsBuilder_ == null) {
-        endTimeWindowsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.optimization.v1.TimeWindow,
-                com.google.cloud.optimization.v1.TimeWindow.Builder,
-                com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
+        endTimeWindowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
                 endTimeWindows_,
-                ((bitField0_ & 0x00000100) != 0),
+                ((bitField0_ & 0x00000200) != 0),
                 getParentForChildren(),
                 isClean());
         endTimeWindows_ = null;
@@ -10440,10 +9555,8 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuil
       return endTimeWindowsBuilder_;
     }
 
-    private double travelDurationMultiple_;
+    private double travelDurationMultiple_ ;
     /**
-     *
-     *
      * 
      * Specifies a multiplicative factor that can be used to increase or decrease
      * travel times of this vehicle. For example, setting this to 2.0 means
@@ -10461,16 +9574,13 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuil
      * 
* * optional double travel_duration_multiple = 11; - * * @return Whether the travelDurationMultiple field is set. */ @java.lang.Override public boolean hasTravelDurationMultiple() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Specifies a multiplicative factor that can be used to increase or decrease
      * travel times of this vehicle. For example, setting this to 2.0 means
@@ -10488,7 +9598,6 @@ public boolean hasTravelDurationMultiple() {
      * 
* * optional double travel_duration_multiple = 11; - * * @return The travelDurationMultiple. */ @java.lang.Override @@ -10496,8 +9605,6 @@ public double getTravelDurationMultiple() { return travelDurationMultiple_; } /** - * - * *
      * Specifies a multiplicative factor that can be used to increase or decrease
      * travel times of this vehicle. For example, setting this to 2.0 means
@@ -10515,20 +9622,17 @@ public double getTravelDurationMultiple() {
      * 
* * optional double travel_duration_multiple = 11; - * * @param value The travelDurationMultiple to set. * @return This builder for chaining. */ public Builder setTravelDurationMultiple(double value) { travelDurationMultiple_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Specifies a multiplicative factor that can be used to increase or decrease
      * travel times of this vehicle. For example, setting this to 2.0 means
@@ -10546,11 +9650,10 @@ public Builder setTravelDurationMultiple(double value) {
      * 
* * optional double travel_duration_multiple = 11; - * * @return This builder for chaining. */ public Builder clearTravelDurationMultiple() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); travelDurationMultiple_ = 0D; onChanged(); return this; @@ -10558,103 +9661,80 @@ public Builder clearTravelDurationMultiple() { private int unloadingPolicy_ = 0; /** - * - * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @return The enum numeric value on the wire for unloadingPolicy. */ - @java.lang.Override - public int getUnloadingPolicyValue() { + @java.lang.Override public int getUnloadingPolicyValue() { return unloadingPolicy_; } /** - * - * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @param value The enum numeric value on the wire for unloadingPolicy to set. * @return This builder for chaining. */ public Builder setUnloadingPolicyValue(int value) { unloadingPolicy_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @return The unloadingPolicy. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy getUnloadingPolicy() { - com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy result = - com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.forNumber(unloadingPolicy_); - return result == null - ? com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNRECOGNIZED - : result; + com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy result = com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.forNumber(unloadingPolicy_); + return result == null ? com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNRECOGNIZED : result; } /** - * - * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @param value The unloadingPolicy to set. * @return This builder for chaining. */ - public Builder setUnloadingPolicy( - com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy value) { + public Builder setUnloadingPolicy(com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; unloadingPolicy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @return This builder for chaining. */ public Builder clearUnloadingPolicy() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); unloadingPolicy_ = 0; onChanged(); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> - loadLimits_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> loadLimits_; + private com.google.protobuf.MapField internalGetLoadLimits() { if (loadLimits_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -10662,28 +9742,23 @@ public Builder clearUnloadingPolicy() { } return loadLimits_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> + private com.google.protobuf.MapField internalGetMutableLoadLimits() { if (loadLimits_ == null) { - loadLimits_ = - com.google.protobuf.MapField.newMapField(LoadLimitsDefaultEntryHolder.defaultEntry); + loadLimits_ = com.google.protobuf.MapField.newMapField( + LoadLimitsDefaultEntryHolder.defaultEntry); } if (!loadLimits_.isMutable()) { loadLimits_ = loadLimits_.copy(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return loadLimits_; } - public int getLoadLimitsCount() { return internalGetLoadLimits().getMap().size(); } /** - * - * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -10693,26 +9768,23 @@ public int getLoadLimitsCount() {
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ @java.lang.Override - public boolean containsLoadLimits(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLoadLimits( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLoadLimits().getMap().containsKey(key); } - /** Use {@link #getLoadLimitsMap()} instead. */ + /** + * Use {@link #getLoadLimitsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getLoadLimits() { + public java.util.Map getLoadLimits() { return getLoadLimitsMap(); } /** - * - * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -10722,17 +9794,13 @@ public boolean containsLoadLimits(java.lang.String key) {
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ @java.lang.Override - public java.util.Map - getLoadLimitsMap() { + public java.util.Map getLoadLimitsMap() { return internalGetLoadLimits().getMap(); } /** - * - * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -10742,24 +9810,20 @@ public boolean containsLoadLimits(java.lang.String key) {
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ @java.lang.Override - public /* nullable */ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault( + public /* nullable */ +com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadLimits().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -10769,15 +9833,12 @@ public boolean containsLoadLimits(java.lang.String key) {
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLoadLimits().getMap(); if (!map.containsKey(key)) { @@ -10785,15 +9846,13 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( } return map.get(key); } - public Builder clearLoadLimits() { - bitField0_ = (bitField0_ & ~0x00000800); - internalGetMutableLoadLimits().getMutableMap().clear(); + bitField0_ = (bitField0_ & ~0x00001000); + internalGetMutableLoadLimits().getMutableMap() + .clear(); return this; } /** - * - * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -10803,26 +9862,25 @@ public Builder clearLoadLimits() {
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ - public Builder removeLoadLimits(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLoadLimits().getMutableMap().remove(key); + public Builder removeLoadLimits( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLoadLimits().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableLoadLimits() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; return internalGetMutableLoadLimits().getMutableMap(); } /** - * - * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -10832,24 +9890,19 @@ public Builder removeLoadLimits(java.lang.String key) {
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ public Builder putLoadLimits( - java.lang.String key, com.google.cloud.optimization.v1.Vehicle.LoadLimit value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLoadLimits().getMutableMap().put(key, value); - bitField0_ |= 0x00000800; + java.lang.String key, + com.google.cloud.optimization.v1.Vehicle.LoadLimit value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLoadLimits().getMutableMap() + .put(key, value); + bitField0_ |= 0x00001000; return this; } /** - * - * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -10859,21 +9912,18 @@ public Builder putLoadLimits(
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ public Builder putAllLoadLimits( - java.util.Map - values) { - internalGetMutableLoadLimits().getMutableMap().putAll(values); - bitField0_ |= 0x00000800; + java.util.Map values) { + internalGetMutableLoadLimits().getMutableMap() + .putAll(values); + bitField0_ |= 0x00001000; return this; } - private double costPerHour_; + private double costPerHour_ ; /** - * - * *
      * Vehicle costs: all costs add up and must be in the same unit as
      * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -10885,7 +9935,6 @@ public Builder putAllLoadLimits(
      * 
* * double cost_per_hour = 16; - * * @return The costPerHour. */ @java.lang.Override @@ -10893,8 +9942,6 @@ public double getCostPerHour() { return costPerHour_; } /** - * - * *
      * Vehicle costs: all costs add up and must be in the same unit as
      * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -10906,20 +9953,17 @@ public double getCostPerHour() {
      * 
* * double cost_per_hour = 16; - * * @param value The costPerHour to set. * @return This builder for chaining. */ public Builder setCostPerHour(double value) { costPerHour_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Vehicle costs: all costs add up and must be in the same unit as
      * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -10931,20 +9975,17 @@ public Builder setCostPerHour(double value) {
      * 
* * double cost_per_hour = 16; - * * @return This builder for chaining. */ public Builder clearCostPerHour() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); costPerHour_ = 0D; onChanged(); return this; } - private double costPerTraveledHour_; + private double costPerTraveledHour_ ; /** - * - * *
      * Cost per traveled hour of the vehicle route. This cost is applied only to
      * travel time taken by the route (i.e., that reported in
@@ -10953,7 +9994,6 @@ public Builder clearCostPerHour() {
      * 
* * double cost_per_traveled_hour = 17; - * * @return The costPerTraveledHour. */ @java.lang.Override @@ -10961,8 +10001,6 @@ public double getCostPerTraveledHour() { return costPerTraveledHour_; } /** - * - * *
      * Cost per traveled hour of the vehicle route. This cost is applied only to
      * travel time taken by the route (i.e., that reported in
@@ -10971,20 +10009,17 @@ public double getCostPerTraveledHour() {
      * 
* * double cost_per_traveled_hour = 17; - * * @param value The costPerTraveledHour to set. * @return This builder for chaining. */ public Builder setCostPerTraveledHour(double value) { costPerTraveledHour_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } /** - * - * *
      * Cost per traveled hour of the vehicle route. This cost is applied only to
      * travel time taken by the route (i.e., that reported in
@@ -10993,20 +10028,17 @@ public Builder setCostPerTraveledHour(double value) {
      * 
* * double cost_per_traveled_hour = 17; - * * @return This builder for chaining. */ public Builder clearCostPerTraveledHour() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); costPerTraveledHour_ = 0D; onChanged(); return this; } - private double costPerKilometer_; + private double costPerKilometer_ ; /** - * - * *
      * Cost per kilometer of the vehicle route. This cost is applied to the
      * distance reported in the
@@ -11016,7 +10048,6 @@ public Builder clearCostPerTraveledHour() {
      * 
* * double cost_per_kilometer = 18; - * * @return The costPerKilometer. */ @java.lang.Override @@ -11024,8 +10055,6 @@ public double getCostPerKilometer() { return costPerKilometer_; } /** - * - * *
      * Cost per kilometer of the vehicle route. This cost is applied to the
      * distance reported in the
@@ -11035,20 +10064,17 @@ public double getCostPerKilometer() {
      * 
* * double cost_per_kilometer = 18; - * * @param value The costPerKilometer to set. * @return This builder for chaining. */ public Builder setCostPerKilometer(double value) { costPerKilometer_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } /** - * - * *
      * Cost per kilometer of the vehicle route. This cost is applied to the
      * distance reported in the
@@ -11058,26 +10084,22 @@ public Builder setCostPerKilometer(double value) {
      * 
* * double cost_per_kilometer = 18; - * * @return This builder for chaining. */ public Builder clearCostPerKilometer() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); costPerKilometer_ = 0D; onChanged(); return this; } - private double fixedCost_; + private double fixedCost_ ; /** - * - * *
      * Fixed cost applied if this vehicle is used to handle a shipment.
      * 
* * double fixed_cost = 19; - * * @return The fixedCost. */ @java.lang.Override @@ -11085,46 +10107,38 @@ public double getFixedCost() { return fixedCost_; } /** - * - * *
      * Fixed cost applied if this vehicle is used to handle a shipment.
      * 
* * double fixed_cost = 19; - * * @param value The fixedCost to set. * @return This builder for chaining. */ public Builder setFixedCost(double value) { fixedCost_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } /** - * - * *
      * Fixed cost applied if this vehicle is used to handle a shipment.
      * 
* * double fixed_cost = 19; - * * @return This builder for chaining. */ public Builder clearFixedCost() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); fixedCost_ = 0D; onChanged(); return this; } - private boolean usedIfRouteIsEmpty_; + private boolean usedIfRouteIsEmpty_ ; /** - * - * *
      * This field only applies to vehicles when their route does not serve any
      * shipments. It indicates if the vehicle should be considered as used or not
@@ -11141,7 +10155,6 @@ public Builder clearFixedCost() {
      * 
* * bool used_if_route_is_empty = 20; - * * @return The usedIfRouteIsEmpty. */ @java.lang.Override @@ -11149,8 +10162,6 @@ public boolean getUsedIfRouteIsEmpty() { return usedIfRouteIsEmpty_; } /** - * - * *
      * This field only applies to vehicles when their route does not serve any
      * shipments. It indicates if the vehicle should be considered as used or not
@@ -11167,20 +10178,17 @@ public boolean getUsedIfRouteIsEmpty() {
      * 
* * bool used_if_route_is_empty = 20; - * * @param value The usedIfRouteIsEmpty to set. * @return This builder for chaining. */ public Builder setUsedIfRouteIsEmpty(boolean value) { usedIfRouteIsEmpty_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } /** - * - * *
      * This field only applies to vehicles when their route does not serve any
      * shipments. It indicates if the vehicle should be considered as used or not
@@ -11197,11 +10205,10 @@ public Builder setUsedIfRouteIsEmpty(boolean value) {
      * 
* * bool used_if_route_is_empty = 20; - * * @return This builder for chaining. */ public Builder clearUsedIfRouteIsEmpty() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); usedIfRouteIsEmpty_ = false; onChanged(); return this; @@ -11209,13 +10216,8 @@ public Builder clearUsedIfRouteIsEmpty() { private com.google.cloud.optimization.v1.Vehicle.DurationLimit routeDurationLimit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.DurationLimit, - com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, - com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> - routeDurationLimitBuilder_; + com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> routeDurationLimitBuilder_; /** - * - * *
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11223,15 +10225,12 @@ public Builder clearUsedIfRouteIsEmpty() {
      * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; - * * @return Whether the routeDurationLimit field is set. */ public boolean hasRouteDurationLimit() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** - * - * *
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11239,21 +10238,16 @@ public boolean hasRouteDurationLimit() {
      * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; - * * @return The routeDurationLimit. */ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLimit() { if (routeDurationLimitBuilder_ == null) { - return routeDurationLimit_ == null - ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() - : routeDurationLimit_; + return routeDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : routeDurationLimit_; } else { return routeDurationLimitBuilder_.getMessage(); } } /** - * - * *
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11262,8 +10256,7 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLi
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
-    public Builder setRouteDurationLimit(
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
+    public Builder setRouteDurationLimit(com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
       if (routeDurationLimitBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -11272,13 +10265,11 @@ public Builder setRouteDurationLimit(
       } else {
         routeDurationLimitBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00020000;
+      bitField0_ |= 0x00040000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11294,13 +10285,11 @@ public Builder setRouteDurationLimit(
       } else {
         routeDurationLimitBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00020000;
+      bitField0_ |= 0x00040000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11309,13 +10298,11 @@ public Builder setRouteDurationLimit(
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
-    public Builder mergeRouteDurationLimit(
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
+    public Builder mergeRouteDurationLimit(com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
       if (routeDurationLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00020000) != 0)
-            && routeDurationLimit_ != null
-            && routeDurationLimit_
-                != com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) {
+        if (((bitField0_ & 0x00040000) != 0) &&
+          routeDurationLimit_ != null &&
+          routeDurationLimit_ != com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) {
           getRouteDurationLimitBuilder().mergeFrom(value);
         } else {
           routeDurationLimit_ = value;
@@ -11323,13 +10310,11 @@ public Builder mergeRouteDurationLimit(
       } else {
         routeDurationLimitBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00020000;
+      bitField0_ |= 0x00040000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11339,7 +10324,7 @@ public Builder mergeRouteDurationLimit(
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
     public Builder clearRouteDurationLimit() {
-      bitField0_ = (bitField0_ & ~0x00020000);
+      bitField0_ = (bitField0_ & ~0x00040000);
       routeDurationLimit_ = null;
       if (routeDurationLimitBuilder_ != null) {
         routeDurationLimitBuilder_.dispose();
@@ -11349,8 +10334,6 @@ public Builder clearRouteDurationLimit() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11359,15 +10342,12 @@ public Builder clearRouteDurationLimit() {
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
-    public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder
-        getRouteDurationLimitBuilder() {
-      bitField0_ |= 0x00020000;
+    public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder getRouteDurationLimitBuilder() {
+      bitField0_ |= 0x00040000;
       onChanged();
       return getRouteDurationLimitFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11376,19 +10356,15 @@ public Builder clearRouteDurationLimit() {
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
-    public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder
-        getRouteDurationLimitOrBuilder() {
+    public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteDurationLimitOrBuilder() {
       if (routeDurationLimitBuilder_ != null) {
         return routeDurationLimitBuilder_.getMessageOrBuilder();
       } else {
-        return routeDurationLimit_ == null
-            ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()
-            : routeDurationLimit_;
+        return routeDurationLimit_ == null ?
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : routeDurationLimit_;
       }
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -11398,17 +10374,14 @@ public Builder clearRouteDurationLimit() {
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit,
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
-            com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> 
         getRouteDurationLimitFieldBuilder() {
       if (routeDurationLimitBuilder_ == null) {
-        routeDurationLimitBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.Vehicle.DurationLimit,
-                com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
-                com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>(
-                getRouteDurationLimit(), getParentForChildren(), isClean());
+        routeDurationLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>(
+                getRouteDurationLimit(),
+                getParentForChildren(),
+                isClean());
         routeDurationLimit_ = null;
       }
       return routeDurationLimitBuilder_;
@@ -11416,13 +10389,8 @@ public Builder clearRouteDurationLimit() {
 
     private com.google.cloud.optimization.v1.Vehicle.DurationLimit travelDurationLimit_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit,
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
-            com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>
-        travelDurationLimitBuilder_;
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> travelDurationLimitBuilder_;
     /**
-     *
-     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11430,15 +10398,12 @@ public Builder clearRouteDurationLimit() {
      * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; - * * @return Whether the travelDurationLimit field is set. */ public boolean hasTravelDurationLimit() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** - * - * *
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11446,21 +10411,16 @@ public boolean hasTravelDurationLimit() {
      * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; - * * @return The travelDurationLimit. */ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationLimit() { if (travelDurationLimitBuilder_ == null) { - return travelDurationLimit_ == null - ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() - : travelDurationLimit_; + return travelDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : travelDurationLimit_; } else { return travelDurationLimitBuilder_.getMessage(); } } /** - * - * *
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11469,8 +10429,7 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationL
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
-    public Builder setTravelDurationLimit(
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
+    public Builder setTravelDurationLimit(com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
       if (travelDurationLimitBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -11479,13 +10438,11 @@ public Builder setTravelDurationLimit(
       } else {
         travelDurationLimitBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00040000;
+      bitField0_ |= 0x00080000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11501,13 +10458,11 @@ public Builder setTravelDurationLimit(
       } else {
         travelDurationLimitBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00040000;
+      bitField0_ |= 0x00080000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11516,13 +10471,11 @@ public Builder setTravelDurationLimit(
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
-    public Builder mergeTravelDurationLimit(
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
+    public Builder mergeTravelDurationLimit(com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
       if (travelDurationLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00040000) != 0)
-            && travelDurationLimit_ != null
-            && travelDurationLimit_
-                != com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) {
+        if (((bitField0_ & 0x00080000) != 0) &&
+          travelDurationLimit_ != null &&
+          travelDurationLimit_ != com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) {
           getTravelDurationLimitBuilder().mergeFrom(value);
         } else {
           travelDurationLimit_ = value;
@@ -11530,13 +10483,11 @@ public Builder mergeTravelDurationLimit(
       } else {
         travelDurationLimitBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00040000;
+      bitField0_ |= 0x00080000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11546,7 +10497,7 @@ public Builder mergeTravelDurationLimit(
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
     public Builder clearTravelDurationLimit() {
-      bitField0_ = (bitField0_ & ~0x00040000);
+      bitField0_ = (bitField0_ & ~0x00080000);
       travelDurationLimit_ = null;
       if (travelDurationLimitBuilder_ != null) {
         travelDurationLimitBuilder_.dispose();
@@ -11556,8 +10507,6 @@ public Builder clearTravelDurationLimit() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11566,15 +10515,12 @@ public Builder clearTravelDurationLimit() {
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
-    public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder
-        getTravelDurationLimitBuilder() {
-      bitField0_ |= 0x00040000;
+    public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder getTravelDurationLimitBuilder() {
+      bitField0_ |= 0x00080000;
       onChanged();
       return getTravelDurationLimitFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11583,19 +10529,15 @@ public Builder clearTravelDurationLimit() {
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
-    public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder
-        getTravelDurationLimitOrBuilder() {
+    public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravelDurationLimitOrBuilder() {
       if (travelDurationLimitBuilder_ != null) {
         return travelDurationLimitBuilder_.getMessageOrBuilder();
       } else {
-        return travelDurationLimit_ == null
-            ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()
-            : travelDurationLimit_;
+        return travelDurationLimit_ == null ?
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : travelDurationLimit_;
       }
     }
     /**
-     *
-     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -11605,17 +10547,14 @@ public Builder clearTravelDurationLimit() {
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit,
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
-            com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> 
         getTravelDurationLimitFieldBuilder() {
       if (travelDurationLimitBuilder_ == null) {
-        travelDurationLimitBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.Vehicle.DurationLimit,
-                com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
-                com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>(
-                getTravelDurationLimit(), getParentForChildren(), isClean());
+        travelDurationLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>(
+                getTravelDurationLimit(),
+                getParentForChildren(),
+                isClean());
         travelDurationLimit_ = null;
       }
       return travelDurationLimitBuilder_;
@@ -11623,13 +10562,8 @@ public Builder clearTravelDurationLimit() {
 
     private com.google.cloud.optimization.v1.DistanceLimit routeDistanceLimit_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.DistanceLimit,
-            com.google.cloud.optimization.v1.DistanceLimit.Builder,
-            com.google.cloud.optimization.v1.DistanceLimitOrBuilder>
-        routeDistanceLimitBuilder_;
+        com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder> routeDistanceLimitBuilder_;
     /**
-     *
-     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11637,15 +10571,12 @@ public Builder clearTravelDurationLimit() {
      * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; - * * @return Whether the routeDistanceLimit field is set. */ public boolean hasRouteDistanceLimit() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** - * - * *
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11653,21 +10584,16 @@ public boolean hasRouteDistanceLimit() {
      * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; - * * @return The routeDistanceLimit. */ public com.google.cloud.optimization.v1.DistanceLimit getRouteDistanceLimit() { if (routeDistanceLimitBuilder_ == null) { - return routeDistanceLimit_ == null - ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() - : routeDistanceLimit_; + return routeDistanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : routeDistanceLimit_; } else { return routeDistanceLimitBuilder_.getMessage(); } } /** - * - * *
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11685,13 +10611,11 @@ public Builder setRouteDistanceLimit(com.google.cloud.optimization.v1.DistanceLi
       } else {
         routeDistanceLimitBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00080000;
+      bitField0_ |= 0x00100000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11707,13 +10631,11 @@ public Builder setRouteDistanceLimit(
       } else {
         routeDistanceLimitBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00080000;
+      bitField0_ |= 0x00100000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11724,10 +10646,9 @@ public Builder setRouteDistanceLimit(
      */
     public Builder mergeRouteDistanceLimit(com.google.cloud.optimization.v1.DistanceLimit value) {
       if (routeDistanceLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00080000) != 0)
-            && routeDistanceLimit_ != null
-            && routeDistanceLimit_
-                != com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()) {
+        if (((bitField0_ & 0x00100000) != 0) &&
+          routeDistanceLimit_ != null &&
+          routeDistanceLimit_ != com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()) {
           getRouteDistanceLimitBuilder().mergeFrom(value);
         } else {
           routeDistanceLimit_ = value;
@@ -11735,13 +10656,11 @@ public Builder mergeRouteDistanceLimit(com.google.cloud.optimization.v1.Distance
       } else {
         routeDistanceLimitBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00080000;
+      bitField0_ |= 0x00100000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11751,7 +10670,7 @@ public Builder mergeRouteDistanceLimit(com.google.cloud.optimization.v1.Distance
      * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
      */
     public Builder clearRouteDistanceLimit() {
-      bitField0_ = (bitField0_ & ~0x00080000);
+      bitField0_ = (bitField0_ & ~0x00100000);
       routeDistanceLimit_ = null;
       if (routeDistanceLimitBuilder_ != null) {
         routeDistanceLimitBuilder_.dispose();
@@ -11761,8 +10680,6 @@ public Builder clearRouteDistanceLimit() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11772,13 +10689,11 @@ public Builder clearRouteDistanceLimit() {
      * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
      */
     public com.google.cloud.optimization.v1.DistanceLimit.Builder getRouteDistanceLimitBuilder() {
-      bitField0_ |= 0x00080000;
+      bitField0_ |= 0x00100000;
       onChanged();
       return getRouteDistanceLimitFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11787,19 +10702,15 @@ public com.google.cloud.optimization.v1.DistanceLimit.Builder getRouteDistanceLi
      *
      * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
      */
-    public com.google.cloud.optimization.v1.DistanceLimitOrBuilder
-        getRouteDistanceLimitOrBuilder() {
+    public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceLimitOrBuilder() {
       if (routeDistanceLimitBuilder_ != null) {
         return routeDistanceLimitBuilder_.getMessageOrBuilder();
       } else {
-        return routeDistanceLimit_ == null
-            ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()
-            : routeDistanceLimit_;
+        return routeDistanceLimit_ == null ?
+            com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : routeDistanceLimit_;
       }
     }
     /**
-     *
-     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -11809,25 +10720,21 @@ public com.google.cloud.optimization.v1.DistanceLimit.Builder getRouteDistanceLi
      * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.DistanceLimit,
-            com.google.cloud.optimization.v1.DistanceLimit.Builder,
-            com.google.cloud.optimization.v1.DistanceLimitOrBuilder>
+        com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder> 
         getRouteDistanceLimitFieldBuilder() {
       if (routeDistanceLimitBuilder_ == null) {
-        routeDistanceLimitBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.DistanceLimit,
-                com.google.cloud.optimization.v1.DistanceLimit.Builder,
-                com.google.cloud.optimization.v1.DistanceLimitOrBuilder>(
-                getRouteDistanceLimit(), getParentForChildren(), isClean());
+        routeDistanceLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder>(
+                getRouteDistanceLimit(),
+                getParentForChildren(),
+                isClean());
         routeDistanceLimit_ = null;
       }
       return routeDistanceLimitBuilder_;
     }
 
-    private com.google.protobuf.MapField
-        extraVisitDurationForVisitType_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, com.google.protobuf.Duration> extraVisitDurationForVisitType_;
     private com.google.protobuf.MapField
         internalGetExtraVisitDurationForVisitType() {
       if (extraVisitDurationForVisitType_ == null) {
@@ -11836,28 +10743,23 @@ public com.google.cloud.optimization.v1.DistanceLimit.Builder getRouteDistanceLi
       }
       return extraVisitDurationForVisitType_;
     }
-
     private com.google.protobuf.MapField
         internalGetMutableExtraVisitDurationForVisitType() {
       if (extraVisitDurationForVisitType_ == null) {
-        extraVisitDurationForVisitType_ =
-            com.google.protobuf.MapField.newMapField(
-                ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry);
+        extraVisitDurationForVisitType_ = com.google.protobuf.MapField.newMapField(
+            ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry);
       }
       if (!extraVisitDurationForVisitType_.isMutable()) {
         extraVisitDurationForVisitType_ = extraVisitDurationForVisitType_.copy();
       }
-      bitField0_ |= 0x00100000;
+      bitField0_ |= 0x00200000;
       onChanged();
       return extraVisitDurationForVisitType_;
     }
-
     public int getExtraVisitDurationForVisitTypeCount() {
       return internalGetExtraVisitDurationForVisitType().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -11870,26 +10772,23 @@ public int getExtraVisitDurationForVisitTypeCount() {
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ @java.lang.Override - public boolean containsExtraVisitDurationForVisitType(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsExtraVisitDurationForVisitType( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetExtraVisitDurationForVisitType().getMap().containsKey(key); } - /** Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. */ + /** + * Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getExtraVisitDurationForVisitType() { + public java.util.Map getExtraVisitDurationForVisitType() { return getExtraVisitDurationForVisitTypeMap(); } /** - * - * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -11902,17 +10801,13 @@ public boolean containsExtraVisitDurationForVisitType(java.lang.String key) {
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ @java.lang.Override - public java.util.Map - getExtraVisitDurationForVisitTypeMap() { + public java.util.Map getExtraVisitDurationForVisitTypeMap() { return internalGetExtraVisitDurationForVisitType().getMap(); } /** - * - * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -11925,24 +10820,20 @@ public boolean containsExtraVisitDurationForVisitType(java.lang.String key) {
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ @java.lang.Override - public /* nullable */ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( + public /* nullable */ +com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.Duration defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.protobuf.Duration defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtraVisitDurationForVisitType().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -11955,15 +10846,12 @@ public boolean containsExtraVisitDurationForVisitType(java.lang.String key) {
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ @java.lang.Override public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtraVisitDurationForVisitType().getMap(); if (!map.containsKey(key)) { @@ -11971,15 +10859,13 @@ public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( } return map.get(key); } - public Builder clearExtraVisitDurationForVisitType() { - bitField0_ = (bitField0_ & ~0x00100000); - internalGetMutableExtraVisitDurationForVisitType().getMutableMap().clear(); + bitField0_ = (bitField0_ & ~0x00200000); + internalGetMutableExtraVisitDurationForVisitType().getMutableMap() + .clear(); return this; } /** - * - * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -11992,26 +10878,25 @@ public Builder clearExtraVisitDurationForVisitType() {
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ - public Builder removeExtraVisitDurationForVisitType(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableExtraVisitDurationForVisitType().getMutableMap().remove(key); + public Builder removeExtraVisitDurationForVisitType( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableExtraVisitDurationForVisitType().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableExtraVisitDurationForVisitType() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return internalGetMutableExtraVisitDurationForVisitType().getMutableMap(); } /** - * - * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -12024,24 +10909,19 @@ public Builder removeExtraVisitDurationForVisitType(java.lang.String key) {
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ public Builder putExtraVisitDurationForVisitType( - java.lang.String key, com.google.protobuf.Duration value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableExtraVisitDurationForVisitType().getMutableMap().put(key, value); - bitField0_ |= 0x00100000; + java.lang.String key, + com.google.protobuf.Duration value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableExtraVisitDurationForVisitType().getMutableMap() + .put(key, value); + bitField0_ |= 0x00200000; return this; } /** - * - * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -12054,61 +10934,48 @@ public Builder putExtraVisitDurationForVisitType(
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ public Builder putAllExtraVisitDurationForVisitType( java.util.Map values) { - internalGetMutableExtraVisitDurationForVisitType().getMutableMap().putAll(values); - bitField0_ |= 0x00100000; + internalGetMutableExtraVisitDurationForVisitType().getMutableMap() + .putAll(values); + bitField0_ |= 0x00200000; return this; } private com.google.cloud.optimization.v1.BreakRule breakRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule, - com.google.cloud.optimization.v1.BreakRule.Builder, - com.google.cloud.optimization.v1.BreakRuleOrBuilder> - breakRuleBuilder_; + com.google.cloud.optimization.v1.BreakRule, com.google.cloud.optimization.v1.BreakRule.Builder, com.google.cloud.optimization.v1.BreakRuleOrBuilder> breakRuleBuilder_; /** - * - * *
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
      * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; - * * @return Whether the breakRule field is set. */ public boolean hasBreakRule() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** - * - * *
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
      * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; - * * @return The breakRule. */ public com.google.cloud.optimization.v1.BreakRule getBreakRule() { if (breakRuleBuilder_ == null) { - return breakRule_ == null - ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() - : breakRule_; + return breakRule_ == null ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() : breakRule_; } else { return breakRuleBuilder_.getMessage(); } } /** - * - * *
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -12125,13 +10992,11 @@ public Builder setBreakRule(com.google.cloud.optimization.v1.BreakRule value) {
       } else {
         breakRuleBuilder_.setMessage(value);
       }
-      bitField0_ |= 0x00200000;
+      bitField0_ |= 0x00400000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -12146,13 +11011,11 @@ public Builder setBreakRule(
       } else {
         breakRuleBuilder_.setMessage(builderForValue.build());
       }
-      bitField0_ |= 0x00200000;
+      bitField0_ |= 0x00400000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -12162,9 +11025,9 @@ public Builder setBreakRule(
      */
     public Builder mergeBreakRule(com.google.cloud.optimization.v1.BreakRule value) {
       if (breakRuleBuilder_ == null) {
-        if (((bitField0_ & 0x00200000) != 0)
-            && breakRule_ != null
-            && breakRule_ != com.google.cloud.optimization.v1.BreakRule.getDefaultInstance()) {
+        if (((bitField0_ & 0x00400000) != 0) &&
+          breakRule_ != null &&
+          breakRule_ != com.google.cloud.optimization.v1.BreakRule.getDefaultInstance()) {
           getBreakRuleBuilder().mergeFrom(value);
         } else {
           breakRule_ = value;
@@ -12172,13 +11035,11 @@ public Builder mergeBreakRule(com.google.cloud.optimization.v1.BreakRule value)
       } else {
         breakRuleBuilder_.mergeFrom(value);
       }
-      bitField0_ |= 0x00200000;
+      bitField0_ |= 0x00400000;
       onChanged();
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -12187,7 +11048,7 @@ public Builder mergeBreakRule(com.google.cloud.optimization.v1.BreakRule value)
      * .google.cloud.optimization.v1.BreakRule break_rule = 25;
      */
     public Builder clearBreakRule() {
-      bitField0_ = (bitField0_ & ~0x00200000);
+      bitField0_ = (bitField0_ & ~0x00400000);
       breakRule_ = null;
       if (breakRuleBuilder_ != null) {
         breakRuleBuilder_.dispose();
@@ -12197,8 +11058,6 @@ public Builder clearBreakRule() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -12207,13 +11066,11 @@ public Builder clearBreakRule() {
      * .google.cloud.optimization.v1.BreakRule break_rule = 25;
      */
     public com.google.cloud.optimization.v1.BreakRule.Builder getBreakRuleBuilder() {
-      bitField0_ |= 0x00200000;
+      bitField0_ |= 0x00400000;
       onChanged();
       return getBreakRuleFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -12225,14 +11082,11 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
       if (breakRuleBuilder_ != null) {
         return breakRuleBuilder_.getMessageOrBuilder();
       } else {
-        return breakRule_ == null
-            ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance()
-            : breakRule_;
+        return breakRule_ == null ?
+            com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() : breakRule_;
       }
     }
     /**
-     *
-     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -12241,17 +11095,14 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
      * .google.cloud.optimization.v1.BreakRule break_rule = 25;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.BreakRule,
-            com.google.cloud.optimization.v1.BreakRule.Builder,
-            com.google.cloud.optimization.v1.BreakRuleOrBuilder>
+        com.google.cloud.optimization.v1.BreakRule, com.google.cloud.optimization.v1.BreakRule.Builder, com.google.cloud.optimization.v1.BreakRuleOrBuilder> 
         getBreakRuleFieldBuilder() {
       if (breakRuleBuilder_ == null) {
-        breakRuleBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.BreakRule,
-                com.google.cloud.optimization.v1.BreakRule.Builder,
-                com.google.cloud.optimization.v1.BreakRuleOrBuilder>(
-                getBreakRule(), getParentForChildren(), isClean());
+        breakRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.BreakRule, com.google.cloud.optimization.v1.BreakRule.Builder, com.google.cloud.optimization.v1.BreakRuleOrBuilder>(
+                getBreakRule(),
+                getParentForChildren(),
+                isClean());
         breakRule_ = null;
       }
       return breakRuleBuilder_;
@@ -12259,8 +11110,6 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
 
     private java.lang.Object label_ = "";
     /**
-     *
-     *
      * 
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -12268,13 +11117,13 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
      * 
* * string label = 27; - * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -12283,8 +11132,6 @@ public java.lang.String getLabel() { } } /** - * - * *
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -12292,14 +11139,15 @@ public java.lang.String getLabel() {
      * 
* * string label = 27; - * * @return The bytes for label. */ - public com.google.protobuf.ByteString getLabelBytes() { + public com.google.protobuf.ByteString + getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); label_ = b; return b; } else { @@ -12307,8 +11155,6 @@ public com.google.protobuf.ByteString getLabelBytes() { } } /** - * - * *
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -12316,22 +11162,18 @@ public com.google.protobuf.ByteString getLabelBytes() {
      * 
* * string label = 27; - * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } label_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } /** - * - * *
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -12339,18 +11181,15 @@ public Builder setLabel(java.lang.String value) {
      * 
* * string label = 27; - * * @return This builder for chaining. */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } /** - * - * *
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -12358,25 +11197,21 @@ public Builder clearLabel() {
      * 
* * string label = 27; - * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } - private boolean ignore_; + private boolean ignore_ ; /** - * - * *
      * If true, `used_if_route_is_empty` must be false, and this vehicle will
      * remain unused.
@@ -12394,7 +11229,6 @@ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool ignore = 28; - * * @return The ignore. */ @java.lang.Override @@ -12402,8 +11236,6 @@ public boolean getIgnore() { return ignore_; } /** - * - * *
      * If true, `used_if_route_is_empty` must be false, and this vehicle will
      * remain unused.
@@ -12421,20 +11253,17 @@ public boolean getIgnore() {
      * 
* * bool ignore = 28; - * * @param value The ignore to set. * @return This builder for chaining. */ public Builder setIgnore(boolean value) { ignore_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } /** - * - * *
      * If true, `used_if_route_is_empty` must be false, and this vehicle will
      * remain unused.
@@ -12452,27 +11281,23 @@ public Builder setIgnore(boolean value) {
      * 
* * bool ignore = 28; - * * @return This builder for chaining. */ public Builder clearIgnore() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); ignore_ = false; onChanged(); return this; } private com.google.protobuf.Internal.IntList breakRuleIndices_ = emptyIntList(); - private void ensureBreakRuleIndicesIsMutable() { - if (!((bitField0_ & 0x01000000) != 0)) { + if (!((bitField0_ & 0x02000000) != 0)) { breakRuleIndices_ = mutableCopy(breakRuleIndices_); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; } } /** - * - * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -12483,20 +11308,16 @@ private void ensureBreakRuleIndicesIsMutable() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return A list containing the breakRuleIndices. */ - @java.lang.Deprecated - public java.util.List getBreakRuleIndicesList() { - return ((bitField0_ & 0x01000000) != 0) - ? java.util.Collections.unmodifiableList(breakRuleIndices_) - : breakRuleIndices_; + @java.lang.Deprecated public java.util.List + getBreakRuleIndicesList() { + return ((bitField0_ & 0x02000000) != 0) ? + java.util.Collections.unmodifiableList(breakRuleIndices_) : breakRuleIndices_; } /** - * - * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -12507,18 +11328,14 @@ public java.util.List getBreakRuleIndicesList() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return The count of breakRuleIndices. */ - @java.lang.Deprecated - public int getBreakRuleIndicesCount() { + @java.lang.Deprecated public int getBreakRuleIndicesCount() { return breakRuleIndices_.size(); } /** - * - * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -12529,19 +11346,15 @@ public int getBreakRuleIndicesCount() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param index The index of the element to return. * @return The breakRuleIndices at the given index. */ - @java.lang.Deprecated - public int getBreakRuleIndices(int index) { + @java.lang.Deprecated public int getBreakRuleIndices(int index) { return breakRuleIndices_.getInt(index); } /** - * - * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -12552,15 +11365,14 @@ public int getBreakRuleIndices(int index) {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param index The index to set the value at. * @param value The breakRuleIndices to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setBreakRuleIndices(int index, int value) { + @java.lang.Deprecated public Builder setBreakRuleIndices( + int index, int value) { ensureBreakRuleIndicesIsMutable(); breakRuleIndices_.setInt(index, value); @@ -12568,8 +11380,6 @@ public Builder setBreakRuleIndices(int index, int value) { return this; } /** - * - * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -12580,14 +11390,12 @@ public Builder setBreakRuleIndices(int index, int value) {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param value The breakRuleIndices to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addBreakRuleIndices(int value) { + @java.lang.Deprecated public Builder addBreakRuleIndices(int value) { ensureBreakRuleIndicesIsMutable(); breakRuleIndices_.addInt(value); @@ -12595,8 +11403,6 @@ public Builder addBreakRuleIndices(int value) { return this; } /** - * - * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -12607,22 +11413,20 @@ public Builder addBreakRuleIndices(int value) {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param values The breakRuleIndices to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addAllBreakRuleIndices(java.lang.Iterable values) { + @java.lang.Deprecated public Builder addAllBreakRuleIndices( + java.lang.Iterable values) { ensureBreakRuleIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breakRuleIndices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, breakRuleIndices_); onChanged(); return this; } /** - * - * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -12633,51 +11437,39 @@ public Builder addAllBreakRuleIndices(java.lang.Iterable
      *
      * repeated int32 break_rule_indices = 29 [deprecated = true];
-     *
-     * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See
-     *     google/cloud/optimization/v1/fleet_routing.proto;l=1454
+     * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated.
+     *     See google/cloud/optimization/v1/fleet_routing.proto;l=1484
      * @return This builder for chaining.
      */
-    @java.lang.Deprecated
-    public Builder clearBreakRuleIndices() {
+    @java.lang.Deprecated public Builder clearBreakRuleIndices() {
       breakRuleIndices_ = emptyIntList();
-      bitField0_ = (bitField0_ & ~0x01000000);
+      bitField0_ = (bitField0_ & ~0x02000000);
       onChanged();
       return this;
     }
 
     private java.util.List capacities_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureCapacitiesIsMutable() {
-      if (!((bitField0_ & 0x02000000) != 0)) {
-        capacities_ =
-            new java.util.ArrayList(capacities_);
-        bitField0_ |= 0x02000000;
-      }
+      if (!((bitField0_ & 0x04000000) != 0)) {
+        capacities_ = new java.util.ArrayList(capacities_);
+        bitField0_ |= 0x04000000;
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.CapacityQuantity,
-            com.google.cloud.optimization.v1.CapacityQuantity.Builder,
-            com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>
-        capacitiesBuilder_;
+        com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> capacitiesBuilder_;
 
     /**
-     *
-     *
      * 
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List getCapacitiesList() { + @java.lang.Deprecated public java.util.List getCapacitiesList() { if (capacitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(capacities_); } else { @@ -12685,20 +11477,15 @@ public java.util.List getCapa } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public int getCapacitiesCount() { + @java.lang.Deprecated public int getCapacitiesCount() { if (capacitiesBuilder_ == null) { return capacities_.size(); } else { @@ -12706,20 +11493,15 @@ public int getCapacitiesCount() { } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index) { if (capacitiesBuilder_ == null) { return capacities_.get(index); } else { @@ -12727,20 +11509,15 @@ public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setCapacities( + @java.lang.Deprecated public Builder setCapacities( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (capacitiesBuilder_ == null) { if (value == null) { @@ -12755,20 +11532,15 @@ public Builder setCapacities( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setCapacities( + @java.lang.Deprecated public Builder setCapacities( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); @@ -12780,20 +11552,15 @@ public Builder setCapacities( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addCapacities(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated public Builder addCapacities(com.google.cloud.optimization.v1.CapacityQuantity value) { if (capacitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12807,20 +11574,15 @@ public Builder addCapacities(com.google.cloud.optimization.v1.CapacityQuantity v return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addCapacities( + @java.lang.Deprecated public Builder addCapacities( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (capacitiesBuilder_ == null) { if (value == null) { @@ -12835,20 +11597,15 @@ public Builder addCapacities( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addCapacities( + @java.lang.Deprecated public Builder addCapacities( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); @@ -12860,20 +11617,15 @@ public Builder addCapacities( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addCapacities( + @java.lang.Deprecated public Builder addCapacities( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); @@ -12885,24 +11637,20 @@ public Builder addCapacities( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllCapacities( + @java.lang.Deprecated public Builder addAllCapacities( java.lang.Iterable values) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, capacities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, capacities_); onChanged(); } else { capacitiesBuilder_.addAllMessages(values); @@ -12910,23 +11658,18 @@ public Builder addAllCapacities( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearCapacities() { + @java.lang.Deprecated public Builder clearCapacities() { if (capacitiesBuilder_ == null) { capacities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); onChanged(); } else { capacitiesBuilder_.clear(); @@ -12934,20 +11677,15 @@ public Builder clearCapacities() { return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeCapacities(int index) { + @java.lang.Deprecated public Builder removeCapacities(int index) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); capacities_.remove(index); @@ -12958,61 +11696,45 @@ public Builder removeCapacities(int index) { return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder getCapacitiesBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getCapacitiesBuilder( int index) { return getCapacitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( int index) { if (capacitiesBuilder_ == null) { - return capacities_.get(index); - } else { + return capacities_.get(index); } else { return capacitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getCapacitiesOrBuilderList() { + @java.lang.Deprecated public java.util.List + getCapacitiesOrBuilderList() { if (capacitiesBuilder_ != null) { return capacitiesBuilder_.getMessageOrBuilderList(); } else { @@ -13020,113 +11742,82 @@ public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesO } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addCapacitiesBuilder() { - return getCapacitiesFieldBuilder() - .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addCapacitiesBuilder() { + return getCapacitiesFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantity.Builder addCapacitiesBuilder( + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addCapacitiesBuilder( int index) { - return getCapacitiesFieldBuilder() - .addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + return getCapacitiesFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getCapacitiesBuilderList() { + @java.lang.Deprecated public java.util.List + getCapacitiesBuilderList() { return getCapacitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getCapacitiesFieldBuilder() { if (capacitiesBuilder_ == null) { - capacitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, - com.google.cloud.optimization.v1.CapacityQuantity.Builder, - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - capacities_, ((bitField0_ & 0x02000000) != 0), getParentForChildren(), isClean()); + capacitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + capacities_, + ((bitField0_ & 0x04000000) != 0), + getParentForChildren(), + isClean()); capacities_ = null; } return capacitiesBuilder_; } - private java.util.List - startLoadIntervals_ = java.util.Collections.emptyList(); - + private java.util.List startLoadIntervals_ = + java.util.Collections.emptyList(); private void ensureStartLoadIntervalsIsMutable() { - if (!((bitField0_ & 0x04000000) != 0)) { - startLoadIntervals_ = - new java.util.ArrayList( - startLoadIntervals_); - bitField0_ |= 0x04000000; - } + if (!((bitField0_ & 0x08000000) != 0)) { + startLoadIntervals_ = new java.util.ArrayList(startLoadIntervals_); + bitField0_ |= 0x08000000; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, - com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> - startLoadIntervalsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> startLoadIntervalsBuilder_; /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getStartLoadIntervalsList() { + @java.lang.Deprecated public java.util.List getStartLoadIntervalsList() { if (startLoadIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(startLoadIntervals_); } else { @@ -13134,20 +11825,15 @@ private void ensureStartLoadIntervalsIsMutable() { } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public int getStartLoadIntervalsCount() { + @java.lang.Deprecated public int getStartLoadIntervalsCount() { if (startLoadIntervalsBuilder_ == null) { return startLoadIntervals_.size(); } else { @@ -13155,21 +11841,15 @@ public int getStartLoadIntervalsCount() { } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals( - int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals(int index) { if (startLoadIntervalsBuilder_ == null) { return startLoadIntervals_.get(index); } else { @@ -13177,20 +11857,15 @@ public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadInt } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setStartLoadIntervals( + @java.lang.Deprecated public Builder setStartLoadIntervals( int index, com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (startLoadIntervalsBuilder_ == null) { if (value == null) { @@ -13205,22 +11880,16 @@ public Builder setStartLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setStartLoadIntervals( - int index, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { + @java.lang.Deprecated public Builder setStartLoadIntervals( + int index, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); startLoadIntervals_.set(index, builderForValue.build()); @@ -13231,21 +11900,15 @@ public Builder setStartLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addStartLoadIntervals( - com.google.cloud.optimization.v1.CapacityQuantityInterval value) { + @java.lang.Deprecated public Builder addStartLoadIntervals(com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (startLoadIntervalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13259,20 +11922,15 @@ public Builder addStartLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addStartLoadIntervals( + @java.lang.Deprecated public Builder addStartLoadIntervals( int index, com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (startLoadIntervalsBuilder_ == null) { if (value == null) { @@ -13287,20 +11945,15 @@ public Builder addStartLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addStartLoadIntervals( + @java.lang.Deprecated public Builder addStartLoadIntervals( com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); @@ -13312,22 +11965,16 @@ public Builder addStartLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addStartLoadIntervals( - int index, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { + @java.lang.Deprecated public Builder addStartLoadIntervals( + int index, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); startLoadIntervals_.add(index, builderForValue.build()); @@ -13338,25 +11985,20 @@ public Builder addStartLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllStartLoadIntervals( - java.lang.Iterable - values) { + @java.lang.Deprecated public Builder addAllStartLoadIntervals( + java.lang.Iterable values) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startLoadIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, startLoadIntervals_); onChanged(); } else { startLoadIntervalsBuilder_.addAllMessages(values); @@ -13364,23 +12006,18 @@ public Builder addAllStartLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearStartLoadIntervals() { + @java.lang.Deprecated public Builder clearStartLoadIntervals() { if (startLoadIntervalsBuilder_ == null) { startLoadIntervals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); } else { startLoadIntervalsBuilder_.clear(); @@ -13388,20 +12025,15 @@ public Builder clearStartLoadIntervals() { return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeStartLoadIntervals(int index) { + @java.lang.Deprecated public Builder removeStartLoadIntervals(int index) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); startLoadIntervals_.remove(index); @@ -13412,62 +12044,45 @@ public Builder removeStartLoadIntervals(int index) { return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder - getStartLoadIntervalsBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder getStartLoadIntervalsBuilder( + int index) { return getStartLoadIntervalsFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder - getStartLoadIntervalsOrBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder( + int index) { if (startLoadIntervalsBuilder_ == null) { - return startLoadIntervals_.get(index); - } else { + return startLoadIntervals_.get(index); } else { return startLoadIntervalsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List< - ? extends com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> - getStartLoadIntervalsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getStartLoadIntervalsOrBuilderList() { if (startLoadIntervalsBuilder_ != null) { return startLoadIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -13475,78 +12090,53 @@ public Builder removeStartLoadIntervals(int index) { } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder - addStartLoadIntervalsBuilder() { - return getStartLoadIntervalsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder addStartLoadIntervalsBuilder() { + return getStartLoadIntervalsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder - addStartLoadIntervalsBuilder(int index) { - return getStartLoadIntervalsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder addStartLoadIntervalsBuilder( + int index) { + return getStartLoadIntervalsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getStartLoadIntervalsBuilderList() { + @java.lang.Deprecated public java.util.List + getStartLoadIntervalsBuilderList() { return getStartLoadIntervalsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, - com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> getStartLoadIntervalsFieldBuilder() { if (startLoadIntervalsBuilder_ == null) { - startLoadIntervalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, - com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder>( + startLoadIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder>( startLoadIntervals_, - ((bitField0_ & 0x04000000) != 0), + ((bitField0_ & 0x08000000) != 0), getParentForChildren(), isClean()); startLoadIntervals_ = null; @@ -13554,40 +12144,28 @@ public Builder removeStartLoadIntervals(int index) { return startLoadIntervalsBuilder_; } - private java.util.List - endLoadIntervals_ = java.util.Collections.emptyList(); - + private java.util.List endLoadIntervals_ = + java.util.Collections.emptyList(); private void ensureEndLoadIntervalsIsMutable() { - if (!((bitField0_ & 0x08000000) != 0)) { - endLoadIntervals_ = - new java.util.ArrayList( - endLoadIntervals_); - bitField0_ |= 0x08000000; - } + if (!((bitField0_ & 0x10000000) != 0)) { + endLoadIntervals_ = new java.util.ArrayList(endLoadIntervals_); + bitField0_ |= 0x10000000; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, - com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> - endLoadIntervalsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> endLoadIntervalsBuilder_; /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getEndLoadIntervalsList() { + @java.lang.Deprecated public java.util.List getEndLoadIntervalsList() { if (endLoadIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(endLoadIntervals_); } else { @@ -13595,20 +12173,15 @@ private void ensureEndLoadIntervalsIsMutable() { } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public int getEndLoadIntervalsCount() { + @java.lang.Deprecated public int getEndLoadIntervalsCount() { if (endLoadIntervalsBuilder_ == null) { return endLoadIntervals_.size(); } else { @@ -13616,21 +12189,15 @@ public int getEndLoadIntervalsCount() { } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals( - int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index) { if (endLoadIntervalsBuilder_ == null) { return endLoadIntervals_.get(index); } else { @@ -13638,20 +12205,15 @@ public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadInter } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setEndLoadIntervals( + @java.lang.Deprecated public Builder setEndLoadIntervals( int index, com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (endLoadIntervalsBuilder_ == null) { if (value == null) { @@ -13666,22 +12228,16 @@ public Builder setEndLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setEndLoadIntervals( - int index, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { + @java.lang.Deprecated public Builder setEndLoadIntervals( + int index, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); endLoadIntervals_.set(index, builderForValue.build()); @@ -13692,21 +12248,15 @@ public Builder setEndLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addEndLoadIntervals( - com.google.cloud.optimization.v1.CapacityQuantityInterval value) { + @java.lang.Deprecated public Builder addEndLoadIntervals(com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (endLoadIntervalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13720,20 +12270,15 @@ public Builder addEndLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addEndLoadIntervals( + @java.lang.Deprecated public Builder addEndLoadIntervals( int index, com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (endLoadIntervalsBuilder_ == null) { if (value == null) { @@ -13748,20 +12293,15 @@ public Builder addEndLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addEndLoadIntervals( + @java.lang.Deprecated public Builder addEndLoadIntervals( com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); @@ -13773,22 +12313,16 @@ public Builder addEndLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addEndLoadIntervals( - int index, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { + @java.lang.Deprecated public Builder addEndLoadIntervals( + int index, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); endLoadIntervals_.add(index, builderForValue.build()); @@ -13799,25 +12333,20 @@ public Builder addEndLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder addAllEndLoadIntervals( - java.lang.Iterable - values) { + @java.lang.Deprecated public Builder addAllEndLoadIntervals( + java.lang.Iterable values) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endLoadIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, endLoadIntervals_); onChanged(); } else { endLoadIntervalsBuilder_.addAllMessages(values); @@ -13825,23 +12354,18 @@ public Builder addAllEndLoadIntervals( return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearEndLoadIntervals() { + @java.lang.Deprecated public Builder clearEndLoadIntervals() { if (endLoadIntervalsBuilder_ == null) { endLoadIntervals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); onChanged(); } else { endLoadIntervalsBuilder_.clear(); @@ -13849,20 +12373,15 @@ public Builder clearEndLoadIntervals() { return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public Builder removeEndLoadIntervals(int index) { + @java.lang.Deprecated public Builder removeEndLoadIntervals(int index) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); endLoadIntervals_.remove(index); @@ -13873,62 +12392,45 @@ public Builder removeEndLoadIntervals(int index) { return this; } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder - getEndLoadIntervalsBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder getEndLoadIntervalsBuilder( + int index) { return getEndLoadIntervalsFieldBuilder().getBuilder(index); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder - getEndLoadIntervalsOrBuilder(int index) { + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder( + int index) { if (endLoadIntervalsBuilder_ == null) { - return endLoadIntervals_.get(index); - } else { + return endLoadIntervals_.get(index); } else { return endLoadIntervalsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List< - ? extends com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> - getEndLoadIntervalsOrBuilderList() { + @java.lang.Deprecated public java.util.List + getEndLoadIntervalsOrBuilderList() { if (endLoadIntervalsBuilder_ != null) { return endLoadIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -13936,87 +12438,62 @@ public Builder removeEndLoadIntervals(int index) { } } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder - addEndLoadIntervalsBuilder() { - return getEndLoadIntervalsFieldBuilder() - .addBuilder( - com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder addEndLoadIntervalsBuilder() { + return getEndLoadIntervalsFieldBuilder().addBuilder( + com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder - addEndLoadIntervalsBuilder(int index) { - return getEndLoadIntervalsFieldBuilder() - .addBuilder( - index, - com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); + @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder addEndLoadIntervalsBuilder( + int index) { + return getEndLoadIntervalsFieldBuilder().addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); } /** - * - * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - public java.util.List - getEndLoadIntervalsBuilderList() { + @java.lang.Deprecated public java.util.List + getEndLoadIntervalsBuilderList() { return getEndLoadIntervalsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, - com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> getEndLoadIntervalsFieldBuilder() { if (endLoadIntervalsBuilder_ == null) { - endLoadIntervalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, - com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, - com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder>( + endLoadIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder>( endLoadIntervals_, - ((bitField0_ & 0x08000000) != 0), + ((bitField0_ & 0x10000000) != 0), getParentForChildren(), isClean()); endLoadIntervals_ = null; } return endLoadIntervalsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -14026,12 +12503,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Vehicle) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Vehicle) private static final com.google.cloud.optimization.v1.Vehicle DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Vehicle(); } @@ -14040,27 +12517,27 @@ public static com.google.cloud.optimization.v1.Vehicle getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vehicle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vehicle parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14075,4 +12552,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Vehicle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java similarity index 84% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java index 23a5cbee22ec..422333c02f33 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java @@ -1,58 +1,64 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface VehicleOrBuilder - extends +public interface VehicleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Vehicle) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The travel mode which affects the roads usable by the vehicle and its
    * speed. See also `travel_duration_multiple`.
    * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @return The enum numeric value on the wire for travelMode. */ int getTravelModeValue(); /** - * - * *
    * The travel mode which affects the roads usable by the vehicle and its
    * speed. See also `travel_duration_multiple`.
    * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; - * * @return The travelMode. */ com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode(); /** + *
+   * Optional. A set of conditions to satisfy that affect the way routes are
+   * calculated for the given vehicle.
+   * 
* + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the routeModifiers field is set. + */ + boolean hasRouteModifiers(); + /** + *
+   * Optional. A set of conditions to satisfy that affect the way routes are
+   * calculated for the given vehicle.
+   * 
* + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The routeModifiers. + */ + com.google.cloud.optimization.v1.RouteModifiers getRouteModifiers(); + /** + *
+   * Optional. A set of conditions to satisfy that affect the way routes are
+   * calculated for the given vehicle.
+   * 
+ * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifiersOrBuilder(); + + /** *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -61,13 +67,10 @@ public interface VehicleOrBuilder
    * 
* * .google.type.LatLng start_location = 3; - * * @return Whether the startLocation field is set. */ boolean hasStartLocation(); /** - * - * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -76,13 +79,10 @@ public interface VehicleOrBuilder
    * 
* * .google.type.LatLng start_location = 3; - * * @return The startLocation. */ com.google.type.LatLng getStartLocation(); /** - * - * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -95,8 +95,6 @@ public interface VehicleOrBuilder
   com.google.type.LatLngOrBuilder getStartLocationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -106,13 +104,10 @@ public interface VehicleOrBuilder
    * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; - * * @return Whether the startWaypoint field is set. */ boolean hasStartWaypoint(); /** - * - * *
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -122,13 +117,10 @@ public interface VehicleOrBuilder
    * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; - * * @return The startWaypoint. */ com.google.cloud.optimization.v1.Waypoint getStartWaypoint(); /** - * - * *
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -142,8 +134,6 @@ public interface VehicleOrBuilder
   com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuilder();
 
   /**
-   *
-   *
    * 
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -153,13 +143,10 @@ public interface VehicleOrBuilder
    * 
* * .google.type.LatLng end_location = 5; - * * @return Whether the endLocation field is set. */ boolean hasEndLocation(); /** - * - * *
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -169,13 +156,10 @@ public interface VehicleOrBuilder
    * 
* * .google.type.LatLng end_location = 5; - * * @return The endLocation. */ com.google.type.LatLng getEndLocation(); /** - * - * *
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -189,8 +173,6 @@ public interface VehicleOrBuilder
   com.google.type.LatLngOrBuilder getEndLocationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -201,13 +183,10 @@ public interface VehicleOrBuilder
    * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; - * * @return Whether the endWaypoint field is set. */ boolean hasEndWaypoint(); /** - * - * *
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -218,13 +197,10 @@ public interface VehicleOrBuilder
    * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; - * * @return The endWaypoint. */ com.google.cloud.optimization.v1.Waypoint getEndWaypoint(); /** - * - * *
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -239,8 +215,6 @@ public interface VehicleOrBuilder
   com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -248,13 +222,11 @@ public interface VehicleOrBuilder
    * 
* * repeated string start_tags = 7; - * * @return A list containing the startTags. */ - java.util.List getStartTagsList(); + java.util.List + getStartTagsList(); /** - * - * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -262,13 +234,10 @@ public interface VehicleOrBuilder
    * 
* * repeated string start_tags = 7; - * * @return The count of startTags. */ int getStartTagsCount(); /** - * - * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -276,14 +245,11 @@ public interface VehicleOrBuilder
    * 
* * repeated string start_tags = 7; - * * @param index The index of the element to return. * @return The startTags at the given index. */ java.lang.String getStartTags(int index); /** - * - * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -291,15 +257,13 @@ public interface VehicleOrBuilder
    * 
* * repeated string start_tags = 7; - * * @param index The index of the value to return. * @return The bytes of the startTags at the given index. */ - com.google.protobuf.ByteString getStartTagsBytes(int index); + com.google.protobuf.ByteString + getStartTagsBytes(int index); /** - * - * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -307,13 +271,11 @@ public interface VehicleOrBuilder
    * 
* * repeated string end_tags = 8; - * * @return A list containing the endTags. */ - java.util.List getEndTagsList(); + java.util.List + getEndTagsList(); /** - * - * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -321,13 +283,10 @@ public interface VehicleOrBuilder
    * 
* * repeated string end_tags = 8; - * * @return The count of endTags. */ int getEndTagsCount(); /** - * - * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -335,14 +294,11 @@ public interface VehicleOrBuilder
    * 
* * repeated string end_tags = 8; - * * @param index The index of the element to return. * @return The endTags at the given index. */ java.lang.String getEndTags(int index); /** - * - * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -350,15 +306,13 @@ public interface VehicleOrBuilder
    * 
* * repeated string end_tags = 8; - * * @param index The index of the value to return. * @return The bytes of the endTags at the given index. */ - com.google.protobuf.ByteString getEndTagsBytes(int index); + com.google.protobuf.ByteString + getEndTagsBytes(int index); /** - * - * *
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -376,10 +330,9 @@ public interface VehicleOrBuilder
    *
    * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
    */
-  java.util.List getStartTimeWindowsList();
+  java.util.List 
+      getStartTimeWindowsList();
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -399,8 +352,6 @@ public interface VehicleOrBuilder
    */
   com.google.cloud.optimization.v1.TimeWindow getStartTimeWindows(int index);
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -420,8 +371,6 @@ public interface VehicleOrBuilder
    */
   int getStartTimeWindowsCount();
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -439,11 +388,9 @@ public interface VehicleOrBuilder
    *
    * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
    */
-  java.util.List
+  java.util.List 
       getStartTimeWindowsOrBuilderList();
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -461,11 +408,10 @@ public interface VehicleOrBuilder
    *
    * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
    */
-  com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilder(int index);
+  com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -483,10 +429,9 @@ public interface VehicleOrBuilder
    *
    * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
    */
-  java.util.List getEndTimeWindowsList();
+  java.util.List 
+      getEndTimeWindowsList();
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -506,8 +451,6 @@ public interface VehicleOrBuilder
    */
   com.google.cloud.optimization.v1.TimeWindow getEndTimeWindows(int index);
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -527,8 +470,6 @@ public interface VehicleOrBuilder
    */
   int getEndTimeWindowsCount();
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -546,11 +487,9 @@ public interface VehicleOrBuilder
    *
    * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
    */
-  java.util.List
+  java.util.List 
       getEndTimeWindowsOrBuilderList();
   /**
-   *
-   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -568,11 +507,10 @@ public interface VehicleOrBuilder
    *
    * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
    */
-  com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(int index);
+  com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Specifies a multiplicative factor that can be used to increase or decrease
    * travel times of this vehicle. For example, setting this to 2.0 means
@@ -590,13 +528,10 @@ public interface VehicleOrBuilder
    * 
* * optional double travel_duration_multiple = 11; - * * @return Whether the travelDurationMultiple field is set. */ boolean hasTravelDurationMultiple(); /** - * - * *
    * Specifies a multiplicative factor that can be used to increase or decrease
    * travel times of this vehicle. For example, setting this to 2.0 means
@@ -614,39 +549,30 @@ public interface VehicleOrBuilder
    * 
* * optional double travel_duration_multiple = 11; - * * @return The travelDurationMultiple. */ double getTravelDurationMultiple(); /** - * - * *
    * Unloading policy enforced on the vehicle.
    * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @return The enum numeric value on the wire for unloadingPolicy. */ int getUnloadingPolicyValue(); /** - * - * *
    * Unloading policy enforced on the vehicle.
    * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; - * * @return The unloadingPolicy. */ com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy getUnloadingPolicy(); /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -656,13 +582,10 @@ public interface VehicleOrBuilder
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ int getLoadLimitsCount(); /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -672,17 +595,17 @@ public interface VehicleOrBuilder
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + */ + boolean containsLoadLimits( + java.lang.String key); + /** + * Use {@link #getLoadLimitsMap()} instead. */ - boolean containsLoadLimits(java.lang.String key); - /** Use {@link #getLoadLimitsMap()} instead. */ @java.lang.Deprecated java.util.Map - getLoadLimits(); + getLoadLimits(); /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -692,14 +615,11 @@ public interface VehicleOrBuilder
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ java.util.Map - getLoadLimitsMap(); + getLoadLimitsMap(); /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -709,17 +629,14 @@ public interface VehicleOrBuilder
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ /* nullable */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault( +com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue); +com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue); /** - * - * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -729,14 +646,12 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - * + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(java.lang.String key); + com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( + java.lang.String key); /** - * - * *
    * Vehicle costs: all costs add up and must be in the same unit as
    * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -748,14 +663,11 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * double cost_per_hour = 16; - * * @return The costPerHour. */ double getCostPerHour(); /** - * - * *
    * Cost per traveled hour of the vehicle route. This cost is applied only to
    * travel time taken by the route (i.e., that reported in
@@ -764,14 +676,11 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * double cost_per_traveled_hour = 17; - * * @return The costPerTraveledHour. */ double getCostPerTraveledHour(); /** - * - * *
    * Cost per kilometer of the vehicle route. This cost is applied to the
    * distance reported in the
@@ -781,27 +690,21 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * double cost_per_kilometer = 18; - * * @return The costPerKilometer. */ double getCostPerKilometer(); /** - * - * *
    * Fixed cost applied if this vehicle is used to handle a shipment.
    * 
* * double fixed_cost = 19; - * * @return The fixedCost. */ double getFixedCost(); /** - * - * *
    * This field only applies to vehicles when their route does not serve any
    * shipments. It indicates if the vehicle should be considered as used or not
@@ -818,14 +721,11 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * bool used_if_route_is_empty = 20; - * * @return The usedIfRouteIsEmpty. */ boolean getUsedIfRouteIsEmpty(); /** - * - * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -833,13 +733,10 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; - * * @return Whether the routeDurationLimit field is set. */ boolean hasRouteDurationLimit(); /** - * - * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -847,13 +744,10 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; - * * @return The routeDurationLimit. */ com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLimit(); /** - * - * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -865,8 +759,6 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
   com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteDurationLimitOrBuilder();
 
   /**
-   *
-   *
    * 
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -874,13 +766,10 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; - * * @return Whether the travelDurationLimit field is set. */ boolean hasTravelDurationLimit(); /** - * - * *
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -888,13 +777,10 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; - * * @return The travelDurationLimit. */ com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationLimit(); /** - * - * *
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -906,8 +792,6 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
   com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravelDurationLimitOrBuilder();
 
   /**
-   *
-   *
    * 
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -915,13 +799,10 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; - * * @return Whether the routeDistanceLimit field is set. */ boolean hasRouteDistanceLimit(); /** - * - * *
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -929,13 +810,10 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; - * * @return The routeDistanceLimit. */ com.google.cloud.optimization.v1.DistanceLimit getRouteDistanceLimit(); /** - * - * *
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -947,8 +825,6 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
   com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceLimitOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -961,13 +837,10 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ int getExtraVisitDurationForVisitTypeCount(); /** - * - * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -980,16 +853,17 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + */ + boolean containsExtraVisitDurationForVisitType( + java.lang.String key); + /** + * Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. */ - boolean containsExtraVisitDurationForVisitType(java.lang.String key); - /** Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. */ @java.lang.Deprecated - java.util.Map getExtraVisitDurationForVisitType(); + java.util.Map + getExtraVisitDurationForVisitType(); /** - * - * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -1002,14 +876,11 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ java.util.Map - getExtraVisitDurationForVisitTypeMap(); + getExtraVisitDurationForVisitTypeMap(); /** - * - * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -1022,17 +893,14 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ /* nullable */ - com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( +com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.Duration defaultValue); +com.google.protobuf.Duration defaultValue); /** - * - * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -1045,40 +913,32 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - * + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; */ - com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(java.lang.String key); + com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( + java.lang.String key); /** - * - * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
    * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; - * * @return Whether the breakRule field is set. */ boolean hasBreakRule(); /** - * - * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
    * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; - * * @return The breakRule. */ com.google.cloud.optimization.v1.BreakRule getBreakRule(); /** - * - * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
@@ -1089,8 +949,6 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
   com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies a label for this vehicle. This label is reported in the response
    * as the `vehicle_label` of the corresponding
@@ -1098,13 +956,10 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * 
* * string label = 27; - * * @return The label. */ java.lang.String getLabel(); /** - * - * *
    * Specifies a label for this vehicle. This label is reported in the response
    * as the `vehicle_label` of the corresponding
@@ -1112,14 +967,12 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * 
* * string label = 27; - * * @return The bytes for label. */ - com.google.protobuf.ByteString getLabelBytes(); + com.google.protobuf.ByteString + getLabelBytes(); /** - * - * *
    * If true, `used_if_route_is_empty` must be false, and this vehicle will
    * remain unused.
@@ -1137,14 +990,11 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * 
* * bool ignore = 28; - * * @return The ignore. */ boolean getIgnore(); /** - * - * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -1155,16 +1005,12 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return A list containing the breakRuleIndices. */ - @java.lang.Deprecated - java.util.List getBreakRuleIndicesList(); + @java.lang.Deprecated java.util.List getBreakRuleIndicesList(); /** - * - * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -1175,16 +1021,12 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return The count of breakRuleIndices. */ - @java.lang.Deprecated - int getBreakRuleIndicesCount(); + @java.lang.Deprecated int getBreakRuleIndicesCount(); /** - * - * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -1195,247 +1037,172 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See - * google/cloud/optimization/v1/fleet_routing.proto;l=1454 + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. + * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param index The index of the element to return. * @return The breakRuleIndices at the given index. */ - @java.lang.Deprecated - int getBreakRuleIndices(int index); + @java.lang.Deprecated int getBreakRuleIndices(int index); /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List getCapacitiesList(); + @java.lang.Deprecated java.util.List + getCapacitiesList(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index); /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - int getCapacitiesCount(); + @java.lang.Deprecated int getCapacitiesCount(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getCapacitiesOrBuilderList(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( + int index); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getStartLoadIntervalsList(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals(int index); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - int getStartLoadIntervalsCount(); + @java.lang.Deprecated int getStartLoadIntervalsCount(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getStartLoadIntervalsOrBuilderList(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder( + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder( int index); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getEndLoadIntervalsList(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index); + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - int getEndLoadIntervalsCount(); + @java.lang.Deprecated int getEndLoadIntervalsCount(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - java.util.List + @java.lang.Deprecated java.util.List getEndLoadIntervalsOrBuilderList(); /** - * - * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; - * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder( + @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder( int index); } diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java similarity index 71% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java index 369357c6b68a..1794dabe5b7f 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** - * - * *
  * Encapsulates a waypoint. Waypoints mark arrival and departure locations of
  * VisitRequests, and start and end locations of Vehicles.
@@ -28,53 +11,48 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.Waypoint}
  */
-public final class Waypoint extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Waypoint extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Waypoint)
     WaypointOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Waypoint.newBuilder() to construct.
   private Waypoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Waypoint() {}
+  private Waypoint() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Waypoint();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto
-        .internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.Waypoint.class,
-            com.google.cloud.optimization.v1.Waypoint.Builder.class);
+            com.google.cloud.optimization.v1.Waypoint.class, com.google.cloud.optimization.v1.Waypoint.Builder.class);
   }
 
   private int locationTypeCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object locationType_;
-
   public enum LocationTypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     LOCATION(1),
     PLACE_ID(2),
     LOCATIONTYPE_NOT_SET(0);
     private final int value;
-
     private LocationTypeCase(int value) {
       this.value = value;
     }
@@ -90,37 +68,31 @@ public static LocationTypeCase valueOf(int value) {
 
     public static LocationTypeCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return LOCATION;
-        case 2:
-          return PLACE_ID;
-        case 0:
-          return LOCATIONTYPE_NOT_SET;
-        default:
-          return null;
+        case 1: return LOCATION;
+        case 2: return PLACE_ID;
+        case 0: return LOCATIONTYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public LocationTypeCase getLocationTypeCase() {
-    return LocationTypeCase.forNumber(locationTypeCase_);
+  public LocationTypeCase
+  getLocationTypeCase() {
+    return LocationTypeCase.forNumber(
+        locationTypeCase_);
   }
 
   public static final int LOCATION_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.cloud.optimization.v1.Location location = 1; - * * @return Whether the location field is set. */ @java.lang.Override @@ -128,27 +100,22 @@ public boolean hasLocation() { return locationTypeCase_ == 1; } /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.cloud.optimization.v1.Location location = 1; - * * @return The location. */ @java.lang.Override public com.google.cloud.optimization.v1.Location getLocation() { if (locationTypeCase_ == 1) { - return (com.google.cloud.optimization.v1.Location) locationType_; + return (com.google.cloud.optimization.v1.Location) locationType_; } return com.google.cloud.optimization.v1.Location.getDefaultInstance(); } /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
@@ -159,35 +126,29 @@ public com.google.cloud.optimization.v1.Location getLocation() {
   @java.lang.Override
   public com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder() {
     if (locationTypeCase_ == 1) {
-      return (com.google.cloud.optimization.v1.Location) locationType_;
+       return (com.google.cloud.optimization.v1.Location) locationType_;
     }
     return com.google.cloud.optimization.v1.Location.getDefaultInstance();
   }
 
   public static final int PLACE_ID_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; - * * @return Whether the placeId field is set. */ public boolean hasPlaceId() { return locationTypeCase_ == 2; } /** - * - * *
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; - * * @return The placeId. */ public java.lang.String getPlaceId() { @@ -198,7 +159,8 @@ public java.lang.String getPlaceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (locationTypeCase_ == 2) { locationType_ = s; @@ -207,24 +169,23 @@ public java.lang.String getPlaceId() { } } /** - * - * *
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; - * * @return The bytes for placeId. */ - public com.google.protobuf.ByteString getPlaceIdBytes() { + public com.google.protobuf.ByteString + getPlaceIdBytes() { java.lang.Object ref = ""; if (locationTypeCase_ == 2) { ref = locationType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (locationTypeCase_ == 2) { locationType_ = b; } @@ -237,8 +198,6 @@ public com.google.protobuf.ByteString getPlaceIdBytes() { public static final int SIDE_OF_ROAD_FIELD_NUMBER = 3; private boolean sideOfRoad_ = false; /** - * - * *
    * Indicates that the location of this waypoint is meant to have a preference
    * for the vehicle to stop at a particular side of road. When you set this
@@ -249,7 +208,6 @@ public com.google.protobuf.ByteString getPlaceIdBytes() {
    * 
* * bool side_of_road = 3; - * * @return The sideOfRoad. */ @java.lang.Override @@ -258,7 +216,6 @@ public boolean getSideOfRoad() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (locationTypeCase_ == 1) { output.writeMessage(1, (com.google.cloud.optimization.v1.Location) locationType_); } @@ -290,15 +248,15 @@ public int getSerializedSize() { size = 0; if (locationTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.optimization.v1.Location) locationType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.optimization.v1.Location) locationType_); } if (locationTypeCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, locationType_); } if (sideOfRoad_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, sideOfRoad_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, sideOfRoad_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -308,22 +266,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Waypoint)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Waypoint other = - (com.google.cloud.optimization.v1.Waypoint) obj; + com.google.cloud.optimization.v1.Waypoint other = (com.google.cloud.optimization.v1.Waypoint) obj; - if (getSideOfRoad() != other.getSideOfRoad()) return false; + if (getSideOfRoad() + != other.getSideOfRoad()) return false; if (!getLocationTypeCase().equals(other.getLocationTypeCase())) return false; switch (locationTypeCase_) { case 1: - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; break; case 2: - if (!getPlaceId().equals(other.getPlaceId())) return false; + if (!getPlaceId() + .equals(other.getPlaceId())) return false; break; case 0: default: @@ -340,7 +300,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SIDE_OF_ROAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSideOfRoad()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSideOfRoad()); switch (locationTypeCase_) { case 1: hash = (37 * hash) + LOCATION_FIELD_NUMBER; @@ -358,104 +319,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.Waypoint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Waypoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Waypoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Waypoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Waypoint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.Waypoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Waypoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulates a waypoint. Waypoints mark arrival and departure locations of
    * VisitRequests, and start and end locations of Vehicles.
@@ -463,32 +419,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.optimization.v1.Waypoint}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Waypoint)
       com.google.cloud.optimization.v1.WaypointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Waypoint.class,
-              com.google.cloud.optimization.v1.Waypoint.Builder.class);
+              com.google.cloud.optimization.v1.Waypoint.class, com.google.cloud.optimization.v1.Waypoint.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.Waypoint.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -503,9 +460,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto
-          .internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
     }
 
     @java.lang.Override
@@ -524,11 +481,8 @@ public com.google.cloud.optimization.v1.Waypoint build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.Waypoint buildPartial() {
-      com.google.cloud.optimization.v1.Waypoint result =
-          new com.google.cloud.optimization.v1.Waypoint(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.optimization.v1.Waypoint result = new com.google.cloud.optimization.v1.Waypoint(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -544,7 +498,8 @@ private void buildPartial0(com.google.cloud.optimization.v1.Waypoint result) {
     private void buildPartialOneofs(com.google.cloud.optimization.v1.Waypoint result) {
       result.locationTypeCase_ = locationTypeCase_;
       result.locationType_ = this.locationType_;
-      if (locationTypeCase_ == 1 && locationBuilder_ != null) {
+      if (locationTypeCase_ == 1 &&
+          locationBuilder_ != null) {
         result.locationType_ = locationBuilder_.build();
       }
     }
@@ -553,39 +508,38 @@ private void buildPartialOneofs(com.google.cloud.optimization.v1.Waypoint result
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.Waypoint) {
-        return mergeFrom((com.google.cloud.optimization.v1.Waypoint) other);
+        return mergeFrom((com.google.cloud.optimization.v1.Waypoint)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -598,22 +552,19 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Waypoint other) {
         setSideOfRoad(other.getSideOfRoad());
       }
       switch (other.getLocationTypeCase()) {
-        case LOCATION:
-          {
-            mergeLocation(other.getLocation());
-            break;
-          }
-        case PLACE_ID:
-          {
-            locationTypeCase_ = 2;
-            locationType_ = other.locationType_;
-            onChanged();
-            break;
-          }
-        case LOCATIONTYPE_NOT_SET:
-          {
-            break;
-          }
+        case LOCATION: {
+          mergeLocation(other.getLocation());
+          break;
+        }
+        case PLACE_ID: {
+          locationTypeCase_ = 2;
+          locationType_ = other.locationType_;
+          onChanged();
+          break;
+        }
+        case LOCATIONTYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -641,32 +592,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getLocationFieldBuilder().getBuilder(), extensionRegistry);
-                locationTypeCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                locationTypeCase_ = 2;
-                locationType_ = s;
-                break;
-              } // case 18
-            case 24:
-              {
-                sideOfRoad_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getLocationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              locationTypeCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              locationTypeCase_ = 2;
+              locationType_ = s;
+              break;
+            } // case 18
+            case 24: {
+              sideOfRoad_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -676,12 +625,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int locationTypeCase_ = 0;
     private java.lang.Object locationType_;
-
-    public LocationTypeCase getLocationTypeCase() {
-      return LocationTypeCase.forNumber(locationTypeCase_);
+    public LocationTypeCase
+        getLocationTypeCase() {
+      return LocationTypeCase.forNumber(
+          locationTypeCase_);
     }
 
     public Builder clearLocationType() {
@@ -694,20 +643,14 @@ public Builder clearLocationType() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Location,
-            com.google.cloud.optimization.v1.Location.Builder,
-            com.google.cloud.optimization.v1.LocationOrBuilder>
-        locationBuilder_;
+        com.google.cloud.optimization.v1.Location, com.google.cloud.optimization.v1.Location.Builder, com.google.cloud.optimization.v1.LocationOrBuilder> locationBuilder_;
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
      * 
* * .google.cloud.optimization.v1.Location location = 1; - * * @return Whether the location field is set. */ @java.lang.Override @@ -715,15 +658,12 @@ public boolean hasLocation() { return locationTypeCase_ == 1; } /** - * - * *
      * A point specified using geographic coordinates, including an optional
      * heading.
      * 
* * .google.cloud.optimization.v1.Location location = 1; - * * @return The location. */ @java.lang.Override @@ -741,8 +681,6 @@ public com.google.cloud.optimization.v1.Location getLocation() { } } /** - * - * *
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -764,8 +702,6 @@ public Builder setLocation(com.google.cloud.optimization.v1.Location value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -773,7 +709,8 @@ public Builder setLocation(com.google.cloud.optimization.v1.Location value) {
      *
      * .google.cloud.optimization.v1.Location location = 1;
      */
-    public Builder setLocation(com.google.cloud.optimization.v1.Location.Builder builderForValue) {
+    public Builder setLocation(
+        com.google.cloud.optimization.v1.Location.Builder builderForValue) {
       if (locationBuilder_ == null) {
         locationType_ = builderForValue.build();
         onChanged();
@@ -784,8 +721,6 @@ public Builder setLocation(com.google.cloud.optimization.v1.Location.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -795,13 +730,10 @@ public Builder setLocation(com.google.cloud.optimization.v1.Location.Builder bui
      */
     public Builder mergeLocation(com.google.cloud.optimization.v1.Location value) {
       if (locationBuilder_ == null) {
-        if (locationTypeCase_ == 1
-            && locationType_ != com.google.cloud.optimization.v1.Location.getDefaultInstance()) {
-          locationType_ =
-              com.google.cloud.optimization.v1.Location.newBuilder(
-                      (com.google.cloud.optimization.v1.Location) locationType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (locationTypeCase_ == 1 &&
+            locationType_ != com.google.cloud.optimization.v1.Location.getDefaultInstance()) {
+          locationType_ = com.google.cloud.optimization.v1.Location.newBuilder((com.google.cloud.optimization.v1.Location) locationType_)
+              .mergeFrom(value).buildPartial();
         } else {
           locationType_ = value;
         }
@@ -817,8 +749,6 @@ public Builder mergeLocation(com.google.cloud.optimization.v1.Location value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -843,8 +773,6 @@ public Builder clearLocation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -856,8 +784,6 @@ public com.google.cloud.optimization.v1.Location.Builder getLocationBuilder() {
       return getLocationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -877,8 +803,6 @@ public com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -887,19 +811,14 @@ public com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder()
      * .google.cloud.optimization.v1.Location location = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Location,
-            com.google.cloud.optimization.v1.Location.Builder,
-            com.google.cloud.optimization.v1.LocationOrBuilder>
+        com.google.cloud.optimization.v1.Location, com.google.cloud.optimization.v1.Location.Builder, com.google.cloud.optimization.v1.LocationOrBuilder> 
         getLocationFieldBuilder() {
       if (locationBuilder_ == null) {
         if (!(locationTypeCase_ == 1)) {
           locationType_ = com.google.cloud.optimization.v1.Location.getDefaultInstance();
         }
-        locationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.optimization.v1.Location,
-                com.google.cloud.optimization.v1.Location.Builder,
-                com.google.cloud.optimization.v1.LocationOrBuilder>(
+        locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.optimization.v1.Location, com.google.cloud.optimization.v1.Location.Builder, com.google.cloud.optimization.v1.LocationOrBuilder>(
                 (com.google.cloud.optimization.v1.Location) locationType_,
                 getParentForChildren(),
                 isClean());
@@ -911,14 +830,11 @@ public com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder()
     }
 
     /**
-     *
-     *
      * 
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; - * * @return Whether the placeId field is set. */ @java.lang.Override @@ -926,14 +842,11 @@ public boolean hasPlaceId() { return locationTypeCase_ == 2; } /** - * - * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; - * * @return The placeId. */ @java.lang.Override @@ -943,7 +856,8 @@ public java.lang.String getPlaceId() { ref = locationType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (locationTypeCase_ == 2) { locationType_ = s; @@ -954,25 +868,24 @@ public java.lang.String getPlaceId() { } } /** - * - * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; - * * @return The bytes for placeId. */ @java.lang.Override - public com.google.protobuf.ByteString getPlaceIdBytes() { + public com.google.protobuf.ByteString + getPlaceIdBytes() { java.lang.Object ref = ""; if (locationTypeCase_ == 2) { ref = locationType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (locationTypeCase_ == 2) { locationType_ = b; } @@ -982,35 +895,28 @@ public com.google.protobuf.ByteString getPlaceIdBytes() { } } /** - * - * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; - * * @param value The placeId to set. * @return This builder for chaining. */ - public Builder setPlaceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPlaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } locationTypeCase_ = 2; locationType_ = value; onChanged(); return this; } /** - * - * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; - * * @return This builder for chaining. */ public Builder clearPlaceId() { @@ -1022,21 +928,17 @@ public Builder clearPlaceId() { return this; } /** - * - * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; - * * @param value The bytes for placeId to set. * @return This builder for chaining. */ - public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPlaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locationTypeCase_ = 2; locationType_ = value; @@ -1044,10 +946,8 @@ public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean sideOfRoad_; + private boolean sideOfRoad_ ; /** - * - * *
      * Indicates that the location of this waypoint is meant to have a preference
      * for the vehicle to stop at a particular side of road. When you set this
@@ -1058,7 +958,6 @@ public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool side_of_road = 3; - * * @return The sideOfRoad. */ @java.lang.Override @@ -1066,8 +965,6 @@ public boolean getSideOfRoad() { return sideOfRoad_; } /** - * - * *
      * Indicates that the location of this waypoint is meant to have a preference
      * for the vehicle to stop at a particular side of road. When you set this
@@ -1078,7 +975,6 @@ public boolean getSideOfRoad() {
      * 
* * bool side_of_road = 3; - * * @param value The sideOfRoad to set. * @return This builder for chaining. */ @@ -1090,8 +986,6 @@ public Builder setSideOfRoad(boolean value) { return this; } /** - * - * *
      * Indicates that the location of this waypoint is meant to have a preference
      * for the vehicle to stop at a particular side of road. When you set this
@@ -1102,7 +996,6 @@ public Builder setSideOfRoad(boolean value) {
      * 
* * bool side_of_road = 3; - * * @return This builder for chaining. */ public Builder clearSideOfRoad() { @@ -1111,9 +1004,9 @@ public Builder clearSideOfRoad() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1123,12 +1016,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Waypoint) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Waypoint) private static final com.google.cloud.optimization.v1.Waypoint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Waypoint(); } @@ -1137,27 +1030,27 @@ public static com.google.cloud.optimization.v1.Waypoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Waypoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Waypoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1172,4 +1065,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Waypoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java similarity index 74% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java index a7981e0ac51d..4f923368a073 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface WaypointOrBuilder - extends +public interface WaypointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Waypoint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.cloud.optimization.v1.Location location = 1; - * * @return Whether the location field is set. */ boolean hasLocation(); /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.cloud.optimization.v1.Location location = 1; - * * @return The location. */ com.google.cloud.optimization.v1.Location getLocation(); /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
@@ -62,45 +38,35 @@ public interface WaypointOrBuilder
   com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; - * * @return Whether the placeId field is set. */ boolean hasPlaceId(); /** - * - * *
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; - * * @return The placeId. */ java.lang.String getPlaceId(); /** - * - * *
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; - * * @return The bytes for placeId. */ - com.google.protobuf.ByteString getPlaceIdBytes(); + com.google.protobuf.ByteString + getPlaceIdBytes(); /** - * - * *
    * Indicates that the location of this waypoint is meant to have a preference
    * for the vehicle to stop at a particular side of road. When you set this
@@ -111,7 +77,6 @@ public interface WaypointOrBuilder
    * 
* * bool side_of_road = 3; - * * @return The sideOfRoad. */ boolean getSideOfRoad(); diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto similarity index 100% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto similarity index 98% rename from java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto rename to owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto index 3ab8254a50d1..13dfb375d702 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto +++ b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto @@ -1124,6 +1124,32 @@ message ShipmentTypeRequirement { RequirementMode requirement_mode = 3; } +// Encapsulates a set of optional conditions to satisfy when calculating +// vehicle routes. This is similar to `RouteModifiers` in the Google Maps +// Platform API; see: +// https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers. +message RouteModifiers { + // Specifies whether to avoid toll roads where reasonable. Preference will be + // given to routes not containing toll roads. Applies only to motorized travel + // modes. + bool avoid_tolls = 2; + + // Specifies whether to avoid highways where reasonable. Preference will be + // given to routes not containing highways. Applies only to motorized travel + // modes. + bool avoid_highways = 3; + + // Specifies whether to avoid ferries where reasonable. Preference will be + // given to routes not containing travel by ferries. Applies only to motorized + // travel modes. + bool avoid_ferries = 4; + + // Optional. Specifies whether to avoid navigating indoors where reasonable. + // Preference will be given to routes not containing indoor navigation. + // Applies only to the `WALKING` travel mode. + bool avoid_indoor = 5 [(google.api.field_behavior) = OPTIONAL]; +} + // Models a vehicle in a shipment problem. Solving a shipment problem will // build a route starting from `start_location` and ending at `end_location` // for this vehicle. A route is a sequence of visits (see `ShipmentRoute`). @@ -1264,6 +1290,10 @@ message Vehicle { // speed. See also `travel_duration_multiple`. TravelMode travel_mode = 1; + // Optional. A set of conditions to satisfy that affect the way routes are + // calculated for the given vehicle. + RouteModifiers route_modifiers = 2 [(google.api.field_behavior) = OPTIONAL]; + // Geographic location where the vehicle starts before picking up any // shipments. If not specified, the vehicle starts at its first pickup. // If the shipment model has duration and distance matrices, `start_location` @@ -2696,6 +2726,13 @@ message OptimizeToursValidationError { // * 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; diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java diff --git a/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java b/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java similarity index 100% rename from java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java rename to owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java From 00a1883e3862981df49a3432e3c28a4fcf4e0abf Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 12 Oct 2023 19:05:45 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-optimization/README.md | 4 +- .../optimization/v1/FleetRoutingClient.java | 0 .../optimization/v1/FleetRoutingSettings.java | 1 - .../cloud/optimization/v1/gapic_metadata.json | 0 .../cloud/optimization/v1/package-info.java | 0 .../v1/stub/FleetRoutingStub.java | 0 .../v1/stub/FleetRoutingStubSettings.java | 0 .../stub/GrpcFleetRoutingCallableFactory.java | 0 .../v1/stub/GrpcFleetRoutingStub.java | 1 - .../HttpJsonFleetRoutingCallableFactory.java | 0 .../v1/stub/HttpJsonFleetRoutingStub.java | 1 - .../reflect-config.json | 0 .../v1/FleetRoutingClientHttpJsonTest.java | 0 .../v1/FleetRoutingClientTest.java | 0 .../optimization/v1/MockFleetRouting.java | 0 .../optimization/v1/MockFleetRoutingImpl.java | 0 .../optimization/v1/FleetRoutingGrpc.java | 310 +- .../optimization/v1/AggregatedMetrics.java | 1545 +-- .../v1/AggregatedMetricsOrBuilder.java | 159 +- .../optimization/v1/AsyncModelMetadata.java | 645 +- .../v1/AsyncModelMetadataOrBuilder.java | 49 +- .../optimization/v1/AsyncModelProto.java | 143 + .../v1/BatchOptimizeToursRequest.java | 1412 ++- .../BatchOptimizeToursRequestOrBuilder.java | 70 +- .../v1/BatchOptimizeToursResponse.java | 248 +- .../BatchOptimizeToursResponseOrBuilder.java | 24 + .../cloud/optimization/v1/BreakRule.java | 2058 ++-- .../optimization/v1/BreakRuleOrBuilder.java | 71 +- .../optimization/v1/CapacityQuantity.java | 332 +- .../v1/CapacityQuantityInterval.java | 365 +- .../v1/CapacityQuantityIntervalOrBuilder.java | 28 +- .../v1/CapacityQuantityOrBuilder.java | 46 + .../cloud/optimization/v1/DataFormat.java | 82 +- .../cloud/optimization/v1/DistanceLimit.java | 413 +- .../v1/DistanceLimitOrBuilder.java | 42 +- .../optimization/v1/FleetRoutingProto.java | 1460 +++ .../cloud/optimization/v1/GcsDestination.java | 315 +- .../v1/GcsDestinationOrBuilder.java | 27 +- .../cloud/optimization/v1/GcsSource.java | 312 +- .../optimization/v1/GcsSourceOrBuilder.java | 27 +- .../v1/InjectedSolutionConstraint.java | 2446 +++-- .../InjectedSolutionConstraintOrBuilder.java | 98 +- .../cloud/optimization/v1/InputConfig.java | 424 +- .../optimization/v1/InputConfigOrBuilder.java | 32 +- .../cloud/optimization/v1/Location.java | 358 +- .../optimization/v1/LocationOrBuilder.java | 32 +- .../optimization/v1/OptimizeToursRequest.java | 1782 ++-- .../v1/OptimizeToursRequestOrBuilder.java | 171 +- .../v1/OptimizeToursResponse.java | 2069 +++-- .../v1/OptimizeToursResponseOrBuilder.java | 119 +- .../v1/OptimizeToursValidationError.java | 1645 ++-- ...OptimizeToursValidationErrorOrBuilder.java | 88 +- .../cloud/optimization/v1/OutputConfig.java | 425 +- .../v1/OutputConfigOrBuilder.java | 32 +- .../cloud/optimization/v1/RouteModifiers.java | 382 +- .../v1/RouteModifiersOrBuilder.java | 30 +- .../cloud/optimization/v1/Shipment.java | 4084 +++++--- .../cloud/optimization/v1/ShipmentModel.java | 6999 +++++++++----- .../v1/ShipmentModelOrBuilder.java | 349 +- .../optimization/v1/ShipmentOrBuilder.java | 201 +- .../cloud/optimization/v1/ShipmentRoute.java | 8254 +++++++++++------ .../v1/ShipmentRouteOrBuilder.java | 299 +- .../v1/ShipmentTypeIncompatibility.java | 541 +- .../ShipmentTypeIncompatibilityOrBuilder.java | 53 +- .../v1/ShipmentTypeRequirement.java | 648 +- .../v1/ShipmentTypeRequirementOrBuilder.java | 68 +- .../optimization/v1/SkippedShipment.java | 1046 ++- .../v1/SkippedShipmentOrBuilder.java | 48 +- .../cloud/optimization/v1/TimeWindow.java | 691 +- .../optimization/v1/TimeWindowOrBuilder.java | 62 +- .../optimization/v1/TransitionAttributes.java | 790 +- .../v1/TransitionAttributesOrBuilder.java | 76 +- .../google/cloud/optimization/v1/Vehicle.java | 5576 +++++++---- .../optimization/v1/VehicleOrBuilder.java | 473 +- .../cloud/optimization/v1/Waypoint.java | 503 +- .../optimization/v1/WaypointOrBuilder.java | 41 +- .../cloud/optimization/v1/async_model.proto | 0 .../cloud/optimization/v1/fleet_routing.proto | 0 .../AsyncBatchOptimizeTours.java | 0 .../AsyncBatchOptimizeToursLRO.java | 0 .../SyncBatchOptimizeTours.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../optimizetours/AsyncOptimizeTours.java | 0 .../optimizetours/SyncOptimizeTours.java | 0 .../optimizetours/SyncOptimizeTours.java | 0 .../optimizetours/SyncOptimizeTours.java | 0 .../optimization/v1/AsyncModelProto.java | 124 - .../BatchOptimizeToursResponseOrBuilder.java | 9 - .../v1/CapacityQuantityOrBuilder.java | 27 - .../optimization/v1/FleetRoutingProto.java | 1153 --- versions.txt | 2 +- 93 files changed, 34227 insertions(+), 18213 deletions(-) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java (99%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java (99%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java (99%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java (67%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java (67%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java (83%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java (70%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java (76%) create mode 100644 java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java (62%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java (51%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java (62%) create mode 100644 java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java (66%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java (66%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java (65%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java (68%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java (56%) create mode 100644 java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java (66%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java (76%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java (83%) create mode 100644 java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java (66%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java (50%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java (65%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java (50%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java (68%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java (72%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java (69%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java (71%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java (70%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java (71%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java (83%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java (93%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java (74%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java (77%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java (78%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java (91%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java (69%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java (71%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java (71%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java (69%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java (78%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java (73%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java (86%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java (90%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java (73%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java (80%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java (66%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java (61%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java (71%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java (74%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java (75%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java (73%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java (76%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java (87%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java (75%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java (84%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java (76%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java (83%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java (71%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java (74%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java (100%) rename {owl-bot-staging/java-optimization/v1 => java-optimization}/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java (100%) delete mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java delete mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java delete mode 100644 owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java diff --git a/java-optimization/README.md b/java-optimization/README.md index 523223ae2e39..e0602af612c2 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.24.0 pom import @@ -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 diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java similarity index 99% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java index f5501181ba16..4dd193a8e1ba 100644 --- a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java @@ -26,7 +26,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.optimization.v1.stub.FleetRoutingStubSettings; diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/package-info.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingCallableFactory.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java similarity index 99% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java index c1284dbd4ae8..f7fb48354182 100644 --- a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/GrpcFleetRoutingStub.java @@ -34,7 +34,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingCallableFactory.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java similarity index 99% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java rename to java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java index ca7f9303c8e3..abd18208d84d 100644 --- a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/HttpJsonFleetRoutingStub.java @@ -29,7 +29,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json b/java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json rename to java-optimization/google-cloud-optimization/src/main/resources/META-INF/native-image/com.google.cloud.optimization.v1/reflect-config.json diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java b/java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java rename to java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientHttpJsonTest.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java b/java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java rename to java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/FleetRoutingClientTest.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java b/java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java rename to java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRouting.java diff --git a/owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java b/java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java rename to java-optimization/google-cloud-optimization/src/test/java/com/google/cloud/optimization/v1/MockFleetRoutingImpl.java diff --git a/owl-bot-staging/java-optimization/v1/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java b/java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java similarity index 67% rename from owl-bot-staging/java-optimization/v1/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java rename to java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java index 7fbf645e4a39..2297ce44d24a 100644 --- a/owl-bot-staging/java-optimization/v1/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java +++ b/java-optimization/grpc-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.optimization.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * A service for optimizing vehicle tours.
  * Validity of certain types of fields:
@@ -32,113 +49,143 @@ private FleetRoutingGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.cloud.optimization.v1.FleetRouting";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getOptimizeToursMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.optimization.v1.OptimizeToursRequest,
+          com.google.cloud.optimization.v1.OptimizeToursResponse>
+      getOptimizeToursMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "OptimizeTours",
       requestType = com.google.cloud.optimization.v1.OptimizeToursRequest.class,
       responseType = com.google.cloud.optimization.v1.OptimizeToursResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getOptimizeToursMethod() {
-    io.grpc.MethodDescriptor getOptimizeToursMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.optimization.v1.OptimizeToursRequest,
+          com.google.cloud.optimization.v1.OptimizeToursResponse>
+      getOptimizeToursMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.optimization.v1.OptimizeToursRequest,
+            com.google.cloud.optimization.v1.OptimizeToursResponse>
+        getOptimizeToursMethod;
     if ((getOptimizeToursMethod = FleetRoutingGrpc.getOptimizeToursMethod) == null) {
       synchronized (FleetRoutingGrpc.class) {
         if ((getOptimizeToursMethod = FleetRoutingGrpc.getOptimizeToursMethod) == null) {
-          FleetRoutingGrpc.getOptimizeToursMethod = getOptimizeToursMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OptimizeTours"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.optimization.v1.OptimizeToursRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.optimization.v1.OptimizeToursResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new FleetRoutingMethodDescriptorSupplier("OptimizeTours"))
-              .build();
+          FleetRoutingGrpc.getOptimizeToursMethod =
+              getOptimizeToursMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OptimizeTours"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.optimization.v1.OptimizeToursRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.optimization.v1.OptimizeToursResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new FleetRoutingMethodDescriptorSupplier("OptimizeTours"))
+                      .build();
         }
       }
     }
     return getOptimizeToursMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getBatchOptimizeToursMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.optimization.v1.BatchOptimizeToursRequest,
+          com.google.longrunning.Operation>
+      getBatchOptimizeToursMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchOptimizeTours",
       requestType = com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchOptimizeToursMethod() {
-    io.grpc.MethodDescriptor getBatchOptimizeToursMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.optimization.v1.BatchOptimizeToursRequest,
+          com.google.longrunning.Operation>
+      getBatchOptimizeToursMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.optimization.v1.BatchOptimizeToursRequest,
+            com.google.longrunning.Operation>
+        getBatchOptimizeToursMethod;
     if ((getBatchOptimizeToursMethod = FleetRoutingGrpc.getBatchOptimizeToursMethod) == null) {
       synchronized (FleetRoutingGrpc.class) {
         if ((getBatchOptimizeToursMethod = FleetRoutingGrpc.getBatchOptimizeToursMethod) == null) {
-          FleetRoutingGrpc.getBatchOptimizeToursMethod = getBatchOptimizeToursMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchOptimizeTours"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.optimization.v1.BatchOptimizeToursRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new FleetRoutingMethodDescriptorSupplier("BatchOptimizeTours"))
-              .build();
+          FleetRoutingGrpc.getBatchOptimizeToursMethod =
+              getBatchOptimizeToursMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchOptimizeTours"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.optimization.v1.BatchOptimizeToursRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new FleetRoutingMethodDescriptorSupplier("BatchOptimizeTours"))
+                      .build();
         }
       }
     }
     return getBatchOptimizeToursMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static FleetRoutingStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public FleetRoutingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new FleetRoutingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public FleetRoutingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new FleetRoutingStub(channel, callOptions);
+          }
+        };
     return FleetRoutingStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static FleetRoutingBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static FleetRoutingBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public FleetRoutingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new FleetRoutingBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public FleetRoutingBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new FleetRoutingBlockingStub(channel, callOptions);
+          }
+        };
     return FleetRoutingBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static FleetRoutingFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static FleetRoutingFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public FleetRoutingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new FleetRoutingFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public FleetRoutingFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new FleetRoutingFutureStub(channel, callOptions);
+          }
+        };
     return FleetRoutingFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -160,6 +207,8 @@ public FleetRoutingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptio
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an
      * `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of
@@ -175,12 +224,17 @@ public interface AsyncService {
      * `ShipmentModel`.
      * 
*/ - default void optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOptimizeToursMethod(), responseObserver); + default void optimizeTours( + com.google.cloud.optimization.v1.OptimizeToursRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getOptimizeToursMethod(), responseObserver); } /** + * + * *
      * Optimizes vehicle tours for one or more `OptimizeToursRequest`
      * messages as a batch.
@@ -193,14 +247,17 @@ default void optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest
      * vehicles minimizing the overall cost.
      * 
*/ - default void batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeToursRequest request, + default void batchOptimizeTours( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchOptimizeToursMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchOptimizeToursMethod(), responseObserver); } } /** * Base class for the server implementation of the service FleetRouting. + * *
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -219,16 +276,18 @@ default void batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeTo
    *     * at least one of latitude and longitude must be non-zero.
    * 
*/ - public static abstract class FleetRoutingImplBase + public abstract static class FleetRoutingImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return FleetRoutingGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service FleetRouting. + * *
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -249,18 +308,18 @@ public static abstract class FleetRoutingImplBase
    */
   public static final class FleetRoutingStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private FleetRoutingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private FleetRoutingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected FleetRoutingStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected FleetRoutingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new FleetRoutingStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an
      * `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of
@@ -276,13 +335,19 @@ protected FleetRoutingStub build(
      * `ShipmentModel`.
      * 
*/ - public void optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void optimizeTours( + com.google.cloud.optimization.v1.OptimizeToursRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getOptimizeToursMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getOptimizeToursMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Optimizes vehicle tours for one or more `OptimizeToursRequest`
      * messages as a batch.
@@ -295,15 +360,19 @@ public void optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest
      * vehicles minimizing the overall cost.
      * 
*/ - public void batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeToursRequest request, + public void batchOptimizeTours( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchOptimizeToursMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchOptimizeToursMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service FleetRouting. + * *
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -324,8 +393,7 @@ public void batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeTou
    */
   public static final class FleetRoutingBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private FleetRoutingBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private FleetRoutingBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -336,6 +404,8 @@ protected FleetRoutingBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an
      * `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of
@@ -351,12 +421,15 @@ protected FleetRoutingBlockingStub build(
      * `ShipmentModel`.
      * 
*/ - public com.google.cloud.optimization.v1.OptimizeToursResponse optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest request) { + public com.google.cloud.optimization.v1.OptimizeToursResponse optimizeTours( + com.google.cloud.optimization.v1.OptimizeToursRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getOptimizeToursMethod(), getCallOptions(), request); } /** + * + * *
      * Optimizes vehicle tours for one or more `OptimizeToursRequest`
      * messages as a batch.
@@ -369,7 +442,8 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse optimizeTours(com.
      * vehicles minimizing the overall cost.
      * 
*/ - public com.google.longrunning.Operation batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) { + public com.google.longrunning.Operation batchOptimizeTours( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchOptimizeToursMethod(), getCallOptions(), request); } @@ -377,6 +451,7 @@ public com.google.longrunning.Operation batchOptimizeTours(com.google.cloud.opti /** * A stub to allow clients to do ListenableFuture-style rpc calls to service FleetRouting. + * *
    * A service for optimizing vehicle tours.
    * Validity of certain types of fields:
@@ -397,8 +472,7 @@ public com.google.longrunning.Operation batchOptimizeTours(com.google.cloud.opti
    */
   public static final class FleetRoutingFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private FleetRoutingFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private FleetRoutingFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -409,6 +483,8 @@ protected FleetRoutingFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an
      * `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of
@@ -424,13 +500,16 @@ protected FleetRoutingFutureStub build(
      * `ShipmentModel`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture optimizeTours( - com.google.cloud.optimization.v1.OptimizeToursRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.optimization.v1.OptimizeToursResponse> + optimizeTours(com.google.cloud.optimization.v1.OptimizeToursRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getOptimizeToursMethod(), getCallOptions()), request); } /** + * + * *
      * Optimizes vehicle tours for one or more `OptimizeToursRequest`
      * messages as a batch.
@@ -443,8 +522,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture batchOptimizeTours(
-        com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        batchOptimizeTours(com.google.cloud.optimization.v1.BatchOptimizeToursRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getBatchOptimizeToursMethod(), getCallOptions()), request);
     }
@@ -453,11 +532,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final AsyncService serviceImpl;
     private final int methodId;
 
@@ -471,11 +550,14 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_OPTIMIZE_TOURS:
-          serviceImpl.optimizeTours((com.google.cloud.optimization.v1.OptimizeToursRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.optimizeTours(
+              (com.google.cloud.optimization.v1.OptimizeToursRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_BATCH_OPTIMIZE_TOURS:
-          serviceImpl.batchOptimizeTours((com.google.cloud.optimization.v1.BatchOptimizeToursRequest) request,
+          serviceImpl.batchOptimizeTours(
+              (com.google.cloud.optimization.v1.BatchOptimizeToursRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -497,24 +579,24 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-          getOptimizeToursMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.optimization.v1.OptimizeToursRequest,
-              com.google.cloud.optimization.v1.OptimizeToursResponse>(
-                service, METHODID_OPTIMIZE_TOURS)))
+            getOptimizeToursMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.optimization.v1.OptimizeToursRequest,
+                    com.google.cloud.optimization.v1.OptimizeToursResponse>(
+                    service, METHODID_OPTIMIZE_TOURS)))
         .addMethod(
-          getBatchOptimizeToursMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.optimization.v1.BatchOptimizeToursRequest,
-              com.google.longrunning.Operation>(
-                service, METHODID_BATCH_OPTIMIZE_TOURS)))
+            getBatchOptimizeToursMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.optimization.v1.BatchOptimizeToursRequest,
+                    com.google.longrunning.Operation>(service, METHODID_BATCH_OPTIMIZE_TOURS)))
         .build();
   }
 
-  private static abstract class FleetRoutingBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class FleetRoutingBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     FleetRoutingBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -556,11 +638,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (FleetRoutingGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new FleetRoutingFileDescriptorSupplier())
-              .addMethod(getOptimizeToursMethod())
-              .addMethod(getBatchOptimizeToursMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new FleetRoutingFileDescriptorSupplier())
+                      .addMethod(getOptimizeToursMethod())
+                      .addMethod(getBatchOptimizeToursMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java
similarity index 67%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java
index ec3530c6599a..3ac4515cb902 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetrics.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
+ *
+ *
  * 
  * Aggregated metrics for
  * [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute] (resp. for
@@ -15,61 +32,64 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.AggregatedMetrics}
  */
-public final class AggregatedMetrics extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AggregatedMetrics extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.AggregatedMetrics)
     AggregatedMetricsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AggregatedMetrics.newBuilder() to construct.
   private AggregatedMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private AggregatedMetrics() {
-  }
+
+  private AggregatedMetrics() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AggregatedMetrics();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 9:
         return internalGetMaxLoads();
       case 10:
         return internalGetCosts();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.AggregatedMetrics.class, com.google.cloud.optimization.v1.AggregatedMetrics.Builder.class);
+            com.google.cloud.optimization.v1.AggregatedMetrics.class,
+            com.google.cloud.optimization.v1.AggregatedMetrics.Builder.class);
   }
 
   public static final int PERFORMED_SHIPMENT_COUNT_FIELD_NUMBER = 1;
   private int performedShipmentCount_ = 0;
   /**
+   *
+   *
    * 
    * Number of shipments performed. Note that a pickup and delivery pair only
    * counts once.
    * 
* * int32 performed_shipment_count = 1; + * * @return The performedShipmentCount. */ @java.lang.Override @@ -80,11 +100,14 @@ public int getPerformedShipmentCount() { public static final int TRAVEL_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration travelDuration_; /** + * + * *
    * Total travel duration for a route or a solution.
    * 
* * .google.protobuf.Duration travel_duration = 2; + * * @return Whether the travelDuration field is set. */ @java.lang.Override @@ -92,18 +115,25 @@ public boolean hasTravelDuration() { return travelDuration_ != null; } /** + * + * *
    * Total travel duration for a route or a solution.
    * 
* * .google.protobuf.Duration travel_duration = 2; + * * @return The travelDuration. */ @java.lang.Override public com.google.protobuf.Duration getTravelDuration() { - return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; } /** + * + * *
    * Total travel duration for a route or a solution.
    * 
@@ -112,17 +142,22 @@ public com.google.protobuf.Duration getTravelDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { - return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; } public static final int WAIT_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration waitDuration_; /** + * + * *
    * Total wait duration for a route or a solution.
    * 
* * .google.protobuf.Duration wait_duration = 3; + * * @return Whether the waitDuration field is set. */ @java.lang.Override @@ -130,18 +165,25 @@ public boolean hasWaitDuration() { return waitDuration_ != null; } /** + * + * *
    * Total wait duration for a route or a solution.
    * 
* * .google.protobuf.Duration wait_duration = 3; + * * @return The waitDuration. */ @java.lang.Override public com.google.protobuf.Duration getWaitDuration() { - return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; + return waitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitDuration_; } /** + * + * *
    * Total wait duration for a route or a solution.
    * 
@@ -150,17 +192,22 @@ public com.google.protobuf.Duration getWaitDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() { - return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; + return waitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitDuration_; } public static final int DELAY_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration delayDuration_; /** + * + * *
    * Total delay duration for a route or a solution.
    * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return Whether the delayDuration field is set. */ @java.lang.Override @@ -168,18 +215,25 @@ public boolean hasDelayDuration() { return delayDuration_ != null; } /** + * + * *
    * Total delay duration for a route or a solution.
    * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return The delayDuration. */ @java.lang.Override public com.google.protobuf.Duration getDelayDuration() { - return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; + return delayDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : delayDuration_; } /** + * + * *
    * Total delay duration for a route or a solution.
    * 
@@ -188,17 +242,22 @@ public com.google.protobuf.Duration getDelayDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() { - return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; + return delayDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : delayDuration_; } public static final int BREAK_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration breakDuration_; /** + * + * *
    * Total break duration for a route or a solution.
    * 
* * .google.protobuf.Duration break_duration = 5; + * * @return Whether the breakDuration field is set. */ @java.lang.Override @@ -206,18 +265,25 @@ public boolean hasBreakDuration() { return breakDuration_ != null; } /** + * + * *
    * Total break duration for a route or a solution.
    * 
* * .google.protobuf.Duration break_duration = 5; + * * @return The breakDuration. */ @java.lang.Override public com.google.protobuf.Duration getBreakDuration() { - return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; + return breakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : breakDuration_; } /** + * + * *
    * Total break duration for a route or a solution.
    * 
@@ -226,17 +292,22 @@ public com.google.protobuf.Duration getBreakDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() { - return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; + return breakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : breakDuration_; } public static final int VISIT_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration visitDuration_; /** + * + * *
    * Total visit duration for a route or a solution.
    * 
* * .google.protobuf.Duration visit_duration = 6; + * * @return Whether the visitDuration field is set. */ @java.lang.Override @@ -244,18 +315,25 @@ public boolean hasVisitDuration() { return visitDuration_ != null; } /** + * + * *
    * Total visit duration for a route or a solution.
    * 
* * .google.protobuf.Duration visit_duration = 6; + * * @return The visitDuration. */ @java.lang.Override public com.google.protobuf.Duration getVisitDuration() { - return visitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : visitDuration_; + return visitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : visitDuration_; } /** + * + * *
    * Total visit duration for a route or a solution.
    * 
@@ -264,12 +342,16 @@ public com.google.protobuf.Duration getVisitDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() { - return visitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : visitDuration_; + return visitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : visitDuration_; } public static final int TOTAL_DURATION_FIELD_NUMBER = 7; private com.google.protobuf.Duration totalDuration_; /** + * + * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -279,6 +361,7 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() {
    * 
* * .google.protobuf.Duration total_duration = 7; + * * @return Whether the totalDuration field is set. */ @java.lang.Override @@ -286,6 +369,8 @@ public boolean hasTotalDuration() { return totalDuration_ != null; } /** + * + * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -295,13 +380,18 @@ public boolean hasTotalDuration() {
    * 
* * .google.protobuf.Duration total_duration = 7; + * * @return The totalDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalDuration() { - return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_; + return totalDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalDuration_; } /** + * + * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -314,17 +404,22 @@ public com.google.protobuf.Duration getTotalDuration() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
-    return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_;
+    return totalDuration_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : totalDuration_;
   }
 
   public static final int TRAVEL_DISTANCE_METERS_FIELD_NUMBER = 8;
   private double travelDistanceMeters_ = 0D;
   /**
+   *
+   *
    * 
    * Total travel distance for a route or a solution.
    * 
* * double travel_distance_meters = 8; + * * @return The travelDistanceMeters. */ @java.lang.Override @@ -333,32 +428,43 @@ public double getTravelDistanceMeters() { } public static final int MAX_LOADS_FIELD_NUMBER = 9; + private static final class MaxLoadsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> defaultEntry = + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad + .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> maxLoads_; - private com.google.protobuf.MapField - internalGetMaxLoads() { + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + maxLoads_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + internalGetMaxLoads() { if (maxLoads_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MaxLoadsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MaxLoadsDefaultEntryHolder.defaultEntry); } return maxLoads_; } + public int getMaxLoadsCount() { return internalGetMaxLoads().getMap().size(); } /** + * + * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -368,23 +474,26 @@ public int getMaxLoadsCount() {
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ @java.lang.Override - public boolean containsMaxLoads( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMaxLoads(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMaxLoads().getMap().containsKey(key); } - /** - * Use {@link #getMaxLoadsMap()} instead. - */ + /** Use {@link #getMaxLoadsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMaxLoads() { + public java.util.Map + getMaxLoads() { return getMaxLoadsMap(); } /** + * + * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -394,13 +503,17 @@ public java.util.Map
    *
-   * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
+   * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
+   * 
    */
   @java.lang.Override
-  public java.util.Map getMaxLoadsMap() {
+  public java.util.Map
+      getMaxLoadsMap() {
     return internalGetMaxLoads().getMap();
   }
   /**
+   *
+   *
    * 
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -410,20 +523,25 @@ public java.util.Map
    *
-   * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
+   * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
+   * 
    */
   @java.lang.Override
-  public /* nullable */
-com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault(
-      java.lang.String key,
-      /* nullable */
-com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMaxLoads().getMap();
+  public /* nullable */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad
+      getMaxLoadsOrDefault(
+          java.lang.String key,
+          /* nullable */
+          com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map
+        map = internalGetMaxLoads().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -433,14 +551,17 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault(
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMaxLoads().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMaxLoads().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -448,32 +569,35 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrT } public static final int COSTS_FIELD_NUMBER = 10; + private static final class CostsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Double> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.DOUBLE, - 0D); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.DOUBLE, + 0D); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Double> costs_; - private com.google.protobuf.MapField - internalGetCosts() { + private com.google.protobuf.MapField costs_; + + private com.google.protobuf.MapField internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); } return costs_; } - @java.lang.Deprecated public int getCostsCount() { + + @java.lang.Deprecated + public int getCostsCount() { return internalGetCosts().getMap().size(); } /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -485,20 +609,22 @@ private static final class CostsDefaultEntryHolder {
    * map<string, double> costs = 10 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated public boolean containsCosts(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  @java.lang.Deprecated
+  public boolean containsCosts(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetCosts().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getCostsMap()} instead.
-   */
+  /** Use {@link #getCostsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getCosts() {
     return getCostsMap();
   }
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -510,10 +636,13 @@ public java.util.Map getCosts() {
    * map<string, double> costs = 10 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated public java.util.Map getCostsMap() {
+  @java.lang.Deprecated
+  public java.util.Map getCostsMap() {
     return internalGetCosts().getMap();
   }
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -525,15 +654,17 @@ public java.util.Map getCosts() {
    * map<string, double> costs = 10 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated public double getCostsOrDefault(
-      java.lang.String key,
-      double defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetCosts().getMap();
+  @java.lang.Deprecated
+  public double getCostsOrDefault(java.lang.String key, double defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetCosts().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -545,11 +676,12 @@ public java.util.Map getCosts() {
    * map<string, double> costs = 10 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated public double getCostsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetCosts().getMap();
+  @java.lang.Deprecated
+  public double getCostsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetCosts().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -559,6 +691,8 @@ public java.util.Map getCosts() {
   public static final int TOTAL_COST_FIELD_NUMBER = 11;
   private double totalCost_ = 0D;
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -568,16 +702,19 @@ public java.util.Map getCosts() {
    * 
* * double total_cost = 11 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 + * + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @return The totalCost. */ @java.lang.Override - @java.lang.Deprecated public double getTotalCost() { + @java.lang.Deprecated + public double getTotalCost() { return totalCost_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -589,8 +726,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (performedShipmentCount_ != 0) { output.writeInt32(1, performedShipmentCount_); } @@ -615,18 +751,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (java.lang.Double.doubleToRawLongBits(travelDistanceMeters_) != 0) { output.writeDouble(8, travelDistanceMeters_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMaxLoads(), - MaxLoadsDefaultEntryHolder.defaultEntry, - 9); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCosts(), - CostsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMaxLoads(), MaxLoadsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCosts(), CostsDefaultEntryHolder.defaultEntry, 10); if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { output.writeDouble(11, totalCost_); } @@ -640,60 +768,54 @@ public int getSerializedSize() { size = 0; if (performedShipmentCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, performedShipmentCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, performedShipmentCount_); } if (travelDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTravelDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTravelDuration()); } if (waitDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWaitDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWaitDuration()); } if (delayDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDelayDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDelayDuration()); } if (breakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getBreakDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBreakDuration()); } if (visitDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getVisitDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVisitDuration()); } if (totalDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTotalDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTotalDuration()); } if (java.lang.Double.doubleToRawLongBits(travelDistanceMeters_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(8, travelDistanceMeters_); - } - for (java.util.Map.Entry entry - : internalGetMaxLoads().getMap().entrySet()) { - com.google.protobuf.MapEntry - maxLoads__ = MaxLoadsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, maxLoads__); - } - for (java.util.Map.Entry entry - : internalGetCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry - costs__ = CostsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, costs__); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, travelDistanceMeters_); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + entry : internalGetMaxLoads().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + maxLoads__ = + MaxLoadsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, maxLoads__); + } + for (java.util.Map.Entry entry : + internalGetCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry costs__ = + CostsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, costs__); } if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(11, totalCost_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, totalCost_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -703,55 +825,45 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.AggregatedMetrics)) { return super.equals(obj); } - com.google.cloud.optimization.v1.AggregatedMetrics other = (com.google.cloud.optimization.v1.AggregatedMetrics) obj; + com.google.cloud.optimization.v1.AggregatedMetrics other = + (com.google.cloud.optimization.v1.AggregatedMetrics) obj; - if (getPerformedShipmentCount() - != other.getPerformedShipmentCount()) return false; + if (getPerformedShipmentCount() != other.getPerformedShipmentCount()) return false; if (hasTravelDuration() != other.hasTravelDuration()) return false; if (hasTravelDuration()) { - if (!getTravelDuration() - .equals(other.getTravelDuration())) return false; + if (!getTravelDuration().equals(other.getTravelDuration())) return false; } if (hasWaitDuration() != other.hasWaitDuration()) return false; if (hasWaitDuration()) { - if (!getWaitDuration() - .equals(other.getWaitDuration())) return false; + if (!getWaitDuration().equals(other.getWaitDuration())) return false; } if (hasDelayDuration() != other.hasDelayDuration()) return false; if (hasDelayDuration()) { - if (!getDelayDuration() - .equals(other.getDelayDuration())) return false; + if (!getDelayDuration().equals(other.getDelayDuration())) return false; } if (hasBreakDuration() != other.hasBreakDuration()) return false; if (hasBreakDuration()) { - if (!getBreakDuration() - .equals(other.getBreakDuration())) return false; + if (!getBreakDuration().equals(other.getBreakDuration())) return false; } if (hasVisitDuration() != other.hasVisitDuration()) return false; if (hasVisitDuration()) { - if (!getVisitDuration() - .equals(other.getVisitDuration())) return false; + if (!getVisitDuration().equals(other.getVisitDuration())) return false; } if (hasTotalDuration() != other.hasTotalDuration()) return false; if (hasTotalDuration()) { - if (!getTotalDuration() - .equals(other.getTotalDuration())) return false; + if (!getTotalDuration().equals(other.getTotalDuration())) return false; } if (java.lang.Double.doubleToLongBits(getTravelDistanceMeters()) - != java.lang.Double.doubleToLongBits( - other.getTravelDistanceMeters())) return false; - if (!internalGetMaxLoads().equals( - other.internalGetMaxLoads())) return false; - if (!internalGetCosts().equals( - other.internalGetCosts())) return false; + != java.lang.Double.doubleToLongBits(other.getTravelDistanceMeters())) return false; + if (!internalGetMaxLoads().equals(other.internalGetMaxLoads())) return false; + if (!internalGetCosts().equals(other.internalGetCosts())) return false; if (java.lang.Double.doubleToLongBits(getTotalCost()) - != java.lang.Double.doubleToLongBits( - other.getTotalCost())) return false; + != java.lang.Double.doubleToLongBits(other.getTotalCost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -790,8 +902,10 @@ public int hashCode() { hash = (53 * hash) + getTotalDuration().hashCode(); } hash = (37 * hash) + TRAVEL_DISTANCE_METERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTravelDistanceMeters())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTravelDistanceMeters())); if (!internalGetMaxLoads().getMap().isEmpty()) { hash = (37 * hash) + MAX_LOADS_FIELD_NUMBER; hash = (53 * hash) + internalGetMaxLoads().hashCode(); @@ -801,106 +915,113 @@ public int hashCode() { hash = (53 * hash) + internalGetCosts().hashCode(); } hash = (37 * hash) + TOTAL_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTotalCost())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTotalCost())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.AggregatedMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.AggregatedMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.AggregatedMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.AggregatedMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.AggregatedMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Aggregated metrics for
    * [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute] (resp. for
@@ -912,59 +1033,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.AggregatedMetrics}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.AggregatedMetrics)
       com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 9:
           return internalGetMaxLoads();
         case 10:
           return internalGetCosts();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 9:
           return internalGetMutableMaxLoads();
         case 10:
           return internalGetMutableCosts();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.AggregatedMetrics.class, com.google.cloud.optimization.v1.AggregatedMetrics.Builder.class);
+              com.google.cloud.optimization.v1.AggregatedMetrics.class,
+              com.google.cloud.optimization.v1.AggregatedMetrics.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.AggregatedMetrics.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1008,9 +1126,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor;
     }
 
     @java.lang.Override
@@ -1029,8 +1147,11 @@ public com.google.cloud.optimization.v1.AggregatedMetrics build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.AggregatedMetrics buildPartial() {
-      com.google.cloud.optimization.v1.AggregatedMetrics result = new com.google.cloud.optimization.v1.AggregatedMetrics(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.AggregatedMetrics result =
+          new com.google.cloud.optimization.v1.AggregatedMetrics(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1041,34 +1162,28 @@ private void buildPartial0(com.google.cloud.optimization.v1.AggregatedMetrics re
         result.performedShipmentCount_ = performedShipmentCount_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.travelDuration_ = travelDurationBuilder_ == null
-            ? travelDuration_
-            : travelDurationBuilder_.build();
+        result.travelDuration_ =
+            travelDurationBuilder_ == null ? travelDuration_ : travelDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.waitDuration_ = waitDurationBuilder_ == null
-            ? waitDuration_
-            : waitDurationBuilder_.build();
+        result.waitDuration_ =
+            waitDurationBuilder_ == null ? waitDuration_ : waitDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.delayDuration_ = delayDurationBuilder_ == null
-            ? delayDuration_
-            : delayDurationBuilder_.build();
+        result.delayDuration_ =
+            delayDurationBuilder_ == null ? delayDuration_ : delayDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.breakDuration_ = breakDurationBuilder_ == null
-            ? breakDuration_
-            : breakDurationBuilder_.build();
+        result.breakDuration_ =
+            breakDurationBuilder_ == null ? breakDuration_ : breakDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.visitDuration_ = visitDurationBuilder_ == null
-            ? visitDuration_
-            : visitDurationBuilder_.build();
+        result.visitDuration_ =
+            visitDurationBuilder_ == null ? visitDuration_ : visitDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.totalDuration_ = totalDurationBuilder_ == null
-            ? totalDuration_
-            : totalDurationBuilder_.build();
+        result.totalDuration_ =
+            totalDurationBuilder_ == null ? totalDuration_ : totalDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
         result.travelDistanceMeters_ = travelDistanceMeters_;
@@ -1090,38 +1205,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.AggregatedMetrics re
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.AggregatedMetrics) {
-        return mergeFrom((com.google.cloud.optimization.v1.AggregatedMetrics)other);
+        return mergeFrom((com.google.cloud.optimization.v1.AggregatedMetrics) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1129,7 +1245,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.AggregatedMetrics other) {
-      if (other == com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance())
+        return this;
       if (other.getPerformedShipmentCount() != 0) {
         setPerformedShipmentCount(other.getPerformedShipmentCount());
       }
@@ -1154,11 +1271,9 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.AggregatedMetrics othe
       if (other.getTravelDistanceMeters() != 0D) {
         setTravelDistanceMeters(other.getTravelDistanceMeters());
       }
-      internalGetMutableMaxLoads().mergeFrom(
-          other.internalGetMaxLoads());
+      internalGetMutableMaxLoads().mergeFrom(other.internalGetMaxLoads());
       bitField0_ |= 0x00000100;
-      internalGetMutableCosts().mergeFrom(
-          other.internalGetCosts());
+      internalGetMutableCosts().mergeFrom(other.internalGetCosts());
       bitField0_ |= 0x00000200;
       if (other.getTotalCost() != 0D) {
         setTotalCost(other.getTotalCost());
@@ -1189,87 +1304,91 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              performedShipmentCount_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getTravelDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getWaitDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getDelayDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getBreakDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getVisitDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getTotalDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 65: {
-              travelDistanceMeters_ = input.readDouble();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 65
-            case 74: {
-              com.google.protobuf.MapEntry
-              maxLoads__ = input.readMessage(
-                  MaxLoadsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableMaxLoads().getMutableMap().put(
-                  maxLoads__.getKey(), maxLoads__.getValue());
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              com.google.protobuf.MapEntry
-              costs__ = input.readMessage(
-                  CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableCosts().getMutableMap().put(
-                  costs__.getKey(), costs__.getValue());
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 89: {
-              totalCost_ = input.readDouble();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 89
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                performedShipmentCount_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getTravelDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getWaitDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getDelayDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getBreakDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getVisitDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getTotalDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 65:
+              {
+                travelDistanceMeters_ = input.readDouble();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 65
+            case 74:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String,
+                        com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
+                    maxLoads__ =
+                        input.readMessage(
+                            MaxLoadsDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableMaxLoads()
+                    .getMutableMap()
+                    .put(maxLoads__.getKey(), maxLoads__.getValue());
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                com.google.protobuf.MapEntry costs__ =
+                    input.readMessage(
+                        CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+                internalGetMutableCosts().getMutableMap().put(costs__.getKey(), costs__.getValue());
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 89:
+              {
+                totalCost_ = input.readDouble();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 89
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1279,16 +1398,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int performedShipmentCount_ ;
+    private int performedShipmentCount_;
     /**
+     *
+     *
      * 
      * Number of shipments performed. Note that a pickup and delivery pair only
      * counts once.
      * 
* * int32 performed_shipment_count = 1; + * * @return The performedShipmentCount. */ @java.lang.Override @@ -1296,12 +1419,15 @@ public int getPerformedShipmentCount() { return performedShipmentCount_; } /** + * + * *
      * Number of shipments performed. Note that a pickup and delivery pair only
      * counts once.
      * 
* * int32 performed_shipment_count = 1; + * * @param value The performedShipmentCount to set. * @return This builder for chaining. */ @@ -1313,12 +1439,15 @@ public Builder setPerformedShipmentCount(int value) { return this; } /** + * + * *
      * Number of shipments performed. Note that a pickup and delivery pair only
      * counts once.
      * 
* * int32 performed_shipment_count = 1; + * * @return This builder for chaining. */ public Builder clearPerformedShipmentCount() { @@ -1330,34 +1459,47 @@ public Builder clearPerformedShipmentCount() { private com.google.protobuf.Duration travelDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> travelDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + travelDurationBuilder_; /** + * + * *
      * Total travel duration for a route or a solution.
      * 
* * .google.protobuf.Duration travel_duration = 2; + * * @return Whether the travelDuration field is set. */ public boolean hasTravelDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Total travel duration for a route or a solution.
      * 
* * .google.protobuf.Duration travel_duration = 2; + * * @return The travelDuration. */ public com.google.protobuf.Duration getTravelDuration() { if (travelDurationBuilder_ == null) { - return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; } else { return travelDurationBuilder_.getMessage(); } } /** + * + * *
      * Total travel duration for a route or a solution.
      * 
@@ -1378,14 +1520,15 @@ public Builder setTravelDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total travel duration for a route or a solution.
      * 
* * .google.protobuf.Duration travel_duration = 2; */ - public Builder setTravelDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { if (travelDurationBuilder_ == null) { travelDuration_ = builderForValue.build(); } else { @@ -1396,6 +1539,8 @@ public Builder setTravelDuration( return this; } /** + * + * *
      * Total travel duration for a route or a solution.
      * 
@@ -1404,9 +1549,9 @@ public Builder setTravelDuration( */ public Builder mergeTravelDuration(com.google.protobuf.Duration value) { if (travelDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - travelDuration_ != null && - travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && travelDuration_ != null + && travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTravelDurationBuilder().mergeFrom(value); } else { travelDuration_ = value; @@ -1419,6 +1564,8 @@ public Builder mergeTravelDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total travel duration for a route or a solution.
      * 
@@ -1436,6 +1583,8 @@ public Builder clearTravelDuration() { return this; } /** + * + * *
      * Total travel duration for a route or a solution.
      * 
@@ -1448,6 +1597,8 @@ public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { return getTravelDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Total travel duration for a route or a solution.
      * 
@@ -1458,11 +1609,14 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { if (travelDurationBuilder_ != null) { return travelDurationBuilder_.getMessageOrBuilder(); } else { - return travelDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; } } /** + * + * *
      * Total travel duration for a route or a solution.
      * 
@@ -1470,14 +1624,17 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { * .google.protobuf.Duration travel_duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTravelDurationFieldBuilder() { if (travelDurationBuilder_ == null) { - travelDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTravelDuration(), - getParentForChildren(), - isClean()); + travelDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), getParentForChildren(), isClean()); travelDuration_ = null; } return travelDurationBuilder_; @@ -1485,34 +1642,47 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { private com.google.protobuf.Duration waitDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> waitDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + waitDurationBuilder_; /** + * + * *
      * Total wait duration for a route or a solution.
      * 
* * .google.protobuf.Duration wait_duration = 3; + * * @return Whether the waitDuration field is set. */ public boolean hasWaitDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Total wait duration for a route or a solution.
      * 
* * .google.protobuf.Duration wait_duration = 3; + * * @return The waitDuration. */ public com.google.protobuf.Duration getWaitDuration() { if (waitDurationBuilder_ == null) { - return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; + return waitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitDuration_; } else { return waitDurationBuilder_.getMessage(); } } /** + * + * *
      * Total wait duration for a route or a solution.
      * 
@@ -1533,14 +1703,15 @@ public Builder setWaitDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total wait duration for a route or a solution.
      * 
* * .google.protobuf.Duration wait_duration = 3; */ - public Builder setWaitDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForValue) { if (waitDurationBuilder_ == null) { waitDuration_ = builderForValue.build(); } else { @@ -1551,6 +1722,8 @@ public Builder setWaitDuration( return this; } /** + * + * *
      * Total wait duration for a route or a solution.
      * 
@@ -1559,9 +1732,9 @@ public Builder setWaitDuration( */ public Builder mergeWaitDuration(com.google.protobuf.Duration value) { if (waitDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - waitDuration_ != null && - waitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && waitDuration_ != null + && waitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getWaitDurationBuilder().mergeFrom(value); } else { waitDuration_ = value; @@ -1574,6 +1747,8 @@ public Builder mergeWaitDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total wait duration for a route or a solution.
      * 
@@ -1591,6 +1766,8 @@ public Builder clearWaitDuration() { return this; } /** + * + * *
      * Total wait duration for a route or a solution.
      * 
@@ -1603,6 +1780,8 @@ public com.google.protobuf.Duration.Builder getWaitDurationBuilder() { return getWaitDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Total wait duration for a route or a solution.
      * 
@@ -1613,11 +1792,14 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() { if (waitDurationBuilder_ != null) { return waitDurationBuilder_.getMessageOrBuilder(); } else { - return waitDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; + return waitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitDuration_; } } /** + * + * *
      * Total wait duration for a route or a solution.
      * 
@@ -1625,14 +1807,17 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() { * .google.protobuf.Duration wait_duration = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getWaitDurationFieldBuilder() { if (waitDurationBuilder_ == null) { - waitDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getWaitDuration(), - getParentForChildren(), - isClean()); + waitDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getWaitDuration(), getParentForChildren(), isClean()); waitDuration_ = null; } return waitDurationBuilder_; @@ -1640,34 +1825,47 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() { private com.google.protobuf.Duration delayDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + delayDurationBuilder_; /** + * + * *
      * Total delay duration for a route or a solution.
      * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return Whether the delayDuration field is set. */ public boolean hasDelayDuration() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Total delay duration for a route or a solution.
      * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return The delayDuration. */ public com.google.protobuf.Duration getDelayDuration() { if (delayDurationBuilder_ == null) { - return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; + return delayDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : delayDuration_; } else { return delayDurationBuilder_.getMessage(); } } /** + * + * *
      * Total delay duration for a route or a solution.
      * 
@@ -1688,14 +1886,15 @@ public Builder setDelayDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total delay duration for a route or a solution.
      * 
* * .google.protobuf.Duration delay_duration = 4; */ - public Builder setDelayDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForValue) { if (delayDurationBuilder_ == null) { delayDuration_ = builderForValue.build(); } else { @@ -1706,6 +1905,8 @@ public Builder setDelayDuration( return this; } /** + * + * *
      * Total delay duration for a route or a solution.
      * 
@@ -1714,9 +1915,9 @@ public Builder setDelayDuration( */ public Builder mergeDelayDuration(com.google.protobuf.Duration value) { if (delayDurationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - delayDuration_ != null && - delayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && delayDuration_ != null + && delayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDelayDurationBuilder().mergeFrom(value); } else { delayDuration_ = value; @@ -1729,6 +1930,8 @@ public Builder mergeDelayDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total delay duration for a route or a solution.
      * 
@@ -1746,6 +1949,8 @@ public Builder clearDelayDuration() { return this; } /** + * + * *
      * Total delay duration for a route or a solution.
      * 
@@ -1758,6 +1963,8 @@ public com.google.protobuf.Duration.Builder getDelayDurationBuilder() { return getDelayDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Total delay duration for a route or a solution.
      * 
@@ -1768,11 +1975,14 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() { if (delayDurationBuilder_ != null) { return delayDurationBuilder_.getMessageOrBuilder(); } else { - return delayDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; + return delayDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : delayDuration_; } } /** + * + * *
      * Total delay duration for a route or a solution.
      * 
@@ -1780,14 +1990,17 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() { * .google.protobuf.Duration delay_duration = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDelayDurationFieldBuilder() { if (delayDurationBuilder_ == null) { - delayDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDelayDuration(), - getParentForChildren(), - isClean()); + delayDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDelayDuration(), getParentForChildren(), isClean()); delayDuration_ = null; } return delayDurationBuilder_; @@ -1795,34 +2008,47 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() { private com.google.protobuf.Duration breakDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> breakDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + breakDurationBuilder_; /** + * + * *
      * Total break duration for a route or a solution.
      * 
* * .google.protobuf.Duration break_duration = 5; + * * @return Whether the breakDuration field is set. */ public boolean hasBreakDuration() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Total break duration for a route or a solution.
      * 
* * .google.protobuf.Duration break_duration = 5; + * * @return The breakDuration. */ public com.google.protobuf.Duration getBreakDuration() { if (breakDurationBuilder_ == null) { - return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; + return breakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : breakDuration_; } else { return breakDurationBuilder_.getMessage(); } } /** + * + * *
      * Total break duration for a route or a solution.
      * 
@@ -1843,14 +2069,15 @@ public Builder setBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total break duration for a route or a solution.
      * 
* * .google.protobuf.Duration break_duration = 5; */ - public Builder setBreakDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForValue) { if (breakDurationBuilder_ == null) { breakDuration_ = builderForValue.build(); } else { @@ -1861,6 +2088,8 @@ public Builder setBreakDuration( return this; } /** + * + * *
      * Total break duration for a route or a solution.
      * 
@@ -1869,9 +2098,9 @@ public Builder setBreakDuration( */ public Builder mergeBreakDuration(com.google.protobuf.Duration value) { if (breakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - breakDuration_ != null && - breakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && breakDuration_ != null + && breakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getBreakDurationBuilder().mergeFrom(value); } else { breakDuration_ = value; @@ -1884,6 +2113,8 @@ public Builder mergeBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total break duration for a route or a solution.
      * 
@@ -1901,6 +2132,8 @@ public Builder clearBreakDuration() { return this; } /** + * + * *
      * Total break duration for a route or a solution.
      * 
@@ -1913,6 +2146,8 @@ public com.google.protobuf.Duration.Builder getBreakDurationBuilder() { return getBreakDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Total break duration for a route or a solution.
      * 
@@ -1923,11 +2158,14 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() { if (breakDurationBuilder_ != null) { return breakDurationBuilder_.getMessageOrBuilder(); } else { - return breakDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; + return breakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : breakDuration_; } } /** + * + * *
      * Total break duration for a route or a solution.
      * 
@@ -1935,14 +2173,17 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() { * .google.protobuf.Duration break_duration = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getBreakDurationFieldBuilder() { if (breakDurationBuilder_ == null) { - breakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getBreakDuration(), - getParentForChildren(), - isClean()); + breakDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getBreakDuration(), getParentForChildren(), isClean()); breakDuration_ = null; } return breakDurationBuilder_; @@ -1950,34 +2191,47 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() { private com.google.protobuf.Duration visitDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> visitDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + visitDurationBuilder_; /** + * + * *
      * Total visit duration for a route or a solution.
      * 
* * .google.protobuf.Duration visit_duration = 6; + * * @return Whether the visitDuration field is set. */ public boolean hasVisitDuration() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Total visit duration for a route or a solution.
      * 
* * .google.protobuf.Duration visit_duration = 6; + * * @return The visitDuration. */ public com.google.protobuf.Duration getVisitDuration() { if (visitDurationBuilder_ == null) { - return visitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : visitDuration_; + return visitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : visitDuration_; } else { return visitDurationBuilder_.getMessage(); } } /** + * + * *
      * Total visit duration for a route or a solution.
      * 
@@ -1998,14 +2252,15 @@ public Builder setVisitDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total visit duration for a route or a solution.
      * 
* * .google.protobuf.Duration visit_duration = 6; */ - public Builder setVisitDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setVisitDuration(com.google.protobuf.Duration.Builder builderForValue) { if (visitDurationBuilder_ == null) { visitDuration_ = builderForValue.build(); } else { @@ -2016,6 +2271,8 @@ public Builder setVisitDuration( return this; } /** + * + * *
      * Total visit duration for a route or a solution.
      * 
@@ -2024,9 +2281,9 @@ public Builder setVisitDuration( */ public Builder mergeVisitDuration(com.google.protobuf.Duration value) { if (visitDurationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - visitDuration_ != null && - visitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && visitDuration_ != null + && visitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getVisitDurationBuilder().mergeFrom(value); } else { visitDuration_ = value; @@ -2039,6 +2296,8 @@ public Builder mergeVisitDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Total visit duration for a route or a solution.
      * 
@@ -2056,6 +2315,8 @@ public Builder clearVisitDuration() { return this; } /** + * + * *
      * Total visit duration for a route or a solution.
      * 
@@ -2068,6 +2329,8 @@ public com.google.protobuf.Duration.Builder getVisitDurationBuilder() { return getVisitDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Total visit duration for a route or a solution.
      * 
@@ -2078,11 +2341,14 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() { if (visitDurationBuilder_ != null) { return visitDurationBuilder_.getMessageOrBuilder(); } else { - return visitDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : visitDuration_; + return visitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : visitDuration_; } } /** + * + * *
      * Total visit duration for a route or a solution.
      * 
@@ -2090,14 +2356,17 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() { * .google.protobuf.Duration visit_duration = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getVisitDurationFieldBuilder() { if (visitDurationBuilder_ == null) { - visitDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVisitDuration(), - getParentForChildren(), - isClean()); + visitDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getVisitDuration(), getParentForChildren(), isClean()); visitDuration_ = null; } return visitDurationBuilder_; @@ -2105,8 +2374,13 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() { private com.google.protobuf.Duration totalDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalDurationBuilder_; /** + * + * *
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2116,12 +2390,15 @@ public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder() {
      * 
* * .google.protobuf.Duration total_duration = 7; + * * @return Whether the totalDuration field is set. */ public boolean hasTotalDuration() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2131,16 +2408,21 @@ public boolean hasTotalDuration() {
      * 
* * .google.protobuf.Duration total_duration = 7; + * * @return The totalDuration. */ public com.google.protobuf.Duration getTotalDuration() { if (totalDurationBuilder_ == null) { - return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_; + return totalDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalDuration_; } else { return totalDurationBuilder_.getMessage(); } } /** + * + * *
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2165,6 +2447,8 @@ public Builder setTotalDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2175,8 +2459,7 @@ public Builder setTotalDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_duration = 7;
      */
-    public Builder setTotalDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (totalDurationBuilder_ == null) {
         totalDuration_ = builderForValue.build();
       } else {
@@ -2187,6 +2470,8 @@ public Builder setTotalDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2199,9 +2484,9 @@ public Builder setTotalDuration(
      */
     public Builder mergeTotalDuration(com.google.protobuf.Duration value) {
       if (totalDurationBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
-          totalDuration_ != null &&
-          totalDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0)
+            && totalDuration_ != null
+            && totalDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalDurationBuilder().mergeFrom(value);
         } else {
           totalDuration_ = value;
@@ -2214,6 +2499,8 @@ public Builder mergeTotalDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2235,6 +2522,8 @@ public Builder clearTotalDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2251,6 +2540,8 @@ public com.google.protobuf.Duration.Builder getTotalDurationBuilder() {
       return getTotalDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2265,11 +2556,14 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
       if (totalDurationBuilder_ != null) {
         return totalDurationBuilder_.getMessageOrBuilder();
       } else {
-        return totalDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : totalDuration_;
+        return totalDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : totalDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * The total duration should be equal to the sum of all durations above.
      * For routes, it also corresponds to:
@@ -2281,26 +2575,32 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
      * .google.protobuf.Duration total_duration = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTotalDurationFieldBuilder() {
       if (totalDurationBuilder_ == null) {
-        totalDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTotalDuration(),
-                getParentForChildren(),
-                isClean());
+        totalDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTotalDuration(), getParentForChildren(), isClean());
         totalDuration_ = null;
       }
       return totalDurationBuilder_;
     }
 
-    private double travelDistanceMeters_ ;
+    private double travelDistanceMeters_;
     /**
+     *
+     *
      * 
      * Total travel distance for a route or a solution.
      * 
* * double travel_distance_meters = 8; + * * @return The travelDistanceMeters. */ @java.lang.Override @@ -2308,11 +2608,14 @@ public double getTravelDistanceMeters() { return travelDistanceMeters_; } /** + * + * *
      * Total travel distance for a route or a solution.
      * 
* * double travel_distance_meters = 8; + * * @param value The travelDistanceMeters to set. * @return This builder for chaining. */ @@ -2324,11 +2627,14 @@ public Builder setTravelDistanceMeters(double value) { return this; } /** + * + * *
      * Total travel distance for a route or a solution.
      * 
* * double travel_distance_meters = 8; + * * @return This builder for chaining. */ public Builder clearTravelDistanceMeters() { @@ -2339,20 +2645,24 @@ public Builder clearTravelDistanceMeters() { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> maxLoads_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + maxLoads_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> internalGetMaxLoads() { if (maxLoads_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MaxLoadsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MaxLoadsDefaultEntryHolder.defaultEntry); } return maxLoads_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> internalGetMutableMaxLoads() { if (maxLoads_ == null) { - maxLoads_ = com.google.protobuf.MapField.newMapField( - MaxLoadsDefaultEntryHolder.defaultEntry); + maxLoads_ = + com.google.protobuf.MapField.newMapField(MaxLoadsDefaultEntryHolder.defaultEntry); } if (!maxLoads_.isMutable()) { maxLoads_ = maxLoads_.copy(); @@ -2361,10 +2671,13 @@ public Builder clearTravelDistanceMeters() { onChanged(); return maxLoads_; } + public int getMaxLoadsCount() { return internalGetMaxLoads().getMap().size(); } /** + * + * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2374,23 +2687,28 @@ public int getMaxLoadsCount() {
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ @java.lang.Override - public boolean containsMaxLoads( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMaxLoads(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMaxLoads().getMap().containsKey(key); } - /** - * Use {@link #getMaxLoadsMap()} instead. - */ + /** Use {@link #getMaxLoadsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMaxLoads() { + public java.util.Map< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + getMaxLoads() { return getMaxLoadsMap(); } /** + * + * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2400,13 +2718,19 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
+     * 
+     * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
+     * 
      */
     @java.lang.Override
-    public java.util.Map getMaxLoadsMap() {
+    public java.util.Map<
+            java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
+        getMaxLoadsMap() {
       return internalGetMaxLoads().getMap();
     }
     /**
+     *
+     *
      * 
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2416,20 +2740,26 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
+     * 
+     * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
+     * 
      */
     @java.lang.Override
-    public /* nullable */
-com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault(
-        java.lang.String key,
-        /* nullable */
-com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMaxLoads().getMap();
+    public /* nullable */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad
+        getMaxLoadsOrDefault(
+            java.lang.String key,
+            /* nullable */
+            com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map
+          map = internalGetMaxLoads().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2439,26 +2769,32 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault(
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMaxLoads().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMaxLoads().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearMaxLoads() { bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableMaxLoads().getMutableMap() - .clear(); + internalGetMutableMaxLoads().getMutableMap().clear(); return this; } /** + * + * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2468,25 +2804,28 @@ public Builder clearMaxLoads() {
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ - public Builder removeMaxLoads( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMaxLoads().getMutableMap() - .remove(key); + public Builder removeMaxLoads(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMaxLoads().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> getMutableMaxLoads() { bitField0_ |= 0x00000100; return internalGetMutableMaxLoads().getMutableMap(); } /** + * + * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2496,19 +2835,25 @@ public Builder removeMaxLoads(
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ public Builder putMaxLoads( - java.lang.String key, - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableMaxLoads().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMaxLoads().getMutableMap().put(key, value); bitField0_ |= 0x00000100; return this; } /** + * + * *
      * Maximum load achieved over the entire route (resp. solution), for each of
      * the quantities on this route (resp. solution), computed as the maximum over
@@ -2518,31 +2863,33 @@ public Builder putMaxLoads(
      * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ public Builder putAllMaxLoads( - java.util.Map values) { - internalGetMutableMaxLoads().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableMaxLoads().getMutableMap().putAll(values); bitField0_ |= 0x00000100; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Double> costs_; - @java.lang.Deprecated private com.google.protobuf.MapField - internalGetCosts() { + private com.google.protobuf.MapField costs_; + + @java.lang.Deprecated + private com.google.protobuf.MapField internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); } return costs_; } - @java.lang.Deprecated private com.google.protobuf.MapField + + @java.lang.Deprecated + private com.google.protobuf.MapField internalGetMutableCosts() { if (costs_ == null) { - costs_ = com.google.protobuf.MapField.newMapField( - CostsDefaultEntryHolder.defaultEntry); + costs_ = com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); } if (!costs_.isMutable()) { costs_ = costs_.copy(); @@ -2551,10 +2898,14 @@ public Builder putAllMaxLoads( onChanged(); return costs_; } - @java.lang.Deprecated public int getCostsCount() { + + @java.lang.Deprecated + public int getCostsCount() { return internalGetCosts().getMap().size(); } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2566,20 +2917,22 @@ public Builder putAllMaxLoads(
      * map<string, double> costs = 10 [deprecated = true];
      */
     @java.lang.Override
-    @java.lang.Deprecated public boolean containsCosts(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    @java.lang.Deprecated
+    public boolean containsCosts(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetCosts().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getCostsMap()} instead.
-     */
+    /** Use {@link #getCostsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getCosts() {
       return getCostsMap();
     }
     /**
+     *
+     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2591,10 +2944,13 @@ public java.util.Map getCosts() {
      * map<string, double> costs = 10 [deprecated = true];
      */
     @java.lang.Override
-    @java.lang.Deprecated public java.util.Map getCostsMap() {
+    @java.lang.Deprecated
+    public java.util.Map getCostsMap() {
       return internalGetCosts().getMap();
     }
     /**
+     *
+     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2606,15 +2962,17 @@ public java.util.Map getCosts() {
      * map<string, double> costs = 10 [deprecated = true];
      */
     @java.lang.Override
-    @java.lang.Deprecated public double getCostsOrDefault(
-        java.lang.String key,
-        double defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetCosts().getMap();
+    @java.lang.Deprecated
+    public double getCostsOrDefault(java.lang.String key, double defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetCosts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2626,23 +2984,27 @@ public java.util.Map getCosts() {
      * map<string, double> costs = 10 [deprecated = true];
      */
     @java.lang.Override
-    @java.lang.Deprecated public double getCostsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetCosts().getMap();
+    @java.lang.Deprecated
+    public double getCostsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetCosts().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-    @java.lang.Deprecated public Builder clearCosts() {
+
+    @java.lang.Deprecated
+    public Builder clearCosts() {
       bitField0_ = (bitField0_ & ~0x00000200);
-      internalGetMutableCosts().getMutableMap()
-          .clear();
+      internalGetMutableCosts().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2653,23 +3015,23 @@ public java.util.Map getCosts() {
      *
      * map<string, double> costs = 10 [deprecated = true];
      */
-    @java.lang.Deprecated public Builder removeCosts(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableCosts().getMutableMap()
-          .remove(key);
+    @java.lang.Deprecated
+    public Builder removeCosts(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableCosts().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableCosts() {
+    public java.util.Map getMutableCosts() {
       bitField0_ |= 0x00000200;
       return internalGetMutableCosts().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2680,17 +3042,19 @@ public java.util.Map getCosts() {
      *
      * map<string, double> costs = 10 [deprecated = true];
      */
-    @java.lang.Deprecated public Builder putCosts(
-        java.lang.String key,
-        double value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    @java.lang.Deprecated
+    public Builder putCosts(java.lang.String key, double value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
 
-      internalGetMutableCosts().getMutableMap()
-          .put(key, value);
+      internalGetMutableCosts().getMutableMap().put(key, value);
       bitField0_ |= 0x00000200;
       return this;
     }
     /**
+     *
+     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -2701,16 +3065,17 @@ public java.util.Map getCosts() {
      *
      * map<string, double> costs = 10 [deprecated = true];
      */
-    @java.lang.Deprecated public Builder putAllCosts(
-        java.util.Map values) {
-      internalGetMutableCosts().getMutableMap()
-          .putAll(values);
+    @java.lang.Deprecated
+    public Builder putAllCosts(java.util.Map values) {
+      internalGetMutableCosts().getMutableMap().putAll(values);
       bitField0_ |= 0x00000200;
       return this;
     }
 
-    private double totalCost_ ;
+    private double totalCost_;
     /**
+     *
+     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -2720,15 +3085,19 @@ public java.util.Map getCosts() {
      * 
* * double total_cost = 11 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 + * + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @return The totalCost. */ @java.lang.Override - @java.lang.Deprecated public double getTotalCost() { + @java.lang.Deprecated + public double getTotalCost() { return totalCost_; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -2738,12 +3107,14 @@ public java.util.Map getCosts() {
      * 
* * double total_cost = 11 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 + * + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @param value The totalCost to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setTotalCost(double value) { + @java.lang.Deprecated + public Builder setTotalCost(double value) { totalCost_ = value; bitField0_ |= 0x00000400; @@ -2751,6 +3122,8 @@ public java.util.Map getCosts() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -2760,19 +3133,21 @@ public java.util.Map getCosts() {
      * 
* * double total_cost = 11 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 + * + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearTotalCost() { + @java.lang.Deprecated + public Builder clearTotalCost() { bitField0_ = (bitField0_ & ~0x00000400); totalCost_ = 0D; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2782,12 +3157,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.AggregatedMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.AggregatedMetrics) private static final com.google.cloud.optimization.v1.AggregatedMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.AggregatedMetrics(); } @@ -2796,27 +3171,27 @@ public static com.google.cloud.optimization.v1.AggregatedMetrics getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AggregatedMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregatedMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2831,6 +3206,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.AggregatedMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java similarity index 83% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java index 76c3f6cdc47e..97dbaa196547 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AggregatedMetricsOrBuilder.java @@ -1,42 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface AggregatedMetricsOrBuilder extends +public interface AggregatedMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.AggregatedMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Number of shipments performed. Note that a pickup and delivery pair only
    * counts once.
    * 
* * int32 performed_shipment_count = 1; + * * @return The performedShipmentCount. */ int getPerformedShipmentCount(); /** + * + * *
    * Total travel duration for a route or a solution.
    * 
* * .google.protobuf.Duration travel_duration = 2; + * * @return Whether the travelDuration field is set. */ boolean hasTravelDuration(); /** + * + * *
    * Total travel duration for a route or a solution.
    * 
* * .google.protobuf.Duration travel_duration = 2; + * * @return The travelDuration. */ com.google.protobuf.Duration getTravelDuration(); /** + * + * *
    * Total travel duration for a route or a solution.
    * 
@@ -46,24 +73,32 @@ public interface AggregatedMetricsOrBuilder extends com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); /** + * + * *
    * Total wait duration for a route or a solution.
    * 
* * .google.protobuf.Duration wait_duration = 3; + * * @return Whether the waitDuration field is set. */ boolean hasWaitDuration(); /** + * + * *
    * Total wait duration for a route or a solution.
    * 
* * .google.protobuf.Duration wait_duration = 3; + * * @return The waitDuration. */ com.google.protobuf.Duration getWaitDuration(); /** + * + * *
    * Total wait duration for a route or a solution.
    * 
@@ -73,24 +108,32 @@ public interface AggregatedMetricsOrBuilder extends com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder(); /** + * + * *
    * Total delay duration for a route or a solution.
    * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return Whether the delayDuration field is set. */ boolean hasDelayDuration(); /** + * + * *
    * Total delay duration for a route or a solution.
    * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return The delayDuration. */ com.google.protobuf.Duration getDelayDuration(); /** + * + * *
    * Total delay duration for a route or a solution.
    * 
@@ -100,24 +143,32 @@ public interface AggregatedMetricsOrBuilder extends com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder(); /** + * + * *
    * Total break duration for a route or a solution.
    * 
* * .google.protobuf.Duration break_duration = 5; + * * @return Whether the breakDuration field is set. */ boolean hasBreakDuration(); /** + * + * *
    * Total break duration for a route or a solution.
    * 
* * .google.protobuf.Duration break_duration = 5; + * * @return The breakDuration. */ com.google.protobuf.Duration getBreakDuration(); /** + * + * *
    * Total break duration for a route or a solution.
    * 
@@ -127,24 +178,32 @@ public interface AggregatedMetricsOrBuilder extends com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder(); /** + * + * *
    * Total visit duration for a route or a solution.
    * 
* * .google.protobuf.Duration visit_duration = 6; + * * @return Whether the visitDuration field is set. */ boolean hasVisitDuration(); /** + * + * *
    * Total visit duration for a route or a solution.
    * 
* * .google.protobuf.Duration visit_duration = 6; + * * @return The visitDuration. */ com.google.protobuf.Duration getVisitDuration(); /** + * + * *
    * Total visit duration for a route or a solution.
    * 
@@ -154,6 +213,8 @@ public interface AggregatedMetricsOrBuilder extends com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder(); /** + * + * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -163,10 +224,13 @@ public interface AggregatedMetricsOrBuilder extends
    * 
* * .google.protobuf.Duration total_duration = 7; + * * @return Whether the totalDuration field is set. */ boolean hasTotalDuration(); /** + * + * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -176,10 +240,13 @@ public interface AggregatedMetricsOrBuilder extends
    * 
* * .google.protobuf.Duration total_duration = 7; + * * @return The totalDuration. */ com.google.protobuf.Duration getTotalDuration(); /** + * + * *
    * The total duration should be equal to the sum of all durations above.
    * For routes, it also corresponds to:
@@ -193,16 +260,21 @@ public interface AggregatedMetricsOrBuilder extends
   com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Total travel distance for a route or a solution.
    * 
* * double travel_distance_meters = 8; + * * @return The travelDistanceMeters. */ double getTravelDistanceMeters(); /** + * + * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -212,10 +284,13 @@ public interface AggregatedMetricsOrBuilder extends
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ int getMaxLoadsCount(); /** + * + * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -225,17 +300,17 @@ public interface AggregatedMetricsOrBuilder extends
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; - */ - boolean containsMaxLoads( - java.lang.String key); - /** - * Use {@link #getMaxLoadsMap()} instead. + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ + boolean containsMaxLoads(java.lang.String key); + /** Use {@link #getMaxLoadsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMaxLoads(); + getMaxLoads(); /** + * + * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -245,11 +320,14 @@ boolean containsMaxLoads(
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ java.util.Map - getMaxLoadsMap(); + getMaxLoadsMap(); /** + * + * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -259,14 +337,17 @@ boolean containsMaxLoads(
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ /* nullable */ -com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault( + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue); + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue); /** + * + * *
    * Maximum load achieved over the entire route (resp. solution), for each of
    * the quantities on this route (resp. solution), computed as the maximum over
@@ -276,12 +357,15 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrDefault(
    * [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
    * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9; + * */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow( java.lang.String key); /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -292,8 +376,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated int getCostsCount();
+  @java.lang.Deprecated
+  int getCostsCount();
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -304,15 +391,14 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated boolean containsCosts(
-      java.lang.String key);
-  /**
-   * Use {@link #getCostsMap()} instead.
-   */
   @java.lang.Deprecated
-  java.util.Map
-  getCosts();
+  boolean containsCosts(java.lang.String key);
+  /** Use {@link #getCostsMap()} instead. */
+  @java.lang.Deprecated
+  java.util.Map getCosts();
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -323,9 +409,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated java.util.Map
-  getCostsMap();
+  @java.lang.Deprecated
+  java.util.Map getCostsMap();
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -336,10 +424,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated double getCostsOrDefault(
-      java.lang.String key,
-      double defaultValue);
+  @java.lang.Deprecated
+  double getCostsOrDefault(java.lang.String key, double defaultValue);
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
@@ -350,10 +439,12 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    *
    * map<string, double> costs = 10 [deprecated = true];
    */
-  @java.lang.Deprecated double getCostsOrThrow(
-      java.lang.String key);
+  @java.lang.Deprecated
+  double getCostsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
@@ -363,9 +454,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
    * 
* * double total_cost = 11 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2381 + * + * @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2381 * @return The totalCost. */ - @java.lang.Deprecated double getTotalCost(); + @java.lang.Deprecated + double getTotalCost(); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java similarity index 70% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java index 0283530e7b6d..94f7758ab75b 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** + * + * *
  * The long running operation metadata for async model related methods.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.AsyncModelMetadata} */ -public final class AsyncModelMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AsyncModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.AsyncModelMetadata) AsyncModelMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncModelMetadata.newBuilder() to construct. private AsyncModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncModelMetadata() { state_ = 0; stateMessage_ = ""; @@ -26,34 +44,38 @@ private AsyncModelMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncModelMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.AsyncModelMetadata.class, com.google.cloud.optimization.v1.AsyncModelMetadata.Builder.class); + com.google.cloud.optimization.v1.AsyncModelMetadata.class, + com.google.cloud.optimization.v1.AsyncModelMetadata.Builder.class); } /** + * + * *
    * Possible states of the operation.
    * 
* * Protobuf enum {@code google.cloud.optimization.v1.AsyncModelMetadata.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -62,6 +84,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -70,6 +94,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The operation completed successfully.
      * 
@@ -78,6 +104,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The operation was cancelled.
      * 
@@ -86,6 +114,8 @@ public enum State */ CANCELLED(3), /** + * + * *
      * The operation has failed.
      * 
@@ -97,6 +127,8 @@ public enum State ; /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -105,6 +137,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -113,6 +147,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The operation completed successfully.
      * 
@@ -121,6 +157,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The operation was cancelled.
      * 
@@ -129,6 +167,8 @@ public enum State */ public static final int CANCELLED_VALUE = 3; /** + * + * *
      * The operation has failed.
      * 
@@ -137,7 +177,6 @@ public enum State */ public static final int FAILED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -162,51 +201,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return RUNNING; - case 2: return SUCCEEDED; - case 3: return CANCELLED; - case 4: return FAILED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return CANCELLED; + case 4: + return FAILED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelMetadata.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelMetadata.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -226,39 +269,54 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; /** + * + * *
    * The state of the current operation.
    * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the current operation.
    * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.optimization.v1.AsyncModelMetadata.State getState() { - com.google.cloud.optimization.v1.AsyncModelMetadata.State result = com.google.cloud.optimization.v1.AsyncModelMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.optimization.v1.AsyncModelMetadata.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.AsyncModelMetadata.State getState() { + com.google.cloud.optimization.v1.AsyncModelMetadata.State result = + com.google.cloud.optimization.v1.AsyncModelMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.optimization.v1.AsyncModelMetadata.State.UNRECOGNIZED + : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object stateMessage_ = ""; /** + * + * *
    * A message providing more details about the current state of the operation.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; + * * @return The stateMessage. */ @java.lang.Override @@ -267,30 +325,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** + * + * *
    * A message providing more details about the current state of the operation.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; + * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -301,11 +359,14 @@ public java.lang.String getStateMessage() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -313,11 +374,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -325,6 +389,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The creation time of the operation.
    * 
@@ -339,11 +405,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -351,11 +420,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ @java.lang.Override @@ -363,6 +435,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The last update time of the operation.
    * 
@@ -375,6 +449,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,9 +461,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.optimization.v1.AsyncModelMetadata.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.optimization.v1.AsyncModelMetadata.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { @@ -409,20 +485,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.optimization.v1.AsyncModelMetadata.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.optimization.v1.AsyncModelMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -432,25 +507,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.AsyncModelMetadata)) { return super.equals(obj); } - com.google.cloud.optimization.v1.AsyncModelMetadata other = (com.google.cloud.optimization.v1.AsyncModelMetadata) obj; + com.google.cloud.optimization.v1.AsyncModelMetadata other = + (com.google.cloud.optimization.v1.AsyncModelMetadata) obj; if (state_ != other.state_) return false; - if (!getStateMessage() - .equals(other.getStateMessage())) return false; + if (!getStateMessage().equals(other.getStateMessage())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -481,131 +554,135 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.AsyncModelMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.AsyncModelMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.AsyncModelMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.AsyncModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The long running operation metadata for async model related methods.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.AsyncModelMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.AsyncModelMetadata) com.google.cloud.optimization.v1.AsyncModelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.AsyncModelMetadata.class, com.google.cloud.optimization.v1.AsyncModelMetadata.Builder.class); + com.google.cloud.optimization.v1.AsyncModelMetadata.class, + com.google.cloud.optimization.v1.AsyncModelMetadata.Builder.class); } // Construct using com.google.cloud.optimization.v1.AsyncModelMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -626,9 +703,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; } @java.lang.Override @@ -647,8 +724,11 @@ public com.google.cloud.optimization.v1.AsyncModelMetadata build() { @java.lang.Override public com.google.cloud.optimization.v1.AsyncModelMetadata buildPartial() { - com.google.cloud.optimization.v1.AsyncModelMetadata result = new com.google.cloud.optimization.v1.AsyncModelMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.AsyncModelMetadata result = + new com.google.cloud.optimization.v1.AsyncModelMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -662,14 +742,10 @@ private void buildPartial0(com.google.cloud.optimization.v1.AsyncModelMetadata r result.stateMessage_ = stateMessage_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } } @@ -677,38 +753,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.AsyncModelMetadata r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.AsyncModelMetadata) { - return mergeFrom((com.google.cloud.optimization.v1.AsyncModelMetadata)other); + return mergeFrom((com.google.cloud.optimization.v1.AsyncModelMetadata) other); } else { super.mergeFrom(other); return this; @@ -716,7 +793,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.optimization.v1.AsyncModelMetadata other) { - if (other == com.google.cloud.optimization.v1.AsyncModelMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.optimization.v1.AsyncModelMetadata.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -757,36 +835,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - stateMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + stateMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -796,26 +875,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -826,24 +913,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.optimization.v1.AsyncModelMetadata.State getState() { - com.google.cloud.optimization.v1.AsyncModelMetadata.State result = com.google.cloud.optimization.v1.AsyncModelMetadata.State.forNumber(state_); - return result == null ? com.google.cloud.optimization.v1.AsyncModelMetadata.State.UNRECOGNIZED : result; + com.google.cloud.optimization.v1.AsyncModelMetadata.State result = + com.google.cloud.optimization.v1.AsyncModelMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.optimization.v1.AsyncModelMetadata.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -857,11 +953,14 @@ public Builder setState(com.google.cloud.optimization.v1.AsyncModelMetadata.Stat return this; } /** + * + * *
      * The state of the current operation.
      * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { @@ -873,19 +972,21 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** + * + * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; + * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -894,21 +995,22 @@ public java.lang.String getStateMessage() { } } /** + * + * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; + * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString - getStateMessageBytes() { + public com.google.protobuf.ByteString getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -916,30 +1018,37 @@ public java.lang.String getStateMessage() { } } /** + * + * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; + * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStateMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } stateMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; + * * @return This builder for chaining. */ public Builder clearStateMessage() { @@ -949,18 +1058,22 @@ public Builder clearStateMessage() { return this; } /** + * + * *
      * A message providing more details about the current state of the operation.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; + * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); stateMessage_ = value; bitField0_ |= 0x00000002; @@ -970,34 +1083,47 @@ public Builder setStateMessageBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The creation time of the operation.
      * 
@@ -1018,14 +1144,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1036,6 +1163,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The creation time of the operation.
      * 
@@ -1044,9 +1173,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1059,6 +1188,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The creation time of the operation.
      * 
@@ -1076,6 +1207,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The creation time of the operation.
      * 
@@ -1088,6 +1221,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The creation time of the operation.
      * 
@@ -1098,11 +1233,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The creation time of the operation.
      * 
@@ -1110,14 +1248,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1125,34 +1266,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1173,14 +1327,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1191,6 +1346,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1199,9 +1356,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1214,6 +1371,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1231,6 +1390,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1243,6 +1404,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1253,11 +1416,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The last update time of the operation.
      * 
@@ -1265,21 +1431,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1289,12 +1458,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.AsyncModelMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.AsyncModelMetadata) private static final com.google.cloud.optimization.v1.AsyncModelMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.AsyncModelMetadata(); } @@ -1303,27 +1472,27 @@ public static com.google.cloud.optimization.v1.AsyncModelMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncModelMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1338,6 +1507,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.AsyncModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java index 9353d6f5d29d..856d899ba4e5 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelMetadataOrBuilder.java @@ -1,72 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface AsyncModelMetadataOrBuilder extends +public interface AsyncModelMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.AsyncModelMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the current operation.
    * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the current operation.
    * 
* * .google.cloud.optimization.v1.AsyncModelMetadata.State state = 1; + * * @return The state. */ com.google.cloud.optimization.v1.AsyncModelMetadata.State getState(); /** + * + * *
    * A message providing more details about the current state of the operation.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; + * * @return The stateMessage. */ java.lang.String getStateMessage(); /** + * + * *
    * A message providing more details about the current state of the operation.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; + * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString - getStateMessageBytes(); + com.google.protobuf.ByteString getStateMessageBytes(); /** + * + * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The creation time of the operation.
    * 
@@ -76,24 +111,32 @@ public interface AsyncModelMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The last update time of the operation.
    * 
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java new file mode 100644 index 000000000000..61589a1d4494 --- /dev/null +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java @@ -0,0 +1,143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/optimization/v1/async_model.proto + +package com.google.cloud.optimization.v1; + +public final class AsyncModelProto { + private AsyncModelProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/optimization/v1/async_mod" + + "el.proto\022\034google.cloud.optimization.v1\032\037" + + "google/api/field_behavior.proto\032\037google/" + + "protobuf/timestamp.proto\"\225\001\n\013InputConfig" + + "\022=\n\ngcs_source\030\001 \001(\0132\'.google.cloud.opti" + + "mization.v1.GcsSourceH\000\022=\n\013data_format\030\002" + + " \001(\0162(.google.cloud.optimization.v1.Data" + + "FormatB\010\n\006source\"\245\001\n\014OutputConfig\022G\n\017gcs" + + "_destination\030\001 \001(\0132,.google.cloud.optimi" + + "zation.v1.GcsDestinationH\000\022=\n\013data_forma" + + "t\030\002 \001(\0162(.google.cloud.optimization.v1.D" + + "ataFormatB\r\n\013destination\"\036\n\tGcsSource\022\021\n" + + "\003uri\030\001 \001(\tB\004\342A\001\002\"#\n\016GcsDestination\022\021\n\003ur" + + "i\030\001 \001(\tB\004\342A\001\002\"\253\002\n\022AsyncModelMetadata\022E\n\005" + + "state\030\001 \001(\01626.google.cloud.optimization." + + "v1.AsyncModelMetadata.State\022\025\n\rstate_mes" + + "sage\030\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google" + + ".protobuf.Timestamp\022/\n\013update_time\030\004 \001(\013" + + "2\032.google.protobuf.Timestamp\"U\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUC" + + "CEEDED\020\002\022\r\n\tCANCELLED\020\003\022\n\n\006FAILED\020\004*?\n\nD" + + "ataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010" + + "\n\004JSON\020\001\022\n\n\006STRING\020\002B{\n com.google.cloud" + + ".optimization.v1B\017AsyncModelProtoP\001ZDclo" + + "ud.google.com/go/optimization/apiv1/opti" + + "mizationpb;optimizationpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_optimization_v1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_InputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "DataFormat", "Source", + }); + internal_static_google_cloud_optimization_v1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "DataFormat", "Destination", + }); + internal_static_google_cloud_optimization_v1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_GcsSource_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_optimization_v1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor, + new java.lang.String[] { + "State", "StateMessage", "CreateTime", "UpdateTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java similarity index 62% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java index 2fcdc0bc4be7..f24124f54c14 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Request to batch optimize tours as an asynchronous operation.
  * Each input file should contain one `OptimizeToursRequest`, and each output
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursRequest}
  */
-public final class BatchOptimizeToursRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchOptimizeToursRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BatchOptimizeToursRequest)
     BatchOptimizeToursRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchOptimizeToursRequest.newBuilder() to construct.
   private BatchOptimizeToursRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BatchOptimizeToursRequest() {
     parent_ = "";
     modelConfigs_ = java.util.Collections.emptyList();
@@ -30,105 +48,142 @@ private BatchOptimizeToursRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchOptimizeToursRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder.class);
+            com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class,
+            com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder.class);
   }
 
-  public interface AsyncModelConfigOrBuilder extends
+  public interface AsyncModelConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * User defined model name, can be used as alias by users to keep track of
      * models.
      * 
* * string display_name = 1; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
      * User defined model name, can be used as alias by users to keep track of
      * models.
      * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
      * Required. Information about the input model.
      * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
      * Required. Information about the input model.
      * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.optimization.v1.InputConfig getInputConfig(); /** + * + * *
      * Required. Information about the input model.
      * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.optimization.v1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
      * Required. The desired output location information.
      * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
      * Required. The desired output location information.
      * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.optimization.v1.OutputConfig getOutputConfig(); /** + * + * *
      * Required. The desired output location information.
      * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
      * If this is set, the model will be solved in the checkpoint mode. In this
      * mode, the input model can have a deadline longer than 30 mins without the
@@ -141,60 +196,70 @@ public interface AsyncModelConfigOrBuilder extends
      * 
* * bool enable_checkpoints = 4; + * * @return The enableCheckpoints. */ boolean getEnableCheckpoints(); } /** + * + * *
    * Information for solving one optimization model asynchronously.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig} */ - public static final class AsyncModelConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AsyncModelConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) AsyncModelConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AsyncModelConfig.newBuilder() to construct. private AsyncModelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AsyncModelConfig() { displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AsyncModelConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder.class); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder + .class); } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
      * User defined model name, can be used as alias by users to keep track of
      * models.
      * 
* * string display_name = 1; + * * @return The displayName. */ @java.lang.Override @@ -203,30 +268,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
      * User defined model name, can be used as alias by users to keep track of
      * models.
      * 
* * string display_name = 1; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -237,11 +302,16 @@ public java.lang.String getDisplayName() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.optimization.v1.InputConfig inputConfig_; /** + * + * *
      * Required. Information about the input model.
      * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -249,37 +319,55 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
      * Required. Information about the input model.
      * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.optimization.v1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
      * Required. Information about the input model.
      * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.optimization.v1.InputConfigOrBuilder getInputConfigOrBuilder() { - return inputConfig_ == null ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() + : inputConfig_; } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.optimization.v1.OutputConfig outputConfig_; /** + * + * *
      * Required. The desired output location information.
      * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -287,32 +375,47 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
      * Required. The desired output location information.
      * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.optimization.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
      * Required. The desired output location information.
      * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } public static final int ENABLE_CHECKPOINTS_FIELD_NUMBER = 4; private boolean enableCheckpoints_ = false; /** + * + * *
      * If this is set, the model will be solved in the checkpoint mode. In this
      * mode, the input model can have a deadline longer than 30 mins without the
@@ -325,6 +428,7 @@ public com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrB
      * 
* * bool enable_checkpoints = 4; + * * @return The enableCheckpoints. */ @java.lang.Override @@ -333,6 +437,7 @@ public boolean getEnableCheckpoints() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,8 +449,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } @@ -371,16 +475,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); } if (enableCheckpoints_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, enableCheckpoints_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableCheckpoints_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -390,27 +491,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)) { + if (!(obj + instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other = (com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) obj; + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other = + (com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) obj; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } - if (getEnableCheckpoints() - != other.getEnableCheckpoints()) return false; + if (getEnableCheckpoints() != other.getEnableCheckpoints()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -433,97 +532,107 @@ public int hashCode() { hash = (53 * hash) + getOutputConfig().hashCode(); } hash = (37 * hash) + ENABLE_CHECKPOINTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableCheckpoints()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCheckpoints()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -533,39 +642,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information for solving one optimization model asynchronously.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder.class); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder + .class); } - // Construct using com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,19 +699,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.getDefaultInstance(); + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig build() { - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result = buildPartial(); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -606,27 +722,30 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConf } @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig buildPartial() { - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result = new com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + buildPartial() { + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result = + new com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result) { + private void buildPartial0( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.inputConfig_ = inputConfigBuilder_ == null - ? inputConfig_ - : inputConfigBuilder_.build(); + result.inputConfig_ = + inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.outputConfig_ = outputConfigBuilder_ == null - ? outputConfig_ - : outputConfigBuilder_.build(); + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.enableCheckpoints_ = enableCheckpoints_; @@ -637,46 +756,55 @@ private void buildPartial0(com.google.cloud.optimization.v1.BatchOptimizeToursRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) { - return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)other); + if (other + instanceof + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) { + return mergeFrom( + (com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other) { - if (other == com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other) { + if (other + == com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + .getDefaultInstance()) return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000001; @@ -717,36 +845,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getInputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - enableCheckpoints_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + enableCheckpoints_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -756,23 +885,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object displayName_ = ""; /** + * + * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -781,21 +913,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -803,30 +936,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -836,18 +976,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
        * User defined model name, can be used as alias by users to keep track of
        * models.
        * 
* * string display_name = 1; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000001; @@ -857,39 +1001,58 @@ public Builder setDisplayNameBytes( private com.google.cloud.optimization.v1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InputConfig, com.google.cloud.optimization.v1.InputConfig.Builder, com.google.cloud.optimization.v1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.optimization.v1.InputConfig, + com.google.cloud.optimization.v1.InputConfig.Builder, + com.google.cloud.optimization.v1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.optimization.v1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.optimization.v1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -905,11 +1068,15 @@ public Builder setInputConfig(com.google.cloud.optimization.v1.InputConfig value return this; } /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.optimization.v1.InputConfig.Builder builderForValue) { @@ -923,17 +1090,22 @@ public Builder setInputConfig( return this; } /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.optimization.v1.InputConfig value) { if (inputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - inputConfig_ != null && - inputConfig_ != com.google.cloud.optimization.v1.InputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && inputConfig_ != null + && inputConfig_ + != com.google.cloud.optimization.v1.InputConfig.getDefaultInstance()) { getInputConfigBuilder().mergeFrom(value); } else { inputConfig_ = value; @@ -946,11 +1118,15 @@ public Builder mergeInputConfig(com.google.cloud.optimization.v1.InputConfig val return this; } /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -963,11 +1139,15 @@ public Builder clearInputConfig() { return this; } /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.optimization.v1.InputConfig.Builder getInputConfigBuilder() { bitField0_ |= 0x00000002; @@ -975,36 +1155,48 @@ public com.google.cloud.optimization.v1.InputConfig.Builder getInputConfigBuilde return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.optimization.v1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.optimization.v1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
        * Required. Information about the input model.
        * 
* - * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InputConfig, com.google.cloud.optimization.v1.InputConfig.Builder, com.google.cloud.optimization.v1.InputConfigOrBuilder> + com.google.cloud.optimization.v1.InputConfig, + com.google.cloud.optimization.v1.InputConfig.Builder, + com.google.cloud.optimization.v1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InputConfig, com.google.cloud.optimization.v1.InputConfig.Builder, com.google.cloud.optimization.v1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.InputConfig, + com.google.cloud.optimization.v1.InputConfig.Builder, + com.google.cloud.optimization.v1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1012,39 +1204,58 @@ public com.google.cloud.optimization.v1.InputConfigOrBuilder getInputConfigOrBui private com.google.cloud.optimization.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OutputConfig, com.google.cloud.optimization.v1.OutputConfig.Builder, com.google.cloud.optimization.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.optimization.v1.OutputConfig, + com.google.cloud.optimization.v1.OutputConfig.Builder, + com.google.cloud.optimization.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.optimization.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.optimization.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1060,11 +1271,15 @@ public Builder setOutputConfig(com.google.cloud.optimization.v1.OutputConfig val return this; } /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.optimization.v1.OutputConfig.Builder builderForValue) { @@ -1078,17 +1293,22 @@ public Builder setOutputConfig( return this; } /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.optimization.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1101,11 +1321,15 @@ public Builder mergeOutputConfig(com.google.cloud.optimization.v1.OutputConfig v return this; } /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1118,11 +1342,15 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.optimization.v1.OutputConfig.Builder getOutputConfigBuilder() { bitField0_ |= 0x00000004; @@ -1130,43 +1358,57 @@ public com.google.cloud.optimization.v1.OutputConfig.Builder getOutputConfigBuil return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.optimization.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
        * Required. The desired output location information.
        * 
* - * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.optimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OutputConfig, com.google.cloud.optimization.v1.OutputConfig.Builder, com.google.cloud.optimization.v1.OutputConfigOrBuilder> + com.google.cloud.optimization.v1.OutputConfig, + com.google.cloud.optimization.v1.OutputConfig.Builder, + com.google.cloud.optimization.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OutputConfig, com.google.cloud.optimization.v1.OutputConfig.Builder, com.google.cloud.optimization.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.OutputConfig, + com.google.cloud.optimization.v1.OutputConfig.Builder, + com.google.cloud.optimization.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private boolean enableCheckpoints_ ; + private boolean enableCheckpoints_; /** + * + * *
        * If this is set, the model will be solved in the checkpoint mode. In this
        * mode, the input model can have a deadline longer than 30 mins without the
@@ -1179,6 +1421,7 @@ public com.google.cloud.optimization.v1.OutputConfigOrBuilder getOutputConfigOrB
        * 
* * bool enable_checkpoints = 4; + * * @return The enableCheckpoints. */ @java.lang.Override @@ -1186,6 +1429,8 @@ public boolean getEnableCheckpoints() { return enableCheckpoints_; } /** + * + * *
        * If this is set, the model will be solved in the checkpoint mode. In this
        * mode, the input model can have a deadline longer than 30 mins without the
@@ -1198,6 +1443,7 @@ public boolean getEnableCheckpoints() {
        * 
* * bool enable_checkpoints = 4; + * * @param value The enableCheckpoints to set. * @return This builder for chaining. */ @@ -1209,6 +1455,8 @@ public Builder setEnableCheckpoints(boolean value) { return this; } /** + * + * *
        * If this is set, the model will be solved in the checkpoint mode. In this
        * mode, the input model can have a deadline longer than 30 mins without the
@@ -1221,6 +1469,7 @@ public Builder setEnableCheckpoints(boolean value) {
        * 
* * bool enable_checkpoints = 4; + * * @return This builder for chaining. */ public Builder clearEnableCheckpoints() { @@ -1229,6 +1478,7 @@ public Builder clearEnableCheckpoints() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1241,41 +1491,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) - private static final com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getDefaultInstance() { + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AsyncModelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncModelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1287,16 +1541,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Target project and location to make a call.
    *
@@ -1306,6 +1563,7 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConf
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -1314,14 +1572,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Target project and location to make a call.
    *
@@ -1331,16 +1590,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1349,72 +1607,100 @@ public java.lang.String getParent() { } public static final int MODEL_CONFIGS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") - private java.util.List modelConfigs_; + private java.util.List< + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig> + modelConfigs_; /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getModelConfigsList() { + public java.util.List + getModelConfigsList() { return modelConfigs_; } /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> getModelConfigsOrBuilderList() { return modelConfigs_; } /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getModelConfigsCount() { return modelConfigs_.size(); } /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs(int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + getModelConfigs(int index) { return modelConfigs_.get(index); } /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder getModelConfigsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder + getModelConfigsOrBuilder(int index) { return modelConfigs_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1426,8 +1712,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -1447,8 +1732,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < modelConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, modelConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, modelConfigs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1458,17 +1742,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BatchOptimizeToursRequest other = (com.google.cloud.optimization.v1.BatchOptimizeToursRequest) obj; + com.google.cloud.optimization.v1.BatchOptimizeToursRequest other = + (com.google.cloud.optimization.v1.BatchOptimizeToursRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getModelConfigsList() - .equals(other.getModelConfigsList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getModelConfigsList().equals(other.getModelConfigsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1492,98 +1775,104 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.BatchOptimizeToursRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to batch optimize tours as an asynchronous operation.
    * Each input file should contain one `OptimizeToursRequest`, and each output
@@ -1594,33 +1883,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BatchOptimizeToursRequest)
       com.google.cloud.optimization.v1.BatchOptimizeToursRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder.class);
+              com.google.cloud.optimization.v1.BatchOptimizeToursRequest.class,
+              com.google.cloud.optimization.v1.BatchOptimizeToursRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.BatchOptimizeToursRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1637,9 +1925,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor;
     }
 
     @java.lang.Override
@@ -1658,14 +1946,18 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursRequest build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.BatchOptimizeToursRequest buildPartial() {
-      com.google.cloud.optimization.v1.BatchOptimizeToursRequest result = new com.google.cloud.optimization.v1.BatchOptimizeToursRequest(this);
+      com.google.cloud.optimization.v1.BatchOptimizeToursRequest result =
+          new com.google.cloud.optimization.v1.BatchOptimizeToursRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.BatchOptimizeToursRequest result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.optimization.v1.BatchOptimizeToursRequest result) {
       if (modelConfigsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           modelConfigs_ = java.util.Collections.unmodifiableList(modelConfigs_);
@@ -1688,38 +1980,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.BatchOptimizeToursRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.BatchOptimizeToursRequest) {
-        return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursRequest)other);
+        return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1727,7 +2020,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.BatchOptimizeToursRequest other) {
-      if (other == com.google.cloud.optimization.v1.BatchOptimizeToursRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.BatchOptimizeToursRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -1751,9 +2045,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.BatchOptimizeToursRequ
             modelConfigsBuilder_ = null;
             modelConfigs_ = other.modelConfigs_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            modelConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getModelConfigsFieldBuilder() : null;
+            modelConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getModelConfigsFieldBuilder()
+                    : null;
           } else {
             modelConfigsBuilder_.addAllMessages(other.modelConfigs_);
           }
@@ -1785,30 +2080,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.parser(),
-                      extensionRegistry);
-              if (modelConfigsBuilder_ == null) {
-                ensureModelConfigsIsMutable();
-                modelConfigs_.add(m);
-              } else {
-                modelConfigsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
+                            .parser(),
+                        extensionRegistry);
+                if (modelConfigsBuilder_ == null) {
+                  ensureModelConfigsIsMutable();
+                  modelConfigs_.add(m);
+                } else {
+                  modelConfigsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1818,10 +2117,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Target project and location to make a call.
      *
@@ -1831,13 +2133,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1846,6 +2148,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Target project and location to make a call.
      *
@@ -1855,15 +2159,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1871,6 +2174,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Target project and location to make a call.
      *
@@ -1880,18 +2185,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Target project and location to make a call.
      *
@@ -1901,6 +2210,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1910,6 +2220,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Target project and location to make a call.
      *
@@ -1919,12 +2231,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1932,27 +2246,41 @@ public Builder setParentBytes( return this; } - private java.util.List modelConfigs_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig> + modelConfigs_ = java.util.Collections.emptyList(); + private void ensureModelConfigsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - modelConfigs_ = new java.util.ArrayList(modelConfigs_); + modelConfigs_ = + new java.util.ArrayList< + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>( + modelConfigs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> modelConfigsBuilder_; + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> + modelConfigsBuilder_; /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getModelConfigsList() { + public java.util.List< + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig> + getModelConfigsList() { if (modelConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(modelConfigs_); } else { @@ -1960,12 +2288,16 @@ public java.util.List * Required. Input/Output information each purchase model, such as file paths * and data formats. *
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getModelConfigsCount() { if (modelConfigsBuilder_ == null) { @@ -1975,14 +2307,19 @@ public int getModelConfigsCount() { } } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs(int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + getModelConfigs(int index) { if (modelConfigsBuilder_ == null) { return modelConfigs_.get(index); } else { @@ -1990,15 +2327,20 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConf } } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setModelConfigs( - int index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { + int index, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { if (modelConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2012,15 +2354,21 @@ public Builder setModelConfigs( return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setModelConfigs( - int index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder + builderForValue) { if (modelConfigsBuilder_ == null) { ensureModelConfigsIsMutable(); modelConfigs_.set(index, builderForValue.build()); @@ -2031,14 +2379,19 @@ public Builder setModelConfigs( return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addModelConfigs(com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { + public Builder addModelConfigs( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { if (modelConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2052,15 +2405,20 @@ public Builder addModelConfigs(com.google.cloud.optimization.v1.BatchOptimizeTou return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addModelConfigs( - int index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { + int index, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) { if (modelConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2074,15 +2432,20 @@ public Builder addModelConfigs( return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addModelConfigs( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) { + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder + builderForValue) { if (modelConfigsBuilder_ == null) { ensureModelConfigsIsMutable(); modelConfigs_.add(builderForValue.build()); @@ -2093,15 +2456,21 @@ public Builder addModelConfigs( return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addModelConfigs( - int index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder + builderForValue) { if (modelConfigsBuilder_ == null) { ensureModelConfigsIsMutable(); modelConfigs_.add(index, builderForValue.build()); @@ -2112,19 +2481,25 @@ public Builder addModelConfigs( return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllModelConfigs( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig> + values) { if (modelConfigsBuilder_ == null) { ensureModelConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, modelConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelConfigs_); onChanged(); } else { modelConfigsBuilder_.addAllMessages(values); @@ -2132,12 +2507,16 @@ public Builder addAllModelConfigs( return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearModelConfigs() { if (modelConfigsBuilder_ == null) { @@ -2150,12 +2529,16 @@ public Builder clearModelConfigs() { return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeModelConfigs(int index) { if (modelConfigsBuilder_ == null) { @@ -2168,42 +2551,58 @@ public Builder removeModelConfigs(int index) { return this; } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder getModelConfigsBuilder( - int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder + getModelConfigsBuilder(int index) { return getModelConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder getModelConfigsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder + getModelConfigsOrBuilder(int index) { if (modelConfigsBuilder_ == null) { - return modelConfigs_.get(index); } else { + return modelConfigs_.get(index); + } else { return modelConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getModelConfigsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.optimization.v1.BatchOptimizeToursRequest + .AsyncModelConfigOrBuilder> + getModelConfigsOrBuilderList() { if (modelConfigsBuilder_ != null) { return modelConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2211,59 +2610,82 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConf } } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder addModelConfigsBuilder() { - return getModelConfigsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.getDefaultInstance()); + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder + addModelConfigsBuilder() { + return getModelConfigsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + .getDefaultInstance()); } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder addModelConfigsBuilder( - int index) { - return getModelConfigsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.getDefaultInstance()); + public com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder + addModelConfigsBuilder(int index) { + return getModelConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig + .getDefaultInstance()); } /** + * + * *
      * Required. Input/Output information each purchase model, such as file paths
      * and data formats.
      * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getModelConfigsBuilderList() { + public java.util.List< + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder> + getModelConfigsBuilderList() { return getModelConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> getModelConfigsFieldBuilder() { if (modelConfigsBuilder_ == null) { - modelConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder>( - modelConfigs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + modelConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder, + com.google.cloud.optimization.v1.BatchOptimizeToursRequest + .AsyncModelConfigOrBuilder>( + modelConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); modelConfigs_ = null; } return modelConfigsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2273,12 +2695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BatchOptimizeToursRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BatchOptimizeToursRequest) private static final com.google.cloud.optimization.v1.BatchOptimizeToursRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BatchOptimizeToursRequest(); } @@ -2287,27 +2709,27 @@ public static com.google.cloud.optimization.v1.BatchOptimizeToursRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchOptimizeToursRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchOptimizeToursRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2322,6 +2744,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.optimization.v1.BatchOptimizeToursRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java index a4373b0beba8..fcce76252b5d 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface BatchOptimizeToursRequestOrBuilder extends +public interface BatchOptimizeToursRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BatchOptimizeToursRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Target project and location to make a call.
    *
@@ -17,10 +35,13 @@ public interface BatchOptimizeToursRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Target project and location to make a call.
    *
@@ -30,57 +51,80 @@ public interface BatchOptimizeToursRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getModelConfigsList(); /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs(int index); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig getModelConfigs( + int index); /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getModelConfigsCount(); /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder> getModelConfigsOrBuilderList(); /** + * + * *
    * Required. Input/Output information each purchase model, such as file paths
    * and data formats.
    * 
* - * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder getModelConfigsOrBuilder( - int index); + com.google.cloud.optimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder + getModelConfigsOrBuilder(int index); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java similarity index 62% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java index 03c6a8a68702..2ea909b25933 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Response to a `BatchOptimizeToursRequest`. This is returned in
  * the LRO Operation after the operation is complete.
@@ -11,39 +28,41 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursResponse}
  */
-public final class BatchOptimizeToursResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchOptimizeToursResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BatchOptimizeToursResponse)
     BatchOptimizeToursResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchOptimizeToursResponse.newBuilder() to construct.
   private BatchOptimizeToursResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchOptimizeToursResponse() {
-  }
+
+  private BatchOptimizeToursResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchOptimizeToursResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.BatchOptimizeToursResponse.class, com.google.cloud.optimization.v1.BatchOptimizeToursResponse.Builder.class);
+            com.google.cloud.optimization.v1.BatchOptimizeToursResponse.class,
+            com.google.cloud.optimization.v1.BatchOptimizeToursResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -55,8 +74,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -74,12 +92,13 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.BatchOptimizeToursResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.BatchOptimizeToursResponse other = (com.google.cloud.optimization.v1.BatchOptimizeToursResponse) obj;
+    com.google.cloud.optimization.v1.BatchOptimizeToursResponse other =
+        (com.google.cloud.optimization.v1.BatchOptimizeToursResponse) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -98,98 +117,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.optimization.v1.BatchOptimizeToursResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.optimization.v1.BatchOptimizeToursResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response to a `BatchOptimizeToursRequest`. This is returned in
    * the LRO Operation after the operation is complete.
@@ -197,33 +222,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.BatchOptimizeToursResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BatchOptimizeToursResponse)
       com.google.cloud.optimization.v1.BatchOptimizeToursResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BatchOptimizeToursResponse.class, com.google.cloud.optimization.v1.BatchOptimizeToursResponse.Builder.class);
+              com.google.cloud.optimization.v1.BatchOptimizeToursResponse.class,
+              com.google.cloud.optimization.v1.BatchOptimizeToursResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.BatchOptimizeToursResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -231,9 +255,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor;
     }
 
     @java.lang.Override
@@ -252,7 +276,8 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursResponse build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.BatchOptimizeToursResponse buildPartial() {
-      com.google.cloud.optimization.v1.BatchOptimizeToursResponse result = new com.google.cloud.optimization.v1.BatchOptimizeToursResponse(this);
+      com.google.cloud.optimization.v1.BatchOptimizeToursResponse result =
+          new com.google.cloud.optimization.v1.BatchOptimizeToursResponse(this);
       onBuilt();
       return result;
     }
@@ -261,38 +286,39 @@ public com.google.cloud.optimization.v1.BatchOptimizeToursResponse buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.BatchOptimizeToursResponse) {
-        return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursResponse)other);
+        return mergeFrom((com.google.cloud.optimization.v1.BatchOptimizeToursResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -300,7 +326,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.BatchOptimizeToursResponse other) {
-      if (other == com.google.cloud.optimization.v1.BatchOptimizeToursResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.BatchOptimizeToursResponse.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -327,12 +354,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -342,9 +370,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -354,12 +382,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BatchOptimizeToursResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BatchOptimizeToursResponse)
   private static final com.google.cloud.optimization.v1.BatchOptimizeToursResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BatchOptimizeToursResponse();
   }
@@ -368,27 +396,27 @@ public static com.google.cloud.optimization.v1.BatchOptimizeToursResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchOptimizeToursResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchOptimizeToursResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -403,6 +431,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.optimization.v1.BatchOptimizeToursResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java
new file mode 100644
index 000000000000..2be77d0d900f
--- /dev/null
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/optimization/v1/fleet_routing.proto
+
+package com.google.cloud.optimization.v1;
+
+public interface BatchOptimizeToursResponseOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BatchOptimizeToursResponse)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
similarity index 66%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
index 8f65b2ff79f9..e3781a16b9de 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRule.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
+ *
+ *
  * 
  * Rules to generate time breaks for a vehicle (e.g. lunch breaks). A break
  * is a contiguous period of time during which the vehicle remains idle at its
@@ -19,15 +36,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.BreakRule}
  */
-public final class BreakRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BreakRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BreakRule)
     BreakRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BreakRule.newBuilder() to construct.
   private BreakRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BreakRule() {
     breakRequests_ = java.util.Collections.emptyList();
     frequencyConstraints_ = java.util.Collections.emptyList();
@@ -35,110 +53,153 @@ private BreakRule() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BreakRule();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.BreakRule.class, com.google.cloud.optimization.v1.BreakRule.Builder.class);
+            com.google.cloud.optimization.v1.BreakRule.class,
+            com.google.cloud.optimization.v1.BreakRule.Builder.class);
   }
 
-  public interface BreakRequestOrBuilder extends
+  public interface BreakRequestOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BreakRule.BreakRequest)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the earliestStartTime field is set. */ boolean hasEarliestStartTime(); /** + * + * *
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The earliestStartTime. */ com.google.protobuf.Timestamp getEarliestStartTime(); /** + * + * *
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder(); /** + * + * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the latestStartTime field is set. */ boolean hasLatestStartTime(); /** + * + * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The latestStartTime. */ com.google.protobuf.Timestamp getLatestStartTime(); /** + * + * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder(); /** + * + * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minDuration field is set. */ boolean hasMinDuration(); /** + * + * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minDuration. */ com.google.protobuf.Duration getMinDuration(); /** + * + * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder(); } /** + * + * *
    * The sequence of breaks (i.e. their number and order) that apply to each
    * vehicle must be known beforehand. The repeated `BreakRequest`s define
@@ -149,46 +210,52 @@ public interface BreakRequestOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.BreakRule.BreakRequest}
    */
-  public static final class BreakRequest extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BreakRequest extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BreakRule.BreakRequest)
       BreakRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BreakRequest.newBuilder() to construct.
     private BreakRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private BreakRequest() {
-    }
+
+    private BreakRequest() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BreakRequest();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BreakRule.BreakRequest.class, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder.class);
+              com.google.cloud.optimization.v1.BreakRule.BreakRequest.class,
+              com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder.class);
     }
 
     public static final int EARLIEST_START_TIME_FIELD_NUMBER = 1;
     private com.google.protobuf.Timestamp earliestStartTime_;
     /**
+     *
+     *
      * 
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the earliestStartTime field is set. */ @java.lang.Override @@ -196,37 +263,55 @@ public boolean hasEarliestStartTime() { return earliestStartTime_ != null; } /** + * + * *
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The earliestStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEarliestStartTime() { - return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; } /** + * + * *
      * Required. Lower bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { - return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; } public static final int LATEST_START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp latestStartTime_; /** + * + * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the latestStartTime field is set. */ @java.lang.Override @@ -234,37 +319,54 @@ public boolean hasLatestStartTime() { return latestStartTime_ != null; } /** + * + * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The latestStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLatestStartTime() { - return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; + return latestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestStartTime_; } /** + * + * *
      * Required. Upper bound (inclusive) on the start of the break.
      * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { - return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; + return latestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestStartTime_; } public static final int MIN_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration minDuration_; /** + * + * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minDuration field is set. */ @java.lang.Override @@ -272,30 +374,42 @@ public boolean hasMinDuration() { return minDuration_ != null; } /** + * + * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinDuration() { - return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } /** + * + * *
      * Required. Minimum duration of the break. Must be positive.
      * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { - return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,8 +421,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (earliestStartTime_ != null) { output.writeMessage(1, getEarliestStartTime()); } @@ -328,16 +441,13 @@ public int getSerializedSize() { size = 0; if (earliestStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEarliestStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEarliestStartTime()); } if (latestStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLatestStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLatestStartTime()); } if (minDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMinDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -347,27 +457,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.BreakRule.BreakRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BreakRule.BreakRequest other = (com.google.cloud.optimization.v1.BreakRule.BreakRequest) obj; + com.google.cloud.optimization.v1.BreakRule.BreakRequest other = + (com.google.cloud.optimization.v1.BreakRule.BreakRequest) obj; if (hasEarliestStartTime() != other.hasEarliestStartTime()) return false; if (hasEarliestStartTime()) { - if (!getEarliestStartTime() - .equals(other.getEarliestStartTime())) return false; + if (!getEarliestStartTime().equals(other.getEarliestStartTime())) return false; } if (hasLatestStartTime() != other.hasLatestStartTime()) return false; if (hasLatestStartTime()) { - if (!getLatestStartTime() - .equals(other.getLatestStartTime())) return false; + if (!getLatestStartTime().equals(other.getLatestStartTime())) return false; } if (hasMinDuration() != other.hasMinDuration()) return false; if (hasMinDuration()) { - if (!getMinDuration() - .equals(other.getMinDuration())) return false; + if (!getMinDuration().equals(other.getMinDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -398,89 +506,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.BreakRule.BreakRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.BreakRule.BreakRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.BreakRule.BreakRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -490,6 +603,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The sequence of breaks (i.e. their number and order) that apply to each
      * vehicle must be known beforehand. The repeated `BreakRequest`s define
@@ -500,33 +615,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.BreakRule.BreakRequest}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BreakRule.BreakRequest)
         com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.BreakRule.BreakRequest.class, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder.class);
+                com.google.cloud.optimization.v1.BreakRule.BreakRequest.class,
+                com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.BreakRule.BreakRequest.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -550,9 +665,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor;
       }
 
       @java.lang.Override
@@ -571,8 +686,11 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.BreakRule.BreakRequest buildPartial() {
-        com.google.cloud.optimization.v1.BreakRule.BreakRequest result = new com.google.cloud.optimization.v1.BreakRule.BreakRequest(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.BreakRule.BreakRequest result =
+            new com.google.cloud.optimization.v1.BreakRule.BreakRequest(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -580,19 +698,18 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest buildPartial() {
       private void buildPartial0(com.google.cloud.optimization.v1.BreakRule.BreakRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.earliestStartTime_ = earliestStartTimeBuilder_ == null
-              ? earliestStartTime_
-              : earliestStartTimeBuilder_.build();
+          result.earliestStartTime_ =
+              earliestStartTimeBuilder_ == null
+                  ? earliestStartTime_
+                  : earliestStartTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.latestStartTime_ = latestStartTimeBuilder_ == null
-              ? latestStartTime_
-              : latestStartTimeBuilder_.build();
+          result.latestStartTime_ =
+              latestStartTimeBuilder_ == null ? latestStartTime_ : latestStartTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.minDuration_ = minDurationBuilder_ == null
-              ? minDuration_
-              : minDurationBuilder_.build();
+          result.minDuration_ =
+              minDurationBuilder_ == null ? minDuration_ : minDurationBuilder_.build();
         }
       }
 
@@ -600,38 +717,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.BreakRule.BreakReque
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.BreakRule.BreakRequest) {
-          return mergeFrom((com.google.cloud.optimization.v1.BreakRule.BreakRequest)other);
+          return mergeFrom((com.google.cloud.optimization.v1.BreakRule.BreakRequest) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -639,7 +759,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.BreakRule.BreakRequest other) {
-        if (other == com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance())
+          return this;
         if (other.hasEarliestStartTime()) {
           mergeEarliestStartTime(other.getEarliestStartTime());
         }
@@ -675,33 +796,33 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getEarliestStartTimeFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getLatestStartTimeFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                input.readMessage(
-                    getMinDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getEarliestStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getLatestStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  input.readMessage(getMinDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -711,43 +832,63 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.Timestamp earliestStartTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestStartTimeBuilder_;
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
+          earliestStartTimeBuilder_;
       /**
+       *
+       *
        * 
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the earliestStartTime field is set. */ public boolean hasEarliestStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The earliestStartTime. */ public com.google.protobuf.Timestamp getEarliestStartTime() { if (earliestStartTimeBuilder_ == null) { - return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; } else { return earliestStartTimeBuilder_.getMessage(); } } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { if (earliestStartTimeBuilder_ == null) { @@ -763,14 +904,17 @@ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEarliestStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (earliestStartTimeBuilder_ == null) { earliestStartTime_ = builderForValue.build(); } else { @@ -781,17 +925,21 @@ public Builder setEarliestStartTime( return this; } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { if (earliestStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - earliestStartTime_ != null && - earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && earliestStartTime_ != null + && earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEarliestStartTimeBuilder().mergeFrom(value); } else { earliestStartTime_ = value; @@ -804,11 +952,15 @@ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEarliestStartTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -821,11 +973,15 @@ public Builder clearEarliestStartTime() { return this; } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { bitField0_ |= 0x00000001; @@ -833,36 +989,48 @@ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { return getEarliestStartTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { if (earliestStartTimeBuilder_ != null) { return earliestStartTimeBuilder_.getMessageOrBuilder(); } else { - return earliestStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; } } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEarliestStartTimeFieldBuilder() { if (earliestStartTimeBuilder_ == null) { - earliestStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEarliestStartTime(), - getParentForChildren(), - isClean()); + earliestStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEarliestStartTime(), getParentForChildren(), isClean()); earliestStartTime_ = null; } return earliestStartTimeBuilder_; @@ -870,39 +1038,58 @@ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { private com.google.protobuf.Timestamp latestStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> latestStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestStartTimeBuilder_; /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the latestStartTime field is set. */ public boolean hasLatestStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The latestStartTime. */ public com.google.protobuf.Timestamp getLatestStartTime() { if (latestStartTimeBuilder_ == null) { - return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; + return latestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestStartTime_; } else { return latestStartTimeBuilder_.getMessage(); } } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setLatestStartTime(com.google.protobuf.Timestamp value) { if (latestStartTimeBuilder_ == null) { @@ -918,14 +1105,17 @@ public Builder setLatestStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setLatestStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLatestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (latestStartTimeBuilder_ == null) { latestStartTime_ = builderForValue.build(); } else { @@ -936,17 +1126,21 @@ public Builder setLatestStartTime( return this; } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeLatestStartTime(com.google.protobuf.Timestamp value) { if (latestStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - latestStartTime_ != null && - latestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && latestStartTime_ != null + && latestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLatestStartTimeBuilder().mergeFrom(value); } else { latestStartTime_ = value; @@ -959,11 +1153,15 @@ public Builder mergeLatestStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearLatestStartTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -976,11 +1174,15 @@ public Builder clearLatestStartTime() { return this; } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder() { bitField0_ |= 0x00000002; @@ -988,36 +1190,48 @@ public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder() { return getLatestStartTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { if (latestStartTimeBuilder_ != null) { return latestStartTimeBuilder_.getMessageOrBuilder(); } else { - return latestStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; + return latestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestStartTime_; } } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLatestStartTimeFieldBuilder() { if (latestStartTimeBuilder_ == null) { - latestStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLatestStartTime(), - getParentForChildren(), - isClean()); + latestStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestStartTime(), getParentForChildren(), isClean()); latestStartTime_ = null; } return latestStartTimeBuilder_; @@ -1025,39 +1239,55 @@ public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { private com.google.protobuf.Duration minDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minDurationBuilder_; /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minDuration field is set. */ public boolean hasMinDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minDuration. */ public com.google.protobuf.Duration getMinDuration() { if (minDurationBuilder_ == null) { - return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } else { return minDurationBuilder_.getMessage(); } } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { @@ -1073,14 +1303,16 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMinDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) { if (minDurationBuilder_ == null) { minDuration_ = builderForValue.build(); } else { @@ -1091,17 +1323,20 @@ public Builder setMinDuration( return this; } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - minDuration_ != null && - minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && minDuration_ != null + && minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinDurationBuilder().mergeFrom(value); } else { minDuration_ = value; @@ -1114,11 +1349,14 @@ public Builder mergeMinDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMinDuration() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1131,11 +1369,14 @@ public Builder clearMinDuration() { return this; } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { bitField0_ |= 0x00000004; @@ -1143,40 +1384,51 @@ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { return getMinDurationFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { if (minDurationBuilder_ != null) { return minDurationBuilder_.getMessageOrBuilder(); } else { - return minDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinDurationFieldBuilder() { if (minDurationBuilder_ == null) { - minDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinDuration(), - getParentForChildren(), - isClean()); + minDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinDuration(), getParentForChildren(), isClean()); minDuration_ = null; } return minDurationBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1189,12 +1441,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BreakRule.BreakRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BreakRule.BreakRequest) private static final com.google.cloud.optimization.v1.BreakRule.BreakRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BreakRule.BreakRequest(); } @@ -1203,27 +1455,28 @@ public static com.google.cloud.optimization.v1.BreakRule.BreakRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BreakRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BreakRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,77 +1491,107 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.BreakRule.BreakRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface FrequencyConstraintOrBuilder extends + public interface FrequencyConstraintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BreakRule.FrequencyConstraint) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minBreakDuration field is set. */ boolean hasMinBreakDuration(); /** + * + * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minBreakDuration. */ com.google.protobuf.Duration getMinBreakDuration(); /** + * + * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder(); /** + * + * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxInterBreakDuration field is set. */ boolean hasMaxInterBreakDuration(); /** + * + * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxInterBreakDuration. */ com.google.protobuf.Duration getMaxInterBreakDuration(); /** + * + * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder(); } /** + * + * *
    * One may further constrain the frequency and duration of the breaks
    * specified above, by enforcing a minimum break frequency, such as
@@ -1347,47 +1630,53 @@ public interface FrequencyConstraintOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.BreakRule.FrequencyConstraint}
    */
-  public static final class FrequencyConstraint extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class FrequencyConstraint extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.BreakRule.FrequencyConstraint)
       FrequencyConstraintOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use FrequencyConstraint.newBuilder() to construct.
     private FrequencyConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private FrequencyConstraint() {
-    }
+
+    private FrequencyConstraint() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new FrequencyConstraint();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.class, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder.class);
+              com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.class,
+              com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder.class);
     }
 
     public static final int MIN_BREAK_DURATION_FIELD_NUMBER = 1;
     private com.google.protobuf.Duration minBreakDuration_;
     /**
+     *
+     *
      * 
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minBreakDuration field is set. */ @java.lang.Override @@ -1395,41 +1684,59 @@ public boolean hasMinBreakDuration() { return minBreakDuration_ != null; } /** + * + * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minBreakDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinBreakDuration() { - return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; + return minBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBreakDuration_; } /** + * + * *
      * Required. Minimum break duration for this constraint. Nonnegative.
      * See description of `FrequencyConstraint`.
      * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { - return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; + return minBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBreakDuration_; } public static final int MAX_INTER_BREAK_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxInterBreakDuration_; /** + * + * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxInterBreakDuration field is set. */ @java.lang.Override @@ -1437,34 +1744,48 @@ public boolean hasMaxInterBreakDuration() { return maxInterBreakDuration_ != null; } /** + * + * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxInterBreakDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxInterBreakDuration() { - return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; + return maxInterBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxInterBreakDuration_; } /** + * + * *
      * Required. Maximum allowed span of any interval of time in the route that
      * does not include at least partially a break of `duration >=
      * min_break_duration`. Must be positive.
      * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder() { - return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; + return maxInterBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxInterBreakDuration_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1476,8 +1797,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minBreakDuration_ != null) { output.writeMessage(1, getMinBreakDuration()); } @@ -1494,12 +1814,11 @@ public int getSerializedSize() { size = 0; if (minBreakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinBreakDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinBreakDuration()); } if (maxInterBreakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxInterBreakDuration()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxInterBreakDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1509,22 +1828,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint other = (com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint) obj; + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint other = + (com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint) obj; if (hasMinBreakDuration() != other.hasMinBreakDuration()) return false; if (hasMinBreakDuration()) { - if (!getMinBreakDuration() - .equals(other.getMinBreakDuration())) return false; + if (!getMinBreakDuration().equals(other.getMinBreakDuration())) return false; } if (hasMaxInterBreakDuration() != other.hasMaxInterBreakDuration()) return false; if (hasMaxInterBreakDuration()) { - if (!getMaxInterBreakDuration() - .equals(other.getMaxInterBreakDuration())) return false; + if (!getMaxInterBreakDuration().equals(other.getMaxInterBreakDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1551,89 +1869,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1643,6 +1966,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * One may further constrain the frequency and duration of the breaks
      * specified above, by enforcing a minimum break frequency, such as
@@ -1681,33 +2006,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.BreakRule.FrequencyConstraint}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BreakRule.FrequencyConstraint)
         com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.class, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder.class);
+                com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.class,
+                com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1726,13 +2051,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getDefaultInstanceForType() {
+      public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint
+          getDefaultInstanceForType() {
         return com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance();
       }
 
@@ -1747,23 +2073,29 @@ public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint buildPartial() {
-        com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint result = new com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint result =
+            new com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint result) {
+      private void buildPartial0(
+          com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.minBreakDuration_ = minBreakDurationBuilder_ == null
-              ? minBreakDuration_
-              : minBreakDurationBuilder_.build();
+          result.minBreakDuration_ =
+              minBreakDurationBuilder_ == null
+                  ? minBreakDuration_
+                  : minBreakDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.maxInterBreakDuration_ = maxInterBreakDurationBuilder_ == null
-              ? maxInterBreakDuration_
-              : maxInterBreakDurationBuilder_.build();
+          result.maxInterBreakDuration_ =
+              maxInterBreakDurationBuilder_ == null
+                  ? maxInterBreakDuration_
+                  : maxInterBreakDurationBuilder_.build();
         }
       }
 
@@ -1771,46 +2103,52 @@ private void buildPartial0(com.google.cloud.optimization.v1.BreakRule.FrequencyC
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+      public Builder addRepeatedField(
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint) {
-          return mergeFrom((com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint)other);
+          return mergeFrom((com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint other) {
-        if (other == com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint other) {
+        if (other
+            == com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance())
+          return this;
         if (other.hasMinBreakDuration()) {
           mergeMinBreakDuration(other.getMinBreakDuration());
         }
@@ -1843,26 +2181,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getMinBreakDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getMaxInterBreakDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getMinBreakDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getMaxInterBreakDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1872,46 +2211,66 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.Duration minBreakDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minBreakDurationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          minBreakDurationBuilder_;
       /**
+       *
+       *
        * 
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minBreakDuration field is set. */ public boolean hasMinBreakDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minBreakDuration. */ public com.google.protobuf.Duration getMinBreakDuration() { if (minBreakDurationBuilder_ == null) { - return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; + return minBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBreakDuration_; } else { return minBreakDurationBuilder_.getMessage(); } } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMinBreakDuration(com.google.protobuf.Duration value) { if (minBreakDurationBuilder_ == null) { @@ -1927,15 +2286,18 @@ public Builder setMinBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMinBreakDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinBreakDuration(com.google.protobuf.Duration.Builder builderForValue) { if (minBreakDurationBuilder_ == null) { minBreakDuration_ = builderForValue.build(); } else { @@ -1946,18 +2308,22 @@ public Builder setMinBreakDuration( return this; } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMinBreakDuration(com.google.protobuf.Duration value) { if (minBreakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - minBreakDuration_ != null && - minBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && minBreakDuration_ != null + && minBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinBreakDurationBuilder().mergeFrom(value); } else { minBreakDuration_ = value; @@ -1970,12 +2336,16 @@ public Builder mergeMinBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMinBreakDuration() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1988,12 +2358,16 @@ public Builder clearMinBreakDuration() { return this; } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getMinBreakDurationBuilder() { bitField0_ |= 0x00000001; @@ -2001,38 +2375,50 @@ public com.google.protobuf.Duration.Builder getMinBreakDurationBuilder() { return getMinBreakDurationFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { if (minBreakDurationBuilder_ != null) { return minBreakDurationBuilder_.getMessageOrBuilder(); } else { - return minBreakDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; + return minBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBreakDuration_; } } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinBreakDurationFieldBuilder() { if (minBreakDurationBuilder_ == null) { - minBreakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinBreakDuration(), - getParentForChildren(), - isClean()); + minBreakDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinBreakDuration(), getParentForChildren(), isClean()); minBreakDuration_ = null; } return minBreakDurationBuilder_; @@ -2040,45 +2426,64 @@ public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { private com.google.protobuf.Duration maxInterBreakDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxInterBreakDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxInterBreakDurationBuilder_; /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxInterBreakDuration field is set. */ public boolean hasMaxInterBreakDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxInterBreakDuration. */ public com.google.protobuf.Duration getMaxInterBreakDuration() { if (maxInterBreakDurationBuilder_ == null) { - return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; + return maxInterBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxInterBreakDuration_; } else { return maxInterBreakDurationBuilder_.getMessage(); } } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMaxInterBreakDuration(com.google.protobuf.Duration value) { if (maxInterBreakDurationBuilder_ == null) { @@ -2094,13 +2499,17 @@ public Builder setMaxInterBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMaxInterBreakDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -2114,19 +2523,23 @@ public Builder setMaxInterBreakDuration( return this; } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMaxInterBreakDuration(com.google.protobuf.Duration value) { if (maxInterBreakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - maxInterBreakDuration_ != null && - maxInterBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && maxInterBreakDuration_ != null + && maxInterBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxInterBreakDurationBuilder().mergeFrom(value); } else { maxInterBreakDuration_ = value; @@ -2139,13 +2552,17 @@ public Builder mergeMaxInterBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMaxInterBreakDuration() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2158,13 +2575,17 @@ public Builder clearMaxInterBreakDuration() { return this; } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getMaxInterBreakDurationBuilder() { bitField0_ |= 0x00000002; @@ -2172,44 +2593,57 @@ public com.google.protobuf.Duration.Builder getMaxInterBreakDurationBuilder() { return getMaxInterBreakDurationFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder() { if (maxInterBreakDurationBuilder_ != null) { return maxInterBreakDurationBuilder_.getMessageOrBuilder(); } else { - return maxInterBreakDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; + return maxInterBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxInterBreakDuration_; } } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route that
        * does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMaxInterBreakDurationFieldBuilder() { if (maxInterBreakDurationBuilder_ == null) { - maxInterBreakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxInterBreakDuration(), - getParentForChildren(), - isClean()); + maxInterBreakDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxInterBreakDuration(), getParentForChildren(), isClean()); maxInterBreakDuration_ = null; } return maxInterBreakDurationBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2222,41 +2656,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BreakRule.FrequencyConstraint) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BreakRule.FrequencyConstraint) - private static final com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint(); } - public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getDefaultInstance() { + public static com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FrequencyConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrequencyConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2268,16 +2705,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BREAK_REQUESTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List breakRequests_; /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2285,10 +2725,13 @@ public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getDefault * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override - public java.util.List getBreakRequestsList() { + public java.util.List + getBreakRequestsList() { return breakRequests_; } /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2296,11 +2739,13 @@ public java.util.List g * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBreakRequestsOrBuilderList() { return breakRequests_; } /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2312,6 +2757,8 @@ public int getBreakRequestsCount() { return breakRequests_.size(); } /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2323,6 +2770,8 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest getBreakRequests( return breakRequests_.get(index); } /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -2336,72 +2785,98 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder getBreak } public static final int FREQUENCY_CONSTRAINTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") - private java.util.List frequencyConstraints_; + private java.util.List + frequencyConstraints_; /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override - public java.util.List getFrequencyConstraintsList() { + public java.util.List + getFrequencyConstraintsList() { return frequencyConstraints_; } /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> getFrequencyConstraintsOrBuilderList() { return frequencyConstraints_; } /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override public int getFrequencyConstraintsCount() { return frequencyConstraints_.size(); } /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints(int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints( + int index) { return frequencyConstraints_.get(index); } /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder + getFrequencyConstraintsOrBuilder(int index) { return frequencyConstraints_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2413,8 +2888,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < breakRequests_.size(); i++) { output.writeMessage(1, breakRequests_.get(i)); } @@ -2431,12 +2905,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < breakRequests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, breakRequests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, breakRequests_.get(i)); } for (int i = 0; i < frequencyConstraints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, frequencyConstraints_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, frequencyConstraints_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2446,17 +2919,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.BreakRule)) { return super.equals(obj); } - com.google.cloud.optimization.v1.BreakRule other = (com.google.cloud.optimization.v1.BreakRule) obj; + com.google.cloud.optimization.v1.BreakRule other = + (com.google.cloud.optimization.v1.BreakRule) obj; - if (!getBreakRequestsList() - .equals(other.getBreakRequestsList())) return false; - if (!getFrequencyConstraintsList() - .equals(other.getFrequencyConstraintsList())) return false; + if (!getBreakRequestsList().equals(other.getBreakRequestsList())) return false; + if (!getFrequencyConstraintsList().equals(other.getFrequencyConstraintsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2481,99 +2953,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.BreakRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.BreakRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.BreakRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.BreakRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.BreakRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.BreakRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.BreakRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Rules to generate time breaks for a vehicle (e.g. lunch breaks). A break
    * is a contiguous period of time during which the vehicle remains idle at its
@@ -2589,33 +3066,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.BreakRule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.BreakRule)
       com.google.cloud.optimization.v1.BreakRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.BreakRule.class, com.google.cloud.optimization.v1.BreakRule.Builder.class);
+              com.google.cloud.optimization.v1.BreakRule.class,
+              com.google.cloud.optimization.v1.BreakRule.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.BreakRule.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2638,9 +3114,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_BreakRule_descriptor;
     }
 
     @java.lang.Override
@@ -2659,9 +3135,12 @@ public com.google.cloud.optimization.v1.BreakRule build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.BreakRule buildPartial() {
-      com.google.cloud.optimization.v1.BreakRule result = new com.google.cloud.optimization.v1.BreakRule(this);
+      com.google.cloud.optimization.v1.BreakRule result =
+          new com.google.cloud.optimization.v1.BreakRule(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -2695,38 +3174,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.BreakRule result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.BreakRule) {
-        return mergeFrom((com.google.cloud.optimization.v1.BreakRule)other);
+        return mergeFrom((com.google.cloud.optimization.v1.BreakRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2753,9 +3233,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.BreakRule other) {
             breakRequestsBuilder_ = null;
             breakRequests_ = other.breakRequests_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            breakRequestsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBreakRequestsFieldBuilder() : null;
+            breakRequestsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBreakRequestsFieldBuilder()
+                    : null;
           } else {
             breakRequestsBuilder_.addAllMessages(other.breakRequests_);
           }
@@ -2779,9 +3260,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.BreakRule other) {
             frequencyConstraintsBuilder_ = null;
             frequencyConstraints_ = other.frequencyConstraints_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            frequencyConstraintsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFrequencyConstraintsFieldBuilder() : null;
+            frequencyConstraintsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFrequencyConstraintsFieldBuilder()
+                    : null;
           } else {
             frequencyConstraintsBuilder_.addAllMessages(other.frequencyConstraints_);
           }
@@ -2813,38 +3295,41 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.optimization.v1.BreakRule.BreakRequest m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.BreakRule.BreakRequest.parser(),
-                      extensionRegistry);
-              if (breakRequestsBuilder_ == null) {
-                ensureBreakRequestsIsMutable();
-                breakRequests_.add(m);
-              } else {
-                breakRequestsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.parser(),
-                      extensionRegistry);
-              if (frequencyConstraintsBuilder_ == null) {
-                ensureFrequencyConstraintsIsMutable();
-                frequencyConstraints_.add(m);
-              } else {
-                frequencyConstraintsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.optimization.v1.BreakRule.BreakRequest m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.BreakRule.BreakRequest.parser(),
+                        extensionRegistry);
+                if (breakRequestsBuilder_ == null) {
+                  ensureBreakRequestsIsMutable();
+                  breakRequests_.add(m);
+                } else {
+                  breakRequestsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.parser(),
+                        extensionRegistry);
+                if (frequencyConstraintsBuilder_ == null) {
+                  ensureFrequencyConstraintsIsMutable();
+                  frequencyConstraints_.add(m);
+                } else {
+                  frequencyConstraintsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2854,28 +3339,39 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List breakRequests_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureBreakRequestsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        breakRequests_ = new java.util.ArrayList(breakRequests_);
+        breakRequests_ =
+            new java.util.ArrayList(
+                breakRequests_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.BreakRule.BreakRequest, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> breakRequestsBuilder_;
+            com.google.cloud.optimization.v1.BreakRule.BreakRequest,
+            com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder,
+            com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder>
+        breakRequestsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ - public java.util.List getBreakRequestsList() { + public java.util.List + getBreakRequestsList() { if (breakRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(breakRequests_); } else { @@ -2883,11 +3379,14 @@ public java.util.List g } } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public int getBreakRequestsCount() { if (breakRequestsBuilder_ == null) { @@ -2897,11 +3396,14 @@ public int getBreakRequestsCount() { } } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public com.google.cloud.optimization.v1.BreakRule.BreakRequest getBreakRequests(int index) { if (breakRequestsBuilder_ == null) { @@ -2911,11 +3413,14 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest getBreakRequests( } } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder setBreakRequests( int index, com.google.cloud.optimization.v1.BreakRule.BreakRequest value) { @@ -2932,14 +3437,18 @@ public Builder setBreakRequests( return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder setBreakRequests( - int index, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.set(index, builderForValue.build()); @@ -2950,11 +3459,14 @@ public Builder setBreakRequests( return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addBreakRequests(com.google.cloud.optimization.v1.BreakRule.BreakRequest value) { if (breakRequestsBuilder_ == null) { @@ -2970,11 +3482,14 @@ public Builder addBreakRequests(com.google.cloud.optimization.v1.BreakRule.Break return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addBreakRequests( int index, com.google.cloud.optimization.v1.BreakRule.BreakRequest value) { @@ -2991,11 +3506,14 @@ public Builder addBreakRequests( return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addBreakRequests( com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { @@ -3009,14 +3527,18 @@ public Builder addBreakRequests( return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addBreakRequests( - int index, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.add(index, builderForValue.build()); @@ -3027,18 +3549,21 @@ public Builder addBreakRequests( return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addAllBreakRequests( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, breakRequests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breakRequests_); onChanged(); } else { breakRequestsBuilder_.addAllMessages(values); @@ -3046,11 +3571,14 @@ public Builder addAllBreakRequests( return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder clearBreakRequests() { if (breakRequestsBuilder_ == null) { @@ -3063,11 +3591,14 @@ public Builder clearBreakRequests() { return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public Builder removeBreakRequests(int index) { if (breakRequestsBuilder_ == null) { @@ -3080,39 +3611,50 @@ public Builder removeBreakRequests(int index) { return this; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder getBreakRequestsBuilder( int index) { return getBreakRequestsFieldBuilder().getBuilder(index); } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ - public com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder + getBreakRequestsOrBuilder(int index) { if (breakRequestsBuilder_ == null) { - return breakRequests_.get(index); } else { + return breakRequests_.get(index); + } else { return breakRequestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ - public java.util.List - getBreakRequestsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> + getBreakRequestsOrBuilderList() { if (breakRequestsBuilder_ != null) { return breakRequestsBuilder_.getMessageOrBuilderList(); } else { @@ -3120,45 +3662,62 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder getBreak } } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ - public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder addBreakRequestsBuilder() { - return getBreakRequestsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()); + public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder + addBreakRequestsBuilder() { + return getBreakRequestsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()); } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder addBreakRequestsBuilder( int index) { - return getBreakRequestsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()); + return getBreakRequestsFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.BreakRule.BreakRequest.getDefaultInstance()); } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; + * */ - public java.util.List - getBreakRequestsBuilderList() { + public java.util.List + getBreakRequestsBuilderList() { return getBreakRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.BreakRequest, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> + com.google.cloud.optimization.v1.BreakRule.BreakRequest, + com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, + com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> getBreakRequestsFieldBuilder() { if (breakRequestsBuilder_ == null) { - breakRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.BreakRequest, com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder>( + breakRequestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.BreakRule.BreakRequest, + com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder, + com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder>( breakRequests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3168,27 +3727,38 @@ public com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder addBreakR return breakRequestsBuilder_; } - private java.util.List frequencyConstraints_ = - java.util.Collections.emptyList(); + private java.util.List + frequencyConstraints_ = java.util.Collections.emptyList(); + private void ensureFrequencyConstraintsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - frequencyConstraints_ = new java.util.ArrayList(frequencyConstraints_); + frequencyConstraints_ = + new java.util.ArrayList( + frequencyConstraints_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> frequencyConstraintsBuilder_; + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> + frequencyConstraintsBuilder_; /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public java.util.List getFrequencyConstraintsList() { + public java.util.List + getFrequencyConstraintsList() { if (frequencyConstraintsBuilder_ == null) { return java.util.Collections.unmodifiableList(frequencyConstraints_); } else { @@ -3196,12 +3766,16 @@ public java.util.List * Several `FrequencyConstraint` may apply. They must all be satisfied by * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`. *
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public int getFrequencyConstraintsCount() { if (frequencyConstraintsBuilder_ == null) { @@ -3211,14 +3785,19 @@ public int getFrequencyConstraintsCount() { } } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints(int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints( + int index) { if (frequencyConstraintsBuilder_ == null) { return frequencyConstraints_.get(index); } else { @@ -3226,12 +3805,16 @@ public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequen } } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder setFrequencyConstraints( int index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint value) { @@ -3248,15 +3831,20 @@ public Builder setFrequencyConstraints( return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder setFrequencyConstraints( - int index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.set(index, builderForValue.build()); @@ -3267,14 +3855,19 @@ public Builder setFrequencyConstraints( return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public Builder addFrequencyConstraints(com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint value) { + public Builder addFrequencyConstraints( + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint value) { if (frequencyConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3288,12 +3881,16 @@ public Builder addFrequencyConstraints(com.google.cloud.optimization.v1.BreakRul return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder addFrequencyConstraints( int index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint value) { @@ -3310,12 +3907,16 @@ public Builder addFrequencyConstraints( return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder addFrequencyConstraints( com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { @@ -3329,15 +3930,20 @@ public Builder addFrequencyConstraints( return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder addFrequencyConstraints( - int index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.add(index, builderForValue.build()); @@ -3348,19 +3954,23 @@ public Builder addFrequencyConstraints( return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder addAllFrequencyConstraints( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, frequencyConstraints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frequencyConstraints_); onChanged(); } else { frequencyConstraintsBuilder_.addAllMessages(values); @@ -3368,12 +3978,16 @@ public Builder addAllFrequencyConstraints( return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder clearFrequencyConstraints() { if (frequencyConstraintsBuilder_ == null) { @@ -3386,12 +4000,16 @@ public Builder clearFrequencyConstraints() { return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder removeFrequencyConstraints(int index) { if (frequencyConstraintsBuilder_ == null) { @@ -3404,42 +4022,56 @@ public Builder removeFrequencyConstraints(int index) { return this; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder getFrequencyConstraintsBuilder( - int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder + getFrequencyConstraintsBuilder(int index) { return getFrequencyConstraintsFieldBuilder().getBuilder(index); } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder + getFrequencyConstraintsOrBuilder(int index) { if (frequencyConstraintsBuilder_ == null) { - return frequencyConstraints_.get(index); } else { + return frequencyConstraints_.get(index); + } else { return frequencyConstraintsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public java.util.List - getFrequencyConstraintsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> + getFrequencyConstraintsOrBuilderList() { if (frequencyConstraintsBuilder_ != null) { return frequencyConstraintsBuilder_.getMessageOrBuilderList(); } else { @@ -3447,48 +4079,70 @@ public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder g } } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder() { - return getFrequencyConstraintsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()); + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder + addFrequencyConstraintsBuilder() { + return getFrequencyConstraintsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()); } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder( - int index) { - return getFrequencyConstraintsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()); + public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder + addFrequencyConstraintsBuilder(int index) { + return getFrequencyConstraintsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.getDefaultInstance()); } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public java.util.List - getFrequencyConstraintsBuilderList() { + public java.util.List + getFrequencyConstraintsBuilderList() { return getFrequencyConstraintsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> getFrequencyConstraintsFieldBuilder() { if (frequencyConstraintsBuilder_ == null) { - frequencyConstraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder>( + frequencyConstraintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder, + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder>( frequencyConstraints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3497,9 +4151,9 @@ public com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint.Builder ad } return frequencyConstraintsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3509,12 +4163,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.BreakRule) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.BreakRule) private static final com.google.cloud.optimization.v1.BreakRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.BreakRule(); } @@ -3523,27 +4177,27 @@ public static com.google.cloud.optimization.v1.BreakRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BreakRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BreakRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3558,6 +4212,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.BreakRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java similarity index 66% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java index d8985de38150..7db4891a803a 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BreakRuleOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface BreakRuleOrBuilder extends +public interface BreakRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BreakRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
* * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - java.util.List - getBreakRequestsList(); + java.util.List getBreakRequestsList(); /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -25,6 +44,8 @@ public interface BreakRuleOrBuilder extends */ com.google.cloud.optimization.v1.BreakRule.BreakRequest getBreakRequests(int index); /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -33,15 +54,19 @@ public interface BreakRuleOrBuilder extends */ int getBreakRequestsCount(); /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
* * repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1; */ - java.util.List + java.util.List getBreakRequestsOrBuilderList(); /** + * + * *
    * Sequence of breaks. See the `BreakRequest` message.
    * 
@@ -52,51 +77,71 @@ com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder getBreakRequest int index); /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - java.util.List + java.util.List getFrequencyConstraintsList(); /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ com.google.cloud.optimization.v1.BreakRule.FrequencyConstraint getFrequencyConstraints(int index); /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ int getFrequencyConstraintsCount(); /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - java.util.List + java.util.List getFrequencyConstraintsOrBuilderList(); /** + * + * *
    * Several `FrequencyConstraint` may apply. They must all be satisfied by
    * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
    * 
* - * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( - int index); + com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder + getFrequencyConstraintsOrBuilder(int index); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java similarity index 65% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java index 5442561ac255..dce175e0f3a1 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantity.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Deprecated: Use
  * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
@@ -12,44 +29,49 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.CapacityQuantity}
  */
-@java.lang.Deprecated public final class CapacityQuantity extends
-    com.google.protobuf.GeneratedMessageV3 implements
+@java.lang.Deprecated
+public final class CapacityQuantity extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.CapacityQuantity)
     CapacityQuantityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CapacityQuantity.newBuilder() to construct.
   private CapacityQuantity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CapacityQuantity() {
     type_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CapacityQuantity();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.CapacityQuantity.class, com.google.cloud.optimization.v1.CapacityQuantity.Builder.class);
+            com.google.cloud.optimization.v1.CapacityQuantity.class,
+            com.google.cloud.optimization.v1.CapacityQuantity.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object type_ = "";
   /**
    * string type = 1;
+   *
    * @return The type.
    */
   @java.lang.Override
@@ -58,8 +80,7 @@ public java.lang.String getType() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = 
-          (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       type_ = s;
       return s;
@@ -67,16 +88,15 @@ public java.lang.String getType() {
   }
   /**
    * string type = 1;
+   *
    * @return The bytes for type.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString
-      getTypeBytes() {
+  public com.google.protobuf.ByteString getTypeBytes() {
     java.lang.Object ref = type_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b = 
-          com.google.protobuf.ByteString.copyFromUtf8(
-              (java.lang.String) ref);
+      com.google.protobuf.ByteString b =
+          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
       type_ = b;
       return b;
     } else {
@@ -88,6 +108,7 @@ public java.lang.String getType() {
   private long value_ = 0L;
   /**
    * int64 value = 2;
+   *
    * @return The value.
    */
   @java.lang.Override
@@ -96,6 +117,7 @@ public long getValue() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -107,8 +129,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
     }
@@ -128,8 +149,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
     }
     if (value_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, value_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, value_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -139,17 +159,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.CapacityQuantity)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.CapacityQuantity other = (com.google.cloud.optimization.v1.CapacityQuantity) obj;
+    com.google.cloud.optimization.v1.CapacityQuantity other =
+        (com.google.cloud.optimization.v1.CapacityQuantity) obj;
 
-    if (!getType()
-        .equals(other.getType())) return false;
-    if (getValue()
-        != other.getValue()) return false;
+    if (!getType().equals(other.getType())) return false;
+    if (getValue() != other.getValue()) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -164,106 +183,110 @@ public int hashCode() {
     hash = (37 * hash) + TYPE_FIELD_NUMBER;
     hash = (53 * hash) + getType().hashCode();
     hash = (37 * hash) + VALUE_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getValue());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValue());
     hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.CapacityQuantity parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.CapacityQuantity parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.CapacityQuantity parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantity parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.optimization.v1.CapacityQuantity prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
@@ -272,33 +295,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.CapacityQuantity}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.CapacityQuantity)
       com.google.cloud.optimization.v1.CapacityQuantityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.CapacityQuantity.class, com.google.cloud.optimization.v1.CapacityQuantity.Builder.class);
+              com.google.cloud.optimization.v1.CapacityQuantity.class,
+              com.google.cloud.optimization.v1.CapacityQuantity.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.CapacityQuantity.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -309,9 +331,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor;
     }
 
     @java.lang.Override
@@ -330,8 +352,11 @@ public com.google.cloud.optimization.v1.CapacityQuantity build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.CapacityQuantity buildPartial() {
-      com.google.cloud.optimization.v1.CapacityQuantity result = new com.google.cloud.optimization.v1.CapacityQuantity(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.CapacityQuantity result =
+          new com.google.cloud.optimization.v1.CapacityQuantity(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -350,38 +375,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.CapacityQuantity res
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.CapacityQuantity) {
-        return mergeFrom((com.google.cloud.optimization.v1.CapacityQuantity)other);
+        return mergeFrom((com.google.cloud.optimization.v1.CapacityQuantity) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -389,7 +415,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.CapacityQuantity other) {
-      if (other == com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance())
+        return this;
       if (!other.getType().isEmpty()) {
         type_ = other.type_;
         bitField0_ |= 0x00000001;
@@ -424,22 +451,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              value_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                value_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -449,18 +479,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object type_ = "";
     /**
      * string type = 1;
+     *
      * @return The type.
      */
     public java.lang.String getType() {
       java.lang.Object ref = type_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         type_ = s;
         return s;
@@ -470,15 +501,14 @@ public java.lang.String getType() {
     }
     /**
      * string type = 1;
+     *
      * @return The bytes for type.
      */
-    public com.google.protobuf.ByteString
-        getTypeBytes() {
+    public com.google.protobuf.ByteString getTypeBytes() {
       java.lang.Object ref = type_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         type_ = b;
         return b;
       } else {
@@ -487,12 +517,14 @@ public java.lang.String getType() {
     }
     /**
      * string type = 1;
+     *
      * @param value The type to set.
      * @return This builder for chaining.
      */
-    public Builder setType(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setType(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       type_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -500,6 +532,7 @@ public Builder setType(
     }
     /**
      * string type = 1;
+     *
      * @return This builder for chaining.
      */
     public Builder clearType() {
@@ -510,12 +543,14 @@ public Builder clearType() {
     }
     /**
      * string type = 1;
+     *
      * @param value The bytes for type to set.
      * @return This builder for chaining.
      */
-    public Builder setTypeBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setTypeBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       type_ = value;
       bitField0_ |= 0x00000001;
@@ -523,9 +558,10 @@ public Builder setTypeBytes(
       return this;
     }
 
-    private long value_ ;
+    private long value_;
     /**
      * int64 value = 2;
+     *
      * @return The value.
      */
     @java.lang.Override
@@ -534,6 +570,7 @@ public long getValue() {
     }
     /**
      * int64 value = 2;
+     *
      * @param value The value to set.
      * @return This builder for chaining.
      */
@@ -546,6 +583,7 @@ public Builder setValue(long value) {
     }
     /**
      * int64 value = 2;
+     *
      * @return This builder for chaining.
      */
     public Builder clearValue() {
@@ -554,9 +592,9 @@ public Builder clearValue() {
       onChanged();
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -566,12 +604,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.CapacityQuantity)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.CapacityQuantity)
   private static final com.google.cloud.optimization.v1.CapacityQuantity DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.CapacityQuantity();
   }
@@ -580,27 +618,27 @@ public static com.google.cloud.optimization.v1.CapacityQuantity getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CapacityQuantity parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CapacityQuantity parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -615,6 +653,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.optimization.v1.CapacityQuantity getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
similarity index 68%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
index c7f303db1d8e..de247db82dc1 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityInterval.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
+ *
+ *
  * 
  * Deprecated: Use
  * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
@@ -12,45 +29,50 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.CapacityQuantityInterval}
  */
-@java.lang.Deprecated public final class CapacityQuantityInterval extends
-    com.google.protobuf.GeneratedMessageV3 implements
+@java.lang.Deprecated
+public final class CapacityQuantityInterval extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.CapacityQuantityInterval)
     CapacityQuantityIntervalOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CapacityQuantityInterval.newBuilder() to construct.
   private CapacityQuantityInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CapacityQuantityInterval() {
     type_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CapacityQuantityInterval();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.CapacityQuantityInterval.class, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder.class);
+            com.google.cloud.optimization.v1.CapacityQuantityInterval.class,
+            com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder.class);
   }
 
   private int bitField0_;
   public static final int TYPE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object type_ = "";
   /**
    * string type = 1;
+   *
    * @return The type.
    */
   @java.lang.Override
@@ -59,8 +81,7 @@ public java.lang.String getType() {
     if (ref instanceof java.lang.String) {
       return (java.lang.String) ref;
     } else {
-      com.google.protobuf.ByteString bs = 
-          (com.google.protobuf.ByteString) ref;
+      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
       java.lang.String s = bs.toStringUtf8();
       type_ = s;
       return s;
@@ -68,16 +89,15 @@ public java.lang.String getType() {
   }
   /**
    * string type = 1;
+   *
    * @return The bytes for type.
    */
   @java.lang.Override
-  public com.google.protobuf.ByteString
-      getTypeBytes() {
+  public com.google.protobuf.ByteString getTypeBytes() {
     java.lang.Object ref = type_;
     if (ref instanceof java.lang.String) {
-      com.google.protobuf.ByteString b = 
-          com.google.protobuf.ByteString.copyFromUtf8(
-              (java.lang.String) ref);
+      com.google.protobuf.ByteString b =
+          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
       type_ = b;
       return b;
     } else {
@@ -89,6 +109,7 @@ public java.lang.String getType() {
   private long minValue_ = 0L;
   /**
    * optional int64 min_value = 2;
+   *
    * @return Whether the minValue field is set.
    */
   @java.lang.Override
@@ -97,6 +118,7 @@ public boolean hasMinValue() {
   }
   /**
    * optional int64 min_value = 2;
+   *
    * @return The minValue.
    */
   @java.lang.Override
@@ -108,6 +130,7 @@ public long getMinValue() {
   private long maxValue_ = 0L;
   /**
    * optional int64 max_value = 3;
+   *
    * @return Whether the maxValue field is set.
    */
   @java.lang.Override
@@ -116,6 +139,7 @@ public boolean hasMaxValue() {
   }
   /**
    * optional int64 max_value = 3;
+   *
    * @return The maxValue.
    */
   @java.lang.Override
@@ -124,6 +148,7 @@ public long getMaxValue() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -135,8 +160,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
     }
@@ -159,12 +183,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(2, minValue_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minValue_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, maxValue_);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, maxValue_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -174,24 +196,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.CapacityQuantityInterval)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.CapacityQuantityInterval other = (com.google.cloud.optimization.v1.CapacityQuantityInterval) obj;
+    com.google.cloud.optimization.v1.CapacityQuantityInterval other =
+        (com.google.cloud.optimization.v1.CapacityQuantityInterval) obj;
 
-    if (!getType()
-        .equals(other.getType())) return false;
+    if (!getType().equals(other.getType())) return false;
     if (hasMinValue() != other.hasMinValue()) return false;
     if (hasMinValue()) {
-      if (getMinValue()
-          != other.getMinValue()) return false;
+      if (getMinValue() != other.getMinValue()) return false;
     }
     if (hasMaxValue() != other.hasMaxValue()) return false;
     if (hasMaxValue()) {
-      if (getMaxValue()
-          != other.getMaxValue()) return false;
+      if (getMaxValue() != other.getMaxValue()) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -208,13 +228,11 @@ public int hashCode() {
     hash = (53 * hash) + getType().hashCode();
     if (hasMinValue()) {
       hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          getMinValue());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinValue());
     }
     if (hasMaxValue()) {
       hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          getMaxValue());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxValue());
     }
     hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
@@ -222,98 +240,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.CapacityQuantityInterval parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.optimization.v1.CapacityQuantityInterval prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.optimization.v1.CapacityQuantityInterval prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [Vehicle.LoadLimit.Interval][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval]
@@ -322,33 +346,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.CapacityQuantityInterval}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.CapacityQuantityInterval)
       com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.CapacityQuantityInterval.class, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder.class);
+              com.google.cloud.optimization.v1.CapacityQuantityInterval.class,
+              com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.CapacityQuantityInterval.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -360,9 +383,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor;
     }
 
     @java.lang.Override
@@ -381,8 +404,11 @@ public com.google.cloud.optimization.v1.CapacityQuantityInterval build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.CapacityQuantityInterval buildPartial() {
-      com.google.cloud.optimization.v1.CapacityQuantityInterval result = new com.google.cloud.optimization.v1.CapacityQuantityInterval(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.CapacityQuantityInterval result =
+          new com.google.cloud.optimization.v1.CapacityQuantityInterval(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -408,38 +434,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.CapacityQuantityInte
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.CapacityQuantityInterval) {
-        return mergeFrom((com.google.cloud.optimization.v1.CapacityQuantityInterval)other);
+        return mergeFrom((com.google.cloud.optimization.v1.CapacityQuantityInterval) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -447,7 +474,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.CapacityQuantityInterval other) {
-      if (other == com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance())
+        return this;
       if (!other.getType().isEmpty()) {
         type_ = other.type_;
         bitField0_ |= 0x00000001;
@@ -485,27 +513,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              type_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              minValue_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              maxValue_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                minValue_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                maxValue_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -515,18 +547,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object type_ = "";
     /**
      * string type = 1;
+     *
      * @return The type.
      */
     public java.lang.String getType() {
       java.lang.Object ref = type_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs =
-            (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         type_ = s;
         return s;
@@ -536,15 +569,14 @@ public java.lang.String getType() {
     }
     /**
      * string type = 1;
+     *
      * @return The bytes for type.
      */
-    public com.google.protobuf.ByteString
-        getTypeBytes() {
+    public com.google.protobuf.ByteString getTypeBytes() {
       java.lang.Object ref = type_;
       if (ref instanceof String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
+        com.google.protobuf.ByteString b =
+            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
         type_ = b;
         return b;
       } else {
@@ -553,12 +585,14 @@ public java.lang.String getType() {
     }
     /**
      * string type = 1;
+     *
      * @param value The type to set.
      * @return This builder for chaining.
      */
-    public Builder setType(
-        java.lang.String value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setType(java.lang.String value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       type_ = value;
       bitField0_ |= 0x00000001;
       onChanged();
@@ -566,6 +600,7 @@ public Builder setType(
     }
     /**
      * string type = 1;
+     *
      * @return This builder for chaining.
      */
     public Builder clearType() {
@@ -576,12 +611,14 @@ public Builder clearType() {
     }
     /**
      * string type = 1;
+     *
      * @param value The bytes for type to set.
      * @return This builder for chaining.
      */
-    public Builder setTypeBytes(
-        com.google.protobuf.ByteString value) {
-      if (value == null) { throw new NullPointerException(); }
+    public Builder setTypeBytes(com.google.protobuf.ByteString value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
       checkByteStringIsUtf8(value);
       type_ = value;
       bitField0_ |= 0x00000001;
@@ -589,9 +626,10 @@ public Builder setTypeBytes(
       return this;
     }
 
-    private long minValue_ ;
+    private long minValue_;
     /**
      * optional int64 min_value = 2;
+     *
      * @return Whether the minValue field is set.
      */
     @java.lang.Override
@@ -600,6 +638,7 @@ public boolean hasMinValue() {
     }
     /**
      * optional int64 min_value = 2;
+     *
      * @return The minValue.
      */
     @java.lang.Override
@@ -608,6 +647,7 @@ public long getMinValue() {
     }
     /**
      * optional int64 min_value = 2;
+     *
      * @param value The minValue to set.
      * @return This builder for chaining.
      */
@@ -620,6 +660,7 @@ public Builder setMinValue(long value) {
     }
     /**
      * optional int64 min_value = 2;
+     *
      * @return This builder for chaining.
      */
     public Builder clearMinValue() {
@@ -629,9 +670,10 @@ public Builder clearMinValue() {
       return this;
     }
 
-    private long maxValue_ ;
+    private long maxValue_;
     /**
      * optional int64 max_value = 3;
+     *
      * @return Whether the maxValue field is set.
      */
     @java.lang.Override
@@ -640,6 +682,7 @@ public boolean hasMaxValue() {
     }
     /**
      * optional int64 max_value = 3;
+     *
      * @return The maxValue.
      */
     @java.lang.Override
@@ -648,6 +691,7 @@ public long getMaxValue() {
     }
     /**
      * optional int64 max_value = 3;
+     *
      * @param value The maxValue to set.
      * @return This builder for chaining.
      */
@@ -660,6 +704,7 @@ public Builder setMaxValue(long value) {
     }
     /**
      * optional int64 max_value = 3;
+     *
      * @return This builder for chaining.
      */
     public Builder clearMaxValue() {
@@ -668,9 +713,9 @@ public Builder clearMaxValue() {
       onChanged();
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -680,12 +725,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.CapacityQuantityInterval)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.CapacityQuantityInterval)
   private static final com.google.cloud.optimization.v1.CapacityQuantityInterval DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.CapacityQuantityInterval();
   }
@@ -694,27 +739,27 @@ public static com.google.cloud.optimization.v1.CapacityQuantityInterval getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CapacityQuantityInterval parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CapacityQuantityInterval parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -729,6 +774,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.optimization.v1.CapacityQuantityInterval getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
similarity index 56%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
index c4bf3ddcd9cd..9ba5b810f76c 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityIntervalOrBuilder.java
@@ -1,42 +1,64 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
-@java.lang.Deprecated public interface CapacityQuantityIntervalOrBuilder extends
+@java.lang.Deprecated
+public interface CapacityQuantityIntervalOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.CapacityQuantityInterval)
     com.google.protobuf.MessageOrBuilder {
 
   /**
    * string type = 1;
+   *
    * @return The type.
    */
   java.lang.String getType();
   /**
    * string type = 1;
+   *
    * @return The bytes for type.
    */
-  com.google.protobuf.ByteString
-      getTypeBytes();
+  com.google.protobuf.ByteString getTypeBytes();
 
   /**
    * optional int64 min_value = 2;
+   *
    * @return Whether the minValue field is set.
    */
   boolean hasMinValue();
   /**
    * optional int64 min_value = 2;
+   *
    * @return The minValue.
    */
   long getMinValue();
 
   /**
    * optional int64 max_value = 3;
+   *
    * @return Whether the maxValue field is set.
    */
   boolean hasMaxValue();
   /**
    * optional int64 max_value = 3;
+   *
    * @return The maxValue.
    */
   long getMaxValue();
diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java
new file mode 100644
index 000000000000..348ff803ec94
--- /dev/null
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/optimization/v1/fleet_routing.proto
+
+package com.google.cloud.optimization.v1;
+
+@java.lang.Deprecated
+public interface CapacityQuantityOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.CapacityQuantity)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * string type = 1;
+   *
+   * @return The type.
+   */
+  java.lang.String getType();
+  /**
+   * string type = 1;
+   *
+   * @return The bytes for type.
+   */
+  com.google.protobuf.ByteString getTypeBytes();
+
+  /**
+   * int64 value = 2;
+   *
+   * @return The value.
+   */
+  long getValue();
+}
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
similarity index 66%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
index edac4cb3b90c..69fa3077afae 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DataFormat.java
@@ -1,18 +1,36 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/async_model.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
+ *
+ *
  * 
  * Data formats for input and output files.
  * 
* * Protobuf enum {@code google.cloud.optimization.v1.DataFormat} */ -public enum DataFormat - implements com.google.protobuf.ProtocolMessageEnum { +public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Default value.
    * 
@@ -21,6 +39,8 @@ public enum DataFormat */ DATA_FORMAT_UNSPECIFIED(0), /** + * + * *
    * Input data in json format.
    * 
@@ -29,6 +49,8 @@ public enum DataFormat */ JSON(1), /** + * + * *
    * Input data in string format.
    * 
@@ -40,6 +62,8 @@ public enum DataFormat ; /** + * + * *
    * Default value.
    * 
@@ -48,6 +72,8 @@ public enum DataFormat */ public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Input data in json format.
    * 
@@ -56,6 +82,8 @@ public enum DataFormat */ public static final int JSON_VALUE = 1; /** + * + * *
    * Input data in string format.
    * 
@@ -64,7 +92,6 @@ public enum DataFormat */ public static final int STRING_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static DataFormat valueOf(int value) { */ public static DataFormat forNumber(int value) { switch (value) { - case 0: return DATA_FORMAT_UNSPECIFIED; - case 1: return JSON; - case 2: return STRING; - default: return null; + case 0: + return DATA_FORMAT_UNSPECIFIED; + case 1: + return JSON; + case 2: + return STRING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DataFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataFormat findValueByNumber(int number) { - return DataFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataFormat findValueByNumber(int number) { + return DataFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor().getEnumTypes().get(0); } private static final DataFormat[] VALUES = values(); - public static DataFormat valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private DataFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.optimization.v1.DataFormat) } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java similarity index 76% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java index fa70d0c2b527..1390dd06f630 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimit.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * A limit defining a maximum distance which can be traveled. It can be either
  * hard or soft.
@@ -14,48 +31,52 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.DistanceLimit}
  */
-public final class DistanceLimit extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DistanceLimit extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.DistanceLimit)
     DistanceLimitOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DistanceLimit.newBuilder() to construct.
   private DistanceLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private DistanceLimit() {
-  }
+
+  private DistanceLimit() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DistanceLimit();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.DistanceLimit.class, com.google.cloud.optimization.v1.DistanceLimit.Builder.class);
+            com.google.cloud.optimization.v1.DistanceLimit.class,
+            com.google.cloud.optimization.v1.DistanceLimit.Builder.class);
   }
 
   private int bitField0_;
   public static final int MAX_METERS_FIELD_NUMBER = 1;
   private long maxMeters_ = 0L;
   /**
+   *
+   *
    * 
    * A hard limit constraining the distance to be at most max_meters. The limit
    * must be nonnegative.
    * 
* * optional int64 max_meters = 1; + * * @return Whether the maxMeters field is set. */ @java.lang.Override @@ -63,12 +84,15 @@ public boolean hasMaxMeters() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * A hard limit constraining the distance to be at most max_meters. The limit
    * must be nonnegative.
    * 
* * optional int64 max_meters = 1; + * * @return The maxMeters. */ @java.lang.Override @@ -79,6 +103,8 @@ public long getMaxMeters() { public static final int SOFT_MAX_METERS_FIELD_NUMBER = 2; private long softMaxMeters_ = 0L; /** + * + * *
    * A soft limit not enforcing a maximum distance limit, but when violated
    * results in a cost which adds up to other costs defined in the model,
@@ -89,6 +115,7 @@ public long getMaxMeters() {
    * 
* * optional int64 soft_max_meters = 2; + * * @return Whether the softMaxMeters field is set. */ @java.lang.Override @@ -96,6 +123,8 @@ public boolean hasSoftMaxMeters() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * A soft limit not enforcing a maximum distance limit, but when violated
    * results in a cost which adds up to other costs defined in the model,
@@ -106,6 +135,7 @@ public boolean hasSoftMaxMeters() {
    * 
* * optional int64 soft_max_meters = 2; + * * @return The softMaxMeters. */ @java.lang.Override @@ -116,6 +146,8 @@ public long getSoftMaxMeters() { public static final int COST_PER_KILOMETER_BELOW_SOFT_MAX_FIELD_NUMBER = 4; private double costPerKilometerBelowSoftMax_ = 0D; /** + * + * *
    * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
    * formula:
@@ -127,6 +159,7 @@ public long getSoftMaxMeters() {
    * 
* * optional double cost_per_kilometer_below_soft_max = 4; + * * @return Whether the costPerKilometerBelowSoftMax field is set. */ @java.lang.Override @@ -134,6 +167,8 @@ public boolean hasCostPerKilometerBelowSoftMax() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
    * formula:
@@ -145,6 +180,7 @@ public boolean hasCostPerKilometerBelowSoftMax() {
    * 
* * optional double cost_per_kilometer_below_soft_max = 4; + * * @return The costPerKilometerBelowSoftMax. */ @java.lang.Override @@ -155,6 +191,8 @@ public double getCostPerKilometerBelowSoftMax() { public static final int COST_PER_KILOMETER_ABOVE_SOFT_MAX_FIELD_NUMBER = 3; private double costPerKilometerAboveSoftMax_ = 0D; /** + * + * *
    * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
    * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -167,6 +205,7 @@ public double getCostPerKilometerBelowSoftMax() {
    * 
* * optional double cost_per_kilometer_above_soft_max = 3; + * * @return Whether the costPerKilometerAboveSoftMax field is set. */ @java.lang.Override @@ -174,6 +213,8 @@ public boolean hasCostPerKilometerAboveSoftMax() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
    * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -186,6 +227,7 @@ public boolean hasCostPerKilometerAboveSoftMax() {
    * 
* * optional double cost_per_kilometer_above_soft_max = 3; + * * @return The costPerKilometerAboveSoftMax. */ @java.lang.Override @@ -194,6 +236,7 @@ public double getCostPerKilometerAboveSoftMax() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +248,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, maxMeters_); } @@ -229,20 +271,18 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxMeters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxMeters_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, softMaxMeters_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, softMaxMeters_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, costPerKilometerAboveSoftMax_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(3, costPerKilometerAboveSoftMax_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, costPerKilometerBelowSoftMax_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(4, costPerKilometerBelowSoftMax_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -252,34 +292,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.DistanceLimit)) { return super.equals(obj); } - com.google.cloud.optimization.v1.DistanceLimit other = (com.google.cloud.optimization.v1.DistanceLimit) obj; + com.google.cloud.optimization.v1.DistanceLimit other = + (com.google.cloud.optimization.v1.DistanceLimit) obj; if (hasMaxMeters() != other.hasMaxMeters()) return false; if (hasMaxMeters()) { - if (getMaxMeters() - != other.getMaxMeters()) return false; + if (getMaxMeters() != other.getMaxMeters()) return false; } if (hasSoftMaxMeters() != other.hasSoftMaxMeters()) return false; if (hasSoftMaxMeters()) { - if (getSoftMaxMeters() - != other.getSoftMaxMeters()) return false; + if (getSoftMaxMeters() != other.getSoftMaxMeters()) return false; } if (hasCostPerKilometerBelowSoftMax() != other.hasCostPerKilometerBelowSoftMax()) return false; if (hasCostPerKilometerBelowSoftMax()) { if (java.lang.Double.doubleToLongBits(getCostPerKilometerBelowSoftMax()) - != java.lang.Double.doubleToLongBits( - other.getCostPerKilometerBelowSoftMax())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerKilometerBelowSoftMax())) + return false; } if (hasCostPerKilometerAboveSoftMax() != other.hasCostPerKilometerAboveSoftMax()) return false; if (hasCostPerKilometerAboveSoftMax()) { if (java.lang.Double.doubleToLongBits(getCostPerKilometerAboveSoftMax()) - != java.lang.Double.doubleToLongBits( - other.getCostPerKilometerAboveSoftMax())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerKilometerAboveSoftMax())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -294,122 +333,129 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasMaxMeters()) { hash = (37 * hash) + MAX_METERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxMeters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxMeters()); } if (hasSoftMaxMeters()) { hash = (37 * hash) + SOFT_MAX_METERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSoftMaxMeters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSoftMaxMeters()); } if (hasCostPerKilometerBelowSoftMax()) { hash = (37 * hash) + COST_PER_KILOMETER_BELOW_SOFT_MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerKilometerBelowSoftMax())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerKilometerBelowSoftMax())); } if (hasCostPerKilometerAboveSoftMax()) { hash = (37 * hash) + COST_PER_KILOMETER_ABOVE_SOFT_MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerKilometerAboveSoftMax())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerKilometerAboveSoftMax())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.DistanceLimit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.DistanceLimit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.DistanceLimit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.DistanceLimit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.DistanceLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A limit defining a maximum distance which can be traveled. It can be either
    * hard or soft.
@@ -420,33 +466,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.DistanceLimit}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.DistanceLimit)
       com.google.cloud.optimization.v1.DistanceLimitOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.DistanceLimit.class, com.google.cloud.optimization.v1.DistanceLimit.Builder.class);
+              com.google.cloud.optimization.v1.DistanceLimit.class,
+              com.google.cloud.optimization.v1.DistanceLimit.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.DistanceLimit.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -459,9 +504,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor;
     }
 
     @java.lang.Override
@@ -480,8 +525,11 @@ public com.google.cloud.optimization.v1.DistanceLimit build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.DistanceLimit buildPartial() {
-      com.google.cloud.optimization.v1.DistanceLimit result = new com.google.cloud.optimization.v1.DistanceLimit(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.DistanceLimit result =
+          new com.google.cloud.optimization.v1.DistanceLimit(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -512,38 +560,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.DistanceLimit result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.DistanceLimit) {
-        return mergeFrom((com.google.cloud.optimization.v1.DistanceLimit)other);
+        return mergeFrom((com.google.cloud.optimization.v1.DistanceLimit) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -590,32 +639,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              maxMeters_ = input.readInt64();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              softMaxMeters_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 25: {
-              costPerKilometerAboveSoftMax_ = input.readDouble();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 25
-            case 33: {
-              costPerKilometerBelowSoftMax_ = input.readDouble();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 33
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                maxMeters_ = input.readInt64();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                softMaxMeters_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 25:
+              {
+                costPerKilometerAboveSoftMax_ = input.readDouble();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 25
+            case 33:
+              {
+                costPerKilometerBelowSoftMax_ = input.readDouble();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 33
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -625,16 +679,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private long maxMeters_ ;
+    private long maxMeters_;
     /**
+     *
+     *
      * 
      * A hard limit constraining the distance to be at most max_meters. The limit
      * must be nonnegative.
      * 
* * optional int64 max_meters = 1; + * * @return Whether the maxMeters field is set. */ @java.lang.Override @@ -642,12 +700,15 @@ public boolean hasMaxMeters() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * A hard limit constraining the distance to be at most max_meters. The limit
      * must be nonnegative.
      * 
* * optional int64 max_meters = 1; + * * @return The maxMeters. */ @java.lang.Override @@ -655,12 +716,15 @@ public long getMaxMeters() { return maxMeters_; } /** + * + * *
      * A hard limit constraining the distance to be at most max_meters. The limit
      * must be nonnegative.
      * 
* * optional int64 max_meters = 1; + * * @param value The maxMeters to set. * @return This builder for chaining. */ @@ -672,12 +736,15 @@ public Builder setMaxMeters(long value) { return this; } /** + * + * *
      * A hard limit constraining the distance to be at most max_meters. The limit
      * must be nonnegative.
      * 
* * optional int64 max_meters = 1; + * * @return This builder for chaining. */ public Builder clearMaxMeters() { @@ -687,8 +754,10 @@ public Builder clearMaxMeters() { return this; } - private long softMaxMeters_ ; + private long softMaxMeters_; /** + * + * *
      * A soft limit not enforcing a maximum distance limit, but when violated
      * results in a cost which adds up to other costs defined in the model,
@@ -699,6 +768,7 @@ public Builder clearMaxMeters() {
      * 
* * optional int64 soft_max_meters = 2; + * * @return Whether the softMaxMeters field is set. */ @java.lang.Override @@ -706,6 +776,8 @@ public boolean hasSoftMaxMeters() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * A soft limit not enforcing a maximum distance limit, but when violated
      * results in a cost which adds up to other costs defined in the model,
@@ -716,6 +788,7 @@ public boolean hasSoftMaxMeters() {
      * 
* * optional int64 soft_max_meters = 2; + * * @return The softMaxMeters. */ @java.lang.Override @@ -723,6 +796,8 @@ public long getSoftMaxMeters() { return softMaxMeters_; } /** + * + * *
      * A soft limit not enforcing a maximum distance limit, but when violated
      * results in a cost which adds up to other costs defined in the model,
@@ -733,6 +808,7 @@ public long getSoftMaxMeters() {
      * 
* * optional int64 soft_max_meters = 2; + * * @param value The softMaxMeters to set. * @return This builder for chaining. */ @@ -744,6 +820,8 @@ public Builder setSoftMaxMeters(long value) { return this; } /** + * + * *
      * A soft limit not enforcing a maximum distance limit, but when violated
      * results in a cost which adds up to other costs defined in the model,
@@ -754,6 +832,7 @@ public Builder setSoftMaxMeters(long value) {
      * 
* * optional int64 soft_max_meters = 2; + * * @return This builder for chaining. */ public Builder clearSoftMaxMeters() { @@ -763,8 +842,10 @@ public Builder clearSoftMaxMeters() { return this; } - private double costPerKilometerBelowSoftMax_ ; + private double costPerKilometerBelowSoftMax_; /** + * + * *
      * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
      * formula:
@@ -776,6 +857,7 @@ public Builder clearSoftMaxMeters() {
      * 
* * optional double cost_per_kilometer_below_soft_max = 4; + * * @return Whether the costPerKilometerBelowSoftMax field is set. */ @java.lang.Override @@ -783,6 +865,8 @@ public boolean hasCostPerKilometerBelowSoftMax() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
      * formula:
@@ -794,6 +878,7 @@ public boolean hasCostPerKilometerBelowSoftMax() {
      * 
* * optional double cost_per_kilometer_below_soft_max = 4; + * * @return The costPerKilometerBelowSoftMax. */ @java.lang.Override @@ -801,6 +886,8 @@ public double getCostPerKilometerBelowSoftMax() { return costPerKilometerBelowSoftMax_; } /** + * + * *
      * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
      * formula:
@@ -812,6 +899,7 @@ public double getCostPerKilometerBelowSoftMax() {
      * 
* * optional double cost_per_kilometer_below_soft_max = 4; + * * @param value The costPerKilometerBelowSoftMax to set. * @return This builder for chaining. */ @@ -823,6 +911,8 @@ public Builder setCostPerKilometerBelowSoftMax(double value) { return this; } /** + * + * *
      * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
      * formula:
@@ -834,6 +924,7 @@ public Builder setCostPerKilometerBelowSoftMax(double value) {
      * 
* * optional double cost_per_kilometer_below_soft_max = 4; + * * @return This builder for chaining. */ public Builder clearCostPerKilometerBelowSoftMax() { @@ -843,8 +934,10 @@ public Builder clearCostPerKilometerBelowSoftMax() { return this; } - private double costPerKilometerAboveSoftMax_ ; + private double costPerKilometerAboveSoftMax_; /** + * + * *
      * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
      * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -857,6 +950,7 @@ public Builder clearCostPerKilometerBelowSoftMax() {
      * 
* * optional double cost_per_kilometer_above_soft_max = 3; + * * @return Whether the costPerKilometerAboveSoftMax field is set. */ @java.lang.Override @@ -864,6 +958,8 @@ public boolean hasCostPerKilometerAboveSoftMax() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
      * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -876,6 +972,7 @@ public boolean hasCostPerKilometerAboveSoftMax() {
      * 
* * optional double cost_per_kilometer_above_soft_max = 3; + * * @return The costPerKilometerAboveSoftMax. */ @java.lang.Override @@ -883,6 +980,8 @@ public double getCostPerKilometerAboveSoftMax() { return costPerKilometerAboveSoftMax_; } /** + * + * *
      * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
      * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -895,6 +994,7 @@ public double getCostPerKilometerAboveSoftMax() {
      * 
* * optional double cost_per_kilometer_above_soft_max = 3; + * * @param value The costPerKilometerAboveSoftMax to set. * @return This builder for chaining. */ @@ -906,6 +1006,8 @@ public Builder setCostPerKilometerAboveSoftMax(double value) { return this; } /** + * + * *
      * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
      * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -918,6 +1020,7 @@ public Builder setCostPerKilometerAboveSoftMax(double value) {
      * 
* * optional double cost_per_kilometer_above_soft_max = 3; + * * @return This builder for chaining. */ public Builder clearCostPerKilometerAboveSoftMax() { @@ -926,9 +1029,9 @@ public Builder clearCostPerKilometerAboveSoftMax() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -938,12 +1041,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.DistanceLimit) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.DistanceLimit) private static final com.google.cloud.optimization.v1.DistanceLimit DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.DistanceLimit(); } @@ -952,27 +1055,27 @@ public static com.google.cloud.optimization.v1.DistanceLimit getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistanceLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistanceLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -987,6 +1090,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.DistanceLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java similarity index 83% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java index bd091572a4ef..d4fba359ece7 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/DistanceLimitOrBuilder.java @@ -1,34 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface DistanceLimitOrBuilder extends +public interface DistanceLimitOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.DistanceLimit) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A hard limit constraining the distance to be at most max_meters. The limit
    * must be nonnegative.
    * 
* * optional int64 max_meters = 1; + * * @return Whether the maxMeters field is set. */ boolean hasMaxMeters(); /** + * + * *
    * A hard limit constraining the distance to be at most max_meters. The limit
    * must be nonnegative.
    * 
* * optional int64 max_meters = 1; + * * @return The maxMeters. */ long getMaxMeters(); /** + * + * *
    * A soft limit not enforcing a maximum distance limit, but when violated
    * results in a cost which adds up to other costs defined in the model,
@@ -39,10 +63,13 @@ public interface DistanceLimitOrBuilder extends
    * 
* * optional int64 soft_max_meters = 2; + * * @return Whether the softMaxMeters field is set. */ boolean hasSoftMaxMeters(); /** + * + * *
    * A soft limit not enforcing a maximum distance limit, but when violated
    * results in a cost which adds up to other costs defined in the model,
@@ -53,11 +80,14 @@ public interface DistanceLimitOrBuilder extends
    * 
* * optional int64 soft_max_meters = 2; + * * @return The softMaxMeters. */ long getSoftMaxMeters(); /** + * + * *
    * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
    * formula:
@@ -69,10 +99,13 @@ public interface DistanceLimitOrBuilder extends
    * 
* * optional double cost_per_kilometer_below_soft_max = 4; + * * @return Whether the costPerKilometerBelowSoftMax field is set. */ boolean hasCostPerKilometerBelowSoftMax(); /** + * + * *
    * Cost per kilometer incurred, increasing up to `soft_max_meters`, with
    * formula:
@@ -84,11 +117,14 @@ public interface DistanceLimitOrBuilder extends
    * 
* * optional double cost_per_kilometer_below_soft_max = 4; + * * @return The costPerKilometerBelowSoftMax. */ double getCostPerKilometerBelowSoftMax(); /** + * + * *
    * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
    * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -101,10 +137,13 @@ public interface DistanceLimitOrBuilder extends
    * 
* * optional double cost_per_kilometer_above_soft_max = 3; + * * @return Whether the costPerKilometerAboveSoftMax field is set. */ boolean hasCostPerKilometerAboveSoftMax(); /** + * + * *
    * Cost per kilometer incurred if distance is above `soft_max_meters` limit.
    * The additional cost is 0 if the distance is under the limit, otherwise the
@@ -117,6 +156,7 @@ public interface DistanceLimitOrBuilder extends
    * 
* * optional double cost_per_kilometer_above_soft_max = 3; + * * @return The costPerKilometerAboveSoftMax. */ double getCostPerKilometerAboveSoftMax(); diff --git a/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java new file mode 100644 index 000000000000..2ef1ddfa4bbe --- /dev/null +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java @@ -0,0 +1,1460 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/optimization/v1/fleet_routing.proto + +package com.google.cloud.optimization.v1; + +public final class FleetRoutingProto { + private FleetRoutingProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_TimeWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Waypoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_Location_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BreakRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/optimization/v1/fleet_rou" + + "ting.proto\022\034google.cloud.optimization.v1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032.google/cloud/optimization/v1/a" + + "sync_model.proto\032#google/longrunning/ope" + + "rations.proto\032\036google/protobuf/duration." + + "proto\032\037google/protobuf/timestamp.proto\032\030" + + "google/type/latlng.proto\"\245\t\n\024OptimizeTou" + + "rsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022*\n\007timeo" + + "ut\030\002 \001(\0132\031.google.protobuf.Duration\022:\n\005m" + + "odel\030\003 \001(\0132+.google.cloud.optimization.v" + + "1.ShipmentModel\022T\n\014solving_mode\030\004 \001(\0162>." + + "google.cloud.optimization.v1.OptimizeTou" + + "rsRequest.SolvingMode\022R\n\013search_mode\030\006 \001" + + "(\0162=.google.cloud.optimization.v1.Optimi" + + "zeToursRequest.SearchMode\022S\n\036injected_fi" + + "rst_solution_routes\030\007 \003(\0132+.google.cloud" + + ".optimization.v1.ShipmentRoute\022^\n\034inject" + + "ed_solution_constraint\030\010 \001(\01328.google.cl" + + "oud.optimization.v1.InjectedSolutionCons" + + "traint\022K\n\026refresh_details_routes\030\t \003(\0132+" + + ".google.cloud.optimization.v1.ShipmentRo" + + "ute\0221\n)interpret_injected_solutions_usin" + + "g_labels\030\n \001(\010\022\035\n\025consider_road_traffic\030" + + "\013 \001(\010\022\032\n\022populate_polylines\030\014 \001(\010\022%\n\035pop" + + "ulate_transition_polylines\030\r \001(\010\0226\n.allo" + + "w_large_deadline_despite_interruption_ri" + + "sk\030\016 \001(\010\022\036\n\026use_geodesic_distances\030\017 \001(\010" + + "\022\'\n\032geodesic_meters_per_second\030\020 \001(\001H\000\210\001" + + "\001\022\"\n\025max_validation_errors\030\005 \001(\005H\001\210\001\001\022\r\n" + + "\005label\030\021 \001(\t\022*\n\036populate_travel_step_pol" + + "ylines\030\024 \001(\010B\002\030\001\"Y\n\013SolvingMode\022\021\n\rDEFAU" + + "LT_SOLVE\020\000\022\021\n\rVALIDATE_ONLY\020\001\022$\n DETECT_" + + "SOME_INFEASIBLE_SHIPMENTS\020\002\"Z\n\nSearchMod" + + "e\022\033\n\027SEARCH_MODE_UNSPECIFIED\020\000\022\017\n\013RETURN" + + "_FAST\020\001\022\036\n\032CONSUME_ALL_AVAILABLE_TIME\020\002B" + + "\035\n\033_geodesic_meters_per_secondB\030\n\026_max_v" + + "alidation_errors\"\256\006\n\025OptimizeToursRespon" + + "se\022;\n\006routes\030\001 \003(\0132+.google.cloud.optimi" + + "zation.v1.ShipmentRoute\022\025\n\rrequest_label" + + "\030\003 \001(\t\022H\n\021skipped_shipments\030\004 \003(\0132-.goog" + + "le.cloud.optimization.v1.SkippedShipment" + + "\022U\n\021validation_errors\030\005 \003(\0132:.google.clo" + + "ud.optimization.v1.OptimizeToursValidati" + + "onError\022L\n\007metrics\030\006 \001(\0132;.google.cloud." + + "optimization.v1.OptimizeToursResponse.Me" + + "trics\022\026\n\ntotal_cost\030\002 \001(\001B\002\030\001\032\271\003\n\007Metric" + + "s\022Q\n\030aggregated_route_metrics\030\001 \001(\0132/.go" + + "ogle.cloud.optimization.v1.AggregatedMet" + + "rics\022(\n skipped_mandatory_shipment_count" + + "\030\002 \001(\005\022\032\n\022used_vehicle_count\030\003 \001(\005\022?\n\033ea" + + "rliest_vehicle_start_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\022;\n\027latest_vehicle_en" + + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "\022U\n\005costs\030\n \003(\0132F.google.cloud.optimizat" + + "ion.v1.OptimizeToursResponse.Metrics.Cos" + + "tsEntry\022\022\n\ntotal_cost\030\006 \001(\001\032,\n\nCostsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\357\002\n\031Ba" + + "tchOptimizeToursRequest\022\024\n\006parent\030\001 \001(\tB" + + "\004\342A\001\002\022e\n\rmodel_configs\030\002 \003(\0132H.google.cl" + + "oud.optimization.v1.BatchOptimizeToursRe" + + "quest.AsyncModelConfigB\004\342A\001\002\032\324\001\n\020AsyncMo" + + "delConfig\022\024\n\014display_name\030\001 \001(\t\022E\n\014input" + + "_config\030\002 \001(\0132).google.cloud.optimizatio" + + "n.v1.InputConfigB\004\342A\001\002\022G\n\routput_config\030" + + "\003 \001(\0132*.google.cloud.optimization.v1.Out" + + "putConfigB\004\342A\001\002\022\032\n\022enable_checkpoints\030\004 " + + "\001(\010\"\034\n\032BatchOptimizeToursResponse\"\237\017\n\rSh" + + "ipmentModel\0229\n\tshipments\030\001 \003(\0132&.google." + + "cloud.optimization.v1.Shipment\0227\n\010vehicl" + + "es\030\002 \003(\0132%.google.cloud.optimization.v1." + + "Vehicle\022 \n\023max_active_vehicles\030\004 \001(\005H\000\210\001" + + "\001\0225\n\021global_start_time\030\005 \001(\0132\032.google.pr" + + "otobuf.Timestamp\0223\n\017global_end_time\030\006 \001(" + + "\0132\032.google.protobuf.Timestamp\022%\n\035global_" + + "duration_cost_per_hour\030\007 \001(\001\022f\n\032duration" + + "_distance_matrices\030\010 \003(\0132B.google.cloud." + + "optimization.v1.ShipmentModel.DurationDi" + + "stanceMatrix\022)\n!duration_distance_matrix" + + "_src_tags\030\t \003(\t\022)\n!duration_distance_mat" + + "rix_dst_tags\030\n \003(\t\022Q\n\025transition_attribu" + + "tes\030\013 \003(\01322.google.cloud.optimization.v1" + + ".TransitionAttributes\022b\n\037shipment_type_i" + + "ncompatibilities\030\014 \003(\01329.google.cloud.op" + + "timization.v1.ShipmentTypeIncompatibilit" + + "y\022Y\n\032shipment_type_requirements\030\r \003(\01325." + + "google.cloud.optimization.v1.ShipmentTyp" + + "eRequirement\022T\n\020precedence_rules\030\016 \003(\0132:" + + ".google.cloud.optimization.v1.ShipmentMo" + + "del.PrecedenceRule\022N\n\013break_rules\030\017 \003(\0132" + + "5.google.cloud.optimization.v1.ShipmentM" + + "odel.BreakRuleB\002\030\001\032\316\001\n\026DurationDistanceM" + + "atrix\022T\n\004rows\030\001 \003(\0132F.google.cloud.optim" + + "ization.v1.ShipmentModel.DurationDistanc" + + "eMatrix.Row\022\031\n\021vehicle_start_tag\030\002 \001(\t\032C" + + "\n\003Row\022,\n\tdurations\030\001 \003(\0132\031.google.protob" + + "uf.Duration\022\016\n\006meters\030\002 \003(\001\032\321\001\n\016Preceden" + + "ceRule\022\030\n\013first_index\030\001 \001(\005H\000\210\001\001\022\031\n\021firs" + + "t_is_delivery\030\003 \001(\010\022\031\n\014second_index\030\002 \001(" + + "\005H\001\210\001\001\022\032\n\022second_is_delivery\030\004 \001(\010\0222\n\017of" + + "fset_duration\030\005 \001(\0132\031.google.protobuf.Du" + + "rationB\016\n\014_first_indexB\017\n\r_second_index\032" + + "\261\004\n\tBreakRule\022Z\n\016break_requests\030\001 \003(\0132B." + + "google.cloud.optimization.v1.ShipmentMod" + + "el.BreakRule.BreakRequest\022h\n\025frequency_c" + + "onstraints\030\002 \003(\0132I.google.cloud.optimiza" + + "tion.v1.ShipmentModel.BreakRule.Frequenc" + + "yConstraint\032\301\001\n\014BreakRequest\022=\n\023earliest" + + "_start_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\002\022;\n\021latest_start_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\002\0225\n\014min_" + + "duration\030\003 \001(\0132\031.google.protobuf.Duratio" + + "nB\004\342A\001\002\032\225\001\n\023FrequencyConstraint\022;\n\022min_b" + + "reak_duration\030\001 \001(\0132\031.google.protobuf.Du" + + "rationB\004\342A\001\002\022A\n\030max_inter_break_duration" + + "\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\002:" + + "\002\030\001B\026\n\024_max_active_vehicles\"\200\014\n\010Shipment" + + "\022D\n\007pickups\030\001 \003(\01323.google.cloud.optimiz" + + "ation.v1.Shipment.VisitRequest\022G\n\ndelive" + + "ries\030\002 \003(\01323.google.cloud.optimization.v" + + "1.Shipment.VisitRequest\022M\n\014load_demands\030" + + "\016 \003(\01327.google.cloud.optimization.v1.Shi" + + "pment.LoadDemandsEntry\022\031\n\014penalty_cost\030\004" + + " \001(\001H\000\210\001\001\022\037\n\027allowed_vehicle_indices\030\005 \003" + + "(\005\022\031\n\021costs_per_vehicle\030\006 \003(\001\022!\n\031costs_p" + + "er_vehicle_indices\030\007 \003(\005\0225\n(pickup_to_de" + + "livery_relative_detour_limit\030\010 \001(\001H\001\210\001\001\022" + + "K\n(pickup_to_delivery_absolute_detour_li" + + "mit\030\t \001(\0132\031.google.protobuf.Duration\022@\n\035" + + "pickup_to_delivery_time_limit\030\n \001(\0132\031.go" + + "ogle.protobuf.Duration\022\025\n\rshipment_type\030" + + "\013 \001(\t\022\r\n\005label\030\014 \001(\t\022\016\n\006ignore\030\r \001(\010\022C\n\007" + + "demands\030\003 \003(\0132..google.cloud.optimizatio" + + "n.v1.CapacityQuantityB\002\030\001\032\243\005\n\014VisitReque" + + "st\022-\n\020arrival_location\030\001 \001(\0132\023.google.ty" + + "pe.LatLng\022@\n\020arrival_waypoint\030\002 \001(\0132&.go" + + "ogle.cloud.optimization.v1.Waypoint\022/\n\022d" + + "eparture_location\030\003 \001(\0132\023.google.type.La" + + "tLng\022B\n\022departure_waypoint\030\004 \001(\0132&.googl" + + "e.cloud.optimization.v1.Waypoint\022\014\n\004tags" + + "\030\005 \003(\t\022>\n\014time_windows\030\006 \003(\0132(.google.cl" + + "oud.optimization.v1.TimeWindow\022+\n\010durati" + + "on\030\007 \001(\0132\031.google.protobuf.Duration\022\014\n\004c" + + "ost\030\010 \001(\001\022Z\n\014load_demands\030\014 \003(\0132D.google" + + ".cloud.optimization.v1.Shipment.VisitReq" + + "uest.LoadDemandsEntry\022\023\n\013visit_types\030\n \003" + + "(\t\022\r\n\005label\030\013 \001(\t\022C\n\007demands\030\t \003(\0132..goo" + + "gle.cloud.optimization.v1.CapacityQuanti" + + "tyB\002\030\001\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001 \001(\t\022" + + ":\n\005value\030\002 \001(\0132+.google.cloud.optimizati" + + "on.v1.Shipment.Load:\0028\001\032\026\n\004Load\022\016\n\006amoun" + + "t\030\002 \001(\003\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001 \001(\t" + + "\022:\n\005value\030\002 \001(\0132+.google.cloud.optimizat" + + "ion.v1.Shipment.Load:\0028\001B\017\n\r_penalty_cos" + + "tB+\n)_pickup_to_delivery_relative_detour" + + "_limit\"\242\002\n\033ShipmentTypeIncompatibility\022\r" + + "\n\005types\030\001 \003(\t\022k\n\024incompatibility_mode\030\002 " + + "\001(\0162M.google.cloud.optimization.v1.Shipm" + + "entTypeIncompatibility.IncompatibilityMo" + + "de\"\206\001\n\023IncompatibilityMode\022$\n INCOMPATIB" + + "ILITY_MODE_UNSPECIFIED\020\000\022!\n\035NOT_PERFORME" + + "D_BY_SAME_VEHICLE\020\001\022&\n\"NOT_IN_SAME_VEHIC" + + "LE_SIMULTANEOUSLY\020\002\"\350\002\n\027ShipmentTypeRequ" + + "irement\022+\n#required_shipment_type_altern" + + "atives\030\001 \003(\t\022 \n\030dependent_shipment_types" + + "\030\002 \003(\t\022_\n\020requirement_mode\030\003 \001(\0162E.googl" + + "e.cloud.optimization.v1.ShipmentTypeRequ" + + "irement.RequirementMode\"\234\001\n\017RequirementM" + + "ode\022 \n\034REQUIREMENT_MODE_UNSPECIFIED\020\000\022\035\n" + + "\031PERFORMED_BY_SAME_VEHICLE\020\001\022\"\n\036IN_SAME_" + + "VEHICLE_AT_PICKUP_TIME\020\002\022$\n IN_SAME_VEHI" + + "CLE_AT_DELIVERY_TIME\020\003\"p\n\016RouteModifiers" + + "\022\023\n\013avoid_tolls\030\002 \001(\010\022\026\n\016avoid_highways\030" + + "\003 \001(\010\022\025\n\ravoid_ferries\030\004 \001(\010\022\032\n\014avoid_in" + + "door\030\005 \001(\010B\004\342A\001\001\"\233\025\n\007Vehicle\022E\n\013travel_m" + + "ode\030\001 \001(\01620.google.cloud.optimization.v1" + + ".Vehicle.TravelMode\022K\n\017route_modifiers\030\002" + + " \001(\0132,.google.cloud.optimization.v1.Rout" + + "eModifiersB\004\342A\001\001\022+\n\016start_location\030\003 \001(\013" + + "2\023.google.type.LatLng\022>\n\016start_waypoint\030" + + "\004 \001(\0132&.google.cloud.optimization.v1.Way" + + "point\022)\n\014end_location\030\005 \001(\0132\023.google.typ" + + "e.LatLng\022<\n\014end_waypoint\030\006 \001(\0132&.google." + + "cloud.optimization.v1.Waypoint\022\022\n\nstart_" + + "tags\030\007 \003(\t\022\020\n\010end_tags\030\010 \003(\t\022D\n\022start_ti" + + "me_windows\030\t \003(\0132(.google.cloud.optimiza" + + "tion.v1.TimeWindow\022B\n\020end_time_windows\030\n" + + " \003(\0132(.google.cloud.optimization.v1.Time" + + "Window\022%\n\030travel_duration_multiple\030\013 \001(\001" + + "H\000\210\001\001\022O\n\020unloading_policy\030\014 \001(\01625.google" + + ".cloud.optimization.v1.Vehicle.Unloading" + + "Policy\022J\n\013load_limits\030\036 \003(\01325.google.clo" + + "ud.optimization.v1.Vehicle.LoadLimitsEnt" + + "ry\022\025\n\rcost_per_hour\030\020 \001(\001\022\036\n\026cost_per_tr" + + "aveled_hour\030\021 \001(\001\022\032\n\022cost_per_kilometer\030" + + "\022 \001(\001\022\022\n\nfixed_cost\030\023 \001(\001\022\036\n\026used_if_rou" + + "te_is_empty\030\024 \001(\010\022Q\n\024route_duration_limi" + + "t\030\025 \001(\01323.google.cloud.optimization.v1.V" + + "ehicle.DurationLimit\022R\n\025travel_duration_" + + "limit\030\026 \001(\01323.google.cloud.optimization." + + "v1.Vehicle.DurationLimit\022I\n\024route_distan" + + "ce_limit\030\027 \001(\0132+.google.cloud.optimizati" + + "on.v1.DistanceLimit\022v\n#extra_visit_durat" + + "ion_for_visit_type\030\030 \003(\0132I.google.cloud." + + "optimization.v1.Vehicle.ExtraVisitDurati" + + "onForVisitTypeEntry\022;\n\nbreak_rule\030\031 \001(\0132" + + "\'.google.cloud.optimization.v1.BreakRule" + + "\022\r\n\005label\030\033 \001(\t\022\016\n\006ignore\030\034 \001(\010\022\036\n\022break" + + "_rule_indices\030\035 \003(\005B\002\030\001\022F\n\ncapacities\030\r " + + "\003(\0132..google.cloud.optimization.v1.Capac" + + "ityQuantityB\002\030\001\022X\n\024start_load_intervals\030" + + "\016 \003(\01326.google.cloud.optimization.v1.Cap" + + "acityQuantityIntervalB\002\030\001\022V\n\022end_load_in" + + "tervals\030\017 \003(\01326.google.cloud.optimizatio" + + "n.v1.CapacityQuantityIntervalB\002\030\001\032\313\002\n\tLo" + + "adLimit\022\025\n\010max_load\030\001 \001(\003H\000\210\001\001\022\025\n\rsoft_m" + + "ax_load\030\002 \001(\003\022$\n\034cost_per_unit_above_sof" + + "t_max\030\003 \001(\001\022U\n\023start_load_interval\030\004 \001(\013" + + "28.google.cloud.optimization.v1.Vehicle." + + "LoadLimit.Interval\022S\n\021end_load_interval\030" + + "\005 \001(\01328.google.cloud.optimization.v1.Veh" + + "icle.LoadLimit.Interval\0321\n\010Interval\022\013\n\003m" + + "in\030\001 \001(\003\022\020\n\003max\030\002 \001(\003H\000\210\001\001B\006\n\004_maxB\013\n\t_m" + + "ax_load\032\360\002\n\rDurationLimit\022/\n\014max_duratio" + + "n\030\001 \001(\0132\031.google.protobuf.Duration\0224\n\021so" + + "ft_max_duration\030\002 \001(\0132\031.google.protobuf." + + "Duration\022)\n\034cost_per_hour_after_soft_max" + + "\030\003 \001(\001H\000\210\001\001\022>\n\033quadratic_soft_max_durati" + + "on\030\004 \001(\0132\031.google.protobuf.Duration\022:\n-c" + + "ost_per_square_hour_after_quadratic_soft" + + "_max\030\005 \001(\001H\001\210\001\001B\037\n\035_cost_per_hour_after_" + + "soft_maxB0\n._cost_per_square_hour_after_" + + "quadratic_soft_max\032b\n\017LoadLimitsEntry\022\013\n" + + "\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.cloud" + + ".optimization.v1.Vehicle.LoadLimit:\0028\001\032`" + + "\n#ExtraVisitDurationForVisitTypeEntry\022\013\n" + + "\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.google.proto" + + "buf.Duration:\0028\001\"C\n\nTravelMode\022\033\n\027TRAVEL" + + "_MODE_UNSPECIFIED\020\000\022\013\n\007DRIVING\020\001\022\013\n\007WALK" + + "ING\020\002\"b\n\017UnloadingPolicy\022 \n\034UNLOADING_PO" + + "LICY_UNSPECIFIED\020\000\022\025\n\021LAST_IN_FIRST_OUT\020" + + "\001\022\026\n\022FIRST_IN_FIRST_OUT\020\002B\033\n\031_travel_dur" + + "ation_multiple\"\204\003\n\nTimeWindow\022.\n\nstart_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\0223\n\017soft_start_time\030\003 \001(\0132\032.google.pr" + + "otobuf.Timestamp\0221\n\rsoft_end_time\030\004 \001(\0132" + + "\032.google.protobuf.Timestamp\0221\n$cost_per_" + + "hour_before_soft_start_time\030\005 \001(\001H\000\210\001\001\022." + + "\n!cost_per_hour_after_soft_end_time\030\006 \001(" + + "\001H\001\210\001\001B\'\n%_cost_per_hour_before_soft_sta" + + "rt_timeB$\n\"_cost_per_hour_after_soft_end" + + "_time\"3\n\020CapacityQuantity\022\014\n\004type\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\003:\002\030\001\"x\n\030CapacityQuantityIn" + + "terval\022\014\n\004type\030\001 \001(\t\022\026\n\tmin_value\030\002 \001(\003H" + + "\000\210\001\001\022\026\n\tmax_value\030\003 \001(\003H\001\210\001\001:\002\030\001B\014\n\n_min" + + "_valueB\014\n\n_max_value\"\225\002\n\rDistanceLimit\022\027" + + "\n\nmax_meters\030\001 \001(\003H\000\210\001\001\022\034\n\017soft_max_mete" + + "rs\030\002 \001(\003H\001\210\001\001\022.\n!cost_per_kilometer_belo" + + "w_soft_max\030\004 \001(\001H\002\210\001\001\022.\n!cost_per_kilome" + + "ter_above_soft_max\030\003 \001(\001H\003\210\001\001B\r\n\013_max_me" + + "tersB\022\n\020_soft_max_metersB$\n\"_cost_per_ki" + + "lometer_below_soft_maxB$\n\"_cost_per_kilo" + + "meter_above_soft_max\"\205\002\n\024TransitionAttri" + + "butes\022\017\n\007src_tag\030\001 \001(\t\022\030\n\020excluded_src_t" + + "ag\030\002 \001(\t\022\017\n\007dst_tag\030\003 \001(\t\022\030\n\020excluded_ds" + + "t_tag\030\004 \001(\t\022\014\n\004cost\030\005 \001(\001\022\032\n\022cost_per_ki" + + "lometer\030\006 \001(\001\022C\n\016distance_limit\030\007 \001(\0132+." + + "google.cloud.optimization.v1.DistanceLim" + + "it\022(\n\005delay\030\010 \001(\0132\031.google.protobuf.Dura" + + "tion\"\201\001\n\010Waypoint\022:\n\010location\030\001 \001(\0132&.go" + + "ogle.cloud.optimization.v1.LocationH\000\022\022\n" + + "\010place_id\030\002 \001(\tH\000\022\024\n\014side_of_road\030\003 \001(\010B" + + "\017\n\rlocation_type\"R\n\010Location\022$\n\007lat_lng\030" + + "\001 \001(\0132\023.google.type.LatLng\022\024\n\007heading\030\002 " + + "\001(\005H\000\210\001\001B\n\n\010_heading\"\221\004\n\tBreakRule\022L\n\016br" + + "eak_requests\030\001 \003(\01324.google.cloud.optimi" + + "zation.v1.BreakRule.BreakRequest\022Z\n\025freq" + + "uency_constraints\030\002 \003(\0132;.google.cloud.o" + + "ptimization.v1.BreakRule.FrequencyConstr" + + "aint\032\301\001\n\014BreakRequest\022=\n\023earliest_start_" + + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\002\022;\n\021latest_start_time\030\002 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\002\0225\n\014min_duratio" + + "n\030\003 \001(\0132\031.google.protobuf.DurationB\004\342A\001\002" + + "\032\225\001\n\023FrequencyConstraint\022;\n\022min_break_du" + + "ration\030\001 \001(\0132\031.google.protobuf.DurationB" + + "\004\342A\001\002\022A\n\030max_inter_break_duration\030\002 \001(\0132" + + "\031.google.protobuf.DurationB\004\342A\001\002\"\303\026\n\rShi" + + "pmentRoute\022\025\n\rvehicle_index\030\001 \001(\005\022\025\n\rveh" + + "icle_label\030\002 \001(\t\0226\n\022vehicle_start_time\030\005" + + " \001(\0132\032.google.protobuf.Timestamp\0224\n\020vehi" + + "cle_end_time\030\006 \001(\0132\032.google.protobuf.Tim" + + "estamp\022A\n\006visits\030\007 \003(\01321.google.cloud.op" + + "timization.v1.ShipmentRoute.Visit\022K\n\013tra" + + "nsitions\030\010 \003(\01326.google.cloud.optimizati" + + "on.v1.ShipmentRoute.Transition\022#\n\033has_tr" + + "affic_infeasibilities\030\t \001(\010\022S\n\016route_pol" + + "yline\030\n \001(\0132;.google.cloud.optimization." + + "v1.ShipmentRoute.EncodedPolyline\022A\n\006brea" + + "ks\030\013 \003(\01321.google.cloud.optimization.v1." + + "ShipmentRoute.Break\022@\n\007metrics\030\014 \001(\0132/.g" + + "oogle.cloud.optimization.v1.AggregatedMe" + + "trics\022P\n\013route_costs\030\021 \003(\0132;.google.clou" + + "d.optimization.v1.ShipmentRoute.RouteCos" + + "tsEntry\022\030\n\020route_total_cost\030\022 \001(\001\022E\n\tend" + + "_loads\030\r \003(\0132..google.cloud.optimization" + + ".v1.CapacityQuantityB\002\030\001\022P\n\014travel_steps" + + "\030\016 \003(\01326.google.cloud.optimization.v1.Sh" + + "ipmentRoute.TravelStepB\002\030\001\0225\n\016vehicle_de" + + "tour\030\017 \001(\0132\031.google.protobuf.DurationB\002\030" + + "\001\022W\n\030delay_before_vehicle_end\030\020 \001(\01321.go" + + "ogle.cloud.optimization.v1.ShipmentRoute" + + ".DelayB\002\030\001\032h\n\005Delay\022.\n\nstart_time\030\001 \001(\0132" + + "\032.google.protobuf.Timestamp\022+\n\010duration\030" + + "\002 \001(\0132\031.google.protobuf.Duration:\002\030\001\032\365\004\n" + + "\005Visit\022\026\n\016shipment_index\030\001 \001(\005\022\021\n\tis_pic" + + "kup\030\002 \001(\010\022\033\n\023visit_request_index\030\003 \001(\005\022." + + "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022X\n\014load_demands\030\013 \003(\0132B.google.cl" + + "oud.optimization.v1.ShipmentRoute.Visit." + + "LoadDemandsEntry\022)\n\006detour\030\006 \001(\0132\031.googl" + + "e.protobuf.Duration\022\026\n\016shipment_label\030\007 " + + "\001(\t\022\023\n\013visit_label\030\010 \001(\t\022I\n\rarrival_load" + + "s\030\t \003(\0132..google.cloud.optimization.v1.C" + + "apacityQuantityB\002\030\001\022Q\n\022delay_before_star" + + "t\030\n \001(\01321.google.cloud.optimization.v1.S" + + "hipmentRoute.DelayB\002\030\001\022C\n\007demands\030\005 \003(\0132" + + "..google.cloud.optimization.v1.CapacityQ" + + "uantityB\002\030\001\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001" + + " \001(\t\022:\n\005value\030\002 \001(\0132+.google.cloud.optim" + + "ization.v1.Shipment.Load:\0028\001\032\344\005\n\nTransit" + + "ion\0222\n\017travel_duration\030\001 \001(\0132\031.google.pr" + + "otobuf.Duration\022\036\n\026travel_distance_meter" + + "s\030\002 \001(\001\022 \n\030traffic_info_unavailable\030\003 \001(" + + "\010\0221\n\016delay_duration\030\004 \001(\0132\031.google.proto" + + "buf.Duration\0221\n\016break_duration\030\005 \001(\0132\031.g" + + "oogle.protobuf.Duration\0220\n\rwait_duration" + + "\030\006 \001(\0132\031.google.protobuf.Duration\0221\n\016tot" + + "al_duration\030\007 \001(\0132\031.google.protobuf.Dura" + + "tion\022.\n\nstart_time\030\010 \001(\0132\032.google.protob" + + "uf.Timestamp\022S\n\016route_polyline\030\t \001(\0132;.g" + + "oogle.cloud.optimization.v1.ShipmentRout" + + "e.EncodedPolyline\022_\n\rvehicle_loads\030\013 \003(\013" + + "2H.google.cloud.optimization.v1.Shipment" + + "Route.Transition.VehicleLoadsEntry\022A\n\005lo" + + "ads\030\n \003(\0132..google.cloud.optimization.v1" + + ".CapacityQuantityB\002\030\001\032l\n\021VehicleLoadsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google." + + "cloud.optimization.v1.ShipmentRoute.Vehi" + + "cleLoad:\0028\001\032\035\n\013VehicleLoad\022\016\n\006amount\030\001 \001" + + "(\003\032!\n\017EncodedPolyline\022\016\n\006points\030\001 \001(\t\032d\n" + + "\005Break\022.\n\nstart_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022+\n\010duration\030\002 \001(\0132\031.googl" + + "e.protobuf.Duration\032\315\001\n\nTravelStep\022+\n\010du" + + "ration\030\001 \001(\0132\031.google.protobuf.Duration\022" + + "\027\n\017distance_meters\030\002 \001(\001\022 \n\030traffic_info" + + "_unavailable\030\003 \001(\010\022S\n\016route_polyline\030\004 \001" + + "(\0132;.google.cloud.optimization.v1.Shipme" + + "ntRoute.EncodedPolyline:\002\030\001\0321\n\017RouteCost" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\376" + + "\004\n\017SkippedShipment\022\r\n\005index\030\001 \001(\005\022\r\n\005lab" + + "el\030\002 \001(\t\022E\n\007reasons\030\003 \003(\01324.google.cloud" + + ".optimization.v1.SkippedShipment.Reason\032" + + "\205\004\n\006Reason\022G\n\004code\030\001 \001(\01629.google.cloud." + + "optimization.v1.SkippedShipment.Reason.C" + + "ode\022\"\n\025example_vehicle_index\030\002 \001(\005H\000\210\001\001\022" + + "&\n\036example_exceeded_capacity_type\030\003 \001(\t\"" + + "\313\002\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\016\n\nNO_VEH" + + "ICLE\020\001\022#\n\037DEMAND_EXCEEDS_VEHICLE_CAPACIT" + + "Y\020\002\0225\n1CANNOT_BE_PERFORMED_WITHIN_VEHICL" + + "E_DISTANCE_LIMIT\020\003\0225\n1CANNOT_BE_PERFORME" + + "D_WITHIN_VEHICLE_DURATION_LIMIT\020\004\022<\n8CAN" + + "NOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_D" + + "URATION_LIMIT\020\005\0223\n/CANNOT_BE_PERFORMED_W" + + "ITHIN_VEHICLE_TIME_WINDOWS\020\006\022\027\n\023VEHICLE_" + + "NOT_ALLOWED\020\007B\030\n\026_example_vehicle_index\"" + + "\330\005\n\021AggregatedMetrics\022 \n\030performed_shipm" + + "ent_count\030\001 \001(\005\0222\n\017travel_duration\030\002 \001(\013" + + "2\031.google.protobuf.Duration\0220\n\rwait_dura" + + "tion\030\003 \001(\0132\031.google.protobuf.Duration\0221\n" + + "\016delay_duration\030\004 \001(\0132\031.google.protobuf." + + "Duration\0221\n\016break_duration\030\005 \001(\0132\031.googl" + + "e.protobuf.Duration\0221\n\016visit_duration\030\006 " + + "\001(\0132\031.google.protobuf.Duration\0221\n\016total_" + + "duration\030\007 \001(\0132\031.google.protobuf.Duratio" + + "n\022\036\n\026travel_distance_meters\030\010 \001(\001\022P\n\tmax" + + "_loads\030\t \003(\0132=.google.cloud.optimization" + + ".v1.AggregatedMetrics.MaxLoadsEntry\022M\n\005c" + + "osts\030\n \003(\0132:.google.cloud.optimization.v" + + "1.AggregatedMetrics.CostsEntryB\002\030\001\022\026\n\nto" + + "tal_cost\030\013 \001(\001B\002\030\001\032h\n\rMaxLoadsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.o" + + "ptimization.v1.ShipmentRoute.VehicleLoad" + + ":\0028\001\032,\n\nCostsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\001:\0028\001\"\237\006\n\032InjectedSolutionConstrain" + + "t\022;\n\006routes\030\001 \003(\0132+.google.cloud.optimiz" + + "ation.v1.ShipmentRoute\022H\n\021skipped_shipme" + + "nts\030\002 \003(\0132-.google.cloud.optimization.v1", + ".SkippedShipment\022m\n\026constraint_relaxatio" + + "ns\030\003 \003(\0132M.google.cloud.optimization.v1." + + "InjectedSolutionConstraint.ConstraintRel" + + "axation\032\212\004\n\024ConstraintRelaxation\022m\n\013rela" + + "xations\030\001 \003(\0132X.google.cloud.optimizatio" + + "n.v1.InjectedSolutionConstraint.Constrai" + + "ntRelaxation.Relaxation\022\027\n\017vehicle_indic" + + "es\030\002 \003(\005\032\351\002\n\nRelaxation\022m\n\005level\030\001 \001(\0162^" + + ".google.cloud.optimization.v1.InjectedSo" + + "lutionConstraint.ConstraintRelaxation.Re" + + "laxation.Level\0222\n\016threshold_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\022\035\n\025threshold_" + + "visit_count\030\003 \001(\005\"\230\001\n\005Level\022\025\n\021LEVEL_UNS" + + "PECIFIED\020\000\022%\n!RELAX_VISIT_TIMES_AFTER_TH" + + "RESHOLD\020\001\0222\n.RELAX_VISIT_TIMES_AND_SEQUE" + + "NCE_AFTER_THRESHOLD\020\002\022\035\n\031RELAX_ALL_AFTER" + + "_THRESHOLD\020\003\"\375\002\n\034OptimizeToursValidation" + + "Error\022\014\n\004code\030\001 \001(\005\022\024\n\014display_name\030\002 \001(" + + "\t\022Y\n\006fields\030\003 \003(\0132I.google.cloud.optimiz" + + "ation.v1.OptimizeToursValidationError.Fi" + + "eldReference\022\025\n\rerror_message\030\004 \001(\t\022\030\n\020o" + + "ffending_values\030\005 \001(\t\032\254\001\n\016FieldReference" + + "\022\014\n\004name\030\001 \001(\t\022\017\n\005index\030\002 \001(\005H\000\022\r\n\003key\030\004" + + " \001(\tH\000\022\\\n\tsub_field\030\003 \001(\0132I.google.cloud" + + ".optimization.v1.OptimizeToursValidation" + + "Error.FieldReferenceB\016\n\014index_or_key2\340\004\n" + + "\014FleetRouting\022\342\001\n\rOptimizeTours\0222.google" + + ".cloud.optimization.v1.OptimizeToursRequ" + + "est\0323.google.cloud.optimization.v1.Optim" + + "izeToursResponse\"h\202\323\344\223\002b\"1/v1/{parent=pr" + + "ojects/*/locations/*}:optimizeTours:\001*Z*" + + "\"%/v1/{parent=projects/*}:optimizeTours:" + + "\001*\022\224\002\n\022BatchOptimizeTours\0227.google.cloud" + + ".optimization.v1.BatchOptimizeToursReque" + + "st\032\035.google.longrunning.Operation\"\245\001\312A0\n" + + "\032BatchOptimizeToursResponse\022\022AsyncModelM" + + "etadata\202\323\344\223\002l\"6/v1/{parent=projects/*/lo" + + "cations/*}:batchOptimizeTours:\001*Z/\"*/v1/" + + "{parent=projects/*}:batchOptimizeTours:\001" + + "*\032T\312A cloudoptimization.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB}\n com.google.cloud.optimization" + + ".v1B\021FleetRoutingProtoP\001ZDcloud.google.c" + + "om/go/optimization/apiv1/optimizationpb;" + + "optimizationpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor, + new java.lang.String[] { + "Parent", + "Timeout", + "Model", + "SolvingMode", + "SearchMode", + "InjectedFirstSolutionRoutes", + "InjectedSolutionConstraint", + "RefreshDetailsRoutes", + "InterpretInjectedSolutionsUsingLabels", + "ConsiderRoadTraffic", + "PopulatePolylines", + "PopulateTransitionPolylines", + "AllowLargeDeadlineDespiteInterruptionRisk", + "UseGeodesicDistances", + "GeodesicMetersPerSecond", + "MaxValidationErrors", + "Label", + "PopulateTravelStepPolylines", + "GeodesicMetersPerSecond", + "MaxValidationErrors", + }); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor, + new java.lang.String[] { + "Routes", + "RequestLabel", + "SkippedShipments", + "ValidationErrors", + "Metrics", + "TotalCost", + }); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor = + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor, + new java.lang.String[] { + "AggregatedRouteMetrics", + "SkippedMandatoryShipmentCount", + "UsedVehicleCount", + "EarliestVehicleStartTime", + "LatestVehicleEndTime", + "Costs", + "TotalCost", + }); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor = + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor, + new java.lang.String[] { + "Parent", "ModelConfigs", + }); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor = + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor, + new java.lang.String[] { + "DisplayName", "InputConfig", "OutputConfig", "EnableCheckpoints", + }); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor, + new java.lang.String[] { + "Shipments", + "Vehicles", + "MaxActiveVehicles", + "GlobalStartTime", + "GlobalEndTime", + "GlobalDurationCostPerHour", + "DurationDistanceMatrices", + "DurationDistanceMatrixSrcTags", + "DurationDistanceMatrixDstTags", + "TransitionAttributes", + "ShipmentTypeIncompatibilities", + "ShipmentTypeRequirements", + "PrecedenceRules", + "BreakRules", + "MaxActiveVehicles", + }); + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor, + new java.lang.String[] { + "Rows", "VehicleStartTag", + }); + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor, + new java.lang.String[] { + "Durations", "Meters", + }); + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor, + new java.lang.String[] { + "FirstIndex", + "FirstIsDelivery", + "SecondIndex", + "SecondIsDelivery", + "OffsetDuration", + "FirstIndex", + "SecondIndex", + }); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor, + new java.lang.String[] { + "BreakRequests", "FrequencyConstraints", + }); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor, + new java.lang.String[] { + "EarliestStartTime", "LatestStartTime", "MinDuration", + }); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor, + new java.lang.String[] { + "MinBreakDuration", "MaxInterBreakDuration", + }); + internal_static_google_cloud_optimization_v1_Shipment_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_descriptor, + new java.lang.String[] { + "Pickups", + "Deliveries", + "LoadDemands", + "PenaltyCost", + "AllowedVehicleIndices", + "CostsPerVehicle", + "CostsPerVehicleIndices", + "PickupToDeliveryRelativeDetourLimit", + "PickupToDeliveryAbsoluteDetourLimit", + "PickupToDeliveryTimeLimit", + "ShipmentType", + "Label", + "Ignore", + "Demands", + "PenaltyCost", + "PickupToDeliveryRelativeDetourLimit", + }); + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor = + internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor, + new java.lang.String[] { + "ArrivalLocation", + "ArrivalWaypoint", + "DepartureLocation", + "DepartureWaypoint", + "Tags", + "TimeWindows", + "Duration", + "Cost", + "LoadDemands", + "VisitTypes", + "Label", + "Demands", + }); + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor = + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor = + internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor, + new java.lang.String[] { + "Amount", + }); + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor = + internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor, + new java.lang.String[] { + "Types", "IncompatibilityMode", + }); + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor, + new java.lang.String[] { + "RequiredShipmentTypeAlternatives", "DependentShipmentTypes", "RequirementMode", + }); + internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor, + new java.lang.String[] { + "AvoidTolls", "AvoidHighways", "AvoidFerries", "AvoidIndoor", + }); + internal_static_google_cloud_optimization_v1_Vehicle_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_descriptor, + new java.lang.String[] { + "TravelMode", + "RouteModifiers", + "StartLocation", + "StartWaypoint", + "EndLocation", + "EndWaypoint", + "StartTags", + "EndTags", + "StartTimeWindows", + "EndTimeWindows", + "TravelDurationMultiple", + "UnloadingPolicy", + "LoadLimits", + "CostPerHour", + "CostPerTraveledHour", + "CostPerKilometer", + "FixedCost", + "UsedIfRouteIsEmpty", + "RouteDurationLimit", + "TravelDurationLimit", + "RouteDistanceLimit", + "ExtraVisitDurationForVisitType", + "BreakRule", + "Label", + "Ignore", + "BreakRuleIndices", + "Capacities", + "StartLoadIntervals", + "EndLoadIntervals", + "TravelDurationMultiple", + }); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor, + new java.lang.String[] { + "MaxLoad", + "SoftMaxLoad", + "CostPerUnitAboveSoftMax", + "StartLoadInterval", + "EndLoadInterval", + "MaxLoad", + }); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor, + new java.lang.String[] { + "Min", "Max", "Max", + }); + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor, + new java.lang.String[] { + "MaxDuration", + "SoftMaxDuration", + "CostPerHourAfterSoftMax", + "QuadraticSoftMaxDuration", + "CostPerSquareHourAfterQuadraticSoftMax", + "CostPerHourAfterSoftMax", + "CostPerSquareHourAfterQuadraticSoftMax", + }); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor = + internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_TimeWindow_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_TimeWindow_descriptor, + new java.lang.String[] { + "StartTime", + "EndTime", + "SoftStartTime", + "SoftEndTime", + "CostPerHourBeforeSoftStartTime", + "CostPerHourAfterSoftEndTime", + "CostPerHourBeforeSoftStartTime", + "CostPerHourAfterSoftEndTime", + }); + internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor, + new java.lang.String[] { + "Type", "Value", + }); + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor, + new java.lang.String[] { + "Type", "MinValue", "MaxValue", "MinValue", "MaxValue", + }); + internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor, + new java.lang.String[] { + "MaxMeters", + "SoftMaxMeters", + "CostPerKilometerBelowSoftMax", + "CostPerKilometerAboveSoftMax", + "MaxMeters", + "SoftMaxMeters", + "CostPerKilometerBelowSoftMax", + "CostPerKilometerAboveSoftMax", + }); + internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor, + new java.lang.String[] { + "SrcTag", + "ExcludedSrcTag", + "DstTag", + "ExcludedDstTag", + "Cost", + "CostPerKilometer", + "DistanceLimit", + "Delay", + }); + internal_static_google_cloud_optimization_v1_Waypoint_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Waypoint_descriptor, + new java.lang.String[] { + "Location", "PlaceId", "SideOfRoad", "LocationType", + }); + internal_static_google_cloud_optimization_v1_Location_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_Location_descriptor, + new java.lang.String[] { + "LatLng", "Heading", "Heading", + }); + internal_static_google_cloud_optimization_v1_BreakRule_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BreakRule_descriptor, + new java.lang.String[] { + "BreakRequests", "FrequencyConstraints", + }); + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor = + internal_static_google_cloud_optimization_v1_BreakRule_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor, + new java.lang.String[] { + "EarliestStartTime", "LatestStartTime", "MinDuration", + }); + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor = + internal_static_google_cloud_optimization_v1_BreakRule_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor, + new java.lang.String[] { + "MinBreakDuration", "MaxInterBreakDuration", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor, + new java.lang.String[] { + "VehicleIndex", + "VehicleLabel", + "VehicleStartTime", + "VehicleEndTime", + "Visits", + "Transitions", + "HasTrafficInfeasibilities", + "RoutePolyline", + "Breaks", + "Metrics", + "RouteCosts", + "RouteTotalCost", + "EndLoads", + "TravelSteps", + "VehicleDetour", + "DelayBeforeVehicleEnd", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor, + new java.lang.String[] { + "StartTime", "Duration", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor, + new java.lang.String[] { + "ShipmentIndex", + "IsPickup", + "VisitRequestIndex", + "StartTime", + "LoadDemands", + "Detour", + "ShipmentLabel", + "VisitLabel", + "ArrivalLoads", + "DelayBeforeStart", + "Demands", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor, + new java.lang.String[] { + "TravelDuration", + "TravelDistanceMeters", + "TrafficInfoUnavailable", + "DelayDuration", + "BreakDuration", + "WaitDuration", + "TotalDuration", + "StartTime", + "RoutePolyline", + "VehicleLoads", + "Loads", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor, + new java.lang.String[] { + "Amount", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor, + new java.lang.String[] { + "Points", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor, + new java.lang.String[] { + "StartTime", "Duration", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor + .getNestedTypes() + .get(6); + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor, + new java.lang.String[] { + "Duration", "DistanceMeters", "TrafficInfoUnavailable", "RoutePolyline", + }); + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor = + internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor + .getNestedTypes() + .get(7); + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor, + new java.lang.String[] { + "Index", "Label", "Reasons", + }); + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor = + internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor, + new java.lang.String[] { + "Code", "ExampleVehicleIndex", "ExampleExceededCapacityType", "ExampleVehicleIndex", + }); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor, + new java.lang.String[] { + "PerformedShipmentCount", + "TravelDuration", + "WaitDuration", + "DelayDuration", + "BreakDuration", + "VisitDuration", + "TotalDuration", + "TravelDistanceMeters", + "MaxLoads", + "Costs", + "TotalCost", + }); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor = + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor = + internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor, + new java.lang.String[] { + "Routes", "SkippedShipments", "ConstraintRelaxations", + }); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor = + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor, + new java.lang.String[] { + "Relaxations", "VehicleIndices", + }); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor = + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor, + new java.lang.String[] { + "Level", "ThresholdTime", "ThresholdVisitCount", + }); + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor, + new java.lang.String[] { + "Code", "DisplayName", "Fields", "ErrorMessage", "OffendingValues", + }); + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor = + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor, + new java.lang.String[] { + "Name", "Index", "Key", "SubField", "IndexOrKey", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java similarity index 66% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java index ba94c4199f09..d770d83185c5 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestination.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** + * + * *
  * The Google Cloud Storage location where the output file will be written to.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.GcsDestination.class, com.google.cloud.optimization.v1.GcsDestination.Builder.class); + com.google.cloud.optimization.v1.GcsDestination.class, + com.google.cloud.optimization.v1.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** + * + * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -60,29 +83,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -91,6 +114,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -127,15 +150,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.optimization.v1.GcsDestination other = (com.google.cloud.optimization.v1.GcsDestination) obj; + com.google.cloud.optimization.v1.GcsDestination other = + (com.google.cloud.optimization.v1.GcsDestination) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,132 +177,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the output file will be written to.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.GcsDestination) com.google.cloud.optimization.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.GcsDestination.class, com.google.cloud.optimization.v1.GcsDestination.Builder.class); + com.google.cloud.optimization.v1.GcsDestination.class, + com.google.cloud.optimization.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.optimization.v1.GcsDestination.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; } @java.lang.Override @@ -310,8 +337,11 @@ public com.google.cloud.optimization.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.optimization.v1.GcsDestination buildPartial() { - com.google.cloud.optimization.v1.GcsDestination result = new com.google.cloud.optimization.v1.GcsDestination(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.GcsDestination result = + new com.google.cloud.optimization.v1.GcsDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +357,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.GcsDestination resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.GcsDestination) { - return mergeFrom((com.google.cloud.optimization.v1.GcsDestination)other); + return mergeFrom((com.google.cloud.optimization.v1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -366,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.optimization.v1.GcsDestination other) { - if (other == com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance()) + return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; @@ -398,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +452,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object uri_ = ""; /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -442,20 +479,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -463,28 +501,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -494,26 +539,30 @@ public Builder clearUri() { return this; } /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.GcsDestination) private static final com.google.cloud.optimization.v1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.GcsDestination(); } @@ -537,27 +586,27 @@ public static com.google.cloud.optimization.v1.GcsDestination getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +621,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java similarity index 50% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java index e40311e169fb..29dc9aba3563 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsDestinationOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java similarity index 65% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java index f8d75b9523a8..d49852fa485d 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSource.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** + * + * *
  * The Google Cloud Storage location where the input file will be read from.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.GcsSource} */ -public final class GcsSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.GcsSource) GcsSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsSource.newBuilder() to construct. private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsSource() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsSource(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.GcsSource.class, com.google.cloud.optimization.v1.GcsSource.Builder.class); + com.google.cloud.optimization.v1.GcsSource.class, + com.google.cloud.optimization.v1.GcsSource.Builder.class); } public static final int URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** + * + * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -60,29 +83,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -91,6 +114,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +126,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -127,15 +150,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.GcsSource)) { return super.equals(obj); } - com.google.cloud.optimization.v1.GcsSource other = (com.google.cloud.optimization.v1.GcsSource) obj; + com.google.cloud.optimization.v1.GcsSource other = + (com.google.cloud.optimization.v1.GcsSource) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,132 +177,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Google Cloud Storage location where the input file will be read from.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.GcsSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.GcsSource) com.google.cloud.optimization.v1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.GcsSource.class, com.google.cloud.optimization.v1.GcsSource.Builder.class); + com.google.cloud.optimization.v1.GcsSource.class, + com.google.cloud.optimization.v1.GcsSource.Builder.class); } // Construct using com.google.cloud.optimization.v1.GcsSource.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_GcsSource_descriptor; } @java.lang.Override @@ -310,8 +337,11 @@ public com.google.cloud.optimization.v1.GcsSource build() { @java.lang.Override public com.google.cloud.optimization.v1.GcsSource buildPartial() { - com.google.cloud.optimization.v1.GcsSource result = new com.google.cloud.optimization.v1.GcsSource(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.GcsSource result = + new com.google.cloud.optimization.v1.GcsSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +357,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.GcsSource result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.GcsSource) { - return mergeFrom((com.google.cloud.optimization.v1.GcsSource)other); + return mergeFrom((com.google.cloud.optimization.v1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -398,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +451,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object uri_ = ""; /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -442,20 +478,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -463,28 +500,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -494,26 +538,30 @@ public Builder clearUri() { return this; } /** + * + * *
      * Required. URI of the Google Cloud Storage location.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -523,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.GcsSource) private static final com.google.cloud.optimization.v1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.GcsSource(); } @@ -537,27 +585,27 @@ public static com.google.cloud.optimization.v1.GcsSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java similarity index 50% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java index 34e518e4230f..c05549b7960e 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/GcsSourceOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Required. URI of the Google Cloud Storage location.
    * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java similarity index 68% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java index 6c87097ea288..00104813333c 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraint.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Solution injected in the request including information about which visits
  * must be constrained and how they must be constrained.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint}
  */
-public final class InjectedSolutionConstraint extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class InjectedSolutionConstraint extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.InjectedSolutionConstraint)
     InjectedSolutionConstraintOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use InjectedSolutionConstraint.newBuilder() to construct.
   private InjectedSolutionConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private InjectedSolutionConstraint() {
     routes_ = java.util.Collections.emptyList();
     skippedShipments_ = java.util.Collections.emptyList();
@@ -28,78 +46,109 @@ private InjectedSolutionConstraint() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new InjectedSolutionConstraint();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.InjectedSolutionConstraint.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder.class);
+            com.google.cloud.optimization.v1.InjectedSolutionConstraint.class,
+            com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder.class);
   }
 
-  public interface ConstraintRelaxationOrBuilder extends
+  public interface ConstraintRelaxationOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - java.util.List + java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation> getRelaxationsList(); /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getRelaxations(int index); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation + getRelaxations(int index); /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ int getRelaxationsCount(); /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder> getRelaxationsOrBuilderList(); /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder getRelaxationsOrBuilder( - int index); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder + getRelaxationsOrBuilder(int index); /** + * + * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -116,10 +165,13 @@ com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
      * 
* * repeated int32 vehicle_indices = 2; + * * @return A list containing the vehicleIndices. */ java.util.List getVehicleIndicesList(); /** + * + * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -136,10 +188,13 @@ com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
      * 
* * repeated int32 vehicle_indices = 2; + * * @return The count of vehicleIndices. */ int getVehicleIndicesCount(); /** + * + * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -156,12 +211,15 @@ com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
      * 
* * repeated int32 vehicle_indices = 2; + * * @param index The index of the element to return. * @return The vehicleIndices at the given index. */ int getVehicleIndices(int index); } /** + * + * *
    * For a group of vehicles, specifies at what threshold(s) constraints on
    * visits will be relaxed and to which level. Shipments listed in
@@ -169,17 +227,19 @@ com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
    * cannot be performed.
    * 
* - * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation} + * Protobuf type {@code + * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation} */ - public static final class ConstraintRelaxation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConstraintRelaxation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) ConstraintRelaxationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConstraintRelaxation.newBuilder() to construct. private ConstraintRelaxation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConstraintRelaxation() { relaxations_ = java.util.Collections.emptyList(); vehicleIndices_ = emptyIntList(); @@ -187,70 +247,94 @@ private ConstraintRelaxation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConstraintRelaxation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder.class); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .class, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Builder.class); } - public interface RelaxationOrBuilder extends + public interface RelaxationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The constraint relaxation level that applies when the conditions
        * at or after `threshold_time` AND at least `threshold_visit_count` are
        * satisfied.
        * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** + * + * *
        * The constraint relaxation level that applies when the conditions
        * at or after `threshold_time` AND at least `threshold_visit_count` are
        * satisfied.
        * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @return The level. */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level getLevel(); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation + .Level + getLevel(); /** + * + * *
        * The time at or after which the relaxation `level` may be applied.
        * 
* * .google.protobuf.Timestamp threshold_time = 2; + * * @return Whether the thresholdTime field is set. */ boolean hasThresholdTime(); /** + * + * *
        * The time at or after which the relaxation `level` may be applied.
        * 
* * .google.protobuf.Timestamp threshold_time = 2; + * * @return The thresholdTime. */ com.google.protobuf.Timestamp getThresholdTime(); /** + * + * *
        * The time at or after which the relaxation `level` may be applied.
        * 
@@ -260,6 +344,8 @@ public interface RelaxationOrBuilder extends com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder(); /** + * + * *
        * The number of visits at or after which the relaxation `level` may be
        * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -271,11 +357,14 @@ public interface RelaxationOrBuilder extends
        * 
* * int32 threshold_visit_count = 3; + * * @return The thresholdVisitCount. */ int getThresholdVisitCount(); } /** + * + * *
      * If `relaxations` is empty, the start time and sequence of all visits
      * on `routes` are fully constrained and no new visits may be inserted or
@@ -314,42 +403,49 @@ public interface RelaxationOrBuilder extends
      * relaxation the time is fixed, unless the vehicle is empty.
      * 
* - * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation} + * Protobuf type {@code + * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation} */ - public static final class Relaxation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Relaxation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) RelaxationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Relaxation.newBuilder() to construct. private Relaxation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Relaxation() { level_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Relaxation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder.class); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.class, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder.class); } /** + * + * *
        * Expresses the different constraint relaxation levels, which are
        * applied for a visit and those that follow when it satisfies the
@@ -358,11 +454,13 @@ protected java.lang.Object newInstance(
        * The enumeration below is in order of increasing relaxation.
        * 
* - * Protobuf enum {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level} + * Protobuf enum {@code + * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level} */ - public enum Level - implements com.google.protobuf.ProtocolMessageEnum { + public enum Level implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * Implicit default relaxation level: no constraints are relaxed,
          * i.e., all visits are fully constrained.
@@ -374,6 +472,8 @@ public enum Level
          */
         LEVEL_UNSPECIFIED(0),
         /**
+         *
+         *
          * 
          * Visit start times and vehicle start/end times will be relaxed, but
          * each visit remains bound to the same vehicle and the visit sequence
@@ -385,6 +485,8 @@ public enum Level
          */
         RELAX_VISIT_TIMES_AFTER_THRESHOLD(1),
         /**
+         *
+         *
          * 
          * Same as `RELAX_VISIT_TIMES_AFTER_THRESHOLD`, but the visit sequence
          * is also relaxed: visits can only be performed by this vehicle, but
@@ -395,6 +497,8 @@ public enum Level
          */
         RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD(2),
         /**
+         *
+         *
          * 
          * Same as `RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD`, but the
          * vehicle is also relaxed: visits are completely free at or after the
@@ -408,6 +512,8 @@ public enum Level
         ;
 
         /**
+         *
+         *
          * 
          * Implicit default relaxation level: no constraints are relaxed,
          * i.e., all visits are fully constrained.
@@ -419,6 +525,8 @@ public enum Level
          */
         public static final int LEVEL_UNSPECIFIED_VALUE = 0;
         /**
+         *
+         *
          * 
          * Visit start times and vehicle start/end times will be relaxed, but
          * each visit remains bound to the same vehicle and the visit sequence
@@ -430,6 +538,8 @@ public enum Level
          */
         public static final int RELAX_VISIT_TIMES_AFTER_THRESHOLD_VALUE = 1;
         /**
+         *
+         *
          * 
          * Same as `RELAX_VISIT_TIMES_AFTER_THRESHOLD`, but the visit sequence
          * is also relaxed: visits can only be performed by this vehicle, but
@@ -440,6 +550,8 @@ public enum Level
          */
         public static final int RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD_VALUE = 2;
         /**
+         *
+         *
          * 
          * Same as `RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD`, but the
          * vehicle is also relaxed: visits are completely free at or after the
@@ -450,7 +562,6 @@ public enum Level
          */
         public static final int RELAX_ALL_AFTER_THRESHOLD_VALUE = 3;
 
-
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -475,50 +586,55 @@ public static Level valueOf(int value) {
          */
         public static Level forNumber(int value) {
           switch (value) {
-            case 0: return LEVEL_UNSPECIFIED;
-            case 1: return RELAX_VISIT_TIMES_AFTER_THRESHOLD;
-            case 2: return RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD;
-            case 3: return RELAX_ALL_AFTER_THRESHOLD;
-            default: return null;
+            case 0:
+              return LEVEL_UNSPECIFIED;
+            case 1:
+              return RELAX_VISIT_TIMES_AFTER_THRESHOLD;
+            case 2:
+              return RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD;
+            case 3:
+              return RELAX_ALL_AFTER_THRESHOLD;
+            default:
+              return null;
           }
         }
 
-        public static com.google.protobuf.Internal.EnumLiteMap
-            internalGetValueMap() {
+        public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
           return internalValueMap;
         }
-        private static final com.google.protobuf.Internal.EnumLiteMap<
-            Level> internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public Level findValueByNumber(int number) {
-                  return Level.forNumber(number);
-                }
-              };
 
-        public final com.google.protobuf.Descriptors.EnumValueDescriptor
-            getValueDescriptor() {
+        private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public Level findValueByNumber(int number) {
+                return Level.forNumber(number);
+              }
+            };
+
+        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
-        public final com.google.protobuf.Descriptors.EnumDescriptor
-            getDescriptorForType() {
+
+        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
           return getDescriptor();
         }
-        public static final com.google.protobuf.Descriptors.EnumDescriptor
-            getDescriptor() {
-          return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDescriptor().getEnumTypes().get(0);
+
+        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+          return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
+              .Relaxation.getDescriptor()
+              .getEnumTypes()
+              .get(0);
         }
 
         private static final Level[] VALUES = values();
 
-        public static Level valueOf(
-            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+        public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-              "EnumValueDescriptor is not for this type.");
+                "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -538,41 +654,65 @@ private Level(int value) {
       public static final int LEVEL_FIELD_NUMBER = 1;
       private int level_ = 0;
       /**
+       *
+       *
        * 
        * The constraint relaxation level that applies when the conditions
        * at or after `threshold_time` AND at least `threshold_visit_count` are
        * satisfied.
        * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @return The enum numeric value on the wire for level. */ - @java.lang.Override public int getLevelValue() { + @java.lang.Override + public int getLevelValue() { return level_; } /** + * + * *
        * The constraint relaxation level that applies when the conditions
        * at or after `threshold_time` AND at least `threshold_visit_count` are
        * satisfied.
        * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @return The level. */ - @java.lang.Override public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level getLevel() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level result = com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.forNumber(level_); - return result == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level + getLevel() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation + .Level + result = + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level.forNumber(level_); + return result == null + ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level.UNRECOGNIZED + : result; } public static final int THRESHOLD_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp thresholdTime_; /** + * + * *
        * The time at or after which the relaxation `level` may be applied.
        * 
* * .google.protobuf.Timestamp threshold_time = 2; + * * @return Whether the thresholdTime field is set. */ @java.lang.Override @@ -580,18 +720,25 @@ public boolean hasThresholdTime() { return thresholdTime_ != null; } /** + * + * *
        * The time at or after which the relaxation `level` may be applied.
        * 
* * .google.protobuf.Timestamp threshold_time = 2; + * * @return The thresholdTime. */ @java.lang.Override public com.google.protobuf.Timestamp getThresholdTime() { - return thresholdTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : thresholdTime_; + return thresholdTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : thresholdTime_; } /** + * + * *
        * The time at or after which the relaxation `level` may be applied.
        * 
@@ -600,12 +747,16 @@ public com.google.protobuf.Timestamp getThresholdTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() { - return thresholdTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : thresholdTime_; + return thresholdTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : thresholdTime_; } public static final int THRESHOLD_VISIT_COUNT_FIELD_NUMBER = 3; private int thresholdVisitCount_ = 0; /** + * + * *
        * The number of visits at or after which the relaxation `level` may be
        * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -617,6 +768,7 @@ public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() {
        * 
* * int32 threshold_visit_count = 3; + * * @return The thresholdVisitCount. */ @java.lang.Override @@ -625,6 +777,7 @@ public int getThresholdVisitCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,9 +789,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (level_ != com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.LEVEL_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (level_ + != com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level.LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(1, level_); } if (thresholdTime_ != null) { @@ -656,17 +811,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (level_ != com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, level_); + if (level_ + != com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level.LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, level_); } if (thresholdTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getThresholdTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getThresholdTime()); } if (thresholdVisitCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, thresholdVisitCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, thresholdVisitCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -676,21 +831,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation)) { + if (!(obj + instanceof + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation)) { return super.equals(obj); } - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation other = (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) obj; + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation + other = + (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation) + obj; if (level_ != other.level_) return false; if (hasThresholdTime() != other.hasThresholdTime()) return false; if (hasThresholdTime()) { - if (!getThresholdTime() - .equals(other.getThresholdTime())) return false; + if (!getThresholdTime().equals(other.getThresholdTime())) return false; } - if (getThresholdVisitCount() - != other.getThresholdVisitCount()) return false; + if (getThresholdVisitCount() != other.getThresholdVisitCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -715,90 +875,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -808,6 +995,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * If `relaxations` is empty, the start time and sequence of all visits
        * on `routes` are fully constrained and no new visits may be inserted or
@@ -846,35 +1035,40 @@ protected Builder newBuilderForType(
        * relaxation the time is fixed, unless the vehicle is empty.
        * 
* - * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation} + * Protobuf type {@code + * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder.class); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.class, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder.class); } - // Construct using com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -890,19 +1084,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDefaultInstance(); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation build() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation result = buildPartial(); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + build() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -910,22 +1111,32 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation buildPartial() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation result = new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + buildPartial() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + result = + new com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxation.Relaxation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation result) { + private void buildPartial0( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.level_ = level_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.thresholdTime_ = thresholdTimeBuilder_ == null - ? thresholdTime_ - : thresholdTimeBuilder_.build(); + result.thresholdTime_ = + thresholdTimeBuilder_ == null ? thresholdTime_ : thresholdTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.thresholdVisitCount_ = thresholdVisitCount_; @@ -936,46 +1147,60 @@ private void buildPartial0(com.google.cloud.optimization.v1.InjectedSolutionCons public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) { - return mergeFrom((com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation)other); + if (other + instanceof + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation) { + return mergeFrom( + (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation other) { - if (other == com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + other) { + if (other + == com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.getDefaultInstance()) return this; if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } @@ -1011,29 +1236,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - level_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getThresholdTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - thresholdVisitCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + level_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getThresholdTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + thresholdVisitCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1043,30 +1271,42 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int level_ = 0; /** + * + * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @return The enum numeric value on the wire for level. */ - @java.lang.Override public int getLevelValue() { + @java.lang.Override + public int getLevelValue() { return level_; } /** + * + * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ @@ -1077,32 +1317,54 @@ public Builder setLevelValue(int value) { return this; } /** + * + * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @return The level. */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level getLevel() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level result = com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.forNumber(level_); - return result == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level.UNRECOGNIZED : result; + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level + getLevel() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level + result = + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level.forNumber(level_); + return result == null + ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level.UNRECOGNIZED + : result; } /** + * + * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @param value The level to set. * @return This builder for chaining. */ - public Builder setLevel(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level value) { + public Builder setLevel( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Level + value) { if (value == null) { throw new NullPointerException(); } @@ -1112,13 +1374,18 @@ public Builder setLevel(com.google.cloud.optimization.v1.InjectedSolutionConstra return this; } /** + * + * *
          * The constraint relaxation level that applies when the conditions
          * at or after `threshold_time` AND at least `threshold_visit_count` are
          * satisfied.
          * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Level level = 1; + * + * * @return This builder for chaining. */ public Builder clearLevel() { @@ -1130,34 +1397,47 @@ public Builder clearLevel() { private com.google.protobuf.Timestamp thresholdTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> thresholdTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + thresholdTimeBuilder_; /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
* * .google.protobuf.Timestamp threshold_time = 2; + * * @return Whether the thresholdTime field is set. */ public boolean hasThresholdTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
* * .google.protobuf.Timestamp threshold_time = 2; + * * @return The thresholdTime. */ public com.google.protobuf.Timestamp getThresholdTime() { if (thresholdTimeBuilder_ == null) { - return thresholdTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : thresholdTime_; + return thresholdTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : thresholdTime_; } else { return thresholdTimeBuilder_.getMessage(); } } /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1178,14 +1458,15 @@ public Builder setThresholdTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
* * .google.protobuf.Timestamp threshold_time = 2; */ - public Builder setThresholdTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setThresholdTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (thresholdTimeBuilder_ == null) { thresholdTime_ = builderForValue.build(); } else { @@ -1196,6 +1477,8 @@ public Builder setThresholdTime( return this; } /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1204,9 +1487,9 @@ public Builder setThresholdTime( */ public Builder mergeThresholdTime(com.google.protobuf.Timestamp value) { if (thresholdTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - thresholdTime_ != null && - thresholdTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && thresholdTime_ != null + && thresholdTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getThresholdTimeBuilder().mergeFrom(value); } else { thresholdTime_ = value; @@ -1219,6 +1502,8 @@ public Builder mergeThresholdTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1236,6 +1521,8 @@ public Builder clearThresholdTime() { return this; } /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1248,6 +1535,8 @@ public com.google.protobuf.Timestamp.Builder getThresholdTimeBuilder() { return getThresholdTimeFieldBuilder().getBuilder(); } /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1258,11 +1547,14 @@ public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() { if (thresholdTimeBuilder_ != null) { return thresholdTimeBuilder_.getMessageOrBuilder(); } else { - return thresholdTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : thresholdTime_; + return thresholdTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : thresholdTime_; } } /** + * + * *
          * The time at or after which the relaxation `level` may be applied.
          * 
@@ -1270,21 +1562,26 @@ public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() { * .google.protobuf.Timestamp threshold_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getThresholdTimeFieldBuilder() { if (thresholdTimeBuilder_ == null) { - thresholdTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getThresholdTime(), - getParentForChildren(), - isClean()); + thresholdTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getThresholdTime(), getParentForChildren(), isClean()); thresholdTime_ = null; } return thresholdTimeBuilder_; } - private int thresholdVisitCount_ ; + private int thresholdVisitCount_; /** + * + * *
          * The number of visits at or after which the relaxation `level` may be
          * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -1296,6 +1593,7 @@ public com.google.protobuf.TimestampOrBuilder getThresholdTimeOrBuilder() {
          * 
* * int32 threshold_visit_count = 3; + * * @return The thresholdVisitCount. */ @java.lang.Override @@ -1303,6 +1601,8 @@ public int getThresholdVisitCount() { return thresholdVisitCount_; } /** + * + * *
          * The number of visits at or after which the relaxation `level` may be
          * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -1314,6 +1614,7 @@ public int getThresholdVisitCount() {
          * 
* * int32 threshold_visit_count = 3; + * * @param value The thresholdVisitCount to set. * @return This builder for chaining. */ @@ -1325,6 +1626,8 @@ public Builder setThresholdVisitCount(int value) { return this; } /** + * + * *
          * The number of visits at or after which the relaxation `level` may be
          * applied. If `threshold_visit_count` is 0 (or unset), the `level` may be
@@ -1336,6 +1639,7 @@ public Builder setThresholdVisitCount(int value) {
          * 
* * int32 threshold_visit_count = 3; + * * @return This builder for chaining. */ public Builder clearThresholdVisitCount() { @@ -1344,6 +1648,7 @@ public Builder clearThresholdVisitCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1356,41 +1661,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation) - private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxation.Relaxation + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation(); + DEFAULT_INSTANCE = + new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation(); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getDefaultInstance() { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Relaxation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Relaxation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1402,82 +1714,119 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int RELAXATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List relaxations_; + private java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation> + relaxations_; /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ @java.lang.Override - public java.util.List getRelaxationsList() { + public java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation> + getRelaxationsList() { return relaxations_; } /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder> getRelaxationsOrBuilderList() { return relaxations_; } /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ @java.lang.Override public int getRelaxationsCount() { return relaxations_.size(); } /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getRelaxations(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + getRelaxations(int index) { return relaxations_.get(index); } /** + * + * *
      * All the visit constraint relaxations that will apply to visits on
      * routes with vehicles in `vehicle_indices`.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder getRelaxationsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder + getRelaxationsOrBuilder(int index) { return relaxations_.get(index); } public static final int VEHICLE_INDICES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList vehicleIndices_; /** + * + * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -1494,14 +1843,16 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel
      * 
* * repeated int32 vehicle_indices = 2; + * * @return A list containing the vehicleIndices. */ @java.lang.Override - public java.util.List - getVehicleIndicesList() { + public java.util.List getVehicleIndicesList() { return vehicleIndices_; } /** + * + * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -1518,12 +1869,15 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel
      * 
* * repeated int32 vehicle_indices = 2; + * * @return The count of vehicleIndices. */ public int getVehicleIndicesCount() { return vehicleIndices_.size(); } /** + * + * *
      * Specifies the vehicle indices to which the visit constraint
      * `relaxations` apply. If empty, this is considered the default and the
@@ -1540,15 +1894,18 @@ public int getVehicleIndicesCount() {
      * 
* * repeated int32 vehicle_indices = 2; + * * @param index The index of the element to return. * @return The vehicleIndices at the given index. */ public int getVehicleIndices(int index) { return vehicleIndices_.getInt(index); } + private int vehicleIndicesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1560,8 +1917,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < relaxations_.size(); i++) { output.writeMessage(1, relaxations_.get(i)); @@ -1583,20 +1939,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relaxations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relaxations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, relaxations_.get(i)); } { int dataSize = 0; for (int i = 0; i < vehicleIndices_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(vehicleIndices_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + vehicleIndices_.getInt(i)); } size += dataSize; if (!getVehicleIndicesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } vehicleIndicesMemoizedSerializedSize = dataSize; } @@ -1608,17 +1963,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)) { + if (!(obj + instanceof + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)) { return super.equals(obj); } - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation other = (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) obj; + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation other = + (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) obj; - if (!getRelaxationsList() - .equals(other.getRelaxationsList())) return false; - if (!getVehicleIndicesList() - .equals(other.getVehicleIndicesList())) return false; + if (!getRelaxationsList().equals(other.getRelaxationsList())) return false; + if (!getVehicleIndicesList().equals(other.getVehicleIndicesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1643,90 +1999,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1736,6 +2104,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * For a group of vehicles, specifies at what threshold(s) constraints on
      * visits will be relaxed and to which level. Shipments listed in
@@ -1743,35 +2113,39 @@ protected Builder newBuilderForType(
      * cannot be performed.
      * 
* - * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation} + * Protobuf type {@code + * google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder.class); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .class, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Builder.class); } - // Construct using com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1788,19 +2162,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.getDefaultInstance(); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation build() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result = buildPartial(); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + build() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1808,15 +2186,21 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation buildPartial() { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result = new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation(this); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + buildPartial() { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result = + new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation( + this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result) { + private void buildPartialRepeatedFields( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result) { if (relaxationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { relaxations_ = java.util.Collections.unmodifiableList(relaxations_); @@ -1833,7 +2217,8 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Injecte result.vehicleIndices_ = vehicleIndices_; } - private void buildPartial0(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result) { + private void buildPartial0( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation result) { int from_bitField0_ = bitField0_; } @@ -1841,46 +2226,56 @@ private void buildPartial0(com.google.cloud.optimization.v1.InjectedSolutionCons public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) { - return mergeFrom((com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation)other); + if (other + instanceof + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) { + return mergeFrom( + (com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation other) { - if (other == com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation other) { + if (other + == com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .getDefaultInstance()) return this; if (relaxationsBuilder_ == null) { if (!other.relaxations_.isEmpty()) { if (relaxations_.isEmpty()) { @@ -1899,9 +2294,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstr relaxationsBuilder_ = null; relaxations_ = other.relaxations_; bitField0_ = (bitField0_ & ~0x00000001); - relaxationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRelaxationsFieldBuilder() : null; + relaxationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRelaxationsFieldBuilder() + : null; } else { relaxationsBuilder_.addAllMessages(other.relaxations_); } @@ -1943,41 +2339,48 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation m = - input.readMessage( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.parser(), - extensionRegistry); - if (relaxationsBuilder_ == null) { - ensureRelaxationsIsMutable(); - relaxations_.add(m); - } else { - relaxationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - int v = input.readInt32(); - ensureVehicleIndicesIsMutable(); - vehicleIndices_.addInt(v); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureVehicleIndicesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - vehicleIndices_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + m = + input.readMessage( + com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxation.Relaxation.parser(), + extensionRegistry); + if (relaxationsBuilder_ == null) { + ensureRelaxationsIsMutable(); + relaxations_.add(m); + } else { + relaxationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + int v = input.readInt32(); + ensureVehicleIndicesIsMutable(); + vehicleIndices_.addInt(v); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureVehicleIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + vehicleIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1987,29 +2390,49 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List relaxations_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation> + relaxations_ = java.util.Collections.emptyList(); + private void ensureRelaxationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relaxations_ = new java.util.ArrayList(relaxations_); + relaxations_ = + new java.util.ArrayList< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation>(relaxations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder> relaxationsBuilder_; + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder> + relaxationsBuilder_; /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public java.util.List getRelaxationsList() { + public java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation> + getRelaxationsList() { if (relaxationsBuilder_ == null) { return java.util.Collections.unmodifiableList(relaxations_); } else { @@ -2017,12 +2440,16 @@ public java.util.List * All the visit constraint relaxations that will apply to visits on * routes with vehicles in `vehicle_indices`. *
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public int getRelaxationsCount() { if (relaxationsBuilder_ == null) { @@ -2032,14 +2459,20 @@ public int getRelaxationsCount() { } } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getRelaxations(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + getRelaxations(int index) { if (relaxationsBuilder_ == null) { return relaxations_.get(index); } else { @@ -2047,15 +2480,22 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel } } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public Builder setRelaxations( - int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value) { + int index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + value) { if (relaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2069,15 +2509,22 @@ public Builder setRelaxations( return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public Builder setRelaxations( - int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder + builderForValue) { if (relaxationsBuilder_ == null) { ensureRelaxationsIsMutable(); relaxations_.set(index, builderForValue.build()); @@ -2088,14 +2535,21 @@ public Builder setRelaxations( return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public Builder addRelaxations(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value) { + public Builder addRelaxations( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + value) { if (relaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2109,15 +2563,22 @@ public Builder addRelaxations(com.google.cloud.optimization.v1.InjectedSolutionC return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public Builder addRelaxations( - int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value) { + int index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation + value) { if (relaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2131,15 +2592,21 @@ public Builder addRelaxations( return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public Builder addRelaxations( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue) { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder + builderForValue) { if (relaxationsBuilder_ == null) { ensureRelaxationsIsMutable(); relaxations_.add(builderForValue.build()); @@ -2150,15 +2617,22 @@ public Builder addRelaxations( return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public Builder addRelaxations( - int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder + builderForValue) { if (relaxationsBuilder_ == null) { ensureRelaxationsIsMutable(); relaxations_.add(index, builderForValue.build()); @@ -2169,19 +2643,26 @@ public Builder addRelaxations( return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public Builder addAllRelaxations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxation.Relaxation> + values) { if (relaxationsBuilder_ == null) { ensureRelaxationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, relaxations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relaxations_); onChanged(); } else { relaxationsBuilder_.addAllMessages(values); @@ -2189,12 +2670,16 @@ public Builder addAllRelaxations( return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public Builder clearRelaxations() { if (relaxationsBuilder_ == null) { @@ -2207,12 +2692,16 @@ public Builder clearRelaxations() { return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ public Builder removeRelaxations(int index) { if (relaxationsBuilder_ == null) { @@ -2225,42 +2714,60 @@ public Builder removeRelaxations(int index) { return this; } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder getRelaxationsBuilder( - int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder + getRelaxationsBuilder(int index) { return getRelaxationsFieldBuilder().getBuilder(index); } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder getRelaxationsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder + getRelaxationsOrBuilder(int index) { if (relaxationsBuilder_ == null) { - return relaxations_.get(index); } else { + return relaxations_.get(index); + } else { return relaxationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public java.util.List - getRelaxationsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder> + getRelaxationsOrBuilderList() { if (relaxationsBuilder_ != null) { return relaxationsBuilder_.getMessageOrBuilderList(); } else { @@ -2268,48 +2775,82 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel } } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder addRelaxationsBuilder() { - return getRelaxationsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDefaultInstance()); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder + addRelaxationsBuilder() { + return getRelaxationsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.getDefaultInstance()); } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder addRelaxationsBuilder( - int index) { - return getRelaxationsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.getDefaultInstance()); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder + addRelaxationsBuilder(int index) { + return getRelaxationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.getDefaultInstance()); } /** + * + * *
        * All the visit constraint relaxations that will apply to visits on
        * routes with vehicles in `vehicle_indices`.
        * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1; + * */ - public java.util.List - getRelaxationsBuilderList() { + public java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder> + getRelaxationsBuilderList() { return getRelaxationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder> + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder> getRelaxationsFieldBuilder() { if (relaxationsBuilder_ == null) { - relaxationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder>( + relaxationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Relaxation.Builder, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .RelaxationOrBuilder>( relaxations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2320,6 +2861,7 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel } private com.google.protobuf.Internal.IntList vehicleIndices_ = emptyIntList(); + private void ensureVehicleIndicesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { vehicleIndices_ = mutableCopy(vehicleIndices_); @@ -2327,6 +2869,8 @@ private void ensureVehicleIndicesIsMutable() { } } /** + * + * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2343,14 +2887,17 @@ private void ensureVehicleIndicesIsMutable() {
        * 
* * repeated int32 vehicle_indices = 2; + * * @return A list containing the vehicleIndices. */ - public java.util.List - getVehicleIndicesList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(vehicleIndices_) : vehicleIndices_; + public java.util.List getVehicleIndicesList() { + return ((bitField0_ & 0x00000002) != 0) + ? java.util.Collections.unmodifiableList(vehicleIndices_) + : vehicleIndices_; } /** + * + * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2367,12 +2914,15 @@ private void ensureVehicleIndicesIsMutable() {
        * 
* * repeated int32 vehicle_indices = 2; + * * @return The count of vehicleIndices. */ public int getVehicleIndicesCount() { return vehicleIndices_.size(); } /** + * + * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2389,6 +2939,7 @@ public int getVehicleIndicesCount() {
        * 
* * repeated int32 vehicle_indices = 2; + * * @param index The index of the element to return. * @return The vehicleIndices at the given index. */ @@ -2396,6 +2947,8 @@ public int getVehicleIndices(int index) { return vehicleIndices_.getInt(index); } /** + * + * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2412,12 +2965,12 @@ public int getVehicleIndices(int index) {
        * 
* * repeated int32 vehicle_indices = 2; + * * @param index The index to set the value at. * @param value The vehicleIndices to set. * @return This builder for chaining. */ - public Builder setVehicleIndices( - int index, int value) { + public Builder setVehicleIndices(int index, int value) { ensureVehicleIndicesIsMutable(); vehicleIndices_.setInt(index, value); @@ -2425,6 +2978,8 @@ public Builder setVehicleIndices( return this; } /** + * + * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2441,6 +2996,7 @@ public Builder setVehicleIndices(
        * 
* * repeated int32 vehicle_indices = 2; + * * @param value The vehicleIndices to add. * @return This builder for chaining. */ @@ -2452,6 +3008,8 @@ public Builder addVehicleIndices(int value) { return this; } /** + * + * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2468,18 +3026,19 @@ public Builder addVehicleIndices(int value) {
        * 
* * repeated int32 vehicle_indices = 2; + * * @param values The vehicleIndices to add. * @return This builder for chaining. */ - public Builder addAllVehicleIndices( - java.lang.Iterable values) { + public Builder addAllVehicleIndices(java.lang.Iterable values) { ensureVehicleIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vehicleIndices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vehicleIndices_); onChanged(); return this; } /** + * + * *
        * Specifies the vehicle indices to which the visit constraint
        * `relaxations` apply. If empty, this is considered the default and the
@@ -2496,6 +3055,7 @@ public Builder addAllVehicleIndices(
        * 
* * repeated int32 vehicle_indices = 2; + * * @return This builder for chaining. */ public Builder clearVehicleIndices() { @@ -2504,6 +3064,7 @@ public Builder clearVehicleIndices() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2516,41 +3077,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation) - private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxation + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation(); + DEFAULT_INSTANCE = + new com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation(); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getDefaultInstance() { + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConstraintRelaxation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConstraintRelaxation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2562,16 +3128,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ROUTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List routes_; /** + * + * *
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -2585,6 +3154,8 @@ public java.util.List getRoutesL
     return routes_;
   }
   /**
+   *
+   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -2594,11 +3165,13 @@ public java.util.List getRoutesL
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRoutesOrBuilderList() {
     return routes_;
   }
   /**
+   *
+   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -2612,6 +3185,8 @@ public int getRoutesCount() {
     return routes_.size();
   }
   /**
+   *
+   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -2625,6 +3200,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
     return routes_.get(index);
   }
   /**
+   *
+   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -2634,15 +3211,17 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
-      int index) {
+  public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index) {
     return routes_.get(index);
   }
 
   public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List skippedShipments_;
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -2651,10 +3230,13 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
   @java.lang.Override
-  public java.util.List getSkippedShipmentsList() {
+  public java.util.List
+      getSkippedShipmentsList() {
     return skippedShipments_;
   }
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -2663,11 +3245,13 @@ public java.util.List getSkipp
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSkippedShipmentsOrBuilderList() {
     return skippedShipments_;
   }
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -2680,6 +3264,8 @@ public int getSkippedShipmentsCount() {
     return skippedShipments_.size();
   }
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -2692,6 +3278,8 @@ public com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int
     return skippedShipments_.get(index);
   }
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -2706,77 +3294,107 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
   }
 
   public static final int CONSTRAINT_RELAXATIONS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
-  private java.util.List constraintRelaxations_;
+  private java.util.List<
+          com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation>
+      constraintRelaxations_;
   /**
+   *
+   *
    * 
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ @java.lang.Override - public java.util.List getConstraintRelaxationsList() { + public java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation> + getConstraintRelaxationsList() { return constraintRelaxations_; } /** + * + * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxationOrBuilder> getConstraintRelaxationsOrBuilderList() { return constraintRelaxations_; } /** + * + * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ @java.lang.Override public int getConstraintRelaxationsCount() { return constraintRelaxations_.size(); } /** + * + * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + getConstraintRelaxations(int index) { return constraintRelaxations_.get(index); } /** + * + * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder + getConstraintRelaxationsOrBuilder(int index) { return constraintRelaxations_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2788,8 +3406,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -2809,16 +3426,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); } for (int i = 0; i < skippedShipments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, skippedShipments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, skippedShipments_.get(i)); } for (int i = 0; i < constraintRelaxations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, constraintRelaxations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, constraintRelaxations_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2828,19 +3444,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint)) { return super.equals(obj); } - com.google.cloud.optimization.v1.InjectedSolutionConstraint other = (com.google.cloud.optimization.v1.InjectedSolutionConstraint) obj; + com.google.cloud.optimization.v1.InjectedSolutionConstraint other = + (com.google.cloud.optimization.v1.InjectedSolutionConstraint) obj; - if (!getRoutesList() - .equals(other.getRoutesList())) return false; - if (!getSkippedShipmentsList() - .equals(other.getSkippedShipmentsList())) return false; - if (!getConstraintRelaxationsList() - .equals(other.getConstraintRelaxationsList())) return false; + if (!getRoutesList().equals(other.getRoutesList())) return false; + if (!getSkippedShipmentsList().equals(other.getSkippedShipmentsList())) return false; + if (!getConstraintRelaxationsList().equals(other.getConstraintRelaxationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2870,98 +3484,104 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.InjectedSolutionConstraint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.InjectedSolutionConstraint prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.InjectedSolutionConstraint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Solution injected in the request including information about which visits
    * must be constrained and how they must be constrained.
@@ -2969,33 +3589,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.InjectedSolutionConstraint}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.InjectedSolutionConstraint)
       com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.InjectedSolutionConstraint.class, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder.class);
+              com.google.cloud.optimization.v1.InjectedSolutionConstraint.class,
+              com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.InjectedSolutionConstraint.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3025,9 +3644,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor;
     }
 
     @java.lang.Override
@@ -3046,14 +3665,18 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.InjectedSolutionConstraint buildPartial() {
-      com.google.cloud.optimization.v1.InjectedSolutionConstraint result = new com.google.cloud.optimization.v1.InjectedSolutionConstraint(this);
+      com.google.cloud.optimization.v1.InjectedSolutionConstraint result =
+          new com.google.cloud.optimization.v1.InjectedSolutionConstraint(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.InjectedSolutionConstraint result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.optimization.v1.InjectedSolutionConstraint result) {
       if (routesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           routes_ = java.util.Collections.unmodifiableList(routes_);
@@ -3091,38 +3714,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.InjectedSolutionCons
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.InjectedSolutionConstraint) {
-        return mergeFrom((com.google.cloud.optimization.v1.InjectedSolutionConstraint)other);
+        return mergeFrom((com.google.cloud.optimization.v1.InjectedSolutionConstraint) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3130,7 +3754,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstraint other) {
-      if (other == com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance())
+        return this;
       if (routesBuilder_ == null) {
         if (!other.routes_.isEmpty()) {
           if (routes_.isEmpty()) {
@@ -3149,9 +3774,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstr
             routesBuilder_ = null;
             routes_ = other.routes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            routesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRoutesFieldBuilder() : null;
+            routesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRoutesFieldBuilder()
+                    : null;
           } else {
             routesBuilder_.addAllMessages(other.routes_);
           }
@@ -3175,9 +3801,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstr
             skippedShipmentsBuilder_ = null;
             skippedShipments_ = other.skippedShipments_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            skippedShipmentsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSkippedShipmentsFieldBuilder() : null;
+            skippedShipmentsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSkippedShipmentsFieldBuilder()
+                    : null;
           } else {
             skippedShipmentsBuilder_.addAllMessages(other.skippedShipments_);
           }
@@ -3201,9 +3828,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InjectedSolutionConstr
             constraintRelaxationsBuilder_ = null;
             constraintRelaxations_ = other.constraintRelaxations_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            constraintRelaxationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConstraintRelaxationsFieldBuilder() : null;
+            constraintRelaxationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConstraintRelaxationsFieldBuilder()
+                    : null;
           } else {
             constraintRelaxationsBuilder_.addAllMessages(other.constraintRelaxations_);
           }
@@ -3235,51 +3863,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.optimization.v1.ShipmentRoute m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentRoute.parser(),
-                      extensionRegistry);
-              if (routesBuilder_ == null) {
-                ensureRoutesIsMutable();
-                routes_.add(m);
-              } else {
-                routesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.optimization.v1.SkippedShipment m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.SkippedShipment.parser(),
-                      extensionRegistry);
-              if (skippedShipmentsBuilder_ == null) {
-                ensureSkippedShipmentsIsMutable();
-                skippedShipments_.add(m);
-              } else {
-                skippedShipmentsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.parser(),
-                      extensionRegistry);
-              if (constraintRelaxationsBuilder_ == null) {
-                ensureConstraintRelaxationsIsMutable();
-                constraintRelaxations_.add(m);
-              } else {
-                constraintRelaxationsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.optimization.v1.ShipmentRoute m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentRoute.parser(), extensionRegistry);
+                if (routesBuilder_ == null) {
+                  ensureRoutesIsMutable();
+                  routes_.add(m);
+                } else {
+                  routesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.optimization.v1.SkippedShipment m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.SkippedShipment.parser(),
+                        extensionRegistry);
+                if (skippedShipmentsBuilder_ == null) {
+                  ensureSkippedShipmentsIsMutable();
+                  skippedShipments_.add(m);
+                } else {
+                  skippedShipmentsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.InjectedSolutionConstraint
+                            .ConstraintRelaxation.parser(),
+                        extensionRegistry);
+                if (constraintRelaxationsBuilder_ == null) {
+                  ensureConstraintRelaxationsIsMutable();
+                  constraintRelaxations_.add(m);
+                } else {
+                  constraintRelaxationsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3289,21 +3921,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List routes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRoutesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         routes_ = new java.util.ArrayList(routes_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> routesBuilder_;
+            com.google.cloud.optimization.v1.ShipmentRoute,
+            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
+            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
+        routesBuilder_;
 
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3320,6 +3959,8 @@ public java.util.List getRoutesL
       }
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3336,6 +3977,8 @@ public int getRoutesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3352,6 +3995,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3360,8 +4005,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public Builder setRoutes(
-        int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
+    public Builder setRoutes(int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3375,6 +4019,8 @@ public Builder setRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3395,6 +4041,8 @@ public Builder setRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3417,6 +4065,8 @@ public Builder addRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3425,8 +4075,7 @@ public Builder addRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public Builder addRoutes(
-        int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
+    public Builder addRoutes(int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3440,6 +4089,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3460,6 +4111,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3480,6 +4133,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3492,8 +4147,7 @@ public Builder addAllRoutes(
         java.lang.Iterable values) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, routes_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_);
         onChanged();
       } else {
         routesBuilder_.addAllMessages(values);
@@ -3501,6 +4155,8 @@ public Builder addAllRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3520,6 +4176,8 @@ public Builder clearRoutes() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3539,6 +4197,8 @@ public Builder removeRoutes(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3547,11 +4207,12 @@ public Builder removeRoutes(int index) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(
-        int index) {
+    public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(int index) {
       return getRoutesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3560,14 +4221,16 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
-        int index) {
+    public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index) {
       if (routesBuilder_ == null) {
-        return routes_.get(index);  } else {
+        return routes_.get(index);
+      } else {
         return routesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3576,8 +4239,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public java.util.List 
-         getRoutesOrBuilderList() {
+    public java.util.List
+        getRoutesOrBuilderList() {
       if (routesBuilder_ != null) {
         return routesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3585,6 +4248,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3594,10 +4259,12 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder() {
-      return getRoutesFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+      return getRoutesFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3606,12 +4273,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder()
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(
-        int index) {
-      return getRoutesFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+    public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(int index) {
+      return getRoutesFieldBuilder()
+          .addBuilder(index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Routes of the solution to inject. Some routes may be omitted from the
      * original solution. The routes and skipped shipments must satisfy the basic
@@ -3620,38 +4288,49 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public java.util.List 
-         getRoutesBuilderList() {
+    public java.util.List
+        getRoutesBuilderList() {
       return getRoutesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> 
+            com.google.cloud.optimization.v1.ShipmentRoute,
+            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
+            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
         getRoutesFieldBuilder() {
       if (routesBuilder_ == null) {
-        routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
-                routes_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        routesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.ShipmentRoute,
+                com.google.cloud.optimization.v1.ShipmentRoute.Builder,
+                com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
+                routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         routes_ = null;
       }
       return routesBuilder_;
     }
 
     private java.util.List skippedShipments_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSkippedShipmentsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        skippedShipments_ = new java.util.ArrayList(skippedShipments_);
+        skippedShipments_ =
+            new java.util.ArrayList(
+                skippedShipments_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> skippedShipmentsBuilder_;
+            com.google.cloud.optimization.v1.SkippedShipment,
+            com.google.cloud.optimization.v1.SkippedShipment.Builder,
+            com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>
+        skippedShipmentsBuilder_;
 
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3659,7 +4338,8 @@ private void ensureSkippedShipmentsIsMutable() {
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      */
-    public java.util.List getSkippedShipmentsList() {
+    public java.util.List
+        getSkippedShipmentsList() {
       if (skippedShipmentsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(skippedShipments_);
       } else {
@@ -3667,6 +4347,8 @@ public java.util.List getSkipp
       }
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3682,6 +4364,8 @@ public int getSkippedShipmentsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3697,6 +4381,8 @@ public com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int
       }
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3719,6 +4405,8 @@ public Builder setSkippedShipments(
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3738,6 +4426,8 @@ public Builder setSkippedShipments(
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3759,6 +4449,8 @@ public Builder addSkippedShipments(com.google.cloud.optimization.v1.SkippedShipm
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3781,6 +4473,8 @@ public Builder addSkippedShipments(
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3800,6 +4494,8 @@ public Builder addSkippedShipments(
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3819,6 +4515,8 @@ public Builder addSkippedShipments(
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3830,8 +4528,7 @@ public Builder addAllSkippedShipments(
         java.lang.Iterable values) {
       if (skippedShipmentsBuilder_ == null) {
         ensureSkippedShipmentsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, skippedShipments_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skippedShipments_);
         onChanged();
       } else {
         skippedShipmentsBuilder_.addAllMessages(values);
@@ -3839,6 +4536,8 @@ public Builder addAllSkippedShipments(
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3857,6 +4556,8 @@ public Builder clearSkippedShipments() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3875,6 +4576,8 @@ public Builder removeSkippedShipments(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3887,6 +4590,8 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder getSkippedShipme
       return getSkippedShipmentsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3897,11 +4602,14 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder getSkippedShipme
     public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(
         int index) {
       if (skippedShipmentsBuilder_ == null) {
-        return skippedShipments_.get(index);  } else {
+        return skippedShipments_.get(index);
+      } else {
         return skippedShipmentsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3909,8 +4617,8 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      */
-    public java.util.List 
-         getSkippedShipmentsOrBuilderList() {
+    public java.util.List
+        getSkippedShipmentsOrBuilderList() {
       if (skippedShipmentsBuilder_ != null) {
         return skippedShipmentsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3918,6 +4626,8 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
       }
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3926,10 +4636,12 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
      * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      */
     public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipmentsBuilder() {
-      return getSkippedShipmentsFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance());
+      return getSkippedShipmentsFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3939,10 +4651,12 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme
      */
     public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipmentsBuilder(
         int index) {
-      return getSkippedShipmentsFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance());
+      return getSkippedShipmentsFieldBuilder()
+          .addBuilder(index, com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Skipped shipments of the solution to inject. Some may be omitted from the
      * original solution. See the `routes` field.
@@ -3950,16 +4664,22 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      */
-    public java.util.List 
-         getSkippedShipmentsBuilderList() {
+    public java.util.List
+        getSkippedShipmentsBuilderList() {
       return getSkippedShipmentsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> 
+            com.google.cloud.optimization.v1.SkippedShipment,
+            com.google.cloud.optimization.v1.SkippedShipment.Builder,
+            com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>
         getSkippedShipmentsFieldBuilder() {
       if (skippedShipmentsBuilder_ == null) {
-        skippedShipmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>(
+        skippedShipmentsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.SkippedShipment,
+                com.google.cloud.optimization.v1.SkippedShipment.Builder,
+                com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>(
                 skippedShipments_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3969,28 +4689,44 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme
       return skippedShipmentsBuilder_;
     }
 
-    private java.util.List constraintRelaxations_ =
-      java.util.Collections.emptyList();
+    private java.util.List<
+            com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation>
+        constraintRelaxations_ = java.util.Collections.emptyList();
+
     private void ensureConstraintRelaxationsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        constraintRelaxations_ = new java.util.ArrayList(constraintRelaxations_);
+        constraintRelaxations_ =
+            new java.util.ArrayList<
+                com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation>(
+                constraintRelaxations_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder> constraintRelaxationsBuilder_;
+            com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation,
+            com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
+                .Builder,
+            com.google.cloud.optimization.v1.InjectedSolutionConstraint
+                .ConstraintRelaxationOrBuilder>
+        constraintRelaxationsBuilder_;
 
     /**
+     *
+     *
      * 
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public java.util.List getConstraintRelaxationsList() { + public java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation> + getConstraintRelaxationsList() { if (constraintRelaxationsBuilder_ == null) { return java.util.Collections.unmodifiableList(constraintRelaxations_); } else { @@ -3998,13 +4734,17 @@ public java.util.List * For zero or more groups of vehicles, specifies when and how much to relax * constraints. If this field is empty, all non-empty vehicle routes are * fully constrained. *
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public int getConstraintRelaxationsCount() { if (constraintRelaxationsBuilder_ == null) { @@ -4014,15 +4754,20 @@ public int getConstraintRelaxationsCount() { } } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + getConstraintRelaxations(int index) { if (constraintRelaxationsBuilder_ == null) { return constraintRelaxations_.get(index); } else { @@ -4030,16 +4775,21 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel } } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public Builder setConstraintRelaxations( - int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { + int index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { if (constraintRelaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4053,16 +4803,22 @@ public Builder setConstraintRelaxations( return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public Builder setConstraintRelaxations( - int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder + builderForValue) { if (constraintRelaxationsBuilder_ == null) { ensureConstraintRelaxationsIsMutable(); constraintRelaxations_.set(index, builderForValue.build()); @@ -4073,15 +4829,20 @@ public Builder setConstraintRelaxations( return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public Builder addConstraintRelaxations(com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { + public Builder addConstraintRelaxations( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { if (constraintRelaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4095,16 +4856,21 @@ public Builder addConstraintRelaxations(com.google.cloud.optimization.v1.Injecte return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public Builder addConstraintRelaxations( - int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { + int index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation value) { if (constraintRelaxationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4118,16 +4884,21 @@ public Builder addConstraintRelaxations( return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public Builder addConstraintRelaxations( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue) { + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder + builderForValue) { if (constraintRelaxationsBuilder_ == null) { ensureConstraintRelaxationsIsMutable(); constraintRelaxations_.add(builderForValue.build()); @@ -4138,16 +4909,22 @@ public Builder addConstraintRelaxations( return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public Builder addConstraintRelaxations( - int index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder + builderForValue) { if (constraintRelaxationsBuilder_ == null) { ensureConstraintRelaxationsIsMutable(); constraintRelaxations_.add(index, builderForValue.build()); @@ -4158,20 +4935,27 @@ public Builder addConstraintRelaxations( return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public Builder addAllConstraintRelaxations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxation> + values) { if (constraintRelaxationsBuilder_ == null) { ensureConstraintRelaxationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, constraintRelaxations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, constraintRelaxations_); onChanged(); } else { constraintRelaxationsBuilder_.addAllMessages(values); @@ -4179,13 +4963,17 @@ public Builder addAllConstraintRelaxations( return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public Builder clearConstraintRelaxations() { if (constraintRelaxationsBuilder_ == null) { @@ -4198,13 +4986,17 @@ public Builder clearConstraintRelaxations() { return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ public Builder removeConstraintRelaxations(int index) { if (constraintRelaxationsBuilder_ == null) { @@ -4217,45 +5009,61 @@ public Builder removeConstraintRelaxations(int index) { return this; } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder getConstraintRelaxationsBuilder( - int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder + getConstraintRelaxationsBuilder(int index) { return getConstraintRelaxationsFieldBuilder().getBuilder(index); } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder + getConstraintRelaxationsOrBuilder(int index) { if (constraintRelaxationsBuilder_ == null) { - return constraintRelaxations_.get(index); } else { + return constraintRelaxations_.get(index); + } else { return constraintRelaxationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public java.util.List - getConstraintRelaxationsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxationOrBuilder> + getConstraintRelaxationsOrBuilderList() { if (constraintRelaxationsBuilder_ != null) { return constraintRelaxationsBuilder_.getMessageOrBuilderList(); } else { @@ -4263,51 +5071,81 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel } } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder addConstraintRelaxationsBuilder() { - return getConstraintRelaxationsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.getDefaultInstance()); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder + addConstraintRelaxationsBuilder() { + return getConstraintRelaxationsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .getDefaultInstance()); } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder addConstraintRelaxationsBuilder( - int index) { - return getConstraintRelaxationsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.getDefaultInstance()); + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder + addConstraintRelaxationsBuilder(int index) { + return getConstraintRelaxationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .getDefaultInstance()); } /** + * + * *
      * For zero or more groups of vehicles, specifies when and how much to relax
      * constraints. If this field is empty, all non-empty vehicle routes are
      * fully constrained.
      * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - public java.util.List - getConstraintRelaxationsBuilderList() { + public java.util.List< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Builder> + getConstraintRelaxationsBuilderList() { return getConstraintRelaxationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder> + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Builder, + com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxationOrBuilder> getConstraintRelaxationsFieldBuilder() { if (constraintRelaxationsBuilder_ == null) { - constraintRelaxationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder>( + constraintRelaxationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + .Builder, + com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxationOrBuilder>( constraintRelaxations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -4316,9 +5154,9 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRel } return constraintRelaxationsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4328,12 +5166,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.InjectedSolutionConstraint) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.InjectedSolutionConstraint) private static final com.google.cloud.optimization.v1.InjectedSolutionConstraint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.InjectedSolutionConstraint(); } @@ -4342,27 +5180,27 @@ public static com.google.cloud.optimization.v1.InjectedSolutionConstraint getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InjectedSolutionConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InjectedSolutionConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4377,6 +5215,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.optimization.v1.InjectedSolutionConstraint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java similarity index 72% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java index bc419260e7cd..5d4a52359dd1 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InjectedSolutionConstraintOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface InjectedSolutionConstraintOrBuilder extends +public interface InjectedSolutionConstraintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.InjectedSolutionConstraint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -16,9 +34,10 @@ public interface InjectedSolutionConstraintOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  java.util.List 
-      getRoutesList();
+  java.util.List getRoutesList();
   /**
+   *
+   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -29,6 +48,8 @@ public interface InjectedSolutionConstraintOrBuilder extends
    */
   com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index);
   /**
+   *
+   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -39,6 +60,8 @@ public interface InjectedSolutionConstraintOrBuilder extends
    */
   int getRoutesCount();
   /**
+   *
+   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -47,9 +70,11 @@ public interface InjectedSolutionConstraintOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  java.util.List 
+  java.util.List
       getRoutesOrBuilderList();
   /**
+   *
+   *
    * 
    * Routes of the solution to inject. Some routes may be omitted from the
    * original solution. The routes and skipped shipments must satisfy the basic
@@ -58,10 +83,11 @@ public interface InjectedSolutionConstraintOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -69,9 +95,10 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
-  java.util.List 
-      getSkippedShipmentsList();
+  java.util.List getSkippedShipmentsList();
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -81,6 +108,8 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
    */
   com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int index);
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -90,6 +119,8 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
    */
   int getSkippedShipmentsCount();
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -97,9 +128,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
-  java.util.List 
+  java.util.List
       getSkippedShipmentsOrBuilderList();
   /**
+   *
+   *
    * 
    * Skipped shipments of the solution to inject. Some may be omitted from the
    * original solution. See the `routes` field.
@@ -107,60 +140,83 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
    */
-  com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - java.util.List + java.util.List getConstraintRelaxationsList(); /** + * + * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation + getConstraintRelaxations(int index); /** + * + * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ int getConstraintRelaxationsCount(); /** + * + * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.optimization.v1.InjectedSolutionConstraint + .ConstraintRelaxationOrBuilder> getConstraintRelaxationsOrBuilderList(); /** + * + * *
    * For zero or more groups of vehicles, specifies when and how much to relax
    * constraints. If this field is empty, all non-empty vehicle routes are
    * fully constrained.
    * 
* - * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * + * repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3; + * */ - com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder( - int index); + com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxationOrBuilder + getConstraintRelaxationsOrBuilder(int index); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java similarity index 69% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java index 8e2442815772..56eb72739b3b 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** + * + * *
  * The desired input location information.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InputConfig() { dataFormat_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InputConfig.class, com.google.cloud.optimization.v1.InputConfig.Builder.class); + com.google.cloud.optimization.v1.InputConfig.class, + com.google.cloud.optimization.v1.InputConfig.Builder.class); } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_SOURCE(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -67,30 +90,35 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return GCS_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int GCS_SOURCE_FIELD_NUMBER = 1; /** + * + * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
    * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -98,22 +126,27 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
    * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.optimization.v1.GcsSource getGcsSource() { if (sourceCase_ == 1) { - return (com.google.cloud.optimization.v1.GcsSource) source_; + return (com.google.cloud.optimization.v1.GcsSource) source_; } return com.google.cloud.optimization.v1.GcsSource.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
@@ -124,7 +157,7 @@ public com.google.cloud.optimization.v1.GcsSource getGcsSource() {
   @java.lang.Override
   public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() {
     if (sourceCase_ == 1) {
-       return (com.google.cloud.optimization.v1.GcsSource) source_;
+      return (com.google.cloud.optimization.v1.GcsSource) source_;
     }
     return com.google.cloud.optimization.v1.GcsSource.getDefaultInstance();
   }
@@ -132,30 +165,40 @@ public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder
   public static final int DATA_FORMAT_FIELD_NUMBER = 2;
   private int dataFormat_ = 0;
   /**
+   *
+   *
    * 
    * The input data format that used to store the model in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override public int getDataFormatValue() { + @java.lang.Override + public int getDataFormatValue() { return dataFormat_; } /** + * + * *
    * The input data format that used to store the model in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The dataFormat. */ - @java.lang.Override public com.google.cloud.optimization.v1.DataFormat getDataFormat() { - com.google.cloud.optimization.v1.DataFormat result = com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); + @java.lang.Override + public com.google.cloud.optimization.v1.DataFormat getDataFormat() { + com.google.cloud.optimization.v1.DataFormat result = + com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.optimization.v1.DataFormat.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,12 +210,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.optimization.v1.GcsSource) source_); } - if (dataFormat_ != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + if (dataFormat_ + != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(2, dataFormat_); } getUnknownFields().writeTo(output); @@ -185,12 +228,13 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.optimization.v1.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.optimization.v1.GcsSource) source_); } - if (dataFormat_ != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dataFormat_); + if (dataFormat_ + != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataFormat_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -200,19 +244,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.InputConfig)) { return super.equals(obj); } - com.google.cloud.optimization.v1.InputConfig other = (com.google.cloud.optimization.v1.InputConfig) obj; + com.google.cloud.optimization.v1.InputConfig other = + (com.google.cloud.optimization.v1.InputConfig) obj; if (dataFormat_ != other.dataFormat_) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 0: default: @@ -243,132 +287,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.InputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.InputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.InputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired input location information.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.InputConfig) com.google.cloud.optimization.v1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.InputConfig.class, com.google.cloud.optimization.v1.InputConfig.Builder.class); + com.google.cloud.optimization.v1.InputConfig.class, + com.google.cloud.optimization.v1.InputConfig.Builder.class); } // Construct using com.google.cloud.optimization.v1.InputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_InputConfig_descriptor; } @java.lang.Override @@ -404,8 +452,11 @@ public com.google.cloud.optimization.v1.InputConfig build() { @java.lang.Override public com.google.cloud.optimization.v1.InputConfig buildPartial() { - com.google.cloud.optimization.v1.InputConfig result = new com.google.cloud.optimization.v1.InputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.InputConfig result = + new com.google.cloud.optimization.v1.InputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -421,8 +472,7 @@ private void buildPartial0(com.google.cloud.optimization.v1.InputConfig result) private void buildPartialOneofs(com.google.cloud.optimization.v1.InputConfig result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - gcsSourceBuilder_ != null) { + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { result.source_ = gcsSourceBuilder_.build(); } } @@ -431,38 +481,39 @@ private void buildPartialOneofs(com.google.cloud.optimization.v1.InputConfig res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.InputConfig) { - return mergeFrom((com.google.cloud.optimization.v1.InputConfig)other); + return mergeFrom((com.google.cloud.optimization.v1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -475,13 +526,15 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.InputConfig other) { setDataFormatValue(other.getDataFormatValue()); } switch (other.getSourceCase()) { - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -509,24 +562,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsSourceFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - case 16: { - dataFormat_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + case 16: + { + dataFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,12 +590,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -554,14 +608,20 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.GcsSource, com.google.cloud.optimization.v1.GcsSource.Builder, com.google.cloud.optimization.v1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.optimization.v1.GcsSource, + com.google.cloud.optimization.v1.GcsSource.Builder, + com.google.cloud.optimization.v1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
      * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -569,12 +629,15 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
      * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -592,6 +655,8 @@ public com.google.cloud.optimization.v1.GcsSource getGcsSource() { } } /** + * + * *
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -613,6 +678,8 @@ public Builder setGcsSource(com.google.cloud.optimization.v1.GcsSource value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -632,6 +699,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -641,10 +710,13 @@ public Builder setGcsSource(
      */
     public Builder mergeGcsSource(com.google.cloud.optimization.v1.GcsSource value) {
       if (gcsSourceBuilder_ == null) {
-        if (sourceCase_ == 1 &&
-            source_ != com.google.cloud.optimization.v1.GcsSource.getDefaultInstance()) {
-          source_ = com.google.cloud.optimization.v1.GcsSource.newBuilder((com.google.cloud.optimization.v1.GcsSource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 1
+            && source_ != com.google.cloud.optimization.v1.GcsSource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.optimization.v1.GcsSource.newBuilder(
+                      (com.google.cloud.optimization.v1.GcsSource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -660,6 +732,8 @@ public Builder mergeGcsSource(com.google.cloud.optimization.v1.GcsSource value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -684,6 +758,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -695,6 +771,8 @@ public com.google.cloud.optimization.v1.GcsSource.Builder getGcsSourceBuilder()
       return getGcsSourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -714,6 +792,8 @@ public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * The Google Cloud Storage location to read the input from. This must be a
      * single file.
@@ -722,14 +802,19 @@ public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder
      * .google.cloud.optimization.v1.GcsSource gcs_source = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.GcsSource, com.google.cloud.optimization.v1.GcsSource.Builder, com.google.cloud.optimization.v1.GcsSourceOrBuilder> 
+            com.google.cloud.optimization.v1.GcsSource,
+            com.google.cloud.optimization.v1.GcsSource.Builder,
+            com.google.cloud.optimization.v1.GcsSourceOrBuilder>
         getGcsSourceFieldBuilder() {
       if (gcsSourceBuilder_ == null) {
         if (!(sourceCase_ == 1)) {
           source_ = com.google.cloud.optimization.v1.GcsSource.getDefaultInstance();
         }
-        gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.GcsSource, com.google.cloud.optimization.v1.GcsSource.Builder, com.google.cloud.optimization.v1.GcsSourceOrBuilder>(
+        gcsSourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.GcsSource,
+                com.google.cloud.optimization.v1.GcsSource.Builder,
+                com.google.cloud.optimization.v1.GcsSourceOrBuilder>(
                 (com.google.cloud.optimization.v1.GcsSource) source_,
                 getParentForChildren(),
                 isClean());
@@ -742,22 +827,29 @@ public com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder
 
     private int dataFormat_ = 0;
     /**
+     *
+     *
      * 
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override public int getDataFormatValue() { + @java.lang.Override + public int getDataFormatValue() { return dataFormat_; } /** + * + * *
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @param value The enum numeric value on the wire for dataFormat to set. * @return This builder for chaining. */ @@ -768,24 +860,31 @@ public Builder setDataFormatValue(int value) { return this; } /** + * + * *
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The dataFormat. */ @java.lang.Override public com.google.cloud.optimization.v1.DataFormat getDataFormat() { - com.google.cloud.optimization.v1.DataFormat result = com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); + com.google.cloud.optimization.v1.DataFormat result = + com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.optimization.v1.DataFormat.UNRECOGNIZED : result; } /** + * + * *
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @param value The dataFormat to set. * @return This builder for chaining. */ @@ -799,11 +898,14 @@ public Builder setDataFormat(com.google.cloud.optimization.v1.DataFormat value) return this; } /** + * + * *
      * The input data format that used to store the model in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return This builder for chaining. */ public Builder clearDataFormat() { @@ -812,9 +914,9 @@ public Builder clearDataFormat() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -824,12 +926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.InputConfig) private static final com.google.cloud.optimization.v1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.InputConfig(); } @@ -838,27 +940,27 @@ public static com.google.cloud.optimization.v1.InputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -873,6 +975,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java index f46be165128d..b23a267d1ee2 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/InputConfigOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
    * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
    * 
* * .google.cloud.optimization.v1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ com.google.cloud.optimization.v1.GcsSource getGcsSource(); /** + * + * *
    * The Google Cloud Storage location to read the input from. This must be a
    * single file.
@@ -38,20 +62,26 @@ public interface InputConfigOrBuilder extends
   com.google.cloud.optimization.v1.GcsSourceOrBuilder getGcsSourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * The input data format that used to store the model in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The enum numeric value on the wire for dataFormat. */ int getDataFormatValue(); /** + * + * *
    * The input data format that used to store the model in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The dataFormat. */ com.google.cloud.optimization.v1.DataFormat getDataFormat(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java similarity index 70% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java index 7cc47d0af35b..1285c0b15207 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Location.java @@ -1,56 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Encapsulates a location (a geographic point, and an optional heading).
  * 
* * Protobuf type {@code google.cloud.optimization.v1.Location} */ -public final class Location extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Location) LocationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Location() { - } + + private Location() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Location(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.Location.class, com.google.cloud.optimization.v1.Location.Builder.class); + com.google.cloud.optimization.v1.Location.class, + com.google.cloud.optimization.v1.Location.Builder.class); } private int bitField0_; public static final int LAT_LNG_FIELD_NUMBER = 1; private com.google.type.LatLng latLng_; /** + * + * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ @java.lang.Override @@ -58,11 +79,14 @@ public boolean hasLatLng() { return latLng_ != null; } /** + * + * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ @java.lang.Override @@ -70,6 +94,8 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** + * + * *
    * The waypoint's geographic coordinates.
    * 
@@ -84,6 +110,8 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { public static final int HEADING_FIELD_NUMBER = 2; private int heading_ = 0; /** + * + * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value is used to specify the side of the road to use for pickup and
@@ -92,6 +120,7 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() {
    * 
* * optional int32 heading = 2; + * * @return Whether the heading field is set. */ @java.lang.Override @@ -99,6 +128,8 @@ public boolean hasHeading() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value is used to specify the side of the road to use for pickup and
@@ -107,6 +138,7 @@ public boolean hasHeading() {
    * 
* * optional int32 heading = 2; + * * @return The heading. */ @java.lang.Override @@ -115,6 +147,7 @@ public int getHeading() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,8 +159,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (latLng_ != null) { output.writeMessage(1, getLatLng()); } @@ -144,12 +176,10 @@ public int getSerializedSize() { size = 0; if (latLng_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLatLng()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLatLng()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, heading_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, heading_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -159,22 +189,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Location)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Location other = (com.google.cloud.optimization.v1.Location) obj; + com.google.cloud.optimization.v1.Location other = + (com.google.cloud.optimization.v1.Location) obj; if (hasLatLng() != other.hasLatLng()) return false; if (hasLatLng()) { - if (!getLatLng() - .equals(other.getLatLng())) return false; + if (!getLatLng().equals(other.getLatLng())) return false; } if (hasHeading() != other.hasHeading()) return false; if (hasHeading()) { - if (getHeading() - != other.getHeading()) return false; + if (getHeading() != other.getHeading()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -200,132 +229,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.Location parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Location parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Location parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Location parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Location parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Location parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Location parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Location parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Location parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Location parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Location parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.Location prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates a location (a geographic point, and an optional heading).
    * 
* * Protobuf type {@code google.cloud.optimization.v1.Location} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Location) com.google.cloud.optimization.v1.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.Location.class, com.google.cloud.optimization.v1.Location.Builder.class); + com.google.cloud.optimization.v1.Location.class, + com.google.cloud.optimization.v1.Location.Builder.class); } // Construct using com.google.cloud.optimization.v1.Location.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -340,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Location_descriptor; } @java.lang.Override @@ -361,8 +394,11 @@ public com.google.cloud.optimization.v1.Location build() { @java.lang.Override public com.google.cloud.optimization.v1.Location buildPartial() { - com.google.cloud.optimization.v1.Location result = new com.google.cloud.optimization.v1.Location(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.Location result = + new com.google.cloud.optimization.v1.Location(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -370,9 +406,7 @@ public com.google.cloud.optimization.v1.Location buildPartial() { private void buildPartial0(com.google.cloud.optimization.v1.Location result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.latLng_ = latLngBuilder_ == null - ? latLng_ - : latLngBuilder_.build(); + result.latLng_ = latLngBuilder_ == null ? latLng_ : latLngBuilder_.build(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -386,38 +420,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.Location result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.Location) { - return mergeFrom((com.google.cloud.optimization.v1.Location)other); + return mergeFrom((com.google.cloud.optimization.v1.Location) other); } else { super.mergeFrom(other); return this; @@ -458,24 +493,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getLatLngFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - heading_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getLatLngFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + heading_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -485,28 +521,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.LatLng latLng_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; /** + * + * *
      * The waypoint's geographic coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ public boolean hasLatLng() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ public com.google.type.LatLng getLatLng() { @@ -517,6 +561,8 @@ public com.google.type.LatLng getLatLng() { } } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -537,14 +583,15 @@ public Builder setLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
* * .google.type.LatLng lat_lng = 1; */ - public Builder setLatLng( - com.google.type.LatLng.Builder builderForValue) { + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { if (latLngBuilder_ == null) { latLng_ = builderForValue.build(); } else { @@ -555,6 +602,8 @@ public Builder setLatLng( return this; } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -563,9 +612,9 @@ public Builder setLatLng( */ public Builder mergeLatLng(com.google.type.LatLng value) { if (latLngBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - latLng_ != null && - latLng_ != com.google.type.LatLng.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && latLng_ != null + && latLng_ != com.google.type.LatLng.getDefaultInstance()) { getLatLngBuilder().mergeFrom(value); } else { latLng_ = value; @@ -578,6 +627,8 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -595,6 +646,8 @@ public Builder clearLatLng() { return this; } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -607,6 +660,8 @@ public com.google.type.LatLng.Builder getLatLngBuilder() { return getLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -617,11 +672,12 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { if (latLngBuilder_ != null) { return latLngBuilder_.getMessageOrBuilder(); } else { - return latLng_ == null ? - com.google.type.LatLng.getDefaultInstance() : latLng_; + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -629,21 +685,23 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { * .google.type.LatLng lat_lng = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngFieldBuilder() { if (latLngBuilder_ == null) { - latLngBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( - getLatLng(), - getParentForChildren(), - isClean()); + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); latLng_ = null; } return latLngBuilder_; } - private int heading_ ; + private int heading_; /** + * + * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value is used to specify the side of the road to use for pickup and
@@ -652,6 +710,7 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() {
      * 
* * optional int32 heading = 2; + * * @return Whether the heading field is set. */ @java.lang.Override @@ -659,6 +718,8 @@ public boolean hasHeading() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value is used to specify the side of the road to use for pickup and
@@ -667,6 +728,7 @@ public boolean hasHeading() {
      * 
* * optional int32 heading = 2; + * * @return The heading. */ @java.lang.Override @@ -674,6 +736,8 @@ public int getHeading() { return heading_; } /** + * + * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value is used to specify the side of the road to use for pickup and
@@ -682,6 +746,7 @@ public int getHeading() {
      * 
* * optional int32 heading = 2; + * * @param value The heading to set. * @return This builder for chaining. */ @@ -693,6 +758,8 @@ public Builder setHeading(int value) { return this; } /** + * + * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value is used to specify the side of the road to use for pickup and
@@ -701,6 +768,7 @@ public Builder setHeading(int value) {
      * 
* * optional int32 heading = 2; + * * @return This builder for chaining. */ public Builder clearHeading() { @@ -709,9 +777,9 @@ public Builder clearHeading() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -721,12 +789,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Location) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Location) private static final com.google.cloud.optimization.v1.Location DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Location(); } @@ -735,27 +803,27 @@ public static com.google.cloud.optimization.v1.Location getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -770,6 +838,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java similarity index 71% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java index fdf4ba61a085..d852339761d0 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/LocationOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface LocationOrBuilder extends +public interface LocationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Location) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return Whether the latLng field is set. */ boolean hasLatLng(); /** + * + * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ com.google.type.LatLng getLatLng(); /** + * + * *
    * The waypoint's geographic coordinates.
    * 
@@ -35,6 +59,8 @@ public interface LocationOrBuilder extends com.google.type.LatLngOrBuilder getLatLngOrBuilder(); /** + * + * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value is used to specify the side of the road to use for pickup and
@@ -43,10 +69,13 @@ public interface LocationOrBuilder extends
    * 
* * optional int32 heading = 2; + * * @return Whether the heading field is set. */ boolean hasHeading(); /** + * + * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value is used to specify the side of the road to use for pickup and
@@ -55,6 +84,7 @@ public interface LocationOrBuilder extends
    * 
* * optional int32 heading = 2; + * * @return The heading. */ int getHeading(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java similarity index 83% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java index 7a8f2fb91b54..b172e8628b96 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Request to be given to a tour optimization solver which defines the
  * shipment model to solve as well as optimization parameters.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursRequest}
  */
-public final class OptimizeToursRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OptimizeToursRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursRequest)
     OptimizeToursRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OptimizeToursRequest.newBuilder() to construct.
   private OptimizeToursRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OptimizeToursRequest() {
     parent_ = "";
     solvingMode_ = 0;
@@ -31,25 +49,28 @@ private OptimizeToursRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OptimizeToursRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.OptimizeToursRequest.class, com.google.cloud.optimization.v1.OptimizeToursRequest.Builder.class);
+            com.google.cloud.optimization.v1.OptimizeToursRequest.class,
+            com.google.cloud.optimization.v1.OptimizeToursRequest.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Defines how the solver should handle the request. In all modes but
    * `VALIDATE_ONLY`, if the request is invalid, you will receive an
@@ -60,9 +81,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode}
    */
-  public enum SolvingMode
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SolvingMode implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Solve the model.
      * 
@@ -71,6 +93,8 @@ public enum SolvingMode */ DEFAULT_SOLVE(0), /** + * + * *
      * Only validates the model without solving it: populates as many
      * [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
@@ -81,6 +105,8 @@ public enum SolvingMode
      */
     VALIDATE_ONLY(1),
     /**
+     *
+     *
      * 
      * Only populates
      * [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
@@ -106,6 +132,8 @@ public enum SolvingMode
     ;
 
     /**
+     *
+     *
      * 
      * Solve the model.
      * 
@@ -114,6 +142,8 @@ public enum SolvingMode */ public static final int DEFAULT_SOLVE_VALUE = 0; /** + * + * *
      * Only validates the model without solving it: populates as many
      * [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
@@ -124,6 +154,8 @@ public enum SolvingMode
      */
     public static final int VALIDATE_ONLY_VALUE = 1;
     /**
+     *
+     *
      * 
      * Only populates
      * [OptimizeToursResponse.validation_errors][google.cloud.optimization.v1.OptimizeToursResponse.validation_errors]
@@ -146,7 +178,6 @@ public enum SolvingMode
      */
     public static final int DETECT_SOME_INFEASIBLE_SHIPMENTS_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -171,49 +202,51 @@ public static SolvingMode valueOf(int value) {
      */
     public static SolvingMode forNumber(int value) {
       switch (value) {
-        case 0: return DEFAULT_SOLVE;
-        case 1: return VALIDATE_ONLY;
-        case 2: return DETECT_SOME_INFEASIBLE_SHIPMENTS;
-        default: return null;
+        case 0:
+          return DEFAULT_SOLVE;
+        case 1:
+          return VALIDATE_ONLY;
+        case 2:
+          return DETECT_SOME_INFEASIBLE_SHIPMENTS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        SolvingMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public SolvingMode findValueByNumber(int number) {
-              return SolvingMode.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public SolvingMode findValueByNumber(int number) {
+            return SolvingMode.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.OptimizeToursRequest.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.OptimizeToursRequest.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final SolvingMode[] VALUES = values();
 
-    public static SolvingMode valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static SolvingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -231,6 +264,8 @@ private SolvingMode(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Mode defining the behavior of the search, trading off latency versus
    * solution quality. In all modes, the global request deadline is enforced.
@@ -238,9 +273,10 @@ private SolvingMode(int value) {
    *
    * Protobuf enum {@code google.cloud.optimization.v1.OptimizeToursRequest.SearchMode}
    */
-  public enum SearchMode
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SearchMode implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified search mode, equivalent to `RETURN_FAST`.
      * 
@@ -249,6 +285,8 @@ public enum SearchMode */ SEARCH_MODE_UNSPECIFIED(0), /** + * + * *
      * Stop the search after finding the first good solution.
      * 
@@ -257,6 +295,8 @@ public enum SearchMode */ RETURN_FAST(1), /** + * + * *
      * Spend all the available time to search for better solutions.
      * 
@@ -268,6 +308,8 @@ public enum SearchMode ; /** + * + * *
      * Unspecified search mode, equivalent to `RETURN_FAST`.
      * 
@@ -276,6 +318,8 @@ public enum SearchMode */ public static final int SEARCH_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Stop the search after finding the first good solution.
      * 
@@ -284,6 +328,8 @@ public enum SearchMode */ public static final int RETURN_FAST_VALUE = 1; /** + * + * *
      * Spend all the available time to search for better solutions.
      * 
@@ -292,7 +338,6 @@ public enum SearchMode */ public static final int CONSUME_ALL_AVAILABLE_TIME_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -317,49 +362,51 @@ public static SearchMode valueOf(int value) { */ public static SearchMode forNumber(int value) { switch (value) { - case 0: return SEARCH_MODE_UNSPECIFIED; - case 1: return RETURN_FAST; - case 2: return CONSUME_ALL_AVAILABLE_TIME; - default: return null; + case 0: + return SEARCH_MODE_UNSPECIFIED; + case 1: + return RETURN_FAST; + case 2: + return CONSUME_ALL_AVAILABLE_TIME; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SearchMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SearchMode findValueByNumber(int number) { - return SearchMode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SearchMode findValueByNumber(int number) { + return SearchMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.optimization.v1.OptimizeToursRequest.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.optimization.v1.OptimizeToursRequest.getDescriptor() + .getEnumTypes() + .get(1); } private static final SearchMode[] VALUES = values(); - public static SearchMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SearchMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -378,9 +425,12 @@ private SearchMode(int value) { private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Target project and location to make a call.
    *
@@ -390,6 +440,7 @@ private SearchMode(int value) {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -398,14 +449,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Target project and location to make a call.
    *
@@ -415,16 +467,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -435,6 +486,8 @@ public java.lang.String getParent() { public static final int TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeout_; /** + * + * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -445,6 +498,7 @@ public java.lang.String getParent() {
    * 
* * .google.protobuf.Duration timeout = 2; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -452,6 +506,8 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -462,6 +518,7 @@ public boolean hasTimeout() {
    * 
* * .google.protobuf.Duration timeout = 2; + * * @return The timeout. */ @java.lang.Override @@ -469,6 +526,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -488,11 +547,14 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
   public static final int MODEL_FIELD_NUMBER = 3;
   private com.google.cloud.optimization.v1.ShipmentModel model_;
   /**
+   *
+   *
    * 
    * Shipment model to solve.
    * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; + * * @return Whether the model field is set. */ @java.lang.Override @@ -500,18 +562,25 @@ public boolean hasModel() { return model_ != null; } /** + * + * *
    * Shipment model to solve.
    * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; + * * @return The model. */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentModel getModel() { - return model_ == null ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() : model_; + return model_ == null + ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() + : model_; } /** + * + * *
    * Shipment model to solve.
    * 
@@ -520,65 +589,93 @@ public com.google.cloud.optimization.v1.ShipmentModel getModel() { */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder() { - return model_ == null ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() : model_; + return model_ == null + ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() + : model_; } public static final int SOLVING_MODE_FIELD_NUMBER = 4; private int solvingMode_ = 0; /** + * + * *
    * By default, the solving mode is `DEFAULT_SOLVE` (0).
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @return The enum numeric value on the wire for solvingMode. */ - @java.lang.Override public int getSolvingModeValue() { + @java.lang.Override + public int getSolvingModeValue() { return solvingMode_; } /** + * + * *
    * By default, the solving mode is `DEFAULT_SOLVE` (0).
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @return The solvingMode. */ - @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode getSolvingMode() { - com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode result = com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.forNumber(solvingMode_); - return result == null ? com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode getSolvingMode() { + com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode result = + com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.forNumber(solvingMode_); + return result == null + ? com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.UNRECOGNIZED + : result; } public static final int SEARCH_MODE_FIELD_NUMBER = 6; private int searchMode_ = 0; /** + * + * *
    * Search mode used to solve the request.
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @return The enum numeric value on the wire for searchMode. */ - @java.lang.Override public int getSearchModeValue() { + @java.lang.Override + public int getSearchModeValue() { return searchMode_; } /** + * + * *
    * Search mode used to solve the request.
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @return The searchMode. */ - @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearchMode() { - com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode result = com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.forNumber(searchMode_); - return result == null ? com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearchMode() { + com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode result = + com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.forNumber(searchMode_); + return result == null + ? com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.UNRECOGNIZED + : result; } public static final int INJECTED_FIRST_SOLUTION_ROUTES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") - private java.util.List injectedFirstSolutionRoutes_; + private java.util.List + injectedFirstSolutionRoutes_; /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -611,13 +708,17 @@ public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ @java.lang.Override - public java.util.List getInjectedFirstSolutionRoutesList() { + public java.util.List + getInjectedFirstSolutionRoutesList() { return injectedFirstSolutionRoutes_; } /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -650,14 +751,17 @@ public java.util.List getInjecte
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ @java.lang.Override - public java.util.List + public java.util.List getInjectedFirstSolutionRoutesOrBuilderList() { return injectedFirstSolutionRoutes_; } /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -690,13 +794,16 @@ public java.util.List getInjecte
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ @java.lang.Override public int getInjectedFirstSolutionRoutesCount() { return injectedFirstSolutionRoutes_.size(); } /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -729,13 +836,16 @@ public int getInjectedFirstSolutionRoutesCount() {
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRoutes(int index) { return injectedFirstSolutionRoutes_.get(index); } /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -768,17 +878,20 @@ public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRo
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolutionRoutesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder + getInjectedFirstSolutionRoutesOrBuilder(int index) { return injectedFirstSolutionRoutes_.get(index); } public static final int INJECTED_SOLUTION_CONSTRAINT_FIELD_NUMBER = 8; private com.google.cloud.optimization.v1.InjectedSolutionConstraint injectedSolutionConstraint_; /** + * + * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -790,7 +903,10 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstS
    * instead.
    * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * * @return Whether the injectedSolutionConstraint field is set. */ @java.lang.Override @@ -798,6 +914,8 @@ public boolean hasInjectedSolutionConstraint() { return injectedSolutionConstraint_ != null; } /** + * + * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -809,14 +927,22 @@ public boolean hasInjectedSolutionConstraint() {
    * instead.
    * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * * @return The injectedSolutionConstraint. */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraint getInjectedSolutionConstraint() { - return injectedSolutionConstraint_ == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() : injectedSolutionConstraint_; + public com.google.cloud.optimization.v1.InjectedSolutionConstraint + getInjectedSolutionConstraint() { + return injectedSolutionConstraint_ == null + ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() + : injectedSolutionConstraint_; } /** + * + * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -828,17 +954,25 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint getInjectedSo
    * instead.
    * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder getInjectedSolutionConstraintOrBuilder() { - return injectedSolutionConstraint_ == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() : injectedSolutionConstraint_; + public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder + getInjectedSolutionConstraintOrBuilder() { + return injectedSolutionConstraint_ == null + ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() + : injectedSolutionConstraint_; } public static final int REFRESH_DETAILS_ROUTES_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List refreshDetailsRoutes_; /** + * + * *
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -861,10 +995,13 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder getI
    * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
    */
   @java.lang.Override
-  public java.util.List getRefreshDetailsRoutesList() {
+  public java.util.List
+      getRefreshDetailsRoutesList() {
     return refreshDetailsRoutes_;
   }
   /**
+   *
+   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -887,11 +1024,13 @@ public java.util.List getRefresh
    * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRefreshDetailsRoutesOrBuilderList() {
     return refreshDetailsRoutes_;
   }
   /**
+   *
+   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -918,6 +1057,8 @@ public int getRefreshDetailsRoutesCount() {
     return refreshDetailsRoutes_.size();
   }
   /**
+   *
+   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -944,6 +1085,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRefreshDetailsRoutes(in
     return refreshDetailsRoutes_.get(index);
   }
   /**
+   *
+   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -974,6 +1117,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
   public static final int INTERPRET_INJECTED_SOLUTIONS_USING_LABELS_FIELD_NUMBER = 10;
   private boolean interpretInjectedSolutionsUsingLabels_ = false;
   /**
+   *
+   *
    * 
    * If true:
    *
@@ -1043,6 +1188,7 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
    * 
* * bool interpret_injected_solutions_using_labels = 10; + * * @return The interpretInjectedSolutionsUsingLabels. */ @java.lang.Override @@ -1053,6 +1199,8 @@ public boolean getInterpretInjectedSolutionsUsingLabels() { public static final int CONSIDER_ROAD_TRAFFIC_FIELD_NUMBER = 11; private boolean considerRoadTraffic_ = false; /** + * + * *
    * Consider traffic estimation in calculating `ShipmentRoute` fields
    * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -1065,6 +1213,7 @@ public boolean getInterpretInjectedSolutionsUsingLabels() {
    * 
* * bool consider_road_traffic = 11; + * * @return The considerRoadTraffic. */ @java.lang.Override @@ -1075,11 +1224,14 @@ public boolean getConsiderRoadTraffic() { public static final int POPULATE_POLYLINES_FIELD_NUMBER = 12; private boolean populatePolylines_ = false; /** + * + * *
    * If true, polylines will be populated in response `ShipmentRoute`s.
    * 
* * bool populate_polylines = 12; + * * @return The populatePolylines. */ @java.lang.Override @@ -1090,6 +1242,8 @@ public boolean getPopulatePolylines() { public static final int POPULATE_TRANSITION_POLYLINES_FIELD_NUMBER = 13; private boolean populateTransitionPolylines_ = false; /** + * + * *
    * If true, polylines will be populated in response
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -1098,6 +1252,7 @@ public boolean getPopulatePolylines() {
    * 
* * bool populate_transition_polylines = 13; + * * @return The populateTransitionPolylines. */ @java.lang.Override @@ -1108,6 +1263,8 @@ public boolean getPopulateTransitionPolylines() { public static final int ALLOW_LARGE_DEADLINE_DESPITE_INTERRUPTION_RISK_FIELD_NUMBER = 14; private boolean allowLargeDeadlineDespiteInterruptionRisk_ = false; /** + * + * *
    * If this is set, then the request can have a deadline
    * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -1117,6 +1274,7 @@ public boolean getPopulateTransitionPolylines() {
    * 
* * bool allow_large_deadline_despite_interruption_risk = 14; + * * @return The allowLargeDeadlineDespiteInterruptionRisk. */ @java.lang.Override @@ -1127,6 +1285,8 @@ public boolean getAllowLargeDeadlineDespiteInterruptionRisk() { public static final int USE_GEODESIC_DISTANCES_FIELD_NUMBER = 15; private boolean useGeodesicDistances_ = false; /** + * + * *
    * If true, travel distances will be computed using geodesic distances instead
    * of Google Maps distances, and travel times will be computed using geodesic
@@ -1134,6 +1294,7 @@ public boolean getAllowLargeDeadlineDespiteInterruptionRisk() {
    * 
* * bool use_geodesic_distances = 15; + * * @return The useGeodesicDistances. */ @java.lang.Override @@ -1144,6 +1305,8 @@ public boolean getUseGeodesicDistances() { public static final int GEODESIC_METERS_PER_SECOND_FIELD_NUMBER = 16; private double geodesicMetersPerSecond_ = 0D; /** + * + * *
    * When `use_geodesic_distances` is true, this field must be set and defines
    * the speed applied to compute travel times. Its value must be at least 1.0
@@ -1151,6 +1314,7 @@ public boolean getUseGeodesicDistances() {
    * 
* * optional double geodesic_meters_per_second = 16; + * * @return Whether the geodesicMetersPerSecond field is set. */ @java.lang.Override @@ -1158,6 +1322,8 @@ public boolean hasGeodesicMetersPerSecond() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * When `use_geodesic_distances` is true, this field must be set and defines
    * the speed applied to compute travel times. Its value must be at least 1.0
@@ -1165,6 +1331,7 @@ public boolean hasGeodesicMetersPerSecond() {
    * 
* * optional double geodesic_meters_per_second = 16; + * * @return The geodesicMetersPerSecond. */ @java.lang.Override @@ -1175,6 +1342,8 @@ public double getGeodesicMetersPerSecond() { public static final int MAX_VALIDATION_ERRORS_FIELD_NUMBER = 5; private int maxValidationErrors_ = 0; /** + * + * *
    * Truncates the number of validation errors returned. These errors are
    * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -1186,6 +1355,7 @@ public double getGeodesicMetersPerSecond() {
    * 
* * optional int32 max_validation_errors = 5; + * * @return Whether the maxValidationErrors field is set. */ @java.lang.Override @@ -1193,6 +1363,8 @@ public boolean hasMaxValidationErrors() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Truncates the number of validation errors returned. These errors are
    * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -1204,6 +1376,7 @@ public boolean hasMaxValidationErrors() {
    * 
* * optional int32 max_validation_errors = 5; + * * @return The maxValidationErrors. */ @java.lang.Override @@ -1212,15 +1385,19 @@ public int getMaxValidationErrors() { } public static final int LABEL_FIELD_NUMBER = 17; + @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** + * + * *
    * Label that may be used to identify this request, reported back in the
    * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
    * 
* * string label = 17; + * * @return The label. */ @java.lang.Override @@ -1229,30 +1406,30 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
    * Label that may be used to identify this request, reported back in the
    * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
    * 
* * string label = 17; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -1263,6 +1440,8 @@ public java.lang.String getLabel() { public static final int POPULATE_TRAVEL_STEP_POLYLINES_FIELD_NUMBER = 20; private boolean populateTravelStepPolylines_ = false; /** + * + * *
    * Deprecated: Use
    * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -1273,16 +1452,19 @@ public java.lang.String getLabel() {
    * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @return The populateTravelStepPolylines. */ @java.lang.Override - @java.lang.Deprecated public boolean getPopulateTravelStepPolylines() { + @java.lang.Deprecated + public boolean getPopulateTravelStepPolylines() { return populateTravelStepPolylines_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1294,8 +1476,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -1305,13 +1486,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (model_ != null) { output.writeMessage(3, getModel()); } - if (solvingMode_ != com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.DEFAULT_SOLVE.getNumber()) { + if (solvingMode_ + != com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.DEFAULT_SOLVE + .getNumber()) { output.writeEnum(4, solvingMode_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(5, maxValidationErrors_); } - if (searchMode_ != com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.SEARCH_MODE_UNSPECIFIED.getNumber()) { + if (searchMode_ + != com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.SEARCH_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, searchMode_); } for (int i = 0; i < injectedFirstSolutionRoutes_.size(); i++) { @@ -1363,71 +1548,70 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeout()); } if (model_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getModel()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getModel()); } - if (solvingMode_ != com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.DEFAULT_SOLVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, solvingMode_); + if (solvingMode_ + != com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.DEFAULT_SOLVE + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, solvingMode_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, maxValidationErrors_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxValidationErrors_); } - if (searchMode_ != com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.SEARCH_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, searchMode_); + if (searchMode_ + != com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.SEARCH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, searchMode_); } for (int i = 0; i < injectedFirstSolutionRoutes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, injectedFirstSolutionRoutes_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, injectedFirstSolutionRoutes_.get(i)); } if (injectedSolutionConstraint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getInjectedSolutionConstraint()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getInjectedSolutionConstraint()); } for (int i = 0; i < refreshDetailsRoutes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, refreshDetailsRoutes_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, refreshDetailsRoutes_.get(i)); } if (interpretInjectedSolutionsUsingLabels_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, interpretInjectedSolutionsUsingLabels_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, interpretInjectedSolutionsUsingLabels_); } if (considerRoadTraffic_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, considerRoadTraffic_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, considerRoadTraffic_); } if (populatePolylines_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, populatePolylines_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, populatePolylines_); } if (populateTransitionPolylines_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, populateTransitionPolylines_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(13, populateTransitionPolylines_); } if (allowLargeDeadlineDespiteInterruptionRisk_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, allowLargeDeadlineDespiteInterruptionRisk_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 14, allowLargeDeadlineDespiteInterruptionRisk_); } if (useGeodesicDistances_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, useGeodesicDistances_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, useGeodesicDistances_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(16, geodesicMetersPerSecond_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(16, geodesicMetersPerSecond_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, label_); } if (populateTravelStepPolylines_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(20, populateTravelStepPolylines_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(20, populateTravelStepPolylines_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1437,63 +1621,52 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursRequest other = (com.google.cloud.optimization.v1.OptimizeToursRequest) obj; + com.google.cloud.optimization.v1.OptimizeToursRequest other = + (com.google.cloud.optimization.v1.OptimizeToursRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; } if (hasModel() != other.hasModel()) return false; if (hasModel()) { - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; } if (solvingMode_ != other.solvingMode_) return false; if (searchMode_ != other.searchMode_) return false; - if (!getInjectedFirstSolutionRoutesList() - .equals(other.getInjectedFirstSolutionRoutesList())) return false; + if (!getInjectedFirstSolutionRoutesList().equals(other.getInjectedFirstSolutionRoutesList())) + return false; if (hasInjectedSolutionConstraint() != other.hasInjectedSolutionConstraint()) return false; if (hasInjectedSolutionConstraint()) { - if (!getInjectedSolutionConstraint() - .equals(other.getInjectedSolutionConstraint())) return false; + if (!getInjectedSolutionConstraint().equals(other.getInjectedSolutionConstraint())) + return false; } - if (!getRefreshDetailsRoutesList() - .equals(other.getRefreshDetailsRoutesList())) return false; + if (!getRefreshDetailsRoutesList().equals(other.getRefreshDetailsRoutesList())) return false; if (getInterpretInjectedSolutionsUsingLabels() != other.getInterpretInjectedSolutionsUsingLabels()) return false; - if (getConsiderRoadTraffic() - != other.getConsiderRoadTraffic()) return false; - if (getPopulatePolylines() - != other.getPopulatePolylines()) return false; - if (getPopulateTransitionPolylines() - != other.getPopulateTransitionPolylines()) return false; + if (getConsiderRoadTraffic() != other.getConsiderRoadTraffic()) return false; + if (getPopulatePolylines() != other.getPopulatePolylines()) return false; + if (getPopulateTransitionPolylines() != other.getPopulateTransitionPolylines()) return false; if (getAllowLargeDeadlineDespiteInterruptionRisk() != other.getAllowLargeDeadlineDespiteInterruptionRisk()) return false; - if (getUseGeodesicDistances() - != other.getUseGeodesicDistances()) return false; + if (getUseGeodesicDistances() != other.getUseGeodesicDistances()) return false; if (hasGeodesicMetersPerSecond() != other.hasGeodesicMetersPerSecond()) return false; if (hasGeodesicMetersPerSecond()) { if (java.lang.Double.doubleToLongBits(getGeodesicMetersPerSecond()) - != java.lang.Double.doubleToLongBits( - other.getGeodesicMetersPerSecond())) return false; + != java.lang.Double.doubleToLongBits(other.getGeodesicMetersPerSecond())) return false; } if (hasMaxValidationErrors() != other.hasMaxValidationErrors()) return false; if (hasMaxValidationErrors()) { - if (getMaxValidationErrors() - != other.getMaxValidationErrors()) return false; + if (getMaxValidationErrors() != other.getMaxValidationErrors()) return false; } - if (!getLabel() - .equals(other.getLabel())) return false; - if (getPopulateTravelStepPolylines() - != other.getPopulateTravelStepPolylines()) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (getPopulateTravelStepPolylines() != other.getPopulateTravelStepPolylines()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1532,27 +1705,28 @@ public int hashCode() { hash = (53 * hash) + getRefreshDetailsRoutesList().hashCode(); } hash = (37 * hash) + INTERPRET_INJECTED_SOLUTIONS_USING_LABELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterpretInjectedSolutionsUsingLabels()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getInterpretInjectedSolutionsUsingLabels()); hash = (37 * hash) + CONSIDER_ROAD_TRAFFIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getConsiderRoadTraffic()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConsiderRoadTraffic()); hash = (37 * hash) + POPULATE_POLYLINES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPopulatePolylines()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPopulatePolylines()); hash = (37 * hash) + POPULATE_TRANSITION_POLYLINES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPopulateTransitionPolylines()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPopulateTransitionPolylines()); hash = (37 * hash) + ALLOW_LARGE_DEADLINE_DESPITE_INTERRUPTION_RISK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowLargeDeadlineDespiteInterruptionRisk()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getAllowLargeDeadlineDespiteInterruptionRisk()); hash = (37 * hash) + USE_GEODESIC_DISTANCES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseGeodesicDistances()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseGeodesicDistances()); if (hasGeodesicMetersPerSecond()) { hash = (37 * hash) + GEODESIC_METERS_PER_SECOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getGeodesicMetersPerSecond())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGeodesicMetersPerSecond())); } if (hasMaxValidationErrors()) { hash = (37 * hash) + MAX_VALIDATION_ERRORS_FIELD_NUMBER; @@ -1561,106 +1735,111 @@ public int hashCode() { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + POPULATE_TRAVEL_STEP_POLYLINES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPopulateTravelStepPolylines()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPopulateTravelStepPolylines()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OptimizeToursRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OptimizeToursRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.OptimizeToursRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to be given to a tour optimization solver which defines the
    * shipment model to solve as well as optimization parameters.
@@ -1668,33 +1847,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursRequest)
       com.google.cloud.optimization.v1.OptimizeToursRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.OptimizeToursRequest.class, com.google.cloud.optimization.v1.OptimizeToursRequest.Builder.class);
+              com.google.cloud.optimization.v1.OptimizeToursRequest.class,
+              com.google.cloud.optimization.v1.OptimizeToursRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.OptimizeToursRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1745,9 +1923,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor;
     }
 
     @java.lang.Override
@@ -1766,17 +1944,22 @@ public com.google.cloud.optimization.v1.OptimizeToursRequest build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.OptimizeToursRequest buildPartial() {
-      com.google.cloud.optimization.v1.OptimizeToursRequest result = new com.google.cloud.optimization.v1.OptimizeToursRequest(this);
+      com.google.cloud.optimization.v1.OptimizeToursRequest result =
+          new com.google.cloud.optimization.v1.OptimizeToursRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.OptimizeToursRequest result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.optimization.v1.OptimizeToursRequest result) {
       if (injectedFirstSolutionRoutesBuilder_ == null) {
         if (((bitField0_ & 0x00000020) != 0)) {
-          injectedFirstSolutionRoutes_ = java.util.Collections.unmodifiableList(injectedFirstSolutionRoutes_);
+          injectedFirstSolutionRoutes_ =
+              java.util.Collections.unmodifiableList(injectedFirstSolutionRoutes_);
           bitField0_ = (bitField0_ & ~0x00000020);
         }
         result.injectedFirstSolutionRoutes_ = injectedFirstSolutionRoutes_;
@@ -1800,14 +1983,10 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRequest
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.timeout_ = timeoutBuilder_ == null
-            ? timeout_
-            : timeoutBuilder_.build();
+        result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.model_ = modelBuilder_ == null
-            ? model_
-            : modelBuilder_.build();
+        result.model_ = modelBuilder_ == null ? model_ : modelBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.solvingMode_ = solvingMode_;
@@ -1816,9 +1995,10 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRequest
         result.searchMode_ = searchMode_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.injectedSolutionConstraint_ = injectedSolutionConstraintBuilder_ == null
-            ? injectedSolutionConstraint_
-            : injectedSolutionConstraintBuilder_.build();
+        result.injectedSolutionConstraint_ =
+            injectedSolutionConstraintBuilder_ == null
+                ? injectedSolutionConstraint_
+                : injectedSolutionConstraintBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
         result.interpretInjectedSolutionsUsingLabels_ = interpretInjectedSolutionsUsingLabels_;
@@ -1833,7 +2013,8 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRequest
         result.populateTransitionPolylines_ = populateTransitionPolylines_;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.allowLargeDeadlineDespiteInterruptionRisk_ = allowLargeDeadlineDespiteInterruptionRisk_;
+        result.allowLargeDeadlineDespiteInterruptionRisk_ =
+            allowLargeDeadlineDespiteInterruptionRisk_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
         result.useGeodesicDistances_ = useGeodesicDistances_;
@@ -1860,38 +2041,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.OptimizeToursRequest) {
-        return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursRequest)other);
+        return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1899,7 +2081,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursRequest other) {
-      if (other == com.google.cloud.optimization.v1.OptimizeToursRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.OptimizeToursRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -1935,9 +2118,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursRequest o
             injectedFirstSolutionRoutesBuilder_ = null;
             injectedFirstSolutionRoutes_ = other.injectedFirstSolutionRoutes_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            injectedFirstSolutionRoutesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getInjectedFirstSolutionRoutesFieldBuilder() : null;
+            injectedFirstSolutionRoutesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getInjectedFirstSolutionRoutesFieldBuilder()
+                    : null;
           } else {
             injectedFirstSolutionRoutesBuilder_.addAllMessages(other.injectedFirstSolutionRoutes_);
           }
@@ -1964,9 +2148,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursRequest o
             refreshDetailsRoutesBuilder_ = null;
             refreshDetailsRoutes_ = other.refreshDetailsRoutes_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            refreshDetailsRoutesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRefreshDetailsRoutesFieldBuilder() : null;
+            refreshDetailsRoutesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRefreshDetailsRoutesFieldBuilder()
+                    : null;
           } else {
             refreshDetailsRoutesBuilder_.addAllMessages(other.refreshDetailsRoutes_);
           }
@@ -1985,7 +2170,8 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursRequest o
         setPopulateTransitionPolylines(other.getPopulateTransitionPolylines());
       }
       if (other.getAllowLargeDeadlineDespiteInterruptionRisk() != false) {
-        setAllowLargeDeadlineDespiteInterruptionRisk(other.getAllowLargeDeadlineDespiteInterruptionRisk());
+        setAllowLargeDeadlineDespiteInterruptionRisk(
+            other.getAllowLargeDeadlineDespiteInterruptionRisk());
       }
       if (other.getUseGeodesicDistances() != false) {
         setUseGeodesicDistances(other.getUseGeodesicDistances());
@@ -2030,124 +2216,136 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getModelFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              solvingMode_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              maxValidationErrors_ = input.readInt32();
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 40
-            case 48: {
-              searchMode_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 48
-            case 58: {
-              com.google.cloud.optimization.v1.ShipmentRoute m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentRoute.parser(),
-                      extensionRegistry);
-              if (injectedFirstSolutionRoutesBuilder_ == null) {
-                ensureInjectedFirstSolutionRoutesIsMutable();
-                injectedFirstSolutionRoutes_.add(m);
-              } else {
-                injectedFirstSolutionRoutesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getInjectedSolutionConstraintFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 66
-            case 74: {
-              com.google.cloud.optimization.v1.ShipmentRoute m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentRoute.parser(),
-                      extensionRegistry);
-              if (refreshDetailsRoutesBuilder_ == null) {
-                ensureRefreshDetailsRoutesIsMutable();
-                refreshDetailsRoutes_.add(m);
-              } else {
-                refreshDetailsRoutesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 74
-            case 80: {
-              interpretInjectedSolutionsUsingLabels_ = input.readBool();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 80
-            case 88: {
-              considerRoadTraffic_ = input.readBool();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 88
-            case 96: {
-              populatePolylines_ = input.readBool();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 96
-            case 104: {
-              populateTransitionPolylines_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 104
-            case 112: {
-              allowLargeDeadlineDespiteInterruptionRisk_ = input.readBool();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 112
-            case 120: {
-              useGeodesicDistances_ = input.readBool();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 120
-            case 129: {
-              geodesicMetersPerSecond_ = input.readDouble();
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 129
-            case 138: {
-              label_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 138
-            case 160: {
-              populateTravelStepPolylines_ = input.readBool();
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 160
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getModelFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                solvingMode_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                maxValidationErrors_ = input.readInt32();
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 40
+            case 48:
+              {
+                searchMode_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 48
+            case 58:
+              {
+                com.google.cloud.optimization.v1.ShipmentRoute m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentRoute.parser(), extensionRegistry);
+                if (injectedFirstSolutionRoutesBuilder_ == null) {
+                  ensureInjectedFirstSolutionRoutesIsMutable();
+                  injectedFirstSolutionRoutes_.add(m);
+                } else {
+                  injectedFirstSolutionRoutesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(
+                    getInjectedSolutionConstraintFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 66
+            case 74:
+              {
+                com.google.cloud.optimization.v1.ShipmentRoute m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentRoute.parser(), extensionRegistry);
+                if (refreshDetailsRoutesBuilder_ == null) {
+                  ensureRefreshDetailsRoutesIsMutable();
+                  refreshDetailsRoutes_.add(m);
+                } else {
+                  refreshDetailsRoutesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 74
+            case 80:
+              {
+                interpretInjectedSolutionsUsingLabels_ = input.readBool();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 80
+            case 88:
+              {
+                considerRoadTraffic_ = input.readBool();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 88
+            case 96:
+              {
+                populatePolylines_ = input.readBool();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 96
+            case 104:
+              {
+                populateTransitionPolylines_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 104
+            case 112:
+              {
+                allowLargeDeadlineDespiteInterruptionRisk_ = input.readBool();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 112
+            case 120:
+              {
+                useGeodesicDistances_ = input.readBool();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 120
+            case 129:
+              {
+                geodesicMetersPerSecond_ = input.readDouble();
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 129
+            case 138:
+              {
+                label_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 138
+            case 160:
+              {
+                populateTravelStepPolylines_ = input.readBool();
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 160
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2157,10 +2355,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Target project and location to make a call.
      *
@@ -2170,13 +2371,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -2185,6 +2386,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Target project and location to make a call.
      *
@@ -2194,15 +2397,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -2210,6 +2412,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Target project and location to make a call.
      *
@@ -2219,18 +2423,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Target project and location to make a call.
      *
@@ -2240,6 +2448,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -2249,6 +2458,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Target project and location to make a call.
      *
@@ -2258,12 +2469,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -2273,8 +2486,13 @@ public Builder setParentBytes( private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeoutBuilder_; /** + * + * *
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2285,12 +2503,15 @@ public Builder setParentBytes(
      * 
* * .google.protobuf.Duration timeout = 2; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2301,6 +2522,7 @@ public boolean hasTimeout() {
      * 
* * .google.protobuf.Duration timeout = 2; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -2311,6 +2533,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2336,6 +2560,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2347,8 +2573,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration timeout = 2;
      */
-    public Builder setTimeout(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
       if (timeoutBuilder_ == null) {
         timeout_ = builderForValue.build();
       } else {
@@ -2359,6 +2584,8 @@ public Builder setTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2372,9 +2599,9 @@ public Builder setTimeout(
      */
     public Builder mergeTimeout(com.google.protobuf.Duration value) {
       if (timeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          timeout_ != null &&
-          timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && timeout_ != null
+            && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTimeoutBuilder().mergeFrom(value);
         } else {
           timeout_ = value;
@@ -2387,6 +2614,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2409,6 +2638,8 @@ public Builder clearTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2426,6 +2657,8 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
       return getTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2441,11 +2674,12 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
       if (timeoutBuilder_ != null) {
         return timeoutBuilder_.getMessageOrBuilder();
       } else {
-        return timeout_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
+        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
       }
     }
     /**
+     *
+     *
      * 
      * If this timeout is set, the server returns a response before the timeout
      * period has elapsed or the server deadline for synchronous requests is
@@ -2458,14 +2692,17 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * .google.protobuf.Duration timeout = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTimeoutFieldBuilder() {
       if (timeoutBuilder_ == null) {
-        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTimeout(),
-                getParentForChildren(),
-                isClean());
+        timeoutBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTimeout(), getParentForChildren(), isClean());
         timeout_ = null;
       }
       return timeoutBuilder_;
@@ -2473,34 +2710,47 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
 
     private com.google.cloud.optimization.v1.ShipmentModel model_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentModel, com.google.cloud.optimization.v1.ShipmentModel.Builder, com.google.cloud.optimization.v1.ShipmentModelOrBuilder> modelBuilder_;
+            com.google.cloud.optimization.v1.ShipmentModel,
+            com.google.cloud.optimization.v1.ShipmentModel.Builder,
+            com.google.cloud.optimization.v1.ShipmentModelOrBuilder>
+        modelBuilder_;
     /**
+     *
+     *
      * 
      * Shipment model to solve.
      * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; + * * @return Whether the model field is set. */ public boolean hasModel() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Shipment model to solve.
      * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; + * * @return The model. */ public com.google.cloud.optimization.v1.ShipmentModel getModel() { if (modelBuilder_ == null) { - return model_ == null ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() : model_; + return model_ == null + ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() + : model_; } else { return modelBuilder_.getMessage(); } } /** + * + * *
      * Shipment model to solve.
      * 
@@ -2521,6 +2771,8 @@ public Builder setModel(com.google.cloud.optimization.v1.ShipmentModel value) { return this; } /** + * + * *
      * Shipment model to solve.
      * 
@@ -2539,6 +2791,8 @@ public Builder setModel( return this; } /** + * + * *
      * Shipment model to solve.
      * 
@@ -2547,9 +2801,9 @@ public Builder setModel( */ public Builder mergeModel(com.google.cloud.optimization.v1.ShipmentModel value) { if (modelBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - model_ != null && - model_ != com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && model_ != null + && model_ != com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance()) { getModelBuilder().mergeFrom(value); } else { model_ = value; @@ -2562,6 +2816,8 @@ public Builder mergeModel(com.google.cloud.optimization.v1.ShipmentModel value) return this; } /** + * + * *
      * Shipment model to solve.
      * 
@@ -2579,6 +2835,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Shipment model to solve.
      * 
@@ -2591,6 +2849,8 @@ public com.google.cloud.optimization.v1.ShipmentModel.Builder getModelBuilder() return getModelFieldBuilder().getBuilder(); } /** + * + * *
      * Shipment model to solve.
      * 
@@ -2601,11 +2861,14 @@ public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder if (modelBuilder_ != null) { return modelBuilder_.getMessageOrBuilder(); } else { - return model_ == null ? - com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() : model_; + return model_ == null + ? com.google.cloud.optimization.v1.ShipmentModel.getDefaultInstance() + : model_; } } /** + * + * *
      * Shipment model to solve.
      * 
@@ -2613,14 +2876,17 @@ public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder * .google.cloud.optimization.v1.ShipmentModel model = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel, com.google.cloud.optimization.v1.ShipmentModel.Builder, com.google.cloud.optimization.v1.ShipmentModelOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel, + com.google.cloud.optimization.v1.ShipmentModel.Builder, + com.google.cloud.optimization.v1.ShipmentModelOrBuilder> getModelFieldBuilder() { if (modelBuilder_ == null) { - modelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel, com.google.cloud.optimization.v1.ShipmentModel.Builder, com.google.cloud.optimization.v1.ShipmentModelOrBuilder>( - getModel(), - getParentForChildren(), - isClean()); + modelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel, + com.google.cloud.optimization.v1.ShipmentModel.Builder, + com.google.cloud.optimization.v1.ShipmentModelOrBuilder>( + getModel(), getParentForChildren(), isClean()); model_ = null; } return modelBuilder_; @@ -2628,22 +2894,29 @@ public com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder private int solvingMode_ = 0; /** + * + * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @return The enum numeric value on the wire for solvingMode. */ - @java.lang.Override public int getSolvingModeValue() { + @java.lang.Override + public int getSolvingModeValue() { return solvingMode_; } /** + * + * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @param value The enum numeric value on the wire for solvingMode to set. * @return This builder for chaining. */ @@ -2654,28 +2927,38 @@ public Builder setSolvingModeValue(int value) { return this; } /** + * + * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @return The solvingMode. */ @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode getSolvingMode() { - com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode result = com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.forNumber(solvingMode_); - return result == null ? com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.UNRECOGNIZED : result; + com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode result = + com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.forNumber(solvingMode_); + return result == null + ? com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode.UNRECOGNIZED + : result; } /** + * + * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @param value The solvingMode to set. * @return This builder for chaining. */ - public Builder setSolvingMode(com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode value) { + public Builder setSolvingMode( + com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode value) { if (value == null) { throw new NullPointerException(); } @@ -2685,11 +2968,14 @@ public Builder setSolvingMode(com.google.cloud.optimization.v1.OptimizeToursRequ return this; } /** + * + * *
      * By default, the solving mode is `DEFAULT_SOLVE` (0).
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @return This builder for chaining. */ public Builder clearSolvingMode() { @@ -2701,22 +2987,29 @@ public Builder clearSolvingMode() { private int searchMode_ = 0; /** + * + * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @return The enum numeric value on the wire for searchMode. */ - @java.lang.Override public int getSearchModeValue() { + @java.lang.Override + public int getSearchModeValue() { return searchMode_; } /** + * + * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @param value The enum numeric value on the wire for searchMode to set. * @return This builder for chaining. */ @@ -2727,28 +3020,38 @@ public Builder setSearchModeValue(int value) { return this; } /** + * + * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @return The searchMode. */ @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearchMode() { - com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode result = com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.forNumber(searchMode_); - return result == null ? com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.UNRECOGNIZED : result; + com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode result = + com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.forNumber(searchMode_); + return result == null + ? com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode.UNRECOGNIZED + : result; } /** + * + * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @param value The searchMode to set. * @return This builder for chaining. */ - public Builder setSearchMode(com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode value) { + public Builder setSearchMode( + com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode value) { if (value == null) { throw new NullPointerException(); } @@ -2758,11 +3061,14 @@ public Builder setSearchMode(com.google.cloud.optimization.v1.OptimizeToursReque return this; } /** + * + * *
      * Search mode used to solve the request.
      * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @return This builder for chaining. */ public Builder clearSearchMode() { @@ -2772,19 +3078,27 @@ public Builder clearSearchMode() { return this; } - private java.util.List injectedFirstSolutionRoutes_ = - java.util.Collections.emptyList(); + private java.util.List + injectedFirstSolutionRoutes_ = java.util.Collections.emptyList(); + private void ensureInjectedFirstSolutionRoutesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - injectedFirstSolutionRoutes_ = new java.util.ArrayList(injectedFirstSolutionRoutes_); + injectedFirstSolutionRoutes_ = + new java.util.ArrayList( + injectedFirstSolutionRoutes_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> injectedFirstSolutionRoutesBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute, + com.google.cloud.optimization.v1.ShipmentRoute.Builder, + com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> + injectedFirstSolutionRoutesBuilder_; /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -2817,9 +3131,12 @@ private void ensureInjectedFirstSolutionRoutesIsMutable() {
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public java.util.List getInjectedFirstSolutionRoutesList() { + public java.util.List + getInjectedFirstSolutionRoutesList() { if (injectedFirstSolutionRoutesBuilder_ == null) { return java.util.Collections.unmodifiableList(injectedFirstSolutionRoutes_); } else { @@ -2827,6 +3144,8 @@ public java.util.List getInjecte } } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -2859,7 +3178,9 @@ public java.util.List getInjecte
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public int getInjectedFirstSolutionRoutesCount() { if (injectedFirstSolutionRoutesBuilder_ == null) { @@ -2869,6 +3190,8 @@ public int getInjectedFirstSolutionRoutesCount() { } } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -2901,9 +3224,12 @@ public int getInjectedFirstSolutionRoutesCount() {
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRoutes(int index) { + public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRoutes( + int index) { if (injectedFirstSolutionRoutesBuilder_ == null) { return injectedFirstSolutionRoutes_.get(index); } else { @@ -2911,6 +3237,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRo } } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -2943,7 +3271,9 @@ public com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRo
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public Builder setInjectedFirstSolutionRoutes( int index, com.google.cloud.optimization.v1.ShipmentRoute value) { @@ -2960,6 +3290,8 @@ public Builder setInjectedFirstSolutionRoutes( return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -2992,7 +3324,9 @@ public Builder setInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public Builder setInjectedFirstSolutionRoutes( int index, com.google.cloud.optimization.v1.ShipmentRoute.Builder builderForValue) { @@ -3006,6 +3340,8 @@ public Builder setInjectedFirstSolutionRoutes( return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3038,9 +3374,12 @@ public Builder setInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public Builder addInjectedFirstSolutionRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) { + public Builder addInjectedFirstSolutionRoutes( + com.google.cloud.optimization.v1.ShipmentRoute value) { if (injectedFirstSolutionRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3054,6 +3393,8 @@ public Builder addInjectedFirstSolutionRoutes(com.google.cloud.optimization.v1.S return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3086,7 +3427,9 @@ public Builder addInjectedFirstSolutionRoutes(com.google.cloud.optimization.v1.S
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public Builder addInjectedFirstSolutionRoutes( int index, com.google.cloud.optimization.v1.ShipmentRoute value) { @@ -3103,6 +3446,8 @@ public Builder addInjectedFirstSolutionRoutes( return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3135,7 +3480,9 @@ public Builder addInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public Builder addInjectedFirstSolutionRoutes( com.google.cloud.optimization.v1.ShipmentRoute.Builder builderForValue) { @@ -3149,6 +3496,8 @@ public Builder addInjectedFirstSolutionRoutes( return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3181,7 +3530,9 @@ public Builder addInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public Builder addInjectedFirstSolutionRoutes( int index, com.google.cloud.optimization.v1.ShipmentRoute.Builder builderForValue) { @@ -3195,6 +3546,8 @@ public Builder addInjectedFirstSolutionRoutes( return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3227,7 +3580,9 @@ public Builder addInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public Builder addAllInjectedFirstSolutionRoutes( java.lang.Iterable values) { @@ -3242,6 +3597,8 @@ public Builder addAllInjectedFirstSolutionRoutes( return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3274,7 +3631,9 @@ public Builder addAllInjectedFirstSolutionRoutes(
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public Builder clearInjectedFirstSolutionRoutes() { if (injectedFirstSolutionRoutesBuilder_ == null) { @@ -3287,6 +3646,8 @@ public Builder clearInjectedFirstSolutionRoutes() { return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3319,7 +3680,9 @@ public Builder clearInjectedFirstSolutionRoutes() {
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ public Builder removeInjectedFirstSolutionRoutes(int index) { if (injectedFirstSolutionRoutesBuilder_ == null) { @@ -3332,6 +3695,8 @@ public Builder removeInjectedFirstSolutionRoutes(int index) { return this; } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3364,13 +3729,17 @@ public Builder removeInjectedFirstSolutionRoutes(int index) {
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public com.google.cloud.optimization.v1.ShipmentRoute.Builder getInjectedFirstSolutionRoutesBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentRoute.Builder + getInjectedFirstSolutionRoutesBuilder(int index) { return getInjectedFirstSolutionRoutesFieldBuilder().getBuilder(index); } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3403,16 +3772,21 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getInjectedFirstSo
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolutionRoutesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder + getInjectedFirstSolutionRoutesOrBuilder(int index) { if (injectedFirstSolutionRoutesBuilder_ == null) { - return injectedFirstSolutionRoutes_.get(index); } else { + return injectedFirstSolutionRoutes_.get(index); + } else { return injectedFirstSolutionRoutesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3445,10 +3819,12 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstS
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public java.util.List - getInjectedFirstSolutionRoutesOrBuilderList() { + public java.util.List + getInjectedFirstSolutionRoutesOrBuilderList() { if (injectedFirstSolutionRoutesBuilder_ != null) { return injectedFirstSolutionRoutesBuilder_.getMessageOrBuilderList(); } else { @@ -3456,6 +3832,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstS } } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3488,13 +3866,18 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstS
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public com.google.cloud.optimization.v1.ShipmentRoute.Builder addInjectedFirstSolutionRoutesBuilder() { - return getInjectedFirstSolutionRoutesFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentRoute.Builder + addInjectedFirstSolutionRoutesBuilder() { + return getInjectedFirstSolutionRoutesFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance()); } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3527,14 +3910,18 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addInjectedFirstSo
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public com.google.cloud.optimization.v1.ShipmentRoute.Builder addInjectedFirstSolutionRoutesBuilder( - int index) { - return getInjectedFirstSolutionRoutesFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentRoute.Builder + addInjectedFirstSolutionRoutesBuilder(int index) { + return getInjectedFirstSolutionRoutesFieldBuilder() + .addBuilder(index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance()); } /** + * + * *
      * Guide the optimization algorithm in finding a first solution that is
      * similar to a previous solution.
@@ -3567,18 +3954,26 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addInjectedFirstSo
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - public java.util.List - getInjectedFirstSolutionRoutesBuilderList() { + public java.util.List + getInjectedFirstSolutionRoutesBuilderList() { return getInjectedFirstSolutionRoutesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute, + com.google.cloud.optimization.v1.ShipmentRoute.Builder, + com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> getInjectedFirstSolutionRoutesFieldBuilder() { if (injectedFirstSolutionRoutesBuilder_ == null) { - injectedFirstSolutionRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>( + injectedFirstSolutionRoutesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute, + com.google.cloud.optimization.v1.ShipmentRoute.Builder, + com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>( injectedFirstSolutionRoutes_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), @@ -3590,8 +3985,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addInjectedFirstSo private com.google.cloud.optimization.v1.InjectedSolutionConstraint injectedSolutionConstraint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder> injectedSolutionConstraintBuilder_; + com.google.cloud.optimization.v1.InjectedSolutionConstraint, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, + com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder> + injectedSolutionConstraintBuilder_; /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3603,13 +4003,18 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addInjectedFirstSo
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * * @return Whether the injectedSolutionConstraint field is set. */ public boolean hasInjectedSolutionConstraint() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3621,17 +4026,25 @@ public boolean hasInjectedSolutionConstraint() {
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * * @return The injectedSolutionConstraint. */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint getInjectedSolutionConstraint() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint + getInjectedSolutionConstraint() { if (injectedSolutionConstraintBuilder_ == null) { - return injectedSolutionConstraint_ == null ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() : injectedSolutionConstraint_; + return injectedSolutionConstraint_ == null + ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() + : injectedSolutionConstraint_; } else { return injectedSolutionConstraintBuilder_.getMessage(); } } /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3643,9 +4056,12 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint getInjectedSo
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ - public Builder setInjectedSolutionConstraint(com.google.cloud.optimization.v1.InjectedSolutionConstraint value) { + public Builder setInjectedSolutionConstraint( + com.google.cloud.optimization.v1.InjectedSolutionConstraint value) { if (injectedSolutionConstraintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3659,6 +4075,8 @@ public Builder setInjectedSolutionConstraint(com.google.cloud.optimization.v1.In return this; } /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3670,7 +4088,9 @@ public Builder setInjectedSolutionConstraint(com.google.cloud.optimization.v1.In
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ public Builder setInjectedSolutionConstraint( com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder builderForValue) { @@ -3684,6 +4104,8 @@ public Builder setInjectedSolutionConstraint( return this; } /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3695,13 +4117,18 @@ public Builder setInjectedSolutionConstraint(
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ - public Builder mergeInjectedSolutionConstraint(com.google.cloud.optimization.v1.InjectedSolutionConstraint value) { + public Builder mergeInjectedSolutionConstraint( + com.google.cloud.optimization.v1.InjectedSolutionConstraint value) { if (injectedSolutionConstraintBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - injectedSolutionConstraint_ != null && - injectedSolutionConstraint_ != com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && injectedSolutionConstraint_ != null + && injectedSolutionConstraint_ + != com.google.cloud.optimization.v1.InjectedSolutionConstraint + .getDefaultInstance()) { getInjectedSolutionConstraintBuilder().mergeFrom(value); } else { injectedSolutionConstraint_ = value; @@ -3714,6 +4141,8 @@ public Builder mergeInjectedSolutionConstraint(com.google.cloud.optimization.v1. return this; } /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3725,7 +4154,9 @@ public Builder mergeInjectedSolutionConstraint(com.google.cloud.optimization.v1.
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ public Builder clearInjectedSolutionConstraint() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3738,6 +4169,8 @@ public Builder clearInjectedSolutionConstraint() { return this; } /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3749,14 +4182,19 @@ public Builder clearInjectedSolutionConstraint() {
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder getInjectedSolutionConstraintBuilder() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder + getInjectedSolutionConstraintBuilder() { bitField0_ |= 0x00000040; onChanged(); return getInjectedSolutionConstraintFieldBuilder().getBuilder(); } /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3768,17 +4206,23 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder getIn
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ - public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder getInjectedSolutionConstraintOrBuilder() { + public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder + getInjectedSolutionConstraintOrBuilder() { if (injectedSolutionConstraintBuilder_ != null) { return injectedSolutionConstraintBuilder_.getMessageOrBuilder(); } else { - return injectedSolutionConstraint_ == null ? - com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() : injectedSolutionConstraint_; + return injectedSolutionConstraint_ == null + ? com.google.cloud.optimization.v1.InjectedSolutionConstraint.getDefaultInstance() + : injectedSolutionConstraint_; } } /** + * + * *
      * Constrain the optimization algorithm to find a final solution that is
      * similar to a previous solution. For example, this may be used to freeze
@@ -3790,35 +4234,48 @@ public com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder getI
      * instead.
      * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder> + com.google.cloud.optimization.v1.InjectedSolutionConstraint, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, + com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder> getInjectedSolutionConstraintFieldBuilder() { if (injectedSolutionConstraintBuilder_ == null) { - injectedSolutionConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.InjectedSolutionConstraint, com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder>( - getInjectedSolutionConstraint(), - getParentForChildren(), - isClean()); + injectedSolutionConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.InjectedSolutionConstraint, + com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder, + com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder>( + getInjectedSolutionConstraint(), getParentForChildren(), isClean()); injectedSolutionConstraint_ = null; } return injectedSolutionConstraintBuilder_; } private java.util.List refreshDetailsRoutes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRefreshDetailsRoutesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - refreshDetailsRoutes_ = new java.util.ArrayList(refreshDetailsRoutes_); + refreshDetailsRoutes_ = + new java.util.ArrayList( + refreshDetailsRoutes_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> refreshDetailsRoutesBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute, + com.google.cloud.optimization.v1.ShipmentRoute.Builder, + com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> + refreshDetailsRoutesBuilder_; /** + * + * *
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -3840,7 +4297,8 @@ private void ensureRefreshDetailsRoutesIsMutable() {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
      */
-    public java.util.List getRefreshDetailsRoutesList() {
+    public java.util.List
+        getRefreshDetailsRoutesList() {
       if (refreshDetailsRoutesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(refreshDetailsRoutes_);
       } else {
@@ -3848,6 +4306,8 @@ public java.util.List getRefresh
       }
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -3877,6 +4337,8 @@ public int getRefreshDetailsRoutesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -3906,6 +4368,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRefreshDetailsRoutes(in
       }
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -3942,6 +4406,8 @@ public Builder setRefreshDetailsRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -3975,6 +4441,8 @@ public Builder setRefreshDetailsRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4010,6 +4478,8 @@ public Builder addRefreshDetailsRoutes(com.google.cloud.optimization.v1.Shipment
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4046,6 +4516,8 @@ public Builder addRefreshDetailsRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4079,6 +4551,8 @@ public Builder addRefreshDetailsRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4112,6 +4586,8 @@ public Builder addRefreshDetailsRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4137,8 +4613,7 @@ public Builder addAllRefreshDetailsRoutes(
         java.lang.Iterable values) {
       if (refreshDetailsRoutesBuilder_ == null) {
         ensureRefreshDetailsRoutesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, refreshDetailsRoutes_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, refreshDetailsRoutes_);
         onChanged();
       } else {
         refreshDetailsRoutesBuilder_.addAllMessages(values);
@@ -4146,6 +4621,8 @@ public Builder addAllRefreshDetailsRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4178,6 +4655,8 @@ public Builder clearRefreshDetailsRoutes() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4210,6 +4689,8 @@ public Builder removeRefreshDetailsRoutes(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4236,6 +4717,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRefreshDetailsR
       return getRefreshDetailsRoutesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4260,11 +4743,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRefreshDetailsR
     public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesOrBuilder(
         int index) {
       if (refreshDetailsRoutesBuilder_ == null) {
-        return refreshDetailsRoutes_.get(index);  } else {
+        return refreshDetailsRoutes_.get(index);
+      } else {
         return refreshDetailsRoutesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4286,8 +4772,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
      */
-    public java.util.List 
-         getRefreshDetailsRoutesOrBuilderList() {
+    public java.util.List
+        getRefreshDetailsRoutesOrBuilderList() {
       if (refreshDetailsRoutesBuilder_ != null) {
         return refreshDetailsRoutesBuilder_.getMessageOrBuilderList();
       } else {
@@ -4295,6 +4781,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
       }
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4317,10 +4805,12 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetails
      * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsRoutesBuilder() {
-      return getRefreshDetailsRoutesFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+      return getRefreshDetailsRoutesFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4344,10 +4834,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsR
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsRoutesBuilder(
         int index) {
-      return getRefreshDetailsRoutesFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+      return getRefreshDetailsRoutesFieldBuilder()
+          .addBuilder(index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If non-empty, the given routes will be refreshed, without modifying their
      * underlying sequence of visits or travel times: only other details will be
@@ -4369,16 +4861,22 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsR
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
      */
-    public java.util.List 
-         getRefreshDetailsRoutesBuilderList() {
+    public java.util.List
+        getRefreshDetailsRoutesBuilderList() {
       return getRefreshDetailsRoutesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> 
+            com.google.cloud.optimization.v1.ShipmentRoute,
+            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
+            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
         getRefreshDetailsRoutesFieldBuilder() {
       if (refreshDetailsRoutesBuilder_ == null) {
-        refreshDetailsRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
+        refreshDetailsRoutesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.ShipmentRoute,
+                com.google.cloud.optimization.v1.ShipmentRoute.Builder,
+                com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
                 refreshDetailsRoutes_,
                 ((bitField0_ & 0x00000080) != 0),
                 getParentForChildren(),
@@ -4388,8 +4886,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsR
       return refreshDetailsRoutesBuilder_;
     }
 
-    private boolean interpretInjectedSolutionsUsingLabels_ ;
+    private boolean interpretInjectedSolutionsUsingLabels_;
     /**
+     *
+     *
      * 
      * If true:
      *
@@ -4459,6 +4959,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRefreshDetailsR
      * 
* * bool interpret_injected_solutions_using_labels = 10; + * * @return The interpretInjectedSolutionsUsingLabels. */ @java.lang.Override @@ -4466,6 +4967,8 @@ public boolean getInterpretInjectedSolutionsUsingLabels() { return interpretInjectedSolutionsUsingLabels_; } /** + * + * *
      * If true:
      *
@@ -4535,6 +5038,7 @@ public boolean getInterpretInjectedSolutionsUsingLabels() {
      * 
* * bool interpret_injected_solutions_using_labels = 10; + * * @param value The interpretInjectedSolutionsUsingLabels to set. * @return This builder for chaining. */ @@ -4546,6 +5050,8 @@ public Builder setInterpretInjectedSolutionsUsingLabels(boolean value) { return this; } /** + * + * *
      * If true:
      *
@@ -4615,6 +5121,7 @@ public Builder setInterpretInjectedSolutionsUsingLabels(boolean value) {
      * 
* * bool interpret_injected_solutions_using_labels = 10; + * * @return This builder for chaining. */ public Builder clearInterpretInjectedSolutionsUsingLabels() { @@ -4624,8 +5131,10 @@ public Builder clearInterpretInjectedSolutionsUsingLabels() { return this; } - private boolean considerRoadTraffic_ ; + private boolean considerRoadTraffic_; /** + * + * *
      * Consider traffic estimation in calculating `ShipmentRoute` fields
      * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -4638,6 +5147,7 @@ public Builder clearInterpretInjectedSolutionsUsingLabels() {
      * 
* * bool consider_road_traffic = 11; + * * @return The considerRoadTraffic. */ @java.lang.Override @@ -4645,6 +5155,8 @@ public boolean getConsiderRoadTraffic() { return considerRoadTraffic_; } /** + * + * *
      * Consider traffic estimation in calculating `ShipmentRoute` fields
      * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -4657,6 +5169,7 @@ public boolean getConsiderRoadTraffic() {
      * 
* * bool consider_road_traffic = 11; + * * @param value The considerRoadTraffic to set. * @return This builder for chaining. */ @@ -4668,6 +5181,8 @@ public Builder setConsiderRoadTraffic(boolean value) { return this; } /** + * + * *
      * Consider traffic estimation in calculating `ShipmentRoute` fields
      * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -4680,6 +5195,7 @@ public Builder setConsiderRoadTraffic(boolean value) {
      * 
* * bool consider_road_traffic = 11; + * * @return This builder for chaining. */ public Builder clearConsiderRoadTraffic() { @@ -4689,13 +5205,16 @@ public Builder clearConsiderRoadTraffic() { return this; } - private boolean populatePolylines_ ; + private boolean populatePolylines_; /** + * + * *
      * If true, polylines will be populated in response `ShipmentRoute`s.
      * 
* * bool populate_polylines = 12; + * * @return The populatePolylines. */ @java.lang.Override @@ -4703,11 +5222,14 @@ public boolean getPopulatePolylines() { return populatePolylines_; } /** + * + * *
      * If true, polylines will be populated in response `ShipmentRoute`s.
      * 
* * bool populate_polylines = 12; + * * @param value The populatePolylines to set. * @return This builder for chaining. */ @@ -4719,11 +5241,14 @@ public Builder setPopulatePolylines(boolean value) { return this; } /** + * + * *
      * If true, polylines will be populated in response `ShipmentRoute`s.
      * 
* * bool populate_polylines = 12; + * * @return This builder for chaining. */ public Builder clearPopulatePolylines() { @@ -4733,8 +5258,10 @@ public Builder clearPopulatePolylines() { return this; } - private boolean populateTransitionPolylines_ ; + private boolean populateTransitionPolylines_; /** + * + * *
      * If true, polylines will be populated in response
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -4743,6 +5270,7 @@ public Builder clearPopulatePolylines() {
      * 
* * bool populate_transition_polylines = 13; + * * @return The populateTransitionPolylines. */ @java.lang.Override @@ -4750,6 +5278,8 @@ public boolean getPopulateTransitionPolylines() { return populateTransitionPolylines_; } /** + * + * *
      * If true, polylines will be populated in response
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -4758,6 +5288,7 @@ public boolean getPopulateTransitionPolylines() {
      * 
* * bool populate_transition_polylines = 13; + * * @param value The populateTransitionPolylines to set. * @return This builder for chaining. */ @@ -4769,6 +5300,8 @@ public Builder setPopulateTransitionPolylines(boolean value) { return this; } /** + * + * *
      * If true, polylines will be populated in response
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -4777,6 +5310,7 @@ public Builder setPopulateTransitionPolylines(boolean value) {
      * 
* * bool populate_transition_polylines = 13; + * * @return This builder for chaining. */ public Builder clearPopulateTransitionPolylines() { @@ -4786,8 +5320,10 @@ public Builder clearPopulateTransitionPolylines() { return this; } - private boolean allowLargeDeadlineDespiteInterruptionRisk_ ; + private boolean allowLargeDeadlineDespiteInterruptionRisk_; /** + * + * *
      * If this is set, then the request can have a deadline
      * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -4797,6 +5333,7 @@ public Builder clearPopulateTransitionPolylines() {
      * 
* * bool allow_large_deadline_despite_interruption_risk = 14; + * * @return The allowLargeDeadlineDespiteInterruptionRisk. */ @java.lang.Override @@ -4804,6 +5341,8 @@ public boolean getAllowLargeDeadlineDespiteInterruptionRisk() { return allowLargeDeadlineDespiteInterruptionRisk_; } /** + * + * *
      * If this is set, then the request can have a deadline
      * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -4813,6 +5352,7 @@ public boolean getAllowLargeDeadlineDespiteInterruptionRisk() {
      * 
* * bool allow_large_deadline_despite_interruption_risk = 14; + * * @param value The allowLargeDeadlineDespiteInterruptionRisk to set. * @return This builder for chaining. */ @@ -4824,6 +5364,8 @@ public Builder setAllowLargeDeadlineDespiteInterruptionRisk(boolean value) { return this; } /** + * + * *
      * If this is set, then the request can have a deadline
      * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -4833,6 +5375,7 @@ public Builder setAllowLargeDeadlineDespiteInterruptionRisk(boolean value) {
      * 
* * bool allow_large_deadline_despite_interruption_risk = 14; + * * @return This builder for chaining. */ public Builder clearAllowLargeDeadlineDespiteInterruptionRisk() { @@ -4842,8 +5385,10 @@ public Builder clearAllowLargeDeadlineDespiteInterruptionRisk() { return this; } - private boolean useGeodesicDistances_ ; + private boolean useGeodesicDistances_; /** + * + * *
      * If true, travel distances will be computed using geodesic distances instead
      * of Google Maps distances, and travel times will be computed using geodesic
@@ -4851,6 +5396,7 @@ public Builder clearAllowLargeDeadlineDespiteInterruptionRisk() {
      * 
* * bool use_geodesic_distances = 15; + * * @return The useGeodesicDistances. */ @java.lang.Override @@ -4858,6 +5404,8 @@ public boolean getUseGeodesicDistances() { return useGeodesicDistances_; } /** + * + * *
      * If true, travel distances will be computed using geodesic distances instead
      * of Google Maps distances, and travel times will be computed using geodesic
@@ -4865,6 +5413,7 @@ public boolean getUseGeodesicDistances() {
      * 
* * bool use_geodesic_distances = 15; + * * @param value The useGeodesicDistances to set. * @return This builder for chaining. */ @@ -4876,6 +5425,8 @@ public Builder setUseGeodesicDistances(boolean value) { return this; } /** + * + * *
      * If true, travel distances will be computed using geodesic distances instead
      * of Google Maps distances, and travel times will be computed using geodesic
@@ -4883,6 +5434,7 @@ public Builder setUseGeodesicDistances(boolean value) {
      * 
* * bool use_geodesic_distances = 15; + * * @return This builder for chaining. */ public Builder clearUseGeodesicDistances() { @@ -4892,8 +5444,10 @@ public Builder clearUseGeodesicDistances() { return this; } - private double geodesicMetersPerSecond_ ; + private double geodesicMetersPerSecond_; /** + * + * *
      * When `use_geodesic_distances` is true, this field must be set and defines
      * the speed applied to compute travel times. Its value must be at least 1.0
@@ -4901,6 +5455,7 @@ public Builder clearUseGeodesicDistances() {
      * 
* * optional double geodesic_meters_per_second = 16; + * * @return Whether the geodesicMetersPerSecond field is set. */ @java.lang.Override @@ -4908,6 +5463,8 @@ public boolean hasGeodesicMetersPerSecond() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * When `use_geodesic_distances` is true, this field must be set and defines
      * the speed applied to compute travel times. Its value must be at least 1.0
@@ -4915,6 +5472,7 @@ public boolean hasGeodesicMetersPerSecond() {
      * 
* * optional double geodesic_meters_per_second = 16; + * * @return The geodesicMetersPerSecond. */ @java.lang.Override @@ -4922,6 +5480,8 @@ public double getGeodesicMetersPerSecond() { return geodesicMetersPerSecond_; } /** + * + * *
      * When `use_geodesic_distances` is true, this field must be set and defines
      * the speed applied to compute travel times. Its value must be at least 1.0
@@ -4929,6 +5489,7 @@ public double getGeodesicMetersPerSecond() {
      * 
* * optional double geodesic_meters_per_second = 16; + * * @param value The geodesicMetersPerSecond to set. * @return This builder for chaining. */ @@ -4940,6 +5501,8 @@ public Builder setGeodesicMetersPerSecond(double value) { return this; } /** + * + * *
      * When `use_geodesic_distances` is true, this field must be set and defines
      * the speed applied to compute travel times. Its value must be at least 1.0
@@ -4947,6 +5510,7 @@ public Builder setGeodesicMetersPerSecond(double value) {
      * 
* * optional double geodesic_meters_per_second = 16; + * * @return This builder for chaining. */ public Builder clearGeodesicMetersPerSecond() { @@ -4956,8 +5520,10 @@ public Builder clearGeodesicMetersPerSecond() { return this; } - private int maxValidationErrors_ ; + private int maxValidationErrors_; /** + * + * *
      * Truncates the number of validation errors returned. These errors are
      * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -4969,6 +5535,7 @@ public Builder clearGeodesicMetersPerSecond() {
      * 
* * optional int32 max_validation_errors = 5; + * * @return Whether the maxValidationErrors field is set. */ @java.lang.Override @@ -4976,6 +5543,8 @@ public boolean hasMaxValidationErrors() { return ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Truncates the number of validation errors returned. These errors are
      * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -4987,6 +5556,7 @@ public boolean hasMaxValidationErrors() {
      * 
* * optional int32 max_validation_errors = 5; + * * @return The maxValidationErrors. */ @java.lang.Override @@ -4994,6 +5564,8 @@ public int getMaxValidationErrors() { return maxValidationErrors_; } /** + * + * *
      * Truncates the number of validation errors returned. These errors are
      * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -5005,6 +5577,7 @@ public int getMaxValidationErrors() {
      * 
* * optional int32 max_validation_errors = 5; + * * @param value The maxValidationErrors to set. * @return This builder for chaining. */ @@ -5016,6 +5589,8 @@ public Builder setMaxValidationErrors(int value) { return this; } /** + * + * *
      * Truncates the number of validation errors returned. These errors are
      * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -5027,6 +5602,7 @@ public Builder setMaxValidationErrors(int value) {
      * 
* * optional int32 max_validation_errors = 5; + * * @return This builder for chaining. */ public Builder clearMaxValidationErrors() { @@ -5038,19 +5614,21 @@ public Builder clearMaxValidationErrors() { private java.lang.Object label_ = ""; /** + * + * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -5059,21 +5637,22 @@ public java.lang.String getLabel() { } } /** + * + * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -5081,30 +5660,37 @@ public java.lang.String getLabel() { } } /** + * + * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } label_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** + * + * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; + * * @return This builder for chaining. */ public Builder clearLabel() { @@ -5114,18 +5700,22 @@ public Builder clearLabel() { return this; } /** + * + * *
      * Label that may be used to identify this request, reported back in the
      * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
      * 
* * string label = 17; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00010000; @@ -5133,8 +5723,10 @@ public Builder setLabelBytes( return this; } - private boolean populateTravelStepPolylines_ ; + private boolean populateTravelStepPolylines_; /** + * + * *
      * Deprecated: Use
      * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -5145,15 +5737,19 @@ public Builder setLabelBytes(
      * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines + * is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @return The populateTravelStepPolylines. */ @java.lang.Override - @java.lang.Deprecated public boolean getPopulateTravelStepPolylines() { + @java.lang.Deprecated + public boolean getPopulateTravelStepPolylines() { return populateTravelStepPolylines_; } /** + * + * *
      * Deprecated: Use
      * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -5164,12 +5760,14 @@ public Builder setLabelBytes(
      * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines + * is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @param value The populateTravelStepPolylines to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setPopulateTravelStepPolylines(boolean value) { + @java.lang.Deprecated + public Builder setPopulateTravelStepPolylines(boolean value) { populateTravelStepPolylines_ = value; bitField0_ |= 0x00020000; @@ -5177,6 +5775,8 @@ public Builder setLabelBytes( return this; } /** + * + * *
      * Deprecated: Use
      * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -5187,19 +5787,21 @@ public Builder setLabelBytes(
      * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines + * is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearPopulateTravelStepPolylines() { + @java.lang.Deprecated + public Builder clearPopulateTravelStepPolylines() { bitField0_ = (bitField0_ & ~0x00020000); populateTravelStepPolylines_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5209,12 +5811,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursRequest) private static final com.google.cloud.optimization.v1.OptimizeToursRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursRequest(); } @@ -5223,27 +5825,27 @@ public static com.google.cloud.optimization.v1.OptimizeToursRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizeToursRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizeToursRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5258,6 +5860,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.OptimizeToursRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java similarity index 93% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java index 9091a70a2573..9f9c47d579a8 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface OptimizeToursRequestOrBuilder extends +public interface OptimizeToursRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Target project and location to make a call.
    *
@@ -17,10 +35,13 @@ public interface OptimizeToursRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Target project and location to make a call.
    *
@@ -30,12 +51,14 @@ public interface OptimizeToursRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -46,10 +69,13 @@ public interface OptimizeToursRequestOrBuilder extends
    * 
* * .google.protobuf.Duration timeout = 2; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -60,10 +86,13 @@ public interface OptimizeToursRequestOrBuilder extends
    * 
* * .google.protobuf.Duration timeout = 2; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * If this timeout is set, the server returns a response before the timeout
    * period has elapsed or the server deadline for synchronous requests is
@@ -78,24 +107,32 @@ public interface OptimizeToursRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
 
   /**
+   *
+   *
    * 
    * Shipment model to solve.
    * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; + * * @return Whether the model field is set. */ boolean hasModel(); /** + * + * *
    * Shipment model to solve.
    * 
* * .google.cloud.optimization.v1.ShipmentModel model = 3; + * * @return The model. */ com.google.cloud.optimization.v1.ShipmentModel getModel(); /** + * + * *
    * Shipment model to solve.
    * 
@@ -105,44 +142,58 @@ public interface OptimizeToursRequestOrBuilder extends com.google.cloud.optimization.v1.ShipmentModelOrBuilder getModelOrBuilder(); /** + * + * *
    * By default, the solving mode is `DEFAULT_SOLVE` (0).
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @return The enum numeric value on the wire for solvingMode. */ int getSolvingModeValue(); /** + * + * *
    * By default, the solving mode is `DEFAULT_SOLVE` (0).
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4; + * * @return The solvingMode. */ com.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode getSolvingMode(); /** + * + * *
    * Search mode used to solve the request.
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @return The enum numeric value on the wire for searchMode. */ int getSearchModeValue(); /** + * + * *
    * Search mode used to solve the request.
    * 
* * .google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6; + * * @return The searchMode. */ com.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode getSearchMode(); /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -175,11 +226,14 @@ public interface OptimizeToursRequestOrBuilder extends
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - java.util.List + java.util.List getInjectedFirstSolutionRoutesList(); /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -212,10 +266,13 @@ public interface OptimizeToursRequestOrBuilder extends
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ com.google.cloud.optimization.v1.ShipmentRoute getInjectedFirstSolutionRoutes(int index); /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -248,10 +305,13 @@ public interface OptimizeToursRequestOrBuilder extends
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ int getInjectedFirstSolutionRoutesCount(); /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -284,11 +344,14 @@ public interface OptimizeToursRequestOrBuilder extends
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ - java.util.List + java.util.List getInjectedFirstSolutionRoutesOrBuilderList(); /** + * + * *
    * Guide the optimization algorithm in finding a first solution that is
    * similar to a previous solution.
@@ -321,12 +384,15 @@ public interface OptimizeToursRequestOrBuilder extends
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7; + * */ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolutionRoutesOrBuilder( int index); /** + * + * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -338,11 +404,16 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    * instead.
    * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * * @return Whether the injectedSolutionConstraint field is set. */ boolean hasInjectedSolutionConstraint(); /** + * + * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -354,11 +425,16 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    * instead.
    * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * * @return The injectedSolutionConstraint. */ com.google.cloud.optimization.v1.InjectedSolutionConstraint getInjectedSolutionConstraint(); /** + * + * *
    * Constrain the optimization algorithm to find a final solution that is
    * similar to a previous solution. For example, this may be used to freeze
@@ -370,11 +446,16 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    * instead.
    * 
* - * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * + * .google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8; + * */ - com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder getInjectedSolutionConstraintOrBuilder(); + com.google.cloud.optimization.v1.InjectedSolutionConstraintOrBuilder + getInjectedSolutionConstraintOrBuilder(); /** + * + * *
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -396,9 +477,10 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
    */
-  java.util.List 
-      getRefreshDetailsRoutesList();
+  java.util.List getRefreshDetailsRoutesList();
   /**
+   *
+   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -422,6 +504,8 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    */
   com.google.cloud.optimization.v1.ShipmentRoute getRefreshDetailsRoutes(int index);
   /**
+   *
+   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -445,6 +529,8 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    */
   int getRefreshDetailsRoutesCount();
   /**
+   *
+   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -466,9 +552,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getInjectedFirstSolution
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
    */
-  java.util.List 
+  java.util.List
       getRefreshDetailsRoutesOrBuilderList();
   /**
+   *
+   *
    * 
    * If non-empty, the given routes will be refreshed, without modifying their
    * underlying sequence of visits or travel times: only other details will be
@@ -494,6 +582,8 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
       int index);
 
   /**
+   *
+   *
    * 
    * If true:
    *
@@ -563,11 +653,14 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool interpret_injected_solutions_using_labels = 10; + * * @return The interpretInjectedSolutionsUsingLabels. */ boolean getInterpretInjectedSolutionsUsingLabels(); /** + * + * *
    * Consider traffic estimation in calculating `ShipmentRoute` fields
    * [Transition.travel_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_duration],
@@ -580,21 +673,27 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool consider_road_traffic = 11; + * * @return The considerRoadTraffic. */ boolean getConsiderRoadTraffic(); /** + * + * *
    * If true, polylines will be populated in response `ShipmentRoute`s.
    * 
* * bool populate_polylines = 12; + * * @return The populatePolylines. */ boolean getPopulatePolylines(); /** + * + * *
    * If true, polylines will be populated in response
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions].
@@ -603,11 +702,14 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool populate_transition_polylines = 13; + * * @return The populateTransitionPolylines. */ boolean getPopulateTransitionPolylines(); /** + * + * *
    * If this is set, then the request can have a deadline
    * (see https://grpc.io/blog/deadlines) of up to 60 minutes.
@@ -617,11 +719,14 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool allow_large_deadline_despite_interruption_risk = 14; + * * @return The allowLargeDeadlineDespiteInterruptionRisk. */ boolean getAllowLargeDeadlineDespiteInterruptionRisk(); /** + * + * *
    * If true, travel distances will be computed using geodesic distances instead
    * of Google Maps distances, and travel times will be computed using geodesic
@@ -629,11 +734,14 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool use_geodesic_distances = 15; + * * @return The useGeodesicDistances. */ boolean getUseGeodesicDistances(); /** + * + * *
    * When `use_geodesic_distances` is true, this field must be set and defines
    * the speed applied to compute travel times. Its value must be at least 1.0
@@ -641,10 +749,13 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * optional double geodesic_meters_per_second = 16; + * * @return Whether the geodesicMetersPerSecond field is set. */ boolean hasGeodesicMetersPerSecond(); /** + * + * *
    * When `use_geodesic_distances` is true, this field must be set and defines
    * the speed applied to compute travel times. Its value must be at least 1.0
@@ -652,11 +763,14 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * optional double geodesic_meters_per_second = 16; + * * @return The geodesicMetersPerSecond. */ double getGeodesicMetersPerSecond(); /** + * + * *
    * Truncates the number of validation errors returned. These errors are
    * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -668,10 +782,13 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * optional int32 max_validation_errors = 5; + * * @return Whether the maxValidationErrors field is set. */ boolean hasMaxValidationErrors(); /** + * + * *
    * Truncates the number of validation errors returned. These errors are
    * typically attached to an INVALID_ARGUMENT error payload as a BadRequest
@@ -683,33 +800,41 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * optional int32 max_validation_errors = 5; + * * @return The maxValidationErrors. */ int getMaxValidationErrors(); /** + * + * *
    * Label that may be used to identify this request, reported back in the
    * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
    * 
* * string label = 17; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
    * Label that may be used to identify this request, reported back in the
    * [OptimizeToursResponse.request_label][google.cloud.optimization.v1.OptimizeToursResponse.request_label].
    * 
* * string label = 17; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
    * Deprecated: Use
    * [OptimizeToursRequest.populate_transition_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
@@ -720,9 +845,11 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRefreshDetailsRoutesO
    * 
* * bool populate_travel_step_polylines = 20 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=359 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=359 * @return The populateTravelStepPolylines. */ - @java.lang.Deprecated boolean getPopulateTravelStepPolylines(); + @java.lang.Deprecated + boolean getPopulateTravelStepPolylines(); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java similarity index 74% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java index 92f4470fa5ca..92cf83f709ef 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Response after solving a tour optimization problem containing the routes
  * followed by each vehicle, the shipments which have been skipped and the
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursResponse}
  */
-public final class OptimizeToursResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OptimizeToursResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursResponse)
     OptimizeToursResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OptimizeToursResponse.newBuilder() to construct.
   private OptimizeToursResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OptimizeToursResponse() {
     routes_ = java.util.Collections.emptyList();
     requestLabel_ = "";
@@ -30,29 +48,33 @@ private OptimizeToursResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OptimizeToursResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.OptimizeToursResponse.class, com.google.cloud.optimization.v1.OptimizeToursResponse.Builder.class);
+            com.google.cloud.optimization.v1.OptimizeToursResponse.class,
+            com.google.cloud.optimization.v1.OptimizeToursResponse.Builder.class);
   }
 
-  public interface MetricsOrBuilder extends
+  public interface MetricsOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursResponse.Metrics)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -61,10 +83,13 @@ public interface MetricsOrBuilder extends
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; + * * @return Whether the aggregatedRouteMetrics field is set. */ boolean hasAggregatedRouteMetrics(); /** + * + * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -73,10 +98,13 @@ public interface MetricsOrBuilder extends
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; + * * @return The aggregatedRouteMetrics. */ com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetrics(); /** + * + * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -86,19 +114,25 @@ public interface MetricsOrBuilder extends
      *
      * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
      */
-    com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getAggregatedRouteMetricsOrBuilder();
+    com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder
+        getAggregatedRouteMetricsOrBuilder();
 
     /**
+     *
+     *
      * 
      * Number of mandatory shipments skipped.
      * 
* * int32 skipped_mandatory_shipment_count = 2; + * * @return The skippedMandatoryShipmentCount. */ int getSkippedMandatoryShipmentCount(); /** + * + * *
      * Number of vehicles used. Note: if a vehicle route is empty and
      * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -106,11 +140,14 @@ public interface MetricsOrBuilder extends
      * 
* * int32 used_vehicle_count = 3; + * * @return The usedVehicleCount. */ int getUsedVehicleCount(); /** + * + * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -118,10 +155,13 @@ public interface MetricsOrBuilder extends
      * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; + * * @return Whether the earliestVehicleStartTime field is set. */ boolean hasEarliestVehicleStartTime(); /** + * + * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -129,10 +169,13 @@ public interface MetricsOrBuilder extends
      * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; + * * @return The earliestVehicleStartTime. */ com.google.protobuf.Timestamp getEarliestVehicleStartTime(); /** + * + * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -144,6 +187,8 @@ public interface MetricsOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -151,10 +196,13 @@ public interface MetricsOrBuilder extends
      * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; + * * @return Whether the latestVehicleEndTime field is set. */ boolean hasLatestVehicleEndTime(); /** + * + * *
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -162,10 +210,13 @@ public interface MetricsOrBuilder extends
      * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; + * * @return The latestVehicleEndTime. */ com.google.protobuf.Timestamp getLatestVehicleEndTime(); /** + * + * *
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -177,6 +228,8 @@ public interface MetricsOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -193,6 +246,8 @@ public interface MetricsOrBuilder extends
      */
     int getCostsCount();
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -207,15 +262,13 @@ public interface MetricsOrBuilder extends
      *
      * map<string, double> costs = 10;
      */
-    boolean containsCosts(
-        java.lang.String key);
-    /**
-     * Use {@link #getCostsMap()} instead.
-     */
+    boolean containsCosts(java.lang.String key);
+    /** Use {@link #getCostsMap()} instead. */
     @java.lang.Deprecated
-    java.util.Map
-    getCosts();
+    java.util.Map getCosts();
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -230,9 +283,10 @@ boolean containsCosts(
      *
      * map<string, double> costs = 10;
      */
-    java.util.Map
-    getCostsMap();
+    java.util.Map getCostsMap();
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -247,10 +301,10 @@ boolean containsCosts(
      *
      * map<string, double> costs = 10;
      */
-    double getCostsOrDefault(
-        java.lang.String key,
-        double defaultValue);
+    double getCostsOrDefault(java.lang.String key, double defaultValue);
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -265,73 +319,79 @@ boolean containsCosts(
      *
      * map<string, double> costs = 10;
      */
-    double getCostsOrThrow(
-        java.lang.String key);
+    double getCostsOrThrow(java.lang.String key);
 
     /**
+     *
+     *
      * 
      * Total cost of the solution. The sum of all values in the costs map.
      * 
* * double total_cost = 6; + * * @return The totalCost. */ double getTotalCost(); } /** + * + * *
    * Overall metrics, aggregated over all routes.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursResponse.Metrics} */ - public static final class Metrics extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Metrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursResponse.Metrics) MetricsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Metrics.newBuilder() to construct. private Metrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Metrics() { - } + + private Metrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Metrics(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.class, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.class, + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder.class); } public static final int AGGREGATED_ROUTE_METRICS_FIELD_NUMBER = 1; private com.google.cloud.optimization.v1.AggregatedMetrics aggregatedRouteMetrics_; /** + * + * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -340,6 +400,7 @@ protected com.google.protobuf.MapField internalGetMapField(
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; + * * @return Whether the aggregatedRouteMetrics field is set. */ @java.lang.Override @@ -347,6 +408,8 @@ public boolean hasAggregatedRouteMetrics() { return aggregatedRouteMetrics_ != null; } /** + * + * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -355,13 +418,18 @@ public boolean hasAggregatedRouteMetrics() {
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; + * * @return The aggregatedRouteMetrics. */ @java.lang.Override public com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetrics() { - return aggregatedRouteMetrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : aggregatedRouteMetrics_; + return aggregatedRouteMetrics_ == null + ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() + : aggregatedRouteMetrics_; } /** + * + * *
      * Aggregated over the routes. Each metric is the sum (or max, for loads)
      * over all
@@ -372,18 +440,24 @@ public com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetr
      * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
      */
     @java.lang.Override
-    public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getAggregatedRouteMetricsOrBuilder() {
-      return aggregatedRouteMetrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : aggregatedRouteMetrics_;
+    public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder
+        getAggregatedRouteMetricsOrBuilder() {
+      return aggregatedRouteMetrics_ == null
+          ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()
+          : aggregatedRouteMetrics_;
     }
 
     public static final int SKIPPED_MANDATORY_SHIPMENT_COUNT_FIELD_NUMBER = 2;
     private int skippedMandatoryShipmentCount_ = 0;
     /**
+     *
+     *
      * 
      * Number of mandatory shipments skipped.
      * 
* * int32 skipped_mandatory_shipment_count = 2; + * * @return The skippedMandatoryShipmentCount. */ @java.lang.Override @@ -394,6 +468,8 @@ public int getSkippedMandatoryShipmentCount() { public static final int USED_VEHICLE_COUNT_FIELD_NUMBER = 3; private int usedVehicleCount_ = 0; /** + * + * *
      * Number of vehicles used. Note: if a vehicle route is empty and
      * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -401,6 +477,7 @@ public int getSkippedMandatoryShipmentCount() {
      * 
* * int32 used_vehicle_count = 3; + * * @return The usedVehicleCount. */ @java.lang.Override @@ -411,6 +488,8 @@ public int getUsedVehicleCount() { public static final int EARLIEST_VEHICLE_START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp earliestVehicleStartTime_; /** + * + * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -418,6 +497,7 @@ public int getUsedVehicleCount() {
      * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; + * * @return Whether the earliestVehicleStartTime field is set. */ @java.lang.Override @@ -425,6 +505,8 @@ public boolean hasEarliestVehicleStartTime() { return earliestVehicleStartTime_ != null; } /** + * + * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -432,13 +514,18 @@ public boolean hasEarliestVehicleStartTime() {
      * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; + * * @return The earliestVehicleStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEarliestVehicleStartTime() { - return earliestVehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVehicleStartTime_; + return earliestVehicleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestVehicleStartTime_; } /** + * + * *
      * The earliest start time for a used vehicle, computed as the minimum over
      * all used vehicles of
@@ -449,12 +536,16 @@ public com.google.protobuf.Timestamp getEarliestVehicleStartTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuilder() {
-      return earliestVehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVehicleStartTime_;
+      return earliestVehicleStartTime_ == null
+          ? com.google.protobuf.Timestamp.getDefaultInstance()
+          : earliestVehicleStartTime_;
     }
 
     public static final int LATEST_VEHICLE_END_TIME_FIELD_NUMBER = 5;
     private com.google.protobuf.Timestamp latestVehicleEndTime_;
     /**
+     *
+     *
      * 
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -462,6 +553,7 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
      * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; + * * @return Whether the latestVehicleEndTime field is set. */ @java.lang.Override @@ -469,6 +561,8 @@ public boolean hasLatestVehicleEndTime() { return latestVehicleEndTime_ != null; } /** + * + * *
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -476,13 +570,18 @@ public boolean hasLatestVehicleEndTime() {
      * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; + * * @return The latestVehicleEndTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLatestVehicleEndTime() { - return latestVehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestVehicleEndTime_; + return latestVehicleEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestVehicleEndTime_; } /** + * + * *
      * The latest end time for a used vehicle, computed as the maximum over all
      * used vehicles of
@@ -493,36 +592,40 @@ public com.google.protobuf.Timestamp getLatestVehicleEndTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder() {
-      return latestVehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestVehicleEndTime_;
+      return latestVehicleEndTime_ == null
+          ? com.google.protobuf.Timestamp.getDefaultInstance()
+          : latestVehicleEndTime_;
     }
 
     public static final int COSTS_FIELD_NUMBER = 10;
+
     private static final class CostsDefaultEntryHolder {
-      static final com.google.protobuf.MapEntry<
-          java.lang.String, java.lang.Double> defaultEntry =
-              com.google.protobuf.MapEntry
-              .newDefaultInstance(
-                  com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor, 
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "",
-                  com.google.protobuf.WireFormat.FieldType.DOUBLE,
-                  0D);
+      static final com.google.protobuf.MapEntry defaultEntry =
+          com.google.protobuf.MapEntry.newDefaultInstance(
+              com.google.cloud.optimization.v1.FleetRoutingProto
+                  .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor,
+              com.google.protobuf.WireFormat.FieldType.STRING,
+              "",
+              com.google.protobuf.WireFormat.FieldType.DOUBLE,
+              0D);
     }
+
     @SuppressWarnings("serial")
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.Double> costs_;
-    private com.google.protobuf.MapField
-    internalGetCosts() {
+    private com.google.protobuf.MapField costs_;
+
+    private com.google.protobuf.MapField internalGetCosts() {
       if (costs_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            CostsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry);
       }
       return costs_;
     }
+
     public int getCostsCount() {
       return internalGetCosts().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -538,20 +641,21 @@ public int getCostsCount() {
      * map<string, double> costs = 10;
      */
     @java.lang.Override
-    public boolean containsCosts(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsCosts(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetCosts().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getCostsMap()} instead.
-     */
+    /** Use {@link #getCostsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getCosts() {
       return getCostsMap();
     }
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -571,6 +675,8 @@ public java.util.Map getCostsMap() {
       return internalGetCosts().getMap();
     }
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -586,15 +692,16 @@ public java.util.Map getCostsMap() {
      * map<string, double> costs = 10;
      */
     @java.lang.Override
-    public double getCostsOrDefault(
-        java.lang.String key,
-        double defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetCosts().getMap();
+    public double getCostsOrDefault(java.lang.String key, double defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetCosts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Cost of the solution, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -610,11 +717,11 @@ public double getCostsOrDefault(
      * map<string, double> costs = 10;
      */
     @java.lang.Override
-    public double getCostsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetCosts().getMap();
+    public double getCostsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetCosts().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -624,11 +731,14 @@ public double getCostsOrThrow(
     public static final int TOTAL_COST_FIELD_NUMBER = 6;
     private double totalCost_ = 0D;
     /**
+     *
+     *
      * 
      * Total cost of the solution. The sum of all values in the costs map.
      * 
* * double total_cost = 6; + * * @return The totalCost. */ @java.lang.Override @@ -637,6 +747,7 @@ public double getTotalCost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -648,8 +759,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (aggregatedRouteMetrics_ != null) { output.writeMessage(1, getAggregatedRouteMetrics()); } @@ -668,12 +778,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { output.writeDouble(6, totalCost_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCosts(), - CostsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCosts(), CostsDefaultEntryHolder.defaultEntry, 10); getUnknownFields().writeTo(output); } @@ -684,38 +790,39 @@ public int getSerializedSize() { size = 0; if (aggregatedRouteMetrics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAggregatedRouteMetrics()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getAggregatedRouteMetrics()); } if (skippedMandatoryShipmentCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, skippedMandatoryShipmentCount_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 2, skippedMandatoryShipmentCount_); } if (usedVehicleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, usedVehicleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, usedVehicleCount_); } if (earliestVehicleStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getEarliestVehicleStartTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getEarliestVehicleStartTime()); } if (latestVehicleEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLatestVehicleEndTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLatestVehicleEndTime()); } if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(6, totalCost_); - } - for (java.util.Map.Entry entry - : internalGetCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry - costs__ = CostsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, costs__); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, totalCost_); + } + for (java.util.Map.Entry entry : + internalGetCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry costs__ = + CostsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, costs__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -725,37 +832,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics other = (com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics) obj; + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics other = + (com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics) obj; if (hasAggregatedRouteMetrics() != other.hasAggregatedRouteMetrics()) return false; if (hasAggregatedRouteMetrics()) { - if (!getAggregatedRouteMetrics() - .equals(other.getAggregatedRouteMetrics())) return false; + if (!getAggregatedRouteMetrics().equals(other.getAggregatedRouteMetrics())) return false; } - if (getSkippedMandatoryShipmentCount() - != other.getSkippedMandatoryShipmentCount()) return false; - if (getUsedVehicleCount() - != other.getUsedVehicleCount()) return false; + if (getSkippedMandatoryShipmentCount() != other.getSkippedMandatoryShipmentCount()) + return false; + if (getUsedVehicleCount() != other.getUsedVehicleCount()) return false; if (hasEarliestVehicleStartTime() != other.hasEarliestVehicleStartTime()) return false; if (hasEarliestVehicleStartTime()) { - if (!getEarliestVehicleStartTime() - .equals(other.getEarliestVehicleStartTime())) return false; + if (!getEarliestVehicleStartTime().equals(other.getEarliestVehicleStartTime())) + return false; } if (hasLatestVehicleEndTime() != other.hasLatestVehicleEndTime()) return false; if (hasLatestVehicleEndTime()) { - if (!getLatestVehicleEndTime() - .equals(other.getLatestVehicleEndTime())) return false; + if (!getLatestVehicleEndTime().equals(other.getLatestVehicleEndTime())) return false; } - if (!internalGetCosts().equals( - other.internalGetCosts())) return false; + if (!internalGetCosts().equals(other.internalGetCosts())) return false; if (java.lang.Double.doubleToLongBits(getTotalCost()) - != java.lang.Double.doubleToLongBits( - other.getTotalCost())) return false; + != java.lang.Double.doubleToLongBits(other.getTotalCost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -788,97 +891,104 @@ public int hashCode() { hash = (53 * hash) + internalGetCosts().hashCode(); } hash = (37 * hash) + TOTAL_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTotalCost())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTotalCost())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -888,61 +998,61 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Overall metrics, aggregated over all routes.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursResponse.Metrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursResponse.Metrics) com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 10: return internalGetCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 10: return internalGetMutableCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.class, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.class, + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder.class); } // Construct using com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -970,13 +1080,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics + getDefaultInstanceForType() { return com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance(); } @@ -991,18 +1102,23 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics build() { @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics buildPartial() { - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics result = new com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics result = + new com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics result) { + private void buildPartial0( + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.aggregatedRouteMetrics_ = aggregatedRouteMetricsBuilder_ == null - ? aggregatedRouteMetrics_ - : aggregatedRouteMetricsBuilder_.build(); + result.aggregatedRouteMetrics_ = + aggregatedRouteMetricsBuilder_ == null + ? aggregatedRouteMetrics_ + : aggregatedRouteMetricsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.skippedMandatoryShipmentCount_ = skippedMandatoryShipmentCount_; @@ -1011,14 +1127,16 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRespons result.usedVehicleCount_ = usedVehicleCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.earliestVehicleStartTime_ = earliestVehicleStartTimeBuilder_ == null - ? earliestVehicleStartTime_ - : earliestVehicleStartTimeBuilder_.build(); + result.earliestVehicleStartTime_ = + earliestVehicleStartTimeBuilder_ == null + ? earliestVehicleStartTime_ + : earliestVehicleStartTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.latestVehicleEndTime_ = latestVehicleEndTimeBuilder_ == null - ? latestVehicleEndTime_ - : latestVehicleEndTimeBuilder_.build(); + result.latestVehicleEndTime_ = + latestVehicleEndTimeBuilder_ == null + ? latestVehicleEndTime_ + : latestVehicleEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.costs_ = internalGetCosts(); @@ -1033,46 +1151,52 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRespons public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics) { - return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics)other); + return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics other) { - if (other == com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics other) { + if (other + == com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance()) + return this; if (other.hasAggregatedRouteMetrics()) { mergeAggregatedRouteMetrics(other.getAggregatedRouteMetrics()); } @@ -1088,8 +1212,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse. if (other.hasLatestVehicleEndTime()) { mergeLatestVehicleEndTime(other.getLatestVehicleEndTime()); } - internalGetMutableCosts().mergeFrom( - other.internalGetCosts()); + internalGetMutableCosts().mergeFrom(other.internalGetCosts()); bitField0_ |= 0x00000020; if (other.getTotalCost() != 0D) { setTotalCost(other.getTotalCost()); @@ -1120,57 +1243,64 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAggregatedRouteMetricsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - skippedMandatoryShipmentCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - usedVehicleCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getEarliestVehicleStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getLatestVehicleEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 49: { - totalCost_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 49 - case 82: { - com.google.protobuf.MapEntry - costs__ = input.readMessage( - CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCosts().getMutableMap().put( - costs__.getKey(), costs__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getAggregatedRouteMetricsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + skippedMandatoryShipmentCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + usedVehicleCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getEarliestVehicleStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getLatestVehicleEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 49: + { + totalCost_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 49 + case 82: + { + com.google.protobuf.MapEntry costs__ = + input.readMessage( + CostsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableCosts() + .getMutableMap() + .put(costs__.getKey(), costs__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1180,12 +1310,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.optimization.v1.AggregatedMetrics aggregatedRouteMetrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> aggregatedRouteMetricsBuilder_; + com.google.cloud.optimization.v1.AggregatedMetrics, + com.google.cloud.optimization.v1.AggregatedMetrics.Builder, + com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> + aggregatedRouteMetricsBuilder_; /** + * + * *
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1194,12 +1330,15 @@ public Builder mergeFrom(
        * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; + * * @return Whether the aggregatedRouteMetrics field is set. */ public boolean hasAggregatedRouteMetrics() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1208,16 +1347,21 @@ public boolean hasAggregatedRouteMetrics() {
        * 
* * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1; + * * @return The aggregatedRouteMetrics. */ public com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetrics() { if (aggregatedRouteMetricsBuilder_ == null) { - return aggregatedRouteMetrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : aggregatedRouteMetrics_; + return aggregatedRouteMetrics_ == null + ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() + : aggregatedRouteMetrics_; } else { return aggregatedRouteMetricsBuilder_.getMessage(); } } /** + * + * *
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1227,7 +1371,8 @@ public com.google.cloud.optimization.v1.AggregatedMetrics getAggregatedRouteMetr
        *
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
-      public Builder setAggregatedRouteMetrics(com.google.cloud.optimization.v1.AggregatedMetrics value) {
+      public Builder setAggregatedRouteMetrics(
+          com.google.cloud.optimization.v1.AggregatedMetrics value) {
         if (aggregatedRouteMetricsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1241,6 +1386,8 @@ public Builder setAggregatedRouteMetrics(com.google.cloud.optimization.v1.Aggreg
         return this;
       }
       /**
+       *
+       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1262,6 +1409,8 @@ public Builder setAggregatedRouteMetrics(
         return this;
       }
       /**
+       *
+       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1271,11 +1420,13 @@ public Builder setAggregatedRouteMetrics(
        *
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
-      public Builder mergeAggregatedRouteMetrics(com.google.cloud.optimization.v1.AggregatedMetrics value) {
+      public Builder mergeAggregatedRouteMetrics(
+          com.google.cloud.optimization.v1.AggregatedMetrics value) {
         if (aggregatedRouteMetricsBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            aggregatedRouteMetrics_ != null &&
-            aggregatedRouteMetrics_ != com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && aggregatedRouteMetrics_ != null
+              && aggregatedRouteMetrics_
+                  != com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) {
             getAggregatedRouteMetricsBuilder().mergeFrom(value);
           } else {
             aggregatedRouteMetrics_ = value;
@@ -1288,6 +1439,8 @@ public Builder mergeAggregatedRouteMetrics(com.google.cloud.optimization.v1.Aggr
         return this;
       }
       /**
+       *
+       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1308,6 +1461,8 @@ public Builder clearAggregatedRouteMetrics() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1317,12 +1472,15 @@ public Builder clearAggregatedRouteMetrics() {
        *
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
-      public com.google.cloud.optimization.v1.AggregatedMetrics.Builder getAggregatedRouteMetricsBuilder() {
+      public com.google.cloud.optimization.v1.AggregatedMetrics.Builder
+          getAggregatedRouteMetricsBuilder() {
         bitField0_ |= 0x00000001;
         onChanged();
         return getAggregatedRouteMetricsFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1332,15 +1490,19 @@ public com.google.cloud.optimization.v1.AggregatedMetrics.Builder getAggregatedR
        *
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
-      public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getAggregatedRouteMetricsOrBuilder() {
+      public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder
+          getAggregatedRouteMetricsOrBuilder() {
         if (aggregatedRouteMetricsBuilder_ != null) {
           return aggregatedRouteMetricsBuilder_.getMessageOrBuilder();
         } else {
-          return aggregatedRouteMetrics_ == null ?
-              com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : aggregatedRouteMetrics_;
+          return aggregatedRouteMetrics_ == null
+              ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()
+              : aggregatedRouteMetrics_;
         }
       }
       /**
+       *
+       *
        * 
        * Aggregated over the routes. Each metric is the sum (or max, for loads)
        * over all
@@ -1351,26 +1513,32 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getAggregated
        * .google.cloud.optimization.v1.AggregatedMetrics aggregated_route_metrics = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> 
+              com.google.cloud.optimization.v1.AggregatedMetrics,
+              com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
+              com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>
           getAggregatedRouteMetricsFieldBuilder() {
         if (aggregatedRouteMetricsBuilder_ == null) {
-          aggregatedRouteMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>(
-                  getAggregatedRouteMetrics(),
-                  getParentForChildren(),
-                  isClean());
+          aggregatedRouteMetricsBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.optimization.v1.AggregatedMetrics,
+                  com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
+                  com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>(
+                  getAggregatedRouteMetrics(), getParentForChildren(), isClean());
           aggregatedRouteMetrics_ = null;
         }
         return aggregatedRouteMetricsBuilder_;
       }
 
-      private int skippedMandatoryShipmentCount_ ;
+      private int skippedMandatoryShipmentCount_;
       /**
+       *
+       *
        * 
        * Number of mandatory shipments skipped.
        * 
* * int32 skipped_mandatory_shipment_count = 2; + * * @return The skippedMandatoryShipmentCount. */ @java.lang.Override @@ -1378,11 +1546,14 @@ public int getSkippedMandatoryShipmentCount() { return skippedMandatoryShipmentCount_; } /** + * + * *
        * Number of mandatory shipments skipped.
        * 
* * int32 skipped_mandatory_shipment_count = 2; + * * @param value The skippedMandatoryShipmentCount to set. * @return This builder for chaining. */ @@ -1394,11 +1565,14 @@ public Builder setSkippedMandatoryShipmentCount(int value) { return this; } /** + * + * *
        * Number of mandatory shipments skipped.
        * 
* * int32 skipped_mandatory_shipment_count = 2; + * * @return This builder for chaining. */ public Builder clearSkippedMandatoryShipmentCount() { @@ -1408,8 +1582,10 @@ public Builder clearSkippedMandatoryShipmentCount() { return this; } - private int usedVehicleCount_ ; + private int usedVehicleCount_; /** + * + * *
        * Number of vehicles used. Note: if a vehicle route is empty and
        * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -1417,6 +1593,7 @@ public Builder clearSkippedMandatoryShipmentCount() {
        * 
* * int32 used_vehicle_count = 3; + * * @return The usedVehicleCount. */ @java.lang.Override @@ -1424,6 +1601,8 @@ public int getUsedVehicleCount() { return usedVehicleCount_; } /** + * + * *
        * Number of vehicles used. Note: if a vehicle route is empty and
        * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -1431,6 +1610,7 @@ public int getUsedVehicleCount() {
        * 
* * int32 used_vehicle_count = 3; + * * @param value The usedVehicleCount to set. * @return This builder for chaining. */ @@ -1442,6 +1622,8 @@ public Builder setUsedVehicleCount(int value) { return this; } /** + * + * *
        * Number of vehicles used. Note: if a vehicle route is empty and
        * [Vehicle.used_if_route_is_empty][google.cloud.optimization.v1.Vehicle.used_if_route_is_empty]
@@ -1449,6 +1631,7 @@ public Builder setUsedVehicleCount(int value) {
        * 
* * int32 used_vehicle_count = 3; + * * @return This builder for chaining. */ public Builder clearUsedVehicleCount() { @@ -1460,8 +1643,13 @@ public Builder clearUsedVehicleCount() { private com.google.protobuf.Timestamp earliestVehicleStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestVehicleStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + earliestVehicleStartTimeBuilder_; /** + * + * *
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1469,12 +1657,15 @@ public Builder clearUsedVehicleCount() {
        * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; + * * @return Whether the earliestVehicleStartTime field is set. */ public boolean hasEarliestVehicleStartTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1482,16 +1673,21 @@ public boolean hasEarliestVehicleStartTime() {
        * 
* * .google.protobuf.Timestamp earliest_vehicle_start_time = 4; + * * @return The earliestVehicleStartTime. */ public com.google.protobuf.Timestamp getEarliestVehicleStartTime() { if (earliestVehicleStartTimeBuilder_ == null) { - return earliestVehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestVehicleStartTime_; + return earliestVehicleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestVehicleStartTime_; } else { return earliestVehicleStartTimeBuilder_.getMessage(); } } /** + * + * *
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1514,6 +1710,8 @@ public Builder setEarliestVehicleStartTime(com.google.protobuf.Timestamp value)
         return this;
       }
       /**
+       *
+       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1534,6 +1732,8 @@ public Builder setEarliestVehicleStartTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1544,9 +1744,9 @@ public Builder setEarliestVehicleStartTime(
        */
       public Builder mergeEarliestVehicleStartTime(com.google.protobuf.Timestamp value) {
         if (earliestVehicleStartTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0) &&
-            earliestVehicleStartTime_ != null &&
-            earliestVehicleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0)
+              && earliestVehicleStartTime_ != null
+              && earliestVehicleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getEarliestVehicleStartTimeBuilder().mergeFrom(value);
           } else {
             earliestVehicleStartTime_ = value;
@@ -1559,6 +1759,8 @@ public Builder mergeEarliestVehicleStartTime(com.google.protobuf.Timestamp value
         return this;
       }
       /**
+       *
+       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1578,6 +1780,8 @@ public Builder clearEarliestVehicleStartTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1592,6 +1796,8 @@ public com.google.protobuf.Timestamp.Builder getEarliestVehicleStartTimeBuilder(
         return getEarliestVehicleStartTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1604,11 +1810,14 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
         if (earliestVehicleStartTimeBuilder_ != null) {
           return earliestVehicleStartTimeBuilder_.getMessageOrBuilder();
         } else {
-          return earliestVehicleStartTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : earliestVehicleStartTime_;
+          return earliestVehicleStartTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : earliestVehicleStartTime_;
         }
       }
       /**
+       *
+       *
        * 
        * The earliest start time for a used vehicle, computed as the minimum over
        * all used vehicles of
@@ -1618,14 +1827,17 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
        * .google.protobuf.Timestamp earliest_vehicle_start_time = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getEarliestVehicleStartTimeFieldBuilder() {
         if (earliestVehicleStartTimeBuilder_ == null) {
-          earliestVehicleStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getEarliestVehicleStartTime(),
-                  getParentForChildren(),
-                  isClean());
+          earliestVehicleStartTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getEarliestVehicleStartTime(), getParentForChildren(), isClean());
           earliestVehicleStartTime_ = null;
         }
         return earliestVehicleStartTimeBuilder_;
@@ -1633,8 +1845,13 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
 
       private com.google.protobuf.Timestamp latestVehicleEndTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> latestVehicleEndTimeBuilder_;
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
+          latestVehicleEndTimeBuilder_;
       /**
+       *
+       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1642,12 +1859,15 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVehicleStartTimeOrBuild
        * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; + * * @return Whether the latestVehicleEndTime field is set. */ public boolean hasLatestVehicleEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1655,16 +1875,21 @@ public boolean hasLatestVehicleEndTime() {
        * 
* * .google.protobuf.Timestamp latest_vehicle_end_time = 5; + * * @return The latestVehicleEndTime. */ public com.google.protobuf.Timestamp getLatestVehicleEndTime() { if (latestVehicleEndTimeBuilder_ == null) { - return latestVehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestVehicleEndTime_; + return latestVehicleEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestVehicleEndTime_; } else { return latestVehicleEndTimeBuilder_.getMessage(); } } /** + * + * *
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1687,6 +1912,8 @@ public Builder setLatestVehicleEndTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1707,6 +1934,8 @@ public Builder setLatestVehicleEndTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1717,9 +1946,9 @@ public Builder setLatestVehicleEndTime(
        */
       public Builder mergeLatestVehicleEndTime(com.google.protobuf.Timestamp value) {
         if (latestVehicleEndTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000010) != 0) &&
-            latestVehicleEndTime_ != null &&
-            latestVehicleEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000010) != 0)
+              && latestVehicleEndTime_ != null
+              && latestVehicleEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getLatestVehicleEndTimeBuilder().mergeFrom(value);
           } else {
             latestVehicleEndTime_ = value;
@@ -1732,6 +1961,8 @@ public Builder mergeLatestVehicleEndTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1751,6 +1982,8 @@ public Builder clearLatestVehicleEndTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1765,6 +1998,8 @@ public com.google.protobuf.Timestamp.Builder getLatestVehicleEndTimeBuilder() {
         return getLatestVehicleEndTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1777,11 +2012,14 @@ public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder()
         if (latestVehicleEndTimeBuilder_ != null) {
           return latestVehicleEndTimeBuilder_.getMessageOrBuilder();
         } else {
-          return latestVehicleEndTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : latestVehicleEndTime_;
+          return latestVehicleEndTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : latestVehicleEndTime_;
         }
       }
       /**
+       *
+       *
        * 
        * The latest end time for a used vehicle, computed as the maximum over all
        * used vehicles of
@@ -1791,34 +2029,35 @@ public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder()
        * .google.protobuf.Timestamp latest_vehicle_end_time = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getLatestVehicleEndTimeFieldBuilder() {
         if (latestVehicleEndTimeBuilder_ == null) {
-          latestVehicleEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getLatestVehicleEndTime(),
-                  getParentForChildren(),
-                  isClean());
+          latestVehicleEndTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getLatestVehicleEndTime(), getParentForChildren(), isClean());
           latestVehicleEndTime_ = null;
         }
         return latestVehicleEndTimeBuilder_;
       }
 
-      private com.google.protobuf.MapField<
-          java.lang.String, java.lang.Double> costs_;
-      private com.google.protobuf.MapField
-          internalGetCosts() {
+      private com.google.protobuf.MapField costs_;
+
+      private com.google.protobuf.MapField internalGetCosts() {
         if (costs_ == null) {
-          return com.google.protobuf.MapField.emptyMapField(
-              CostsDefaultEntryHolder.defaultEntry);
+          return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry);
         }
         return costs_;
       }
+
       private com.google.protobuf.MapField
           internalGetMutableCosts() {
         if (costs_ == null) {
-          costs_ = com.google.protobuf.MapField.newMapField(
-              CostsDefaultEntryHolder.defaultEntry);
+          costs_ = com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry);
         }
         if (!costs_.isMutable()) {
           costs_ = costs_.copy();
@@ -1827,10 +2066,13 @@ public com.google.protobuf.TimestampOrBuilder getLatestVehicleEndTimeOrBuilder()
         onChanged();
         return costs_;
       }
+
       public int getCostsCount() {
         return internalGetCosts().getMap().size();
       }
       /**
+       *
+       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -1846,20 +2088,21 @@ public int getCostsCount() {
        * map<string, double> costs = 10;
        */
       @java.lang.Override
-      public boolean containsCosts(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
+      public boolean containsCosts(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         return internalGetCosts().getMap().containsKey(key);
       }
-      /**
-       * Use {@link #getCostsMap()} instead.
-       */
+      /** Use {@link #getCostsMap()} instead. */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getCosts() {
         return getCostsMap();
       }
       /**
+       *
+       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -1879,6 +2122,8 @@ public java.util.Map getCostsMap() {
         return internalGetCosts().getMap();
       }
       /**
+       *
+       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -1894,15 +2139,16 @@ public java.util.Map getCostsMap() {
        * map<string, double> costs = 10;
        */
       @java.lang.Override
-      public double getCostsOrDefault(
-          java.lang.String key,
-          double defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetCosts().getMap();
+      public double getCostsOrDefault(java.lang.String key, double defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map map = internalGetCosts().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -1918,23 +2164,25 @@ public double getCostsOrDefault(
        * map<string, double> costs = 10;
        */
       @java.lang.Override
-      public double getCostsOrThrow(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetCosts().getMap();
+      public double getCostsOrThrow(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map map = internalGetCosts().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
         return map.get(key);
       }
+
       public Builder clearCosts() {
         bitField0_ = (bitField0_ & ~0x00000020);
-        internalGetMutableCosts().getMutableMap()
-            .clear();
+        internalGetMutableCosts().getMutableMap().clear();
         return this;
       }
       /**
+       *
+       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -1949,23 +2197,22 @@ public Builder clearCosts() {
        *
        * map<string, double> costs = 10;
        */
-      public Builder removeCosts(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        internalGetMutableCosts().getMutableMap()
-            .remove(key);
+      public Builder removeCosts(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        internalGetMutableCosts().getMutableMap().remove(key);
         return this;
       }
-      /**
-       * Use alternate mutation accessors instead.
-       */
+      /** Use alternate mutation accessors instead. */
       @java.lang.Deprecated
-      public java.util.Map
-          getMutableCosts() {
+      public java.util.Map getMutableCosts() {
         bitField0_ |= 0x00000020;
         return internalGetMutableCosts().getMutableMap();
       }
       /**
+       *
+       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -1980,17 +2227,18 @@ public Builder removeCosts(
        *
        * map<string, double> costs = 10;
        */
-      public Builder putCosts(
-          java.lang.String key,
-          double value) {
-        if (key == null) { throw new NullPointerException("map key"); }
+      public Builder putCosts(java.lang.String key, double value) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
 
-        internalGetMutableCosts().getMutableMap()
-            .put(key, value);
+        internalGetMutableCosts().getMutableMap().put(key, value);
         bitField0_ |= 0x00000020;
         return this;
       }
       /**
+       *
+       *
        * 
        * Cost of the solution, broken down by cost-related request fields.
        * The keys are proto paths, relative to the input OptimizeToursRequest,
@@ -2005,21 +2253,22 @@ public Builder putCosts(
        *
        * map<string, double> costs = 10;
        */
-      public Builder putAllCosts(
-          java.util.Map values) {
-        internalGetMutableCosts().getMutableMap()
-            .putAll(values);
+      public Builder putAllCosts(java.util.Map values) {
+        internalGetMutableCosts().getMutableMap().putAll(values);
         bitField0_ |= 0x00000020;
         return this;
       }
 
-      private double totalCost_ ;
+      private double totalCost_;
       /**
+       *
+       *
        * 
        * Total cost of the solution. The sum of all values in the costs map.
        * 
* * double total_cost = 6; + * * @return The totalCost. */ @java.lang.Override @@ -2027,11 +2276,14 @@ public double getTotalCost() { return totalCost_; } /** + * + * *
        * Total cost of the solution. The sum of all values in the costs map.
        * 
* * double total_cost = 6; + * * @param value The totalCost to set. * @return This builder for chaining. */ @@ -2043,11 +2295,14 @@ public Builder setTotalCost(double value) { return this; } /** + * + * *
        * Total cost of the solution. The sum of all values in the costs map.
        * 
* * double total_cost = 6; + * * @return This builder for chaining. */ public Builder clearTotalCost() { @@ -2056,6 +2311,7 @@ public Builder clearTotalCost() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2068,41 +2324,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursResponse.Metrics) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursResponse.Metrics) - private static final com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics(); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getDefaultInstance() { + public static com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2114,16 +2373,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ROUTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List routes_; /** + * + * *
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2136,6 +2398,8 @@ public java.util.List getRoutesL
     return routes_;
   }
   /**
+   *
+   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2144,11 +2408,13 @@ public java.util.List getRoutesL
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRoutesOrBuilderList() {
     return routes_;
   }
   /**
+   *
+   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2161,6 +2427,8 @@ public int getRoutesCount() {
     return routes_.size();
   }
   /**
+   *
+   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2173,6 +2441,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
     return routes_.get(index);
   }
   /**
+   *
+   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -2181,15 +2451,17 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
-      int index) {
+  public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index) {
     return routes_.get(index);
   }
 
   public static final int REQUEST_LABEL_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object requestLabel_ = "";
   /**
+   *
+   *
    * 
    * Copy of the
    * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -2197,6 +2469,7 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
    * 
* * string request_label = 3; + * * @return The requestLabel. */ @java.lang.Override @@ -2205,14 +2478,15 @@ public java.lang.String getRequestLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestLabel_ = s; return s; } } /** + * + * *
    * Copy of the
    * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -2220,16 +2494,15 @@ public java.lang.String getRequestLabel() {
    * 
* * string request_label = 3; + * * @return The bytes for requestLabel. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestLabelBytes() { + public com.google.protobuf.ByteString getRequestLabelBytes() { java.lang.Object ref = requestLabel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestLabel_ = b; return b; } else { @@ -2238,9 +2511,12 @@ public java.lang.String getRequestLabel() { } public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List skippedShipments_; /** + * + * *
    * The list of all shipments skipped.
    * 
@@ -2248,10 +2524,13 @@ public java.lang.String getRequestLabel() { * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ @java.lang.Override - public java.util.List getSkippedShipmentsList() { + public java.util.List + getSkippedShipmentsList() { return skippedShipments_; } /** + * + * *
    * The list of all shipments skipped.
    * 
@@ -2259,11 +2538,13 @@ public java.util.List getSkipp * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ @java.lang.Override - public java.util.List + public java.util.List getSkippedShipmentsOrBuilderList() { return skippedShipments_; } /** + * + * *
    * The list of all shipments skipped.
    * 
@@ -2275,6 +2556,8 @@ public int getSkippedShipmentsCount() { return skippedShipments_.size(); } /** + * + * *
    * The list of all shipments skipped.
    * 
@@ -2286,6 +2569,8 @@ public com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int return skippedShipments_.get(index); } /** + * + * *
    * The list of all shipments skipped.
    * 
@@ -2299,9 +2584,13 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm } public static final int VALIDATION_ERRORS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") - private java.util.List validationErrors_; + private java.util.List + validationErrors_; /** + * + * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2309,13 +2598,18 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm
    * message.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ @java.lang.Override - public java.util.List getValidationErrorsList() { + public java.util.List + getValidationErrorsList() { return validationErrors_; } /** + * + * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2323,14 +2617,19 @@ public java.util.List
    *
-   * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
+   * 
+   * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder>
       getValidationErrorsOrBuilderList() {
     return validationErrors_;
   }
   /**
+   *
+   *
    * 
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2338,13 +2637,17 @@ public java.util.List
    *
-   * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
+   * 
+   * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
+   * 
    */
   @java.lang.Override
   public int getValidationErrorsCount() {
     return validationErrors_.size();
   }
   /**
+   *
+   *
    * 
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2352,13 +2655,18 @@ public int getValidationErrorsCount() {
    * message.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors( + int index) { return validationErrors_.get(index); } /** + * + * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -2366,22 +2674,27 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidati
    * message.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder getValidationErrorsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder + getValidationErrorsOrBuilder(int index) { return validationErrors_.get(index); } public static final int METRICS_FIELD_NUMBER = 6; private com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics_; /** + * + * *
    * Duration, distance and usage metrics for this solution.
    * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; + * * @return Whether the metrics field is set. */ @java.lang.Override @@ -2389,18 +2702,25 @@ public boolean hasMetrics() { return metrics_ != null; } /** + * + * *
    * Duration, distance and usage metrics for this solution.
    * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; + * * @return The metrics. */ @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics() { - return metrics_ == null ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() + : metrics_; } /** + * + * *
    * Duration, distance and usage metrics for this solution.
    * 
@@ -2408,13 +2728,18 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder getMetricsOrBuilder() { - return metrics_ == null ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() : metrics_; + public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder + getMetricsOrBuilder() { + return metrics_ == null + ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() + : metrics_; } public static final int TOTAL_COST_FIELD_NUMBER = 2; private double totalCost_ = 0D; /** + * + * *
    * Deprecated: Use
    * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -2424,16 +2749,19 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder g
    * 
* * double total_cost = 2 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=433 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=433 * @return The totalCost. */ @java.lang.Override - @java.lang.Deprecated public double getTotalCost() { + @java.lang.Deprecated + public double getTotalCost() { return totalCost_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2445,8 +2773,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -2475,27 +2802,22 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); } if (java.lang.Double.doubleToRawLongBits(totalCost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, totalCost_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, totalCost_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestLabel_); } for (int i = 0; i < skippedShipments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, skippedShipments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, skippedShipments_.get(i)); } for (int i = 0; i < validationErrors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, validationErrors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, validationErrors_.get(i)); } if (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMetrics()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetrics()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2505,29 +2827,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursResponse)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursResponse other = (com.google.cloud.optimization.v1.OptimizeToursResponse) obj; + com.google.cloud.optimization.v1.OptimizeToursResponse other = + (com.google.cloud.optimization.v1.OptimizeToursResponse) obj; - if (!getRoutesList() - .equals(other.getRoutesList())) return false; - if (!getRequestLabel() - .equals(other.getRequestLabel())) return false; - if (!getSkippedShipmentsList() - .equals(other.getSkippedShipmentsList())) return false; - if (!getValidationErrorsList() - .equals(other.getValidationErrorsList())) return false; + if (!getRoutesList().equals(other.getRoutesList())) return false; + if (!getRequestLabel().equals(other.getRequestLabel())) return false; + if (!getSkippedShipmentsList().equals(other.getSkippedShipmentsList())) return false; + if (!getValidationErrorsList().equals(other.getValidationErrorsList())) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { - if (!getMetrics() - .equals(other.getMetrics())) return false; + if (!getMetrics().equals(other.getMetrics())) return false; } if (java.lang.Double.doubleToLongBits(getTotalCost()) - != java.lang.Double.doubleToLongBits( - other.getTotalCost())) return false; + != java.lang.Double.doubleToLongBits(other.getTotalCost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2558,106 +2875,114 @@ public int hashCode() { hash = (53 * hash) + getMetrics().hashCode(); } hash = (37 * hash) + TOTAL_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTotalCost())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTotalCost())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OptimizeToursResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OptimizeToursResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.OptimizeToursResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response after solving a tour optimization problem containing the routes
    * followed by each vehicle, the shipments which have been skipped and the
@@ -2666,33 +2991,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursResponse)
       com.google.cloud.optimization.v1.OptimizeToursResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.OptimizeToursResponse.class, com.google.cloud.optimization.v1.OptimizeToursResponse.Builder.class);
+              com.google.cloud.optimization.v1.OptimizeToursResponse.class,
+              com.google.cloud.optimization.v1.OptimizeToursResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.OptimizeToursResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2729,9 +3053,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor;
     }
 
     @java.lang.Override
@@ -2750,14 +3074,18 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.OptimizeToursResponse buildPartial() {
-      com.google.cloud.optimization.v1.OptimizeToursResponse result = new com.google.cloud.optimization.v1.OptimizeToursResponse(this);
+      com.google.cloud.optimization.v1.OptimizeToursResponse result =
+          new com.google.cloud.optimization.v1.OptimizeToursResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.OptimizeToursResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.optimization.v1.OptimizeToursResponse result) {
       if (routesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           routes_ = java.util.Collections.unmodifiableList(routes_);
@@ -2793,9 +3121,7 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRespons
         result.requestLabel_ = requestLabel_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.metrics_ = metricsBuilder_ == null
-            ? metrics_
-            : metricsBuilder_.build();
+        result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.totalCost_ = totalCost_;
@@ -2806,38 +3132,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursRespons
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.OptimizeToursResponse) {
-        return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursResponse)other);
+        return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2845,7 +3172,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse other) {
-      if (other == com.google.cloud.optimization.v1.OptimizeToursResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.OptimizeToursResponse.getDefaultInstance())
+        return this;
       if (routesBuilder_ == null) {
         if (!other.routes_.isEmpty()) {
           if (routes_.isEmpty()) {
@@ -2864,9 +3192,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse
             routesBuilder_ = null;
             routes_ = other.routes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            routesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRoutesFieldBuilder() : null;
+            routesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRoutesFieldBuilder()
+                    : null;
           } else {
             routesBuilder_.addAllMessages(other.routes_);
           }
@@ -2895,9 +3224,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse
             skippedShipmentsBuilder_ = null;
             skippedShipments_ = other.skippedShipments_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            skippedShipmentsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSkippedShipmentsFieldBuilder() : null;
+            skippedShipmentsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSkippedShipmentsFieldBuilder()
+                    : null;
           } else {
             skippedShipmentsBuilder_.addAllMessages(other.skippedShipments_);
           }
@@ -2921,9 +3251,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursResponse
             validationErrorsBuilder_ = null;
             validationErrors_ = other.validationErrors_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            validationErrorsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getValidationErrorsFieldBuilder() : null;
+            validationErrorsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getValidationErrorsFieldBuilder()
+                    : null;
           } else {
             validationErrorsBuilder_.addAllMessages(other.validationErrors_);
           }
@@ -2961,68 +3292,72 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.optimization.v1.ShipmentRoute m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentRoute.parser(),
-                      extensionRegistry);
-              if (routesBuilder_ == null) {
-                ensureRoutesIsMutable();
-                routes_.add(m);
-              } else {
-                routesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 17: {
-              totalCost_ = input.readDouble();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 17
-            case 26: {
-              requestLabel_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 34: {
-              com.google.cloud.optimization.v1.SkippedShipment m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.SkippedShipment.parser(),
-                      extensionRegistry);
-              if (skippedShipmentsBuilder_ == null) {
-                ensureSkippedShipmentsIsMutable();
-                skippedShipments_.add(m);
-              } else {
-                skippedShipmentsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 34
-            case 42: {
-              com.google.cloud.optimization.v1.OptimizeToursValidationError m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.OptimizeToursValidationError.parser(),
-                      extensionRegistry);
-              if (validationErrorsBuilder_ == null) {
-                ensureValidationErrorsIsMutable();
-                validationErrors_.add(m);
-              } else {
-                validationErrorsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getMetricsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.optimization.v1.ShipmentRoute m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentRoute.parser(), extensionRegistry);
+                if (routesBuilder_ == null) {
+                  ensureRoutesIsMutable();
+                  routes_.add(m);
+                } else {
+                  routesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 17:
+              {
+                totalCost_ = input.readDouble();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 17
+            case 26:
+              {
+                requestLabel_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.cloud.optimization.v1.SkippedShipment m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.SkippedShipment.parser(),
+                        extensionRegistry);
+                if (skippedShipmentsBuilder_ == null) {
+                  ensureSkippedShipmentsIsMutable();
+                  skippedShipments_.add(m);
+                } else {
+                  skippedShipmentsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.cloud.optimization.v1.OptimizeToursValidationError m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.OptimizeToursValidationError.parser(),
+                        extensionRegistry);
+                if (validationErrorsBuilder_ == null) {
+                  ensureValidationErrorsIsMutable();
+                  validationErrors_.add(m);
+                } else {
+                  validationErrorsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3032,21 +3367,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List routes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRoutesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         routes_ = new java.util.ArrayList(routes_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> routesBuilder_;
+            com.google.cloud.optimization.v1.ShipmentRoute,
+            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
+            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
+        routesBuilder_;
 
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3062,6 +3404,8 @@ public java.util.List getRoutesL
       }
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3077,6 +3421,8 @@ public int getRoutesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3092,6 +3438,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3099,8 +3447,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public Builder setRoutes(
-        int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
+    public Builder setRoutes(int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3114,6 +3461,8 @@ public Builder setRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3133,6 +3482,8 @@ public Builder setRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3154,6 +3505,8 @@ public Builder addRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3161,8 +3514,7 @@ public Builder addRoutes(com.google.cloud.optimization.v1.ShipmentRoute value) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public Builder addRoutes(
-        int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
+    public Builder addRoutes(int index, com.google.cloud.optimization.v1.ShipmentRoute value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3176,6 +3528,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3195,6 +3549,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3214,6 +3570,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3225,8 +3583,7 @@ public Builder addAllRoutes(
         java.lang.Iterable values) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, routes_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_);
         onChanged();
       } else {
         routesBuilder_.addAllMessages(values);
@@ -3234,6 +3591,8 @@ public Builder addAllRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3252,6 +3611,8 @@ public Builder clearRoutes() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3270,6 +3631,8 @@ public Builder removeRoutes(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3277,11 +3640,12 @@ public Builder removeRoutes(int index) {
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(
-        int index) {
+    public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(int index) {
       return getRoutesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3289,14 +3653,16 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder getRoutesBuilder(
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
-        int index) {
+    public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index) {
       if (routesBuilder_ == null) {
-        return routes_.get(index);  } else {
+        return routes_.get(index);
+      } else {
         return routesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3304,8 +3670,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public java.util.List 
-         getRoutesOrBuilderList() {
+    public java.util.List
+        getRoutesOrBuilderList() {
       if (routesBuilder_ != null) {
         return routesBuilder_.getMessageOrBuilderList();
       } else {
@@ -3313,6 +3679,8 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3321,10 +3689,12 @@ public com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilde
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder() {
-      return getRoutesFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+      return getRoutesFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3332,12 +3702,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder()
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(
-        int index) {
-      return getRoutesFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
+    public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(int index) {
+      return getRoutesFieldBuilder()
+          .addBuilder(index, com.google.cloud.optimization.v1.ShipmentRoute.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Routes computed for each vehicle; the i-th route corresponds to the i-th
      * vehicle in the model.
@@ -3345,20 +3716,23 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      */
-    public java.util.List 
-         getRoutesBuilderList() {
+    public java.util.List
+        getRoutesBuilderList() {
       return getRoutesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> 
+            com.google.cloud.optimization.v1.ShipmentRoute,
+            com.google.cloud.optimization.v1.ShipmentRoute.Builder,
+            com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
         getRoutesFieldBuilder() {
       if (routesBuilder_ == null) {
-        routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute, com.google.cloud.optimization.v1.ShipmentRoute.Builder, com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
-                routes_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        routesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.ShipmentRoute,
+                com.google.cloud.optimization.v1.ShipmentRoute.Builder,
+                com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>(
+                routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         routes_ = null;
       }
       return routesBuilder_;
@@ -3366,6 +3740,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(
 
     private java.lang.Object requestLabel_ = "";
     /**
+     *
+     *
      * 
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3373,13 +3749,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Builder addRoutesBuilder(
      * 
* * string request_label = 3; + * * @return The requestLabel. */ public java.lang.String getRequestLabel() { java.lang.Object ref = requestLabel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestLabel_ = s; return s; @@ -3388,6 +3764,8 @@ public java.lang.String getRequestLabel() { } } /** + * + * *
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3395,15 +3773,14 @@ public java.lang.String getRequestLabel() {
      * 
* * string request_label = 3; + * * @return The bytes for requestLabel. */ - public com.google.protobuf.ByteString - getRequestLabelBytes() { + public com.google.protobuf.ByteString getRequestLabelBytes() { java.lang.Object ref = requestLabel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestLabel_ = b; return b; } else { @@ -3411,6 +3788,8 @@ public java.lang.String getRequestLabel() { } } /** + * + * *
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3418,18 +3797,22 @@ public java.lang.String getRequestLabel() {
      * 
* * string request_label = 3; + * * @param value The requestLabel to set. * @return This builder for chaining. */ - public Builder setRequestLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3437,6 +3820,7 @@ public Builder setRequestLabel(
      * 
* * string request_label = 3; + * * @return This builder for chaining. */ public Builder clearRequestLabel() { @@ -3446,6 +3830,8 @@ public Builder clearRequestLabel() { return this; } /** + * + * *
      * Copy of the
      * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -3453,12 +3839,14 @@ public Builder clearRequestLabel() {
      * 
* * string request_label = 3; + * * @param value The bytes for requestLabel to set. * @return This builder for chaining. */ - public Builder setRequestLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestLabel_ = value; bitField0_ |= 0x00000002; @@ -3467,25 +3855,34 @@ public Builder setRequestLabelBytes( } private java.util.List skippedShipments_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSkippedShipmentsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - skippedShipments_ = new java.util.ArrayList(skippedShipments_); + skippedShipments_ = + new java.util.ArrayList( + skippedShipments_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> skippedShipmentsBuilder_; + com.google.cloud.optimization.v1.SkippedShipment, + com.google.cloud.optimization.v1.SkippedShipment.Builder, + com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> + skippedShipmentsBuilder_; /** + * + * *
      * The list of all shipments skipped.
      * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - public java.util.List getSkippedShipmentsList() { + public java.util.List + getSkippedShipmentsList() { if (skippedShipmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(skippedShipments_); } else { @@ -3493,6 +3890,8 @@ public java.util.List getSkipp } } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3507,6 +3906,8 @@ public int getSkippedShipmentsCount() { } } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3521,6 +3922,8 @@ public com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int } } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3542,6 +3945,8 @@ public Builder setSkippedShipments( return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3560,6 +3965,8 @@ public Builder setSkippedShipments( return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3580,6 +3987,8 @@ public Builder addSkippedShipments(com.google.cloud.optimization.v1.SkippedShipm return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3601,6 +4010,8 @@ public Builder addSkippedShipments( return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3619,6 +4030,8 @@ public Builder addSkippedShipments( return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3637,6 +4050,8 @@ public Builder addSkippedShipments( return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3647,8 +4062,7 @@ public Builder addAllSkippedShipments( java.lang.Iterable values) { if (skippedShipmentsBuilder_ == null) { ensureSkippedShipmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, skippedShipments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skippedShipments_); onChanged(); } else { skippedShipmentsBuilder_.addAllMessages(values); @@ -3656,6 +4070,8 @@ public Builder addAllSkippedShipments( return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3673,6 +4089,8 @@ public Builder clearSkippedShipments() { return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3690,6 +4108,8 @@ public Builder removeSkippedShipments(int index) { return this; } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3701,6 +4121,8 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder getSkippedShipme return getSkippedShipmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3710,19 +4132,22 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder getSkippedShipme public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder( int index) { if (skippedShipmentsBuilder_ == null) { - return skippedShipments_.get(index); } else { + return skippedShipments_.get(index); + } else { return skippedShipmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of all shipments skipped.
      * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - public java.util.List - getSkippedShipmentsOrBuilderList() { + public java.util.List + getSkippedShipmentsOrBuilderList() { if (skippedShipmentsBuilder_ != null) { return skippedShipmentsBuilder_.getMessageOrBuilderList(); } else { @@ -3730,6 +4155,8 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm } } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3737,10 +4164,12 @@ public com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipm * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipmentsBuilder() { - return getSkippedShipmentsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()); + return getSkippedShipmentsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()); } /** + * + * *
      * The list of all shipments skipped.
      * 
@@ -3749,26 +4178,34 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme */ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipmentsBuilder( int index) { - return getSkippedShipmentsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()); + return getSkippedShipmentsFieldBuilder() + .addBuilder(index, com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()); } /** + * + * *
      * The list of all shipments skipped.
      * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - public java.util.List - getSkippedShipmentsBuilderList() { + public java.util.List + getSkippedShipmentsBuilderList() { return getSkippedShipmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> + com.google.cloud.optimization.v1.SkippedShipment, + com.google.cloud.optimization.v1.SkippedShipment.Builder, + com.google.cloud.optimization.v1.SkippedShipmentOrBuilder> getSkippedShipmentsFieldBuilder() { if (skippedShipmentsBuilder_ == null) { - skippedShipmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.SkippedShipment, com.google.cloud.optimization.v1.SkippedShipment.Builder, com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>( + skippedShipmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.SkippedShipment, + com.google.cloud.optimization.v1.SkippedShipment.Builder, + com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>( skippedShipments_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3778,19 +4215,27 @@ public com.google.cloud.optimization.v1.SkippedShipment.Builder addSkippedShipme return skippedShipmentsBuilder_; } - private java.util.List validationErrors_ = - java.util.Collections.emptyList(); + private java.util.List + validationErrors_ = java.util.Collections.emptyList(); + private void ensureValidationErrorsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - validationErrors_ = new java.util.ArrayList(validationErrors_); + validationErrors_ = + new java.util.ArrayList( + validationErrors_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> validationErrorsBuilder_; + com.google.cloud.optimization.v1.OptimizeToursValidationError, + com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> + validationErrorsBuilder_; /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3798,9 +4243,12 @@ private void ensureValidationErrorsIsMutable() {
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public java.util.List getValidationErrorsList() { + public java.util.List + getValidationErrorsList() { if (validationErrorsBuilder_ == null) { return java.util.Collections.unmodifiableList(validationErrors_); } else { @@ -3808,6 +4256,8 @@ public java.util.List * List of all the validation errors that we were able to detect * independently. See the "MULTIPLE ERRORS" explanation for the @@ -3815,7 +4265,9 @@ public java.util.List * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public int getValidationErrorsCount() { if (validationErrorsBuilder_ == null) { @@ -3825,6 +4277,8 @@ public int getValidationErrorsCount() { } } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3832,9 +4286,12 @@ public int getValidationErrorsCount() {
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors( + int index) { if (validationErrorsBuilder_ == null) { return validationErrors_.get(index); } else { @@ -3842,6 +4299,8 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidati } } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3849,7 +4308,9 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError getValidati
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public Builder setValidationErrors( int index, com.google.cloud.optimization.v1.OptimizeToursValidationError value) { @@ -3866,6 +4327,8 @@ public Builder setValidationErrors( return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3873,10 +4336,13 @@ public Builder setValidationErrors(
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public Builder setValidationErrors( - int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.set(index, builderForValue.build()); @@ -3887,6 +4353,8 @@ public Builder setValidationErrors( return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3894,9 +4362,12 @@ public Builder setValidationErrors(
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public Builder addValidationErrors(com.google.cloud.optimization.v1.OptimizeToursValidationError value) { + public Builder addValidationErrors( + com.google.cloud.optimization.v1.OptimizeToursValidationError value) { if (validationErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3910,6 +4381,8 @@ public Builder addValidationErrors(com.google.cloud.optimization.v1.OptimizeTour return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3917,7 +4390,9 @@ public Builder addValidationErrors(com.google.cloud.optimization.v1.OptimizeTour
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public Builder addValidationErrors( int index, com.google.cloud.optimization.v1.OptimizeToursValidationError value) { @@ -3934,6 +4409,8 @@ public Builder addValidationErrors( return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3941,7 +4418,9 @@ public Builder addValidationErrors(
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public Builder addValidationErrors( com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { @@ -3955,6 +4434,8 @@ public Builder addValidationErrors( return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3962,10 +4443,13 @@ public Builder addValidationErrors(
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public Builder addValidationErrors( - int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder builderForValue) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); validationErrors_.add(index, builderForValue.build()); @@ -3976,6 +4460,8 @@ public Builder addValidationErrors( return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -3983,14 +4469,16 @@ public Builder addValidationErrors(
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public Builder addAllValidationErrors( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (validationErrorsBuilder_ == null) { ensureValidationErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, validationErrors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validationErrors_); onChanged(); } else { validationErrorsBuilder_.addAllMessages(values); @@ -3998,6 +4486,8 @@ public Builder addAllValidationErrors( return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4005,7 +4495,9 @@ public Builder addAllValidationErrors(
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public Builder clearValidationErrors() { if (validationErrorsBuilder_ == null) { @@ -4018,6 +4510,8 @@ public Builder clearValidationErrors() { return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4025,7 +4519,9 @@ public Builder clearValidationErrors() {
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ public Builder removeValidationErrors(int index) { if (validationErrorsBuilder_ == null) { @@ -4038,6 +4534,8 @@ public Builder removeValidationErrors(int index) { return this; } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4045,13 +4543,17 @@ public Builder removeValidationErrors(int index) {
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder getValidationErrorsBuilder( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder + getValidationErrorsBuilder(int index) { return getValidationErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4059,16 +4561,21 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder get
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder getValidationErrorsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder + getValidationErrorsOrBuilder(int index) { if (validationErrorsBuilder_ == null) { - return validationErrors_.get(index); } else { + return validationErrors_.get(index); + } else { return validationErrorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4076,10 +4583,13 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder ge
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public java.util.List - getValidationErrorsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> + getValidationErrorsOrBuilderList() { if (validationErrorsBuilder_ != null) { return validationErrorsBuilder_.getMessageOrBuilderList(); } else { @@ -4087,6 +4597,8 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder ge } } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4094,13 +4606,19 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder ge
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder addValidationErrorsBuilder() { - return getValidationErrorsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder + addValidationErrorsBuilder() { + return getValidationErrorsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()); } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4108,14 +4626,20 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder add
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder addValidationErrorsBuilder( - int index) { - return getValidationErrorsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder + addValidationErrorsBuilder(int index) { + return getValidationErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()); } /** + * + * *
      * List of all the validation errors that we were able to detect
      * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -4123,18 +4647,26 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder add
      * message.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - public java.util.List - getValidationErrorsBuilderList() { + public java.util.List + getValidationErrorsBuilderList() { return getValidationErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> + com.google.cloud.optimization.v1.OptimizeToursValidationError, + com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> getValidationErrorsFieldBuilder() { if (validationErrorsBuilder_ == null) { - validationErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder>( + validationErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.OptimizeToursValidationError, + com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder>( validationErrors_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -4146,41 +4678,55 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder add private com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder> metricsBuilder_; + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, + com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder> + metricsBuilder_; /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; + * * @return Whether the metrics field is set. */ public boolean hasMetrics() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; + * * @return The metrics. */ public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics() { if (metricsBuilder_ == null) { - return metrics_ == null ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() + : metrics_; } else { return metricsBuilder_.getMessage(); } } /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ - public Builder setMetrics(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics value) { + public Builder setMetrics( + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4194,6 +4740,8 @@ public Builder setMetrics(com.google.cloud.optimization.v1.OptimizeToursResponse return this; } /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
@@ -4212,17 +4760,22 @@ public Builder setMetrics( return this; } /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ - public Builder mergeMetrics(com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics value) { + public Builder mergeMetrics( + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics value) { if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - metrics_ != null && - metrics_ != com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && metrics_ != null + && metrics_ + != com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics + .getDefaultInstance()) { getMetricsBuilder().mergeFrom(value); } else { metrics_ = value; @@ -4235,6 +4788,8 @@ public Builder mergeMetrics(com.google.cloud.optimization.v1.OptimizeToursRespon return this; } /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
@@ -4252,33 +4807,42 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ - public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder getMetricsBuilder() { + public com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder + getMetricsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ - public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder getMetricsOrBuilder() { + public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder + getMetricsOrBuilder() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilder(); } else { - return metrics_ == null ? - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.getDefaultInstance() + : metrics_; } } /** + * + * *
      * Duration, distance and usage metrics for this solution.
      * 
@@ -4286,21 +4850,26 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder g * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder> + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, + com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder>( - getMetrics(), - getParentForChildren(), - isClean()); + metricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics, + com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics.Builder, + com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder>( + getMetrics(), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } - private double totalCost_ ; + private double totalCost_; /** + * + * *
      * Deprecated: Use
      * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -4310,15 +4879,19 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder g
      * 
* * double total_cost = 2 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=433 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=433 * @return The totalCost. */ @java.lang.Override - @java.lang.Deprecated public double getTotalCost() { + @java.lang.Deprecated + public double getTotalCost() { return totalCost_; } /** + * + * *
      * Deprecated: Use
      * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -4328,12 +4901,14 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder g
      * 
* * double total_cost = 2 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=433 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=433 * @param value The totalCost to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setTotalCost(double value) { + @java.lang.Deprecated + public Builder setTotalCost(double value) { totalCost_ = value; bitField0_ |= 0x00000020; @@ -4341,6 +4916,8 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder g return this; } /** + * + * *
      * Deprecated: Use
      * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -4350,19 +4927,21 @@ public com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder g
      * 
* * double total_cost = 2 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=433 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=433 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearTotalCost() { + @java.lang.Deprecated + public Builder clearTotalCost() { bitField0_ = (bitField0_ & ~0x00000020); totalCost_ = 0D; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4372,12 +4951,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursResponse) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursResponse) private static final com.google.cloud.optimization.v1.OptimizeToursResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursResponse(); } @@ -4386,27 +4965,27 @@ public static com.google.cloud.optimization.v1.OptimizeToursResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizeToursResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizeToursResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4421,6 +5000,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.OptimizeToursResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java similarity index 77% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java index 20176820140d..ad312261f3ff 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface OptimizeToursResponseOrBuilder extends +public interface OptimizeToursResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -15,9 +33,10 @@ public interface OptimizeToursResponseOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  java.util.List 
-      getRoutesList();
+  java.util.List getRoutesList();
   /**
+   *
+   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -27,6 +46,8 @@ public interface OptimizeToursResponseOrBuilder extends
    */
   com.google.cloud.optimization.v1.ShipmentRoute getRoutes(int index);
   /**
+   *
+   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -36,6 +57,8 @@ public interface OptimizeToursResponseOrBuilder extends
    */
   int getRoutesCount();
   /**
+   *
+   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -43,9 +66,11 @@ public interface OptimizeToursResponseOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  java.util.List 
+  java.util.List
       getRoutesOrBuilderList();
   /**
+   *
+   *
    * 
    * Routes computed for each vehicle; the i-th route corresponds to the i-th
    * vehicle in the model.
@@ -53,10 +78,11 @@ public interface OptimizeToursResponseOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    */
-  com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Copy of the
    * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -64,10 +90,13 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
    * 
* * string request_label = 3; + * * @return The requestLabel. */ java.lang.String getRequestLabel(); /** + * + * *
    * Copy of the
    * [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
@@ -75,21 +104,24 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder(
    * 
* * string request_label = 3; + * * @return The bytes for requestLabel. */ - com.google.protobuf.ByteString - getRequestLabelBytes(); + com.google.protobuf.ByteString getRequestLabelBytes(); /** + * + * *
    * The list of all shipments skipped.
    * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - java.util.List - getSkippedShipmentsList(); + java.util.List getSkippedShipmentsList(); /** + * + * *
    * The list of all shipments skipped.
    * 
@@ -98,6 +130,8 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder( */ com.google.cloud.optimization.v1.SkippedShipment getSkippedShipments(int index); /** + * + * *
    * The list of all shipments skipped.
    * 
@@ -106,25 +140,30 @@ com.google.cloud.optimization.v1.ShipmentRouteOrBuilder getRoutesOrBuilder( */ int getSkippedShipmentsCount(); /** + * + * *
    * The list of all shipments skipped.
    * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - java.util.List + java.util.List getSkippedShipmentsOrBuilderList(); /** + * + * *
    * The list of all shipments skipped.
    * 
* * repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4; */ - com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder( - int index); + com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index); /** + * + * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -132,11 +171,15 @@ com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrB
    * message.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - java.util.List + java.util.List getValidationErrorsList(); /** + * + * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -144,10 +187,14 @@ com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrB
    * message.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ com.google.cloud.optimization.v1.OptimizeToursValidationError getValidationErrors(int index); /** + * + * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -155,10 +202,14 @@ com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrB
    * message.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ int getValidationErrorsCount(); /** + * + * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -166,11 +217,15 @@ com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrB
    * message.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - java.util.List + java.util.List getValidationErrorsOrBuilderList(); /** + * + * *
    * List of all the validation errors that we were able to detect
    * independently. See the "MULTIPLE ERRORS" explanation for the
@@ -178,30 +233,40 @@ com.google.cloud.optimization.v1.SkippedShipmentOrBuilder getSkippedShipmentsOrB
    * message.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5; + * */ - com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder getValidationErrorsOrBuilder( - int index); + com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder + getValidationErrorsOrBuilder(int index); /** + * + * *
    * Duration, distance and usage metrics for this solution.
    * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; + * * @return Whether the metrics field is set. */ boolean hasMetrics(); /** + * + * *
    * Duration, distance and usage metrics for this solution.
    * 
* * .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6; + * * @return The metrics. */ com.google.cloud.optimization.v1.OptimizeToursResponse.Metrics getMetrics(); /** + * + * *
    * Duration, distance and usage metrics for this solution.
    * 
@@ -211,6 +276,8 @@ com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder getValida com.google.cloud.optimization.v1.OptimizeToursResponse.MetricsOrBuilder getMetricsOrBuilder(); /** + * + * *
    * Deprecated: Use
    * [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
@@ -220,9 +287,11 @@ com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder getValida
    * 
* * double total_cost = 2 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=433 + * + * @deprecated google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=433 * @return The totalCost. */ - @java.lang.Deprecated double getTotalCost(); + @java.lang.Deprecated + double getTotalCost(); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java similarity index 78% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java index 1075b082d500..ea678a418f41 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationError.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Describes an error encountered when validating an `OptimizeToursRequest`.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursValidationError} */ -public final class OptimizeToursValidationError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OptimizeToursValidationError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursValidationError) OptimizeToursValidationErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OptimizeToursValidationError.newBuilder() to construct. private OptimizeToursValidationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OptimizeToursValidationError() { displayName_ = ""; fields_ = java.util.Collections.emptyList(); @@ -28,126 +46,165 @@ private OptimizeToursValidationError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OptimizeToursValidationError(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursValidationError.class, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursValidationError.class, + com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder.class); } - public interface FieldReferenceOrBuilder extends + public interface FieldReferenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Name of the field, e.g., "vehicles".
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Name of the field, e.g., "vehicles".
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Index of the field if repeated.
      * 
* * int32 index = 2; + * * @return Whether the index field is set. */ boolean hasIndex(); /** + * + * *
      * Index of the field if repeated.
      * 
* * int32 index = 2; + * * @return The index. */ int getIndex(); /** + * + * *
      * Key if the field is a map.
      * 
* * string key = 4; + * * @return Whether the key field is set. */ boolean hasKey(); /** + * + * *
      * Key if the field is a map.
      * 
* * string key = 4; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
      * Key if the field is a map.
      * 
* * string key = 4; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
      * Recursively nested sub-field, if needed.
      * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * * @return Whether the subField field is set. */ boolean hasSubField(); /** + * + * *
      * Recursively nested sub-field, if needed.
      * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * * @return The subField. */ com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getSubField(); /** + * + * *
      * Recursively nested sub-field, if needed.
      * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getSubFieldOrBuilder(); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder + getSubFieldOrBuilder(); - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.IndexOrKeyCase getIndexOrKeyCase(); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.IndexOrKeyCase + getIndexOrKeyCase(); } /** + * + * *
    * Specifies a context for the validation error. A `FieldReference` always
    * refers to a given field in this file and follows the same hierarchical
@@ -162,49 +219,56 @@ public interface FieldReferenceOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference}
    */
-  public static final class FieldReference extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class FieldReference extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference)
       FieldReferenceOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use FieldReference.newBuilder() to construct.
     private FieldReference(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private FieldReference() {
       name_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new FieldReference();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.class, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder.class);
+              com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.class,
+              com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder
+                  .class);
     }
 
     private int indexOrKeyCase_ = 0;
+
     @SuppressWarnings("serial")
     private java.lang.Object indexOrKey_;
+
     public enum IndexOrKeyCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       INDEX(2),
       KEY(4),
       INDEXORKEY_NOT_SET(0);
       private final int value;
+
       private IndexOrKeyCase(int value) {
         this.value = value;
       }
@@ -220,32 +284,39 @@ public static IndexOrKeyCase valueOf(int value) {
 
       public static IndexOrKeyCase forNumber(int value) {
         switch (value) {
-          case 2: return INDEX;
-          case 4: return KEY;
-          case 0: return INDEXORKEY_NOT_SET;
-          default: return null;
+          case 2:
+            return INDEX;
+          case 4:
+            return KEY;
+          case 0:
+            return INDEXORKEY_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public IndexOrKeyCase
-    getIndexOrKeyCase() {
-      return IndexOrKeyCase.forNumber(
-          indexOrKeyCase_);
+    public IndexOrKeyCase getIndexOrKeyCase() {
+      return IndexOrKeyCase.forNumber(indexOrKeyCase_);
     }
 
     public static final int NAME_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Name of the field, e.g., "vehicles".
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -254,29 +325,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Name of the field, e.g., "vehicles".
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -286,11 +357,14 @@ public java.lang.String getName() { public static final int INDEX_FIELD_NUMBER = 2; /** + * + * *
      * Index of the field if repeated.
      * 
* * int32 index = 2; + * * @return Whether the index field is set. */ @java.lang.Override @@ -298,11 +372,14 @@ public boolean hasIndex() { return indexOrKeyCase_ == 2; } /** + * + * *
      * Index of the field if repeated.
      * 
* * int32 index = 2; + * * @return The index. */ @java.lang.Override @@ -315,22 +392,28 @@ public int getIndex() { public static final int KEY_FIELD_NUMBER = 4; /** + * + * *
      * Key if the field is a map.
      * 
* * string key = 4; + * * @return Whether the key field is set. */ public boolean hasKey() { return indexOrKeyCase_ == 4; } /** + * + * *
      * Key if the field is a map.
      * 
* * string key = 4; + * * @return The key. */ public java.lang.String getKey() { @@ -341,8 +424,7 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (indexOrKeyCase_ == 4) { indexOrKey_ = s; @@ -351,23 +433,24 @@ public java.lang.String getKey() { } } /** + * + * *
      * Key if the field is a map.
      * 
* * string key = 4; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = ""; if (indexOrKeyCase_ == 4) { ref = indexOrKey_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (indexOrKeyCase_ == 4) { indexOrKey_ = b; } @@ -380,11 +463,16 @@ public java.lang.String getKey() { public static final int SUB_FIELD_FIELD_NUMBER = 3; private com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference subField_; /** + * + * *
      * Recursively nested sub-field, if needed.
      * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * * @return Whether the subField field is set. */ @java.lang.Override @@ -392,30 +480,48 @@ public boolean hasSubField() { return subField_ != null; } /** + * + * *
      * Recursively nested sub-field, if needed.
      * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * * @return The subField. */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getSubField() { - return subField_ == null ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance() : subField_; + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + getSubField() { + return subField_ == null + ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance() + : subField_; } /** + * + * *
      * Recursively nested sub-field, if needed.
      * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getSubFieldOrBuilder() { - return subField_ == null ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance() : subField_; + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder + getSubFieldOrBuilder() { + return subField_ == null + ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance() + : subField_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -427,14 +533,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (indexOrKeyCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) indexOrKey_)); + output.writeInt32(2, (int) ((java.lang.Integer) indexOrKey_)); } if (subField_ != null) { output.writeMessage(3, getSubField()); @@ -455,13 +559,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (indexOrKeyCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) indexOrKey_)); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 2, (int) ((java.lang.Integer) indexOrKey_)); } if (subField_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubField()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubField()); } if (indexOrKeyCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, indexOrKey_); @@ -474,29 +577,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference)) { + if (!(obj + instanceof + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference other = (com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) obj; + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference other = + (com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasSubField() != other.hasSubField()) return false; if (hasSubField()) { - if (!getSubField() - .equals(other.getSubField())) return false; + if (!getSubField().equals(other.getSubField())) return false; } if (!getIndexOrKeyCase().equals(other.getIndexOrKeyCase())) return false; switch (indexOrKeyCase_) { case 2: - if (getIndex() - != other.getIndex()) return false; + if (getIndex() != other.getIndex()) return false; break; case 4: - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; break; case 0: default: @@ -535,90 +637,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -628,6 +741,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Specifies a context for the validation error. A `FieldReference` always
      * refers to a given field in this file and follows the same hierarchical
@@ -640,35 +755,38 @@ protected Builder newBuilderForType(
      * `ShipmentModel` to avoid crowding the message.
      * 
* - * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference} + * Protobuf type {@code + * google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.class, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.class, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + .class); } - // Construct using com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -685,19 +803,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance(); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference build() { - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result = buildPartial(); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -705,27 +826,31 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference buildPartial() { - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result = new com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + buildPartial() { + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result = + new com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result) { + private void buildPartial0( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.subField_ = subFieldBuilder_ == null - ? subField_ - : subFieldBuilder_.build(); + result.subField_ = subFieldBuilder_ == null ? subField_ : subFieldBuilder_.build(); } } - private void buildPartialOneofs(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result) { + private void buildPartialOneofs( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference result) { result.indexOrKeyCase_ = indexOrKeyCase_; result.indexOrKey_ = this.indexOrKey_; } @@ -734,46 +859,55 @@ private void buildPartialOneofs(com.google.cloud.optimization.v1.OptimizeToursVa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) { - return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference)other); + if (other + instanceof + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) { + return mergeFrom( + (com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference other) { - if (other == com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference other) { + if (other + == com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -783,19 +917,22 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursValidatio mergeSubField(other.getSubField()); } switch (other.getIndexOrKeyCase()) { - case INDEX: { - setIndex(other.getIndex()); - break; - } - case KEY: { - indexOrKeyCase_ = 4; - indexOrKey_ = other.indexOrKey_; - onChanged(); - break; - } - case INDEXORKEY_NOT_SET: { - break; - } + case INDEX: + { + setIndex(other.getIndex()); + break; + } + case KEY: + { + indexOrKeyCase_ = 4; + indexOrKey_ = other.indexOrKey_; + onChanged(); + break; + } + case INDEXORKEY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -823,35 +960,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - indexOrKey_ = input.readInt32(); - indexOrKeyCase_ = 2; - break; - } // case 16 - case 26: { - input.readMessage( - getSubFieldFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - indexOrKeyCase_ = 4; - indexOrKey_ = s; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + indexOrKey_ = input.readInt32(); + indexOrKeyCase_ = 2; + break; + } // case 16 + case 26: + { + input.readMessage(getSubFieldFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + indexOrKeyCase_ = 4; + indexOrKey_ = s; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -861,12 +1001,12 @@ public Builder mergeFrom( } // finally return this; } + private int indexOrKeyCase_ = 0; private java.lang.Object indexOrKey_; - public IndexOrKeyCase - getIndexOrKeyCase() { - return IndexOrKeyCase.forNumber( - indexOrKeyCase_); + + public IndexOrKeyCase getIndexOrKeyCase() { + return IndexOrKeyCase.forNumber(indexOrKeyCase_); } public Builder clearIndexOrKey() { @@ -880,18 +1020,20 @@ public Builder clearIndexOrKey() { private java.lang.Object name_ = ""; /** + * + * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -900,20 +1042,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -921,28 +1064,35 @@ public java.lang.String getName() { } } /** + * + * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -952,17 +1102,21 @@ public Builder clearName() { return this; } /** + * + * *
        * Name of the field, e.g., "vehicles".
        * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -971,22 +1125,28 @@ public Builder setNameBytes( } /** + * + * *
        * Index of the field if repeated.
        * 
* * int32 index = 2; + * * @return Whether the index field is set. */ public boolean hasIndex() { return indexOrKeyCase_ == 2; } /** + * + * *
        * Index of the field if repeated.
        * 
* * int32 index = 2; + * * @return The index. */ public int getIndex() { @@ -996,11 +1156,14 @@ public int getIndex() { return 0; } /** + * + * *
        * Index of the field if repeated.
        * 
* * int32 index = 2; + * * @param value The index to set. * @return This builder for chaining. */ @@ -1012,11 +1175,14 @@ public Builder setIndex(int value) { return this; } /** + * + * *
        * Index of the field if repeated.
        * 
* * int32 index = 2; + * * @return This builder for chaining. */ public Builder clearIndex() { @@ -1029,11 +1195,14 @@ public Builder clearIndex() { } /** + * + * *
        * Key if the field is a map.
        * 
* * string key = 4; + * * @return Whether the key field is set. */ @java.lang.Override @@ -1041,11 +1210,14 @@ public boolean hasKey() { return indexOrKeyCase_ == 4; } /** + * + * *
        * Key if the field is a map.
        * 
* * string key = 4; + * * @return The key. */ @java.lang.Override @@ -1055,8 +1227,7 @@ public java.lang.String getKey() { ref = indexOrKey_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (indexOrKeyCase_ == 4) { indexOrKey_ = s; @@ -1067,24 +1238,25 @@ public java.lang.String getKey() { } } /** + * + * *
        * Key if the field is a map.
        * 
* * string key = 4; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = ""; if (indexOrKeyCase_ == 4) { ref = indexOrKey_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (indexOrKeyCase_ == 4) { indexOrKey_ = b; } @@ -1094,28 +1266,35 @@ public java.lang.String getKey() { } } /** + * + * *
        * Key if the field is a map.
        * 
* * string key = 4; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } indexOrKeyCase_ = 4; indexOrKey_ = value; onChanged(); return this; } /** + * + * *
        * Key if the field is a map.
        * 
* * string key = 4; + * * @return This builder for chaining. */ public Builder clearKey() { @@ -1127,17 +1306,21 @@ public Builder clearKey() { return this; } /** + * + * *
        * Key if the field is a map.
        * 
* * string key = 4; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); indexOrKeyCase_ = 4; indexOrKey_ = value; @@ -1145,43 +1328,66 @@ public Builder setKeyBytes( return this; } - private com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference subField_; + private com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + subField_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> subFieldBuilder_; + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> + subFieldBuilder_; /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * * @return Whether the subField field is set. */ public boolean hasSubField() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * * @return The subField. */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getSubField() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + getSubField() { if (subFieldBuilder_ == null) { - return subField_ == null ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance() : subField_; + return subField_ == null + ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance() + : subField_; } else { return subFieldBuilder_.getMessage(); } } /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ - public Builder setSubField(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + public Builder setSubField( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (subFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1195,14 +1401,19 @@ public Builder setSubField(com.google.cloud.optimization.v1.OptimizeToursValidat return this; } /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ public Builder setSubField( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder builderForValue) { + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + builderForValue) { if (subFieldBuilder_ == null) { subField_ = builderForValue.build(); } else { @@ -1213,17 +1424,24 @@ public Builder setSubField( return this; } /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ - public Builder mergeSubField(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + public Builder mergeSubField( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (subFieldBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - subField_ != null && - subField_ != com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && subField_ != null + && subField_ + != com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance()) { getSubFieldBuilder().mergeFrom(value); } else { subField_ = value; @@ -1236,11 +1454,15 @@ public Builder mergeSubField(com.google.cloud.optimization.v1.OptimizeToursValid return this; } /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ public Builder clearSubField() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1253,52 +1475,73 @@ public Builder clearSubField() { return this; } /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder getSubFieldBuilder() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + getSubFieldBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSubFieldFieldBuilder().getBuilder(); } /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getSubFieldOrBuilder() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder + getSubFieldOrBuilder() { if (subFieldBuilder_ != null) { return subFieldBuilder_.getMessageOrBuilder(); } else { - return subField_ == null ? - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance() : subField_; + return subField_ == null + ? com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance() + : subField_; } } /** + * + * *
        * Recursively nested sub-field, if needed.
        * 
* - * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * + * .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference sub_field = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> getSubFieldFieldBuilder() { if (subFieldBuilder_ == null) { - subFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder>( - getSubField(), - getParentForChildren(), - isClean()); + subFieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationError + .FieldReferenceOrBuilder>(getSubField(), getParentForChildren(), isClean()); subField_ = null; } return subFieldBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1311,41 +1554,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference) - private static final com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.OptimizeToursValidationError + .FieldReference + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference(); + DEFAULT_INSTANCE = + new com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference(); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getDefaultInstance() { + public static com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1357,15 +1605,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** + * + * *
    * A validation error is defined by the pair (`code`, `display_name`) which
    * are always present.
@@ -1614,6 +1864,7 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
    * 
* * int32 code = 1; + * * @return The code. */ @java.lang.Override @@ -1622,14 +1873,18 @@ public int getCode() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The error display name.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -1638,29 +1893,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The error display name.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1669,9 +1924,14 @@ public java.lang.String getDisplayName() { } public static final int FIELDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") - private java.util.List fields_; + private java.util.List< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> + fields_; /** + * + * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -1684,13 +1944,19 @@ public java.lang.String getDisplayName() {
    * given error code.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ @java.lang.Override - public java.util.List getFieldsList() { + public java.util.List< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> + getFieldsList() { return fields_; } /** + * + * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -1703,14 +1969,20 @@ public java.util.List
    *
-   * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3;
+   * 
+   * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends
+              com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder>
       getFieldsOrBuilderList() {
     return fields_;
   }
   /**
+   *
+   *
    * 
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -1723,13 +1995,17 @@ public java.util.List
    *
-   * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3;
+   * 
+   * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3;
+   * 
    */
   @java.lang.Override
   public int getFieldsCount() {
     return fields_.size();
   }
   /**
+   *
+   *
    * 
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -1742,13 +2018,18 @@ public int getFieldsCount() {
    * given error code.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields( + int index) { return fields_.get(index); } /** + * + * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -1761,18 +2042,23 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
    * given error code.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getFieldsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder + getFieldsOrBuilder(int index) { return fields_.get(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** + * + * *
    * Human-readable string describing the error. There is a 1:1 mapping
    * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -1783,6 +2069,7 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
    * 
* * string error_message = 4; + * * @return The errorMessage. */ @java.lang.Override @@ -1791,14 +2078,15 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * Human-readable string describing the error. There is a 1:1 mapping
    * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -1809,16 +2097,15 @@ public java.lang.String getErrorMessage() {
    * 
* * string error_message = 4; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1827,9 +2114,12 @@ public java.lang.String getErrorMessage() { } public static final int OFFENDING_VALUES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object offendingValues_ = ""; /** + * + * *
    * May contain the value(s) of the field(s). This is not always available. You
    * should absolutely not rely on it and use it only for manual model
@@ -1837,6 +2127,7 @@ public java.lang.String getErrorMessage() {
    * 
* * string offending_values = 5; + * * @return The offendingValues. */ @java.lang.Override @@ -1845,14 +2136,15 @@ public java.lang.String getOffendingValues() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); offendingValues_ = s; return s; } } /** + * + * *
    * May contain the value(s) of the field(s). This is not always available. You
    * should absolutely not rely on it and use it only for manual model
@@ -1860,16 +2152,15 @@ public java.lang.String getOffendingValues() {
    * 
* * string offending_values = 5; + * * @return The bytes for offendingValues. */ @java.lang.Override - public com.google.protobuf.ByteString - getOffendingValuesBytes() { + public com.google.protobuf.ByteString getOffendingValuesBytes() { java.lang.Object ref = offendingValues_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); offendingValues_ = b; return b; } else { @@ -1878,6 +2169,7 @@ public java.lang.String getOffendingValues() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1889,8 +2181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (code_ != 0) { output.writeInt32(1, code_); } @@ -1916,15 +2207,13 @@ public int getSerializedSize() { size = 0; if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, code_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, errorMessage_); @@ -1940,23 +2229,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OptimizeToursValidationError)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OptimizeToursValidationError other = (com.google.cloud.optimization.v1.OptimizeToursValidationError) obj; - - if (getCode() - != other.getCode()) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; - if (!getOffendingValues() - .equals(other.getOffendingValues())) return false; + com.google.cloud.optimization.v1.OptimizeToursValidationError other = + (com.google.cloud.optimization.v1.OptimizeToursValidationError) obj; + + if (getCode() != other.getCode()) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getOffendingValues().equals(other.getOffendingValues())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1986,131 +2271,136 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OptimizeToursValidationError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.OptimizeToursValidationError prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.OptimizeToursValidationError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes an error encountered when validating an `OptimizeToursRequest`.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.OptimizeToursValidationError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OptimizeToursValidationError) com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OptimizeToursValidationError.class, com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder.class); + com.google.cloud.optimization.v1.OptimizeToursValidationError.class, + com.google.cloud.optimization.v1.OptimizeToursValidationError.Builder.class); } // Construct using com.google.cloud.optimization.v1.OptimizeToursValidationError.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2130,13 +2420,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.OptimizeToursValidationError getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.OptimizeToursValidationError + getDefaultInstanceForType() { return com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance(); } @@ -2151,14 +2442,18 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError build() { @java.lang.Override public com.google.cloud.optimization.v1.OptimizeToursValidationError buildPartial() { - com.google.cloud.optimization.v1.OptimizeToursValidationError result = new com.google.cloud.optimization.v1.OptimizeToursValidationError(this); + com.google.cloud.optimization.v1.OptimizeToursValidationError result = + new com.google.cloud.optimization.v1.OptimizeToursValidationError(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.OptimizeToursValidationError result) { + private void buildPartialRepeatedFields( + com.google.cloud.optimization.v1.OptimizeToursValidationError result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); @@ -2170,7 +2465,8 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Optimiz } } - private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursValidationError result) { + private void buildPartial0( + com.google.cloud.optimization.v1.OptimizeToursValidationError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; @@ -2190,38 +2486,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.OptimizeToursValidat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.OptimizeToursValidationError) { - return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursValidationError)other); + return mergeFrom((com.google.cloud.optimization.v1.OptimizeToursValidationError) other); } else { super.mergeFrom(other); return this; @@ -2229,7 +2526,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursValidationError other) { - if (other == com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()) return this; + if (other + == com.google.cloud.optimization.v1.OptimizeToursValidationError.getDefaultInstance()) + return this; if (other.getCode() != 0) { setCode(other.getCode()); } @@ -2256,9 +2555,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OptimizeToursValidatio fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000004); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -2300,45 +2600,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - code_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference m = - input.readMessage( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - offendingValues_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + code_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference m = + input.readMessage( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + offendingValues_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2348,10 +2655,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int code_ ; + private int code_; /** + * + * *
      * A validation error is defined by the pair (`code`, `display_name`) which
      * are always present.
@@ -2600,6 +2910,7 @@ public Builder mergeFrom(
      * 
* * int32 code = 1; + * * @return The code. */ @java.lang.Override @@ -2607,6 +2918,8 @@ public int getCode() { return code_; } /** + * + * *
      * A validation error is defined by the pair (`code`, `display_name`) which
      * are always present.
@@ -2855,6 +3168,7 @@ public int getCode() {
      * 
* * int32 code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -2866,6 +3180,8 @@ public Builder setCode(int value) { return this; } /** + * + * *
      * A validation error is defined by the pair (`code`, `display_name`) which
      * are always present.
@@ -3114,6 +3430,7 @@ public Builder setCode(int value) {
      * 
* * int32 code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -3125,18 +3442,20 @@ public Builder clearCode() { private java.lang.Object displayName_ = ""; /** + * + * *
      * The error display name.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3145,20 +3464,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The error display name.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3166,28 +3486,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The error display name.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The error display name.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3197,17 +3524,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The error display name.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3215,19 +3546,29 @@ public Builder setDisplayNameBytes( return this; } - private java.util.List fields_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> + fields_ = java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - fields_ = new java.util.ArrayList(fields_); + fields_ = + new java.util.ArrayList< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference>( + fields_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> fieldsBuilder_; + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> + fieldsBuilder_; /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3240,9 +3581,13 @@ private void ensureFieldsIsMutable() {
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public java.util.List getFieldsList() { + public java.util.List< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> + getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { @@ -3250,6 +3595,8 @@ public java.util.List * An error context may involve 0, 1 (most of the time) or more fields. For * example, referring to vehicle #4 and shipment #2's first pickup can be @@ -3262,7 +3609,9 @@ public java.util.List * - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public int getFieldsCount() { if (fieldsBuilder_ == null) { @@ -3272,6 +3621,8 @@ public int getFieldsCount() { } } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3284,9 +3635,12 @@ public int getFieldsCount() {
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields(int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields( + int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { @@ -3294,6 +3648,8 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere } } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3306,10 +3662,13 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public Builder setFields( - int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + int index, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3323,6 +3682,8 @@ public Builder setFields( return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3335,10 +3696,14 @@ public Builder setFields(
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public Builder setFields( - int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); @@ -3349,6 +3714,8 @@ public Builder setFields( return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3361,9 +3728,12 @@ public Builder setFields(
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public Builder addFields(com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + public Builder addFields( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3377,6 +3747,8 @@ public Builder addFields(com.google.cloud.optimization.v1.OptimizeToursValidatio return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3389,10 +3761,13 @@ public Builder addFields(com.google.cloud.optimization.v1.OptimizeToursValidatio
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public Builder addFields( - int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { + int index, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3406,6 +3781,8 @@ public Builder addFields( return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3418,10 +3795,13 @@ public Builder addFields(
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public Builder addFields( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder builderForValue) { + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); @@ -3432,6 +3812,8 @@ public Builder addFields( return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3444,10 +3826,14 @@ public Builder addFields(
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public Builder addFields( - int index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); @@ -3458,6 +3844,8 @@ public Builder addFields( return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3470,14 +3858,18 @@ public Builder addFields(
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public Builder addAllFields( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference> + values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -3485,6 +3877,8 @@ public Builder addAllFields( return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3497,7 +3891,9 @@ public Builder addAllFields(
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public Builder clearFields() { if (fieldsBuilder_ == null) { @@ -3510,6 +3906,8 @@ public Builder clearFields() { return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3522,7 +3920,9 @@ public Builder clearFields() {
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { @@ -3535,6 +3935,8 @@ public Builder removeFields(int index) { return this; } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3547,13 +3949,17 @@ public Builder removeFields(int index) {
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder getFieldsBuilder( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + getFieldsBuilder(int index) { return getFieldsFieldBuilder().getBuilder(index); } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3566,16 +3972,21 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getFieldsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder + getFieldsOrBuilder(int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); } else { + return fields_.get(index); + } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3588,10 +3999,15 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.optimization.v1.OptimizeToursValidationError + .FieldReferenceOrBuilder> + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -3599,6 +4015,8 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere } } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3611,13 +4029,20 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance()); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + addFieldsBuilder() { + return getFieldsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance()); } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3630,14 +4055,21 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder addFieldsBuilder( - int index) { - return getFieldsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.getDefaultInstance()); + public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder + addFieldsBuilder(int index) { + return getFieldsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .getDefaultInstance()); } /** + * + * *
      * An error context may involve 0, 1 (most of the time) or more fields. For
      * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -3650,22 +4082,30 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
      * given error code.
      * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - public java.util.List - getFieldsBuilderList() { + public java.util.List< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder> + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference.Builder, com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder>( - fields_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference, + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference + .Builder, + com.google.cloud.optimization.v1.OptimizeToursValidationError + .FieldReferenceOrBuilder>( + fields_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; @@ -3673,6 +4113,8 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere private java.lang.Object errorMessage_ = ""; /** + * + * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -3683,13 +4125,13 @@ public com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldRefere
      * 
* * string error_message = 4; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -3698,6 +4140,8 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -3708,15 +4152,14 @@ public java.lang.String getErrorMessage() {
      * 
* * string error_message = 4; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -3724,6 +4167,8 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -3734,18 +4179,22 @@ public java.lang.String getErrorMessage() {
      * 
* * string error_message = 4; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorMessage_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -3756,6 +4205,7 @@ public Builder setErrorMessage(
      * 
* * string error_message = 4; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -3765,6 +4215,8 @@ public Builder clearErrorMessage() { return this; } /** + * + * *
      * Human-readable string describing the error. There is a 1:1 mapping
      * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -3775,12 +4227,14 @@ public Builder clearErrorMessage() {
      * 
* * string error_message = 4; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000008; @@ -3790,6 +4244,8 @@ public Builder setErrorMessageBytes( private java.lang.Object offendingValues_ = ""; /** + * + * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -3797,13 +4253,13 @@ public Builder setErrorMessageBytes(
      * 
* * string offending_values = 5; + * * @return The offendingValues. */ public java.lang.String getOffendingValues() { java.lang.Object ref = offendingValues_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); offendingValues_ = s; return s; @@ -3812,6 +4268,8 @@ public java.lang.String getOffendingValues() { } } /** + * + * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -3819,15 +4277,14 @@ public java.lang.String getOffendingValues() {
      * 
* * string offending_values = 5; + * * @return The bytes for offendingValues. */ - public com.google.protobuf.ByteString - getOffendingValuesBytes() { + public com.google.protobuf.ByteString getOffendingValuesBytes() { java.lang.Object ref = offendingValues_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); offendingValues_ = b; return b; } else { @@ -3835,6 +4292,8 @@ public java.lang.String getOffendingValues() { } } /** + * + * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -3842,18 +4301,22 @@ public java.lang.String getOffendingValues() {
      * 
* * string offending_values = 5; + * * @param value The offendingValues to set. * @return This builder for chaining. */ - public Builder setOffendingValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOffendingValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } offendingValues_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -3861,6 +4324,7 @@ public Builder setOffendingValues(
      * 
* * string offending_values = 5; + * * @return This builder for chaining. */ public Builder clearOffendingValues() { @@ -3870,6 +4334,8 @@ public Builder clearOffendingValues() { return this; } /** + * + * *
      * May contain the value(s) of the field(s). This is not always available. You
      * should absolutely not rely on it and use it only for manual model
@@ -3877,21 +4343,23 @@ public Builder clearOffendingValues() {
      * 
* * string offending_values = 5; + * * @param value The bytes for offendingValues to set. * @return This builder for chaining. */ - public Builder setOffendingValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOffendingValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); offendingValues_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3901,12 +4369,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OptimizeToursValidationError) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OptimizeToursValidationError) - private static final com.google.cloud.optimization.v1.OptimizeToursValidationError DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.OptimizeToursValidationError + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OptimizeToursValidationError(); } @@ -3915,27 +4384,27 @@ public static com.google.cloud.optimization.v1.OptimizeToursValidationError getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizeToursValidationError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizeToursValidationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3950,6 +4419,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.optimization.v1.OptimizeToursValidationError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java similarity index 91% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java index 59dc6f964bf6..2e2d9a3e6699 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OptimizeToursValidationErrorOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface OptimizeToursValidationErrorOrBuilder extends +public interface OptimizeToursValidationErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OptimizeToursValidationError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A validation error is defined by the pair (`code`, `display_name`) which
    * are always present.
@@ -256,31 +274,39 @@ public interface OptimizeToursValidationErrorOrBuilder extends
    * 
* * int32 code = 1; + * * @return The code. */ int getCode(); /** + * + * *
    * The error display name.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The error display name.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -293,11 +319,15 @@ public interface OptimizeToursValidationErrorOrBuilder extends
    * given error code.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - java.util.List + java.util.List getFieldsList(); /** + * + * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -310,10 +340,14 @@ public interface OptimizeToursValidationErrorOrBuilder extends
    * given error code.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference getFields(int index); /** + * + * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -326,10 +360,14 @@ public interface OptimizeToursValidationErrorOrBuilder extends
    * given error code.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ int getFieldsCount(); /** + * + * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -342,11 +380,17 @@ public interface OptimizeToursValidationErrorOrBuilder extends
    * given error code.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder> getFieldsOrBuilderList(); /** + * + * *
    * An error context may involve 0, 1 (most of the time) or more fields. For
    * example, referring to vehicle #4 and shipment #2's first pickup can be
@@ -359,12 +403,16 @@ public interface OptimizeToursValidationErrorOrBuilder extends
    * given error code.
    * 
* - * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * + * repeated .google.cloud.optimization.v1.OptimizeToursValidationError.FieldReference fields = 3; + * */ - com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getFieldsOrBuilder( - int index); + com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder + getFieldsOrBuilder(int index); /** + * + * *
    * Human-readable string describing the error. There is a 1:1 mapping
    * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -375,10 +423,13 @@ com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBu
    * 
* * string error_message = 4; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * Human-readable string describing the error. There is a 1:1 mapping
    * between `code` and `error_message` (when code != "UNSPECIFIED").
@@ -389,12 +440,14 @@ com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBu
    * 
* * string error_message = 4; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); /** + * + * *
    * May contain the value(s) of the field(s). This is not always available. You
    * should absolutely not rely on it and use it only for manual model
@@ -402,10 +455,13 @@ com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBu
    * 
* * string offending_values = 5; + * * @return The offendingValues. */ java.lang.String getOffendingValues(); /** + * + * *
    * May contain the value(s) of the field(s). This is not always available. You
    * should absolutely not rely on it and use it only for manual model
@@ -413,8 +469,8 @@ com.google.cloud.optimization.v1.OptimizeToursValidationError.FieldReferenceOrBu
    * 
* * string offending_values = 5; + * * @return The bytes for offendingValues. */ - com.google.protobuf.ByteString - getOffendingValuesBytes(); + com.google.protobuf.ByteString getOffendingValuesBytes(); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java similarity index 69% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java index b9c5a831bb37..aa951b135062 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfig.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; /** + * + * *
  * The desired output location.
  * 
* * Protobuf type {@code google.cloud.optimization.v1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OutputConfig() { dataFormat_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OutputConfig.class, com.google.cloud.optimization.v1.OutputConfig.Builder.class); + com.google.cloud.optimization.v1.OutputConfig.class, + com.google.cloud.optimization.v1.OutputConfig.Builder.class); } private int destinationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -67,29 +90,34 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
    * The Google Cloud Storage location to write the output to.
    * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -97,21 +125,26 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * The Google Cloud Storage location to write the output to.
    * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.optimization.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.optimization.v1.GcsDestination) destination_; + return (com.google.cloud.optimization.v1.GcsDestination) destination_; } return com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * The Google Cloud Storage location to write the output to.
    * 
@@ -121,7 +154,7 @@ public com.google.cloud.optimization.v1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.optimization.v1.GcsDestination) destination_; + return (com.google.cloud.optimization.v1.GcsDestination) destination_; } return com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance(); } @@ -129,30 +162,40 @@ public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinatio public static final int DATA_FORMAT_FIELD_NUMBER = 2; private int dataFormat_ = 0; /** + * + * *
    * The output data format that used to store the results in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override public int getDataFormatValue() { + @java.lang.Override + public int getDataFormatValue() { return dataFormat_; } /** + * + * *
    * The output data format that used to store the results in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The dataFormat. */ - @java.lang.Override public com.google.cloud.optimization.v1.DataFormat getDataFormat() { - com.google.cloud.optimization.v1.DataFormat result = com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); + @java.lang.Override + public com.google.cloud.optimization.v1.DataFormat getDataFormat() { + com.google.cloud.optimization.v1.DataFormat result = + com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.optimization.v1.DataFormat.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,12 +207,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.optimization.v1.GcsDestination) destination_); } - if (dataFormat_ != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + if (dataFormat_ + != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(2, dataFormat_); } getUnknownFields().writeTo(output); @@ -182,12 +225,13 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.optimization.v1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.optimization.v1.GcsDestination) destination_); } - if (dataFormat_ != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dataFormat_); + if (dataFormat_ + != com.google.cloud.optimization.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataFormat_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -197,19 +241,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.optimization.v1.OutputConfig other = (com.google.cloud.optimization.v1.OutputConfig) obj; + com.google.cloud.optimization.v1.OutputConfig other = + (com.google.cloud.optimization.v1.OutputConfig) obj; if (dataFormat_ != other.dataFormat_) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -240,132 +284,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The desired output location.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.OutputConfig) com.google.cloud.optimization.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.OutputConfig.class, com.google.cloud.optimization.v1.OutputConfig.Builder.class); + com.google.cloud.optimization.v1.OutputConfig.class, + com.google.cloud.optimization.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.optimization.v1.OutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.AsyncModelProto.internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.AsyncModelProto + .internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; } @java.lang.Override @@ -401,8 +449,11 @@ public com.google.cloud.optimization.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.optimization.v1.OutputConfig buildPartial() { - com.google.cloud.optimization.v1.OutputConfig result = new com.google.cloud.optimization.v1.OutputConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.OutputConfig result = + new com.google.cloud.optimization.v1.OutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -418,8 +469,7 @@ private void buildPartial0(com.google.cloud.optimization.v1.OutputConfig result) private void buildPartialOneofs(com.google.cloud.optimization.v1.OutputConfig result) { result.destinationCase_ = destinationCase_; result.destination_ = this.destination_; - if (destinationCase_ == 1 && - gcsDestinationBuilder_ != null) { + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { result.destination_ = gcsDestinationBuilder_.build(); } } @@ -428,38 +478,39 @@ private void buildPartialOneofs(com.google.cloud.optimization.v1.OutputConfig re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.OutputConfig) { - return mergeFrom((com.google.cloud.optimization.v1.OutputConfig)other); + return mergeFrom((com.google.cloud.optimization.v1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -472,13 +523,15 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.OutputConfig other) { setDataFormatValue(other.getDataFormatValue()); } switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -506,24 +559,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 16: { - dataFormat_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 16: + { + dataFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -533,12 +587,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -551,13 +605,19 @@ public Builder clearDestination() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.GcsDestination, com.google.cloud.optimization.v1.GcsDestination.Builder, com.google.cloud.optimization.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.optimization.v1.GcsDestination, + com.google.cloud.optimization.v1.GcsDestination.Builder, + com.google.cloud.optimization.v1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -565,11 +625,14 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -587,6 +650,8 @@ public com.google.cloud.optimization.v1.GcsDestination getGcsDestination() { } } /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -607,6 +672,8 @@ public Builder setGcsDestination(com.google.cloud.optimization.v1.GcsDestination return this; } /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -625,6 +692,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -633,10 +702,14 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.optimization.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.optimization.v1.GcsDestination.newBuilder((com.google.cloud.optimization.v1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.optimization.v1.GcsDestination.newBuilder( + (com.google.cloud.optimization.v1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -652,6 +725,8 @@ public Builder mergeGcsDestination(com.google.cloud.optimization.v1.GcsDestinati return this; } /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -675,6 +750,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -685,6 +762,8 @@ public com.google.cloud.optimization.v1.GcsDestination.Builder getGcsDestination return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -703,6 +782,8 @@ public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinatio } } /** + * + * *
      * The Google Cloud Storage location to write the output to.
      * 
@@ -710,14 +791,19 @@ public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinatio * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.GcsDestination, com.google.cloud.optimization.v1.GcsDestination.Builder, com.google.cloud.optimization.v1.GcsDestinationOrBuilder> + com.google.cloud.optimization.v1.GcsDestination, + com.google.cloud.optimization.v1.GcsDestination.Builder, + com.google.cloud.optimization.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.optimization.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.GcsDestination, com.google.cloud.optimization.v1.GcsDestination.Builder, com.google.cloud.optimization.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.GcsDestination, + com.google.cloud.optimization.v1.GcsDestination.Builder, + com.google.cloud.optimization.v1.GcsDestinationOrBuilder>( (com.google.cloud.optimization.v1.GcsDestination) destination_, getParentForChildren(), isClean()); @@ -730,22 +816,29 @@ public com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinatio private int dataFormat_ = 0; /** + * + * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override public int getDataFormatValue() { + @java.lang.Override + public int getDataFormatValue() { return dataFormat_; } /** + * + * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @param value The enum numeric value on the wire for dataFormat to set. * @return This builder for chaining. */ @@ -756,24 +849,31 @@ public Builder setDataFormatValue(int value) { return this; } /** + * + * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The dataFormat. */ @java.lang.Override public com.google.cloud.optimization.v1.DataFormat getDataFormat() { - com.google.cloud.optimization.v1.DataFormat result = com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); + com.google.cloud.optimization.v1.DataFormat result = + com.google.cloud.optimization.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.optimization.v1.DataFormat.UNRECOGNIZED : result; } /** + * + * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @param value The dataFormat to set. * @return This builder for chaining. */ @@ -787,11 +887,14 @@ public Builder setDataFormat(com.google.cloud.optimization.v1.DataFormat value) return this; } /** + * + * *
      * The output data format that used to store the results in Cloud Storage.
      * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return This builder for chaining. */ public Builder clearDataFormat() { @@ -800,9 +903,9 @@ public Builder clearDataFormat() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +915,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.OutputConfig) private static final com.google.cloud.optimization.v1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.OutputConfig(); } @@ -826,27 +929,27 @@ public static com.google.cloud.optimization.v1.OutputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +964,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java index 6aec66b20e57..882932c83c01 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/OutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/async_model.proto package com.google.cloud.optimization.v1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Google Cloud Storage location to write the output to.
    * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output to.
    * 
* * .google.cloud.optimization.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.optimization.v1.GcsDestination getGcsDestination(); /** + * + * *
    * The Google Cloud Storage location to write the output to.
    * 
@@ -35,20 +59,26 @@ public interface OutputConfigOrBuilder extends com.google.cloud.optimization.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
    * The output data format that used to store the results in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The enum numeric value on the wire for dataFormat. */ int getDataFormatValue(); /** + * + * *
    * The output data format that used to store the results in Cloud Storage.
    * 
* * .google.cloud.optimization.v1.DataFormat data_format = 2; + * * @return The dataFormat. */ com.google.cloud.optimization.v1.DataFormat getDataFormat(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java similarity index 71% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java index 748209835dc1..d322b4f7f0e5 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiers.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Encapsulates a set of optional conditions to satisfy when calculating
  * vehicle routes. This is similar to `RouteModifiers` in the Google Maps
@@ -13,41 +30,44 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.RouteModifiers}
  */
-public final class RouteModifiers extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouteModifiers extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.RouteModifiers)
     RouteModifiersOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouteModifiers.newBuilder() to construct.
   private RouteModifiers(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RouteModifiers() {
-  }
+
+  private RouteModifiers() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouteModifiers();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.RouteModifiers.class, com.google.cloud.optimization.v1.RouteModifiers.Builder.class);
+            com.google.cloud.optimization.v1.RouteModifiers.class,
+            com.google.cloud.optimization.v1.RouteModifiers.Builder.class);
   }
 
   public static final int AVOID_TOLLS_FIELD_NUMBER = 2;
   private boolean avoidTolls_ = false;
   /**
+   *
+   *
    * 
    * Specifies whether to avoid toll roads where reasonable. Preference will be
    * given to routes not containing toll roads. Applies only to motorized travel
@@ -55,6 +75,7 @@ protected java.lang.Object newInstance(
    * 
* * bool avoid_tolls = 2; + * * @return The avoidTolls. */ @java.lang.Override @@ -65,6 +86,8 @@ public boolean getAvoidTolls() { public static final int AVOID_HIGHWAYS_FIELD_NUMBER = 3; private boolean avoidHighways_ = false; /** + * + * *
    * Specifies whether to avoid highways where reasonable. Preference will be
    * given to routes not containing highways. Applies only to motorized travel
@@ -72,6 +95,7 @@ public boolean getAvoidTolls() {
    * 
* * bool avoid_highways = 3; + * * @return The avoidHighways. */ @java.lang.Override @@ -82,6 +106,8 @@ public boolean getAvoidHighways() { public static final int AVOID_FERRIES_FIELD_NUMBER = 4; private boolean avoidFerries_ = false; /** + * + * *
    * Specifies whether to avoid ferries where reasonable. Preference will be
    * given to routes not containing travel by ferries. Applies only to motorized
@@ -89,6 +115,7 @@ public boolean getAvoidHighways() {
    * 
* * bool avoid_ferries = 4; + * * @return The avoidFerries. */ @java.lang.Override @@ -99,6 +126,8 @@ public boolean getAvoidFerries() { public static final int AVOID_INDOOR_FIELD_NUMBER = 5; private boolean avoidIndoor_ = false; /** + * + * *
    * Optional. Specifies whether to avoid navigating indoors where reasonable.
    * Preference will be given to routes not containing indoor navigation.
@@ -106,6 +135,7 @@ public boolean getAvoidFerries() {
    * 
* * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The avoidIndoor. */ @java.lang.Override @@ -114,6 +144,7 @@ public boolean getAvoidIndoor() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +156,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (avoidTolls_ != false) { output.writeBool(2, avoidTolls_); } @@ -149,20 +179,16 @@ public int getSerializedSize() { size = 0; if (avoidTolls_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, avoidTolls_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, avoidTolls_); } if (avoidHighways_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, avoidHighways_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, avoidHighways_); } if (avoidFerries_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, avoidFerries_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, avoidFerries_); } if (avoidIndoor_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, avoidIndoor_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, avoidIndoor_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,21 +198,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.RouteModifiers)) { return super.equals(obj); } - com.google.cloud.optimization.v1.RouteModifiers other = (com.google.cloud.optimization.v1.RouteModifiers) obj; + com.google.cloud.optimization.v1.RouteModifiers other = + (com.google.cloud.optimization.v1.RouteModifiers) obj; - if (getAvoidTolls() - != other.getAvoidTolls()) return false; - if (getAvoidHighways() - != other.getAvoidHighways()) return false; - if (getAvoidFerries() - != other.getAvoidFerries()) return false; - if (getAvoidIndoor() - != other.getAvoidIndoor()) return false; + if (getAvoidTolls() != other.getAvoidTolls()) return false; + if (getAvoidHighways() != other.getAvoidHighways()) return false; + if (getAvoidFerries() != other.getAvoidFerries()) return false; + if (getAvoidIndoor() != other.getAvoidIndoor()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,115 +222,116 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AVOID_TOLLS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAvoidTolls()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAvoidTolls()); hash = (37 * hash) + AVOID_HIGHWAYS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAvoidHighways()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAvoidHighways()); hash = (37 * hash) + AVOID_FERRIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAvoidFerries()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAvoidFerries()); hash = (37 * hash) + AVOID_INDOOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAvoidIndoor()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAvoidIndoor()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.RouteModifiers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.RouteModifiers parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.RouteModifiers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.RouteModifiers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.RouteModifiers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates a set of optional conditions to satisfy when calculating
    * vehicle routes. This is similar to `RouteModifiers` in the Google Maps
@@ -317,33 +341,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.RouteModifiers}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.RouteModifiers)
       com.google.cloud.optimization.v1.RouteModifiersOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.RouteModifiers.class, com.google.cloud.optimization.v1.RouteModifiers.Builder.class);
+              com.google.cloud.optimization.v1.RouteModifiers.class,
+              com.google.cloud.optimization.v1.RouteModifiers.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.RouteModifiers.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,9 +379,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor;
     }
 
     @java.lang.Override
@@ -377,8 +400,11 @@ public com.google.cloud.optimization.v1.RouteModifiers build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.RouteModifiers buildPartial() {
-      com.google.cloud.optimization.v1.RouteModifiers result = new com.google.cloud.optimization.v1.RouteModifiers(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.RouteModifiers result =
+          new com.google.cloud.optimization.v1.RouteModifiers(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -403,38 +429,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.RouteModifiers resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.RouteModifiers) {
-        return mergeFrom((com.google.cloud.optimization.v1.RouteModifiers)other);
+        return mergeFrom((com.google.cloud.optimization.v1.RouteModifiers) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -442,7 +469,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.RouteModifiers other) {
-      if (other == com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance())
+        return this;
       if (other.getAvoidTolls() != false) {
         setAvoidTolls(other.getAvoidTolls());
       }
@@ -481,32 +509,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 16: {
-              avoidTolls_ = input.readBool();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 16
-            case 24: {
-              avoidHighways_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 32: {
-              avoidFerries_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            case 40: {
-              avoidIndoor_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 40
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 16:
+              {
+                avoidTolls_ = input.readBool();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 16
+            case 24:
+              {
+                avoidHighways_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 32:
+              {
+                avoidFerries_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            case 40:
+              {
+                avoidIndoor_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 40
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -516,10 +549,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private boolean avoidTolls_ ;
+    private boolean avoidTolls_;
     /**
+     *
+     *
      * 
      * Specifies whether to avoid toll roads where reasonable. Preference will be
      * given to routes not containing toll roads. Applies only to motorized travel
@@ -527,6 +563,7 @@ public Builder mergeFrom(
      * 
* * bool avoid_tolls = 2; + * * @return The avoidTolls. */ @java.lang.Override @@ -534,6 +571,8 @@ public boolean getAvoidTolls() { return avoidTolls_; } /** + * + * *
      * Specifies whether to avoid toll roads where reasonable. Preference will be
      * given to routes not containing toll roads. Applies only to motorized travel
@@ -541,6 +580,7 @@ public boolean getAvoidTolls() {
      * 
* * bool avoid_tolls = 2; + * * @param value The avoidTolls to set. * @return This builder for chaining. */ @@ -552,6 +592,8 @@ public Builder setAvoidTolls(boolean value) { return this; } /** + * + * *
      * Specifies whether to avoid toll roads where reasonable. Preference will be
      * given to routes not containing toll roads. Applies only to motorized travel
@@ -559,6 +601,7 @@ public Builder setAvoidTolls(boolean value) {
      * 
* * bool avoid_tolls = 2; + * * @return This builder for chaining. */ public Builder clearAvoidTolls() { @@ -568,8 +611,10 @@ public Builder clearAvoidTolls() { return this; } - private boolean avoidHighways_ ; + private boolean avoidHighways_; /** + * + * *
      * Specifies whether to avoid highways where reasonable. Preference will be
      * given to routes not containing highways. Applies only to motorized travel
@@ -577,6 +622,7 @@ public Builder clearAvoidTolls() {
      * 
* * bool avoid_highways = 3; + * * @return The avoidHighways. */ @java.lang.Override @@ -584,6 +630,8 @@ public boolean getAvoidHighways() { return avoidHighways_; } /** + * + * *
      * Specifies whether to avoid highways where reasonable. Preference will be
      * given to routes not containing highways. Applies only to motorized travel
@@ -591,6 +639,7 @@ public boolean getAvoidHighways() {
      * 
* * bool avoid_highways = 3; + * * @param value The avoidHighways to set. * @return This builder for chaining. */ @@ -602,6 +651,8 @@ public Builder setAvoidHighways(boolean value) { return this; } /** + * + * *
      * Specifies whether to avoid highways where reasonable. Preference will be
      * given to routes not containing highways. Applies only to motorized travel
@@ -609,6 +660,7 @@ public Builder setAvoidHighways(boolean value) {
      * 
* * bool avoid_highways = 3; + * * @return This builder for chaining. */ public Builder clearAvoidHighways() { @@ -618,8 +670,10 @@ public Builder clearAvoidHighways() { return this; } - private boolean avoidFerries_ ; + private boolean avoidFerries_; /** + * + * *
      * Specifies whether to avoid ferries where reasonable. Preference will be
      * given to routes not containing travel by ferries. Applies only to motorized
@@ -627,6 +681,7 @@ public Builder clearAvoidHighways() {
      * 
* * bool avoid_ferries = 4; + * * @return The avoidFerries. */ @java.lang.Override @@ -634,6 +689,8 @@ public boolean getAvoidFerries() { return avoidFerries_; } /** + * + * *
      * Specifies whether to avoid ferries where reasonable. Preference will be
      * given to routes not containing travel by ferries. Applies only to motorized
@@ -641,6 +698,7 @@ public boolean getAvoidFerries() {
      * 
* * bool avoid_ferries = 4; + * * @param value The avoidFerries to set. * @return This builder for chaining. */ @@ -652,6 +710,8 @@ public Builder setAvoidFerries(boolean value) { return this; } /** + * + * *
      * Specifies whether to avoid ferries where reasonable. Preference will be
      * given to routes not containing travel by ferries. Applies only to motorized
@@ -659,6 +719,7 @@ public Builder setAvoidFerries(boolean value) {
      * 
* * bool avoid_ferries = 4; + * * @return This builder for chaining. */ public Builder clearAvoidFerries() { @@ -668,8 +729,10 @@ public Builder clearAvoidFerries() { return this; } - private boolean avoidIndoor_ ; + private boolean avoidIndoor_; /** + * + * *
      * Optional. Specifies whether to avoid navigating indoors where reasonable.
      * Preference will be given to routes not containing indoor navigation.
@@ -677,6 +740,7 @@ public Builder clearAvoidFerries() {
      * 
* * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The avoidIndoor. */ @java.lang.Override @@ -684,6 +748,8 @@ public boolean getAvoidIndoor() { return avoidIndoor_; } /** + * + * *
      * Optional. Specifies whether to avoid navigating indoors where reasonable.
      * Preference will be given to routes not containing indoor navigation.
@@ -691,6 +757,7 @@ public boolean getAvoidIndoor() {
      * 
* * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The avoidIndoor to set. * @return This builder for chaining. */ @@ -702,6 +769,8 @@ public Builder setAvoidIndoor(boolean value) { return this; } /** + * + * *
      * Optional. Specifies whether to avoid navigating indoors where reasonable.
      * Preference will be given to routes not containing indoor navigation.
@@ -709,6 +778,7 @@ public Builder setAvoidIndoor(boolean value) {
      * 
* * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAvoidIndoor() { @@ -717,9 +787,9 @@ public Builder clearAvoidIndoor() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -729,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.RouteModifiers) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.RouteModifiers) private static final com.google.cloud.optimization.v1.RouteModifiers DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.RouteModifiers(); } @@ -743,27 +813,27 @@ public static com.google.cloud.optimization.v1.RouteModifiers getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteModifiers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteModifiers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -778,6 +848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.RouteModifiers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java similarity index 69% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java index 8e386a58a812..abae3a932858 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/RouteModifiersOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface RouteModifiersOrBuilder extends +public interface RouteModifiersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.RouteModifiers) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies whether to avoid toll roads where reasonable. Preference will be
    * given to routes not containing toll roads. Applies only to motorized travel
@@ -15,11 +33,14 @@ public interface RouteModifiersOrBuilder extends
    * 
* * bool avoid_tolls = 2; + * * @return The avoidTolls. */ boolean getAvoidTolls(); /** + * + * *
    * Specifies whether to avoid highways where reasonable. Preference will be
    * given to routes not containing highways. Applies only to motorized travel
@@ -27,11 +48,14 @@ public interface RouteModifiersOrBuilder extends
    * 
* * bool avoid_highways = 3; + * * @return The avoidHighways. */ boolean getAvoidHighways(); /** + * + * *
    * Specifies whether to avoid ferries where reasonable. Preference will be
    * given to routes not containing travel by ferries. Applies only to motorized
@@ -39,11 +63,14 @@ public interface RouteModifiersOrBuilder extends
    * 
* * bool avoid_ferries = 4; + * * @return The avoidFerries. */ boolean getAvoidFerries(); /** + * + * *
    * Optional. Specifies whether to avoid navigating indoors where reasonable.
    * Preference will be given to routes not containing indoor navigation.
@@ -51,6 +78,7 @@ public interface RouteModifiersOrBuilder extends
    * 
* * bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The avoidIndoor. */ boolean getAvoidIndoor(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java similarity index 78% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java index 22b71b21848d..2cacf25aa36a 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Shipment.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * The shipment of a single item, from one of its pickups to one of its
  * deliveries. For the shipment to be considered as performed, a unique vehicle
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.Shipment}
  */
-public final class Shipment extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Shipment extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Shipment)
     ShipmentOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Shipment.newBuilder() to construct.
   private Shipment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Shipment() {
     pickups_ = java.util.Collections.emptyList();
     deliveries_ = java.util.Collections.emptyList();
@@ -36,41 +54,44 @@ private Shipment() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Shipment();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_Shipment_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 14:
         return internalGetLoadDemands();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.Shipment.class, com.google.cloud.optimization.v1.Shipment.Builder.class);
+            com.google.cloud.optimization.v1.Shipment.class,
+            com.google.cloud.optimization.v1.Shipment.Builder.class);
   }
 
-  public interface VisitRequestOrBuilder extends
+  public interface VisitRequestOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Shipment.VisitRequest)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -78,10 +99,13 @@ public interface VisitRequestOrBuilder extends
      * 
* * .google.type.LatLng arrival_location = 1; + * * @return Whether the arrivalLocation field is set. */ boolean hasArrivalLocation(); /** + * + * *
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -89,10 +113,13 @@ public interface VisitRequestOrBuilder extends
      * 
* * .google.type.LatLng arrival_location = 1; + * * @return The arrivalLocation. */ com.google.type.LatLng getArrivalLocation(); /** + * + * *
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -104,6 +131,8 @@ public interface VisitRequestOrBuilder extends
     com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder();
 
     /**
+     *
+     *
      * 
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -111,10 +140,13 @@ public interface VisitRequestOrBuilder extends
      * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; + * * @return Whether the arrivalWaypoint field is set. */ boolean hasArrivalWaypoint(); /** + * + * *
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -122,10 +154,13 @@ public interface VisitRequestOrBuilder extends
      * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; + * * @return The arrivalWaypoint. */ com.google.cloud.optimization.v1.Waypoint getArrivalWaypoint(); /** + * + * *
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -137,6 +172,8 @@ public interface VisitRequestOrBuilder extends
     com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBuilder();
 
     /**
+     *
+     *
      * 
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -145,10 +182,13 @@ public interface VisitRequestOrBuilder extends
      * 
* * .google.type.LatLng departure_location = 3; + * * @return Whether the departureLocation field is set. */ boolean hasDepartureLocation(); /** + * + * *
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -157,10 +197,13 @@ public interface VisitRequestOrBuilder extends
      * 
* * .google.type.LatLng departure_location = 3; + * * @return The departureLocation. */ com.google.type.LatLng getDepartureLocation(); /** + * + * *
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -173,6 +216,8 @@ public interface VisitRequestOrBuilder extends
     com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder();
 
     /**
+     *
+     *
      * 
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -181,10 +226,13 @@ public interface VisitRequestOrBuilder extends
      * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; + * * @return Whether the departureWaypoint field is set. */ boolean hasDepartureWaypoint(); /** + * + * *
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -193,10 +241,13 @@ public interface VisitRequestOrBuilder extends
      * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; + * * @return The departureWaypoint. */ com.google.cloud.optimization.v1.Waypoint getDepartureWaypoint(); /** + * + * *
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -209,51 +260,63 @@ public interface VisitRequestOrBuilder extends
     com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOrBuilder();
 
     /**
+     *
+     *
      * 
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -273,9 +336,10 @@ public interface VisitRequestOrBuilder extends
      *
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
-    java.util.List 
-        getTimeWindowsList();
+    java.util.List getTimeWindowsList();
     /**
+     *
+     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -297,6 +361,8 @@ public interface VisitRequestOrBuilder extends
      */
     com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index);
     /**
+     *
+     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -318,6 +384,8 @@ public interface VisitRequestOrBuilder extends
      */
     int getTimeWindowsCount();
     /**
+     *
+     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -337,9 +405,11 @@ public interface VisitRequestOrBuilder extends
      *
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
-    java.util.List 
+    java.util.List
         getTimeWindowsOrBuilderList();
     /**
+     *
+     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -359,10 +429,11 @@ public interface VisitRequestOrBuilder extends
      *
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
-    com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
-        int index);
+    com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(int index);
 
     /**
+     *
+     *
      * 
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -370,10 +441,13 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
      * 
* * .google.protobuf.Duration duration = 7; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -381,10 +455,13 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
      * 
* * .google.protobuf.Duration duration = 7; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -396,6 +473,8 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
     com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Cost to service this visit request on a vehicle route. This can be used
      * to pay different costs for each alternative pickup or delivery of a
@@ -404,11 +483,14 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
      * 
* * double cost = 8; + * * @return The cost. */ double getCost(); /** + * + * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -419,10 +501,13 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ int getLoadDemandsCount(); /** + * + * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -433,17 +518,17 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; - */ - boolean containsLoadDemands( - java.lang.String key); - /** - * Use {@link #getLoadDemandsMap()} instead. + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ + boolean containsLoadDemands(java.lang.String key); + /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Deprecated java.util.Map - getLoadDemands(); + getLoadDemands(); /** + * + * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -454,11 +539,14 @@ boolean containsLoadDemands(
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ java.util.Map - getLoadDemandsMap(); + getLoadDemandsMap(); /** + * + * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -469,14 +557,17 @@ boolean containsLoadDemands(
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ /* nullable */ -com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( + com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.optimization.v1.Shipment.Load defaultValue); + com.google.cloud.optimization.v1.Shipment.Load defaultValue); /** + * + * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -487,12 +578,14 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ - com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( - java.lang.String key); + com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(java.lang.String key); /** + * + * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -502,11 +595,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * repeated string visit_types = 10; + * * @return A list containing the visitTypes. */ - java.util.List - getVisitTypesList(); + java.util.List getVisitTypesList(); /** + * + * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -516,10 +611,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * repeated string visit_types = 10; + * * @return The count of visitTypes. */ int getVisitTypesCount(); /** + * + * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -529,11 +627,14 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * repeated string visit_types = 10; + * * @param index The index of the element to return. * @return The visitTypes at the given index. */ java.lang.String getVisitTypes(int index); /** + * + * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -543,13 +644,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * repeated string visit_types = 10; + * * @param index The index of the value to return. * @return The bytes of the visitTypes at the given index. */ - com.google.protobuf.ByteString - getVisitTypesBytes(int index); + com.google.protobuf.ByteString getVisitTypesBytes(int index); /** + * + * *
      * Specifies a label for this `VisitRequest`. This label is reported in the
      * response as `visit_label` in the corresponding
@@ -557,10 +660,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * string label = 11; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
      * Specifies a label for this `VisitRequest`. This label is reported in the
      * response as `visit_label` in the corresponding
@@ -568,66 +674,91 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * string label = 11; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getDemandsList(); + @java.lang.Deprecated + java.util.List getDemandsList(); /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated int getDemandsCount(); + @java.lang.Deprecated + int getDemandsCount(); /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getDemandsOrBuilderList(); /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( - int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder(int index); } /** + * + * *
    * Request for a visit which can be done by a vehicle: it has a geo-location
    * (or two, see below), opening and closing times represented by time windows,
@@ -637,60 +768,61 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    *
    * Protobuf type {@code google.cloud.optimization.v1.Shipment.VisitRequest}
    */
-  public static final class VisitRequest extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class VisitRequest extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Shipment.VisitRequest)
       VisitRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use VisitRequest.newBuilder() to construct.
     private VisitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private VisitRequest() {
-      tags_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
       timeWindows_ = java.util.Collections.emptyList();
-      visitTypes_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
       label_ = "";
       demands_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new VisitRequest();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
     @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 12:
           return internalGetLoadDemands();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Shipment.VisitRequest.class, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder.class);
+              com.google.cloud.optimization.v1.Shipment.VisitRequest.class,
+              com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder.class);
     }
 
     public static final int ARRIVAL_LOCATION_FIELD_NUMBER = 1;
     private com.google.type.LatLng arrivalLocation_;
     /**
+     *
+     *
      * 
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -698,6 +830,7 @@ protected com.google.protobuf.MapField internalGetMapField(
      * 
* * .google.type.LatLng arrival_location = 1; + * * @return Whether the arrivalLocation field is set. */ @java.lang.Override @@ -705,6 +838,8 @@ public boolean hasArrivalLocation() { return arrivalLocation_ != null; } /** + * + * *
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -712,13 +847,18 @@ public boolean hasArrivalLocation() {
      * 
* * .google.type.LatLng arrival_location = 1; + * * @return The arrivalLocation. */ @java.lang.Override public com.google.type.LatLng getArrivalLocation() { - return arrivalLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : arrivalLocation_; + return arrivalLocation_ == null + ? com.google.type.LatLng.getDefaultInstance() + : arrivalLocation_; } /** + * + * *
      * The geo-location where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -729,12 +869,16 @@ public com.google.type.LatLng getArrivalLocation() {
      */
     @java.lang.Override
     public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
-      return arrivalLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : arrivalLocation_;
+      return arrivalLocation_ == null
+          ? com.google.type.LatLng.getDefaultInstance()
+          : arrivalLocation_;
     }
 
     public static final int ARRIVAL_WAYPOINT_FIELD_NUMBER = 2;
     private com.google.cloud.optimization.v1.Waypoint arrivalWaypoint_;
     /**
+     *
+     *
      * 
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -742,6 +886,7 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
      * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; + * * @return Whether the arrivalWaypoint field is set. */ @java.lang.Override @@ -749,6 +894,8 @@ public boolean hasArrivalWaypoint() { return arrivalWaypoint_ != null; } /** + * + * *
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -756,13 +903,18 @@ public boolean hasArrivalWaypoint() {
      * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; + * * @return The arrivalWaypoint. */ @java.lang.Override public com.google.cloud.optimization.v1.Waypoint getArrivalWaypoint() { - return arrivalWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : arrivalWaypoint_; + return arrivalWaypoint_ == null + ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() + : arrivalWaypoint_; } /** + * + * *
      * The waypoint where the vehicle arrives when performing this
      * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -773,12 +925,16 @@ public com.google.cloud.optimization.v1.Waypoint getArrivalWaypoint() {
      */
     @java.lang.Override
     public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBuilder() {
-      return arrivalWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : arrivalWaypoint_;
+      return arrivalWaypoint_ == null
+          ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
+          : arrivalWaypoint_;
     }
 
     public static final int DEPARTURE_LOCATION_FIELD_NUMBER = 3;
     private com.google.type.LatLng departureLocation_;
     /**
+     *
+     *
      * 
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -787,6 +943,7 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
      * 
* * .google.type.LatLng departure_location = 3; + * * @return Whether the departureLocation field is set. */ @java.lang.Override @@ -794,6 +951,8 @@ public boolean hasDepartureLocation() { return departureLocation_ != null; } /** + * + * *
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -802,13 +961,18 @@ public boolean hasDepartureLocation() {
      * 
* * .google.type.LatLng departure_location = 3; + * * @return The departureLocation. */ @java.lang.Override public com.google.type.LatLng getDepartureLocation() { - return departureLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : departureLocation_; + return departureLocation_ == null + ? com.google.type.LatLng.getDefaultInstance() + : departureLocation_; } /** + * + * *
      * The geo-location where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -820,12 +984,16 @@ public com.google.type.LatLng getDepartureLocation() {
      */
     @java.lang.Override
     public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
-      return departureLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : departureLocation_;
+      return departureLocation_ == null
+          ? com.google.type.LatLng.getDefaultInstance()
+          : departureLocation_;
     }
 
     public static final int DEPARTURE_WAYPOINT_FIELD_NUMBER = 4;
     private com.google.cloud.optimization.v1.Waypoint departureWaypoint_;
     /**
+     *
+     *
      * 
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -834,6 +1002,7 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
      * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; + * * @return Whether the departureWaypoint field is set. */ @java.lang.Override @@ -841,6 +1010,8 @@ public boolean hasDepartureWaypoint() { return departureWaypoint_ != null; } /** + * + * *
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -849,13 +1020,18 @@ public boolean hasDepartureWaypoint() {
      * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; + * * @return The departureWaypoint. */ @java.lang.Override public com.google.cloud.optimization.v1.Waypoint getDepartureWaypoint() { - return departureWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : departureWaypoint_; + return departureWaypoint_ == null + ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() + : departureWaypoint_; } /** + * + * *
      * The waypoint where the vehicle departs after completing this
      * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -867,45 +1043,56 @@ public com.google.cloud.optimization.v1.Waypoint getDepartureWaypoint() {
      */
     @java.lang.Override
     public com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOrBuilder() {
-      return departureWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : departureWaypoint_;
+      return departureWaypoint_ == null
+          ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
+          : departureWaypoint_;
     }
 
     public static final int TAGS_FIELD_NUMBER = 5;
+
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList tags_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
+     *
+     *
      * 
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -913,24 +1100,29 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
      * Specifies tags attached to the visit request.
      * Empty or duplicate strings are not allowed.
      * 
* * repeated string tags = 5; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int TIME_WINDOWS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.List timeWindows_; /** + * + * *
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -955,6 +1147,8 @@ public java.util.List getTimeWindow
       return timeWindows_;
     }
     /**
+     *
+     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -975,11 +1169,13 @@ public java.util.List getTimeWindow
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List
         getTimeWindowsOrBuilderList() {
       return timeWindows_;
     }
     /**
+     *
+     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -1004,6 +1200,8 @@ public int getTimeWindowsCount() {
       return timeWindows_.size();
     }
     /**
+     *
+     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -1028,6 +1226,8 @@ public com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index) {
       return timeWindows_.get(index);
     }
     /**
+     *
+     *
      * 
      * Time windows which constrain the arrival time at a visit.
      * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -1048,14 +1248,15 @@ public com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index) {
      * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
      */
     @java.lang.Override
-    public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
-        int index) {
+    public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(int index) {
       return timeWindows_.get(index);
     }
 
     public static final int DURATION_FIELD_NUMBER = 7;
     private com.google.protobuf.Duration duration_;
     /**
+     *
+     *
      * 
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -1063,6 +1264,7 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuil
      * 
* * .google.protobuf.Duration duration = 7; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -1070,6 +1272,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -1077,6 +1281,7 @@ public boolean hasDuration() {
      * 
* * .google.protobuf.Duration duration = 7; + * * @return The duration. */ @java.lang.Override @@ -1084,6 +1289,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
      * Duration of the visit, i.e. time spent by the vehicle between arrival
      * and departure (to be added to the possible waiting time; see
@@ -1100,6 +1307,8 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
     public static final int COST_FIELD_NUMBER = 8;
     private double cost_ = 0D;
     /**
+     *
+     *
      * 
      * Cost to service this visit request on a vehicle route. This can be used
      * to pay different costs for each alternative pickup or delivery of a
@@ -1108,6 +1317,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
      * 
* * double cost = 8; + * * @return The cost. */ @java.lang.Override @@ -1116,32 +1326,43 @@ public double getCost() { } public static final int LOAD_DEMANDS_FIELD_NUMBER = 12; + private static final class LoadDemandsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> defaultEntry = + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_; - private com.google.protobuf.MapField - internalGetLoadDemands() { + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> + loadDemands_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> + internalGetLoadDemands() { if (loadDemands_ == null) { return com.google.protobuf.MapField.emptyMapField( LoadDemandsDefaultEntryHolder.defaultEntry); } return loadDemands_; } + public int getLoadDemandsCount() { return internalGetLoadDemands().getMap().size(); } /** + * + * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -1152,23 +1373,26 @@ public int getLoadDemandsCount() {
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ @java.lang.Override - public boolean containsLoadDemands( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLoadDemands(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLoadDemands().getMap().containsKey(key); } - /** - * Use {@link #getLoadDemandsMap()} instead. - */ + /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getLoadDemands() { + public java.util.Map + getLoadDemands() { return getLoadDemandsMap(); } /** + * + * *
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -1179,13 +1403,17 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
+     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
+     * 
      */
     @java.lang.Override
-    public java.util.Map getLoadDemandsMap() {
+    public java.util.Map
+        getLoadDemandsMap() {
       return internalGetLoadDemands().getMap();
     }
     /**
+     *
+     *
      * 
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -1196,20 +1424,24 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
+     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
+     * 
      */
     @java.lang.Override
-    public /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+    public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
         java.lang.String key,
         /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetLoadDemands().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Load demands of this visit request. This is just like
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -1220,12 +1452,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -1235,10 +1470,13 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( } public static final int VISIT_TYPES_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -1248,13 +1486,15 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * repeated string visit_types = 10; + * * @return A list containing the visitTypes. */ - public com.google.protobuf.ProtocolStringList - getVisitTypesList() { + public com.google.protobuf.ProtocolStringList getVisitTypesList() { return visitTypes_; } /** + * + * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -1264,12 +1504,15 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * repeated string visit_types = 10; + * * @return The count of visitTypes. */ public int getVisitTypesCount() { return visitTypes_.size(); } /** + * + * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -1279,6 +1522,7 @@ public int getVisitTypesCount() {
      * 
* * repeated string visit_types = 10; + * * @param index The index of the element to return. * @return The visitTypes at the given index. */ @@ -1286,6 +1530,8 @@ public java.lang.String getVisitTypes(int index) { return visitTypes_.get(index); } /** + * + * *
      * Specifies the types of the visit. This may be used to allocate additional
      * time required for a vehicle to complete this visit (see
@@ -1295,18 +1541,21 @@ public java.lang.String getVisitTypes(int index) {
      * 
* * repeated string visit_types = 10; + * * @param index The index of the value to return. * @return The bytes of the visitTypes at the given index. */ - public com.google.protobuf.ByteString - getVisitTypesBytes(int index) { + public com.google.protobuf.ByteString getVisitTypesBytes(int index) { return visitTypes_.getByteString(index); } public static final int LABEL_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** + * + * *
      * Specifies a label for this `VisitRequest`. This label is reported in the
      * response as `visit_label` in the corresponding
@@ -1314,6 +1563,7 @@ public java.lang.String getVisitTypes(int index) {
      * 
* * string label = 11; + * * @return The label. */ @java.lang.Override @@ -1322,14 +1572,15 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
      * Specifies a label for this `VisitRequest`. This label is reported in the
      * response as `visit_label` in the corresponding
@@ -1337,16 +1588,15 @@ public java.lang.String getLabel() {
      * 
* * string label = 11; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -1355,77 +1605,104 @@ public java.lang.String getLabel() { } public static final int DEMANDS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List demands_; /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getDemandsList() { + @java.lang.Deprecated + public java.util.List getDemandsList() { return demands_; } /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getDemandsOrBuilderList() { return demands_; } /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getDemandsCount() { + @java.lang.Deprecated + public int getDemandsCount() { return demands_.size(); } /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { return demands_.get(index); } /** + * + * *
      * Deprecated: Use
      * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { return demands_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1437,8 +1714,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (arrivalLocation_ != null) { output.writeMessage(1, getArrivalLocation()); } @@ -1472,12 +1748,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, label_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLoadDemands(), - LoadDemandsDefaultEntryHolder.defaultEntry, - 12); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLoadDemands(), LoadDemandsDefaultEntryHolder.defaultEntry, 12); getUnknownFields().writeTo(output); } @@ -1488,20 +1760,16 @@ public int getSerializedSize() { size = 0; if (arrivalLocation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArrivalLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArrivalLocation()); } if (arrivalWaypoint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getArrivalWaypoint()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArrivalWaypoint()); } if (departureLocation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDepartureLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDepartureLocation()); } if (departureWaypoint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDepartureWaypoint()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDepartureWaypoint()); } { int dataSize = 0; @@ -1512,20 +1780,16 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } for (int i = 0; i < timeWindows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, timeWindows_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, timeWindows_.get(i)); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDuration()); } if (java.lang.Double.doubleToRawLongBits(cost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(8, cost_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, cost_); } for (int i = 0; i < demands_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, demands_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, demands_.get(i)); } { int dataSize = 0; @@ -1538,15 +1802,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, label_); } - for (java.util.Map.Entry entry - : internalGetLoadDemands().getMap().entrySet()) { - com.google.protobuf.MapEntry - loadDemands__ = LoadDemandsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, loadDemands__); + for (java.util.Map.Entry + entry : internalGetLoadDemands().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> + loadDemands__ = + LoadDemandsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, loadDemands__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1556,53 +1822,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Shipment.VisitRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Shipment.VisitRequest other = (com.google.cloud.optimization.v1.Shipment.VisitRequest) obj; + com.google.cloud.optimization.v1.Shipment.VisitRequest other = + (com.google.cloud.optimization.v1.Shipment.VisitRequest) obj; if (hasArrivalLocation() != other.hasArrivalLocation()) return false; if (hasArrivalLocation()) { - if (!getArrivalLocation() - .equals(other.getArrivalLocation())) return false; + if (!getArrivalLocation().equals(other.getArrivalLocation())) return false; } if (hasArrivalWaypoint() != other.hasArrivalWaypoint()) return false; if (hasArrivalWaypoint()) { - if (!getArrivalWaypoint() - .equals(other.getArrivalWaypoint())) return false; + if (!getArrivalWaypoint().equals(other.getArrivalWaypoint())) return false; } if (hasDepartureLocation() != other.hasDepartureLocation()) return false; if (hasDepartureLocation()) { - if (!getDepartureLocation() - .equals(other.getDepartureLocation())) return false; + if (!getDepartureLocation().equals(other.getDepartureLocation())) return false; } if (hasDepartureWaypoint() != other.hasDepartureWaypoint()) return false; if (hasDepartureWaypoint()) { - if (!getDepartureWaypoint() - .equals(other.getDepartureWaypoint())) return false; + if (!getDepartureWaypoint().equals(other.getDepartureWaypoint())) return false; } - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (!getTimeWindowsList() - .equals(other.getTimeWindowsList())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (!getTimeWindowsList().equals(other.getTimeWindowsList())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (java.lang.Double.doubleToLongBits(getCost()) - != java.lang.Double.doubleToLongBits( - other.getCost())) return false; - if (!internalGetLoadDemands().equals( - other.internalGetLoadDemands())) return false; - if (!getVisitTypesList() - .equals(other.getVisitTypesList())) return false; - if (!getLabel() - .equals(other.getLabel())) return false; - if (!getDemandsList() - .equals(other.getDemandsList())) return false; + != java.lang.Double.doubleToLongBits(other.getCost())) return false; + if (!internalGetLoadDemands().equals(other.internalGetLoadDemands())) return false; + if (!getVisitTypesList().equals(other.getVisitTypesList())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getDemandsList().equals(other.getDemandsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1643,8 +1898,9 @@ public int hashCode() { hash = (53 * hash) + getDuration().hashCode(); } hash = (37 * hash) + COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCost())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getCost())); if (!internalGetLoadDemands().getMap().isEmpty()) { hash = (37 * hash) + LOAD_DEMANDS_FIELD_NUMBER; hash = (53 * hash) + internalGetLoadDemands().hashCode(); @@ -1665,89 +1921,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Shipment.VisitRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Shipment.VisitRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.Shipment.VisitRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1757,6 +2018,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request for a visit which can be done by a vehicle: it has a geo-location
      * (or two, see below), opening and closing times represented by time windows,
@@ -1766,55 +2029,53 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.Shipment.VisitRequest}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Shipment.VisitRequest)
         com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 12:
             return internalGetLoadDemands();
           default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
+            throw new RuntimeException("Invalid map field number: " + number);
         }
       }
+
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         switch (number) {
           case 12:
             return internalGetMutableLoadDemands();
           default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
+            throw new RuntimeException("Invalid map field number: " + number);
         }
       }
+
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.Shipment.VisitRequest.class, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder.class);
+                com.google.cloud.optimization.v1.Shipment.VisitRequest.class,
+                com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.Shipment.VisitRequest.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1839,8 +2100,7 @@ public Builder clear() {
           departureWaypointBuilder_.dispose();
           departureWaypointBuilder_ = null;
         }
-        tags_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
+        tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
         if (timeWindowsBuilder_ == null) {
           timeWindows_ = java.util.Collections.emptyList();
         } else {
@@ -1855,8 +2115,7 @@ public Builder clear() {
         }
         cost_ = 0D;
         internalGetMutableLoadDemands().clear();
-        visitTypes_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
+        visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
         label_ = "";
         if (demandsBuilder_ == null) {
           demands_ = java.util.Collections.emptyList();
@@ -1869,9 +2128,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor;
       }
 
       @java.lang.Override
@@ -1890,14 +2149,18 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.Shipment.VisitRequest buildPartial() {
-        com.google.cloud.optimization.v1.Shipment.VisitRequest result = new com.google.cloud.optimization.v1.Shipment.VisitRequest(this);
+        com.google.cloud.optimization.v1.Shipment.VisitRequest result =
+            new com.google.cloud.optimization.v1.Shipment.VisitRequest(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipment.VisitRequest result) {
+      private void buildPartialRepeatedFields(
+          com.google.cloud.optimization.v1.Shipment.VisitRequest result) {
         if (timeWindowsBuilder_ == null) {
           if (((bitField0_ & 0x00000020) != 0)) {
             timeWindows_ = java.util.Collections.unmodifiableList(timeWindows_);
@@ -1921,33 +2184,31 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
       private void buildPartial0(com.google.cloud.optimization.v1.Shipment.VisitRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.arrivalLocation_ = arrivalLocationBuilder_ == null
-              ? arrivalLocation_
-              : arrivalLocationBuilder_.build();
+          result.arrivalLocation_ =
+              arrivalLocationBuilder_ == null ? arrivalLocation_ : arrivalLocationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.arrivalWaypoint_ = arrivalWaypointBuilder_ == null
-              ? arrivalWaypoint_
-              : arrivalWaypointBuilder_.build();
+          result.arrivalWaypoint_ =
+              arrivalWaypointBuilder_ == null ? arrivalWaypoint_ : arrivalWaypointBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.departureLocation_ = departureLocationBuilder_ == null
-              ? departureLocation_
-              : departureLocationBuilder_.build();
+          result.departureLocation_ =
+              departureLocationBuilder_ == null
+                  ? departureLocation_
+                  : departureLocationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.departureWaypoint_ = departureWaypointBuilder_ == null
-              ? departureWaypoint_
-              : departureWaypointBuilder_.build();
+          result.departureWaypoint_ =
+              departureWaypointBuilder_ == null
+                  ? departureWaypoint_
+                  : departureWaypointBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
           tags_.makeImmutable();
           result.tags_ = tags_;
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
-          result.duration_ = durationBuilder_ == null
-              ? duration_
-              : durationBuilder_.build();
+          result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000080) != 0)) {
           result.cost_ = cost_;
@@ -1969,38 +2230,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.Shipment.VisitReques
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.Shipment.VisitRequest) {
-          return mergeFrom((com.google.cloud.optimization.v1.Shipment.VisitRequest)other);
+          return mergeFrom((com.google.cloud.optimization.v1.Shipment.VisitRequest) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2008,7 +2272,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.VisitRequest other) {
-        if (other == com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance())
+          return this;
         if (other.hasArrivalLocation()) {
           mergeArrivalLocation(other.getArrivalLocation());
         }
@@ -2049,9 +2314,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.VisitRequest
               timeWindowsBuilder_ = null;
               timeWindows_ = other.timeWindows_;
               bitField0_ = (bitField0_ & ~0x00000020);
-              timeWindowsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getTimeWindowsFieldBuilder() : null;
+              timeWindowsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getTimeWindowsFieldBuilder()
+                      : null;
             } else {
               timeWindowsBuilder_.addAllMessages(other.timeWindows_);
             }
@@ -2063,8 +2329,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.VisitRequest
         if (other.getCost() != 0D) {
           setCost(other.getCost());
         }
-        internalGetMutableLoadDemands().mergeFrom(
-            other.internalGetLoadDemands());
+        internalGetMutableLoadDemands().mergeFrom(other.internalGetLoadDemands());
         bitField0_ |= 0x00000100;
         if (!other.visitTypes_.isEmpty()) {
           if (visitTypes_.isEmpty()) {
@@ -2099,9 +2364,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.VisitRequest
               demandsBuilder_ = null;
               demands_ = other.demands_;
               bitField0_ = (bitField0_ & ~0x00000800);
-              demandsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getDemandsFieldBuilder() : null;
+              demandsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getDemandsFieldBuilder()
+                      : null;
             } else {
               demandsBuilder_.addAllMessages(other.demands_);
             }
@@ -2133,104 +2399,114 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getArrivalLocationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getArrivalWaypointFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                input.readMessage(
-                    getDepartureLocationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              case 34: {
-                input.readMessage(
-                    getDepartureWaypointFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              case 42: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTagsIsMutable();
-                tags_.add(s);
-                break;
-              } // case 42
-              case 50: {
-                com.google.cloud.optimization.v1.TimeWindow m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.TimeWindow.parser(),
-                        extensionRegistry);
-                if (timeWindowsBuilder_ == null) {
-                  ensureTimeWindowsIsMutable();
-                  timeWindows_.add(m);
-                } else {
-                  timeWindowsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-              case 58: {
-                input.readMessage(
-                    getDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-              case 65: {
-                cost_ = input.readDouble();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 65
-              case 74: {
-                com.google.cloud.optimization.v1.CapacityQuantity m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                        extensionRegistry);
-                if (demandsBuilder_ == null) {
-                  ensureDemandsIsMutable();
-                  demands_.add(m);
-                } else {
-                  demandsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 74
-              case 82: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureVisitTypesIsMutable();
-                visitTypes_.add(s);
-                break;
-              } // case 82
-              case 90: {
-                label_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-              case 98: {
-                com.google.protobuf.MapEntry
-                loadDemands__ = input.readMessage(
-                    LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-                internalGetMutableLoadDemands().getMutableMap().put(
-                    loadDemands__.getKey(), loadDemands__.getValue());
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 98
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getArrivalLocationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getArrivalWaypointFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  input.readMessage(
+                      getDepartureLocationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  input.readMessage(
+                      getDepartureWaypointFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              case 42:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureTagsIsMutable();
+                  tags_.add(s);
+                  break;
+                } // case 42
+              case 50:
+                {
+                  com.google.cloud.optimization.v1.TimeWindow m =
+                      input.readMessage(
+                          com.google.cloud.optimization.v1.TimeWindow.parser(), extensionRegistry);
+                  if (timeWindowsBuilder_ == null) {
+                    ensureTimeWindowsIsMutable();
+                    timeWindows_.add(m);
+                  } else {
+                    timeWindowsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 50
+              case 58:
+                {
+                  input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000040;
+                  break;
+                } // case 58
+              case 65:
+                {
+                  cost_ = input.readDouble();
+                  bitField0_ |= 0x00000080;
+                  break;
+                } // case 65
+              case 74:
+                {
+                  com.google.cloud.optimization.v1.CapacityQuantity m =
+                      input.readMessage(
+                          com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                          extensionRegistry);
+                  if (demandsBuilder_ == null) {
+                    ensureDemandsIsMutable();
+                    demands_.add(m);
+                  } else {
+                    demandsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 74
+              case 82:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureVisitTypesIsMutable();
+                  visitTypes_.add(s);
+                  break;
+                } // case 82
+              case 90:
+                {
+                  label_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000400;
+                  break;
+                } // case 90
+              case 98:
+                {
+                  com.google.protobuf.MapEntry<
+                          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+                      loadDemands__ =
+                          input.readMessage(
+                              LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(),
+                              extensionRegistry);
+                  internalGetMutableLoadDemands()
+                      .getMutableMap()
+                      .put(loadDemands__.getKey(), loadDemands__.getValue());
+                  bitField0_ |= 0x00000100;
+                  break;
+                } // case 98
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2240,12 +2516,18 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.type.LatLng arrivalLocation_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> arrivalLocationBuilder_;
+              com.google.type.LatLng,
+              com.google.type.LatLng.Builder,
+              com.google.type.LatLngOrBuilder>
+          arrivalLocationBuilder_;
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2253,12 +2535,15 @@ public Builder mergeFrom(
        * 
* * .google.type.LatLng arrival_location = 1; + * * @return Whether the arrivalLocation field is set. */ public boolean hasArrivalLocation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2266,16 +2551,21 @@ public boolean hasArrivalLocation() {
        * 
* * .google.type.LatLng arrival_location = 1; + * * @return The arrivalLocation. */ public com.google.type.LatLng getArrivalLocation() { if (arrivalLocationBuilder_ == null) { - return arrivalLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : arrivalLocation_; + return arrivalLocation_ == null + ? com.google.type.LatLng.getDefaultInstance() + : arrivalLocation_; } else { return arrivalLocationBuilder_.getMessage(); } } /** + * + * *
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2298,6 +2588,8 @@ public Builder setArrivalLocation(com.google.type.LatLng value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2306,8 +2598,7 @@ public Builder setArrivalLocation(com.google.type.LatLng value) {
        *
        * .google.type.LatLng arrival_location = 1;
        */
-      public Builder setArrivalLocation(
-          com.google.type.LatLng.Builder builderForValue) {
+      public Builder setArrivalLocation(com.google.type.LatLng.Builder builderForValue) {
         if (arrivalLocationBuilder_ == null) {
           arrivalLocation_ = builderForValue.build();
         } else {
@@ -2318,6 +2609,8 @@ public Builder setArrivalLocation(
         return this;
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2328,9 +2621,9 @@ public Builder setArrivalLocation(
        */
       public Builder mergeArrivalLocation(com.google.type.LatLng value) {
         if (arrivalLocationBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            arrivalLocation_ != null &&
-            arrivalLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && arrivalLocation_ != null
+              && arrivalLocation_ != com.google.type.LatLng.getDefaultInstance()) {
             getArrivalLocationBuilder().mergeFrom(value);
           } else {
             arrivalLocation_ = value;
@@ -2343,6 +2636,8 @@ public Builder mergeArrivalLocation(com.google.type.LatLng value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2362,6 +2657,8 @@ public Builder clearArrivalLocation() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2376,6 +2673,8 @@ public com.google.type.LatLng.Builder getArrivalLocationBuilder() {
         return getArrivalLocationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2388,11 +2687,14 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
         if (arrivalLocationBuilder_ != null) {
           return arrivalLocationBuilder_.getMessageOrBuilder();
         } else {
-          return arrivalLocation_ == null ?
-              com.google.type.LatLng.getDefaultInstance() : arrivalLocation_;
+          return arrivalLocation_ == null
+              ? com.google.type.LatLng.getDefaultInstance()
+              : arrivalLocation_;
         }
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2402,14 +2704,17 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
        * .google.type.LatLng arrival_location = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> 
+              com.google.type.LatLng,
+              com.google.type.LatLng.Builder,
+              com.google.type.LatLngOrBuilder>
           getArrivalLocationFieldBuilder() {
         if (arrivalLocationBuilder_ == null) {
-          arrivalLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
-                  getArrivalLocation(),
-                  getParentForChildren(),
-                  isClean());
+          arrivalLocationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LatLng,
+                  com.google.type.LatLng.Builder,
+                  com.google.type.LatLngOrBuilder>(
+                  getArrivalLocation(), getParentForChildren(), isClean());
           arrivalLocation_ = null;
         }
         return arrivalLocationBuilder_;
@@ -2417,8 +2722,13 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
 
       private com.google.cloud.optimization.v1.Waypoint arrivalWaypoint_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> arrivalWaypointBuilder_;
+              com.google.cloud.optimization.v1.Waypoint,
+              com.google.cloud.optimization.v1.Waypoint.Builder,
+              com.google.cloud.optimization.v1.WaypointOrBuilder>
+          arrivalWaypointBuilder_;
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2426,12 +2736,15 @@ public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder() {
        * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; + * * @return Whether the arrivalWaypoint field is set. */ public boolean hasArrivalWaypoint() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2439,16 +2752,21 @@ public boolean hasArrivalWaypoint() {
        * 
* * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2; + * * @return The arrivalWaypoint. */ public com.google.cloud.optimization.v1.Waypoint getArrivalWaypoint() { if (arrivalWaypointBuilder_ == null) { - return arrivalWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : arrivalWaypoint_; + return arrivalWaypoint_ == null + ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() + : arrivalWaypoint_; } else { return arrivalWaypointBuilder_.getMessage(); } } /** + * + * *
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2471,6 +2789,8 @@ public Builder setArrivalWaypoint(com.google.cloud.optimization.v1.Waypoint valu
         return this;
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2491,6 +2811,8 @@ public Builder setArrivalWaypoint(
         return this;
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2501,9 +2823,10 @@ public Builder setArrivalWaypoint(
        */
       public Builder mergeArrivalWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
         if (arrivalWaypointBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            arrivalWaypoint_ != null &&
-            arrivalWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && arrivalWaypoint_ != null
+              && arrivalWaypoint_
+                  != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
             getArrivalWaypointBuilder().mergeFrom(value);
           } else {
             arrivalWaypoint_ = value;
@@ -2516,6 +2839,8 @@ public Builder mergeArrivalWaypoint(com.google.cloud.optimization.v1.Waypoint va
         return this;
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2535,6 +2860,8 @@ public Builder clearArrivalWaypoint() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2549,6 +2876,8 @@ public com.google.cloud.optimization.v1.Waypoint.Builder getArrivalWaypointBuild
         return getArrivalWaypointFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2561,11 +2890,14 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
         if (arrivalWaypointBuilder_ != null) {
           return arrivalWaypointBuilder_.getMessageOrBuilder();
         } else {
-          return arrivalWaypoint_ == null ?
-              com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : arrivalWaypoint_;
+          return arrivalWaypoint_ == null
+              ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
+              : arrivalWaypoint_;
         }
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle arrives when performing this
        * `VisitRequest`. If the shipment model has duration distance matrices,
@@ -2575,14 +2907,17 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
        * .google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> 
+              com.google.cloud.optimization.v1.Waypoint,
+              com.google.cloud.optimization.v1.Waypoint.Builder,
+              com.google.cloud.optimization.v1.WaypointOrBuilder>
           getArrivalWaypointFieldBuilder() {
         if (arrivalWaypointBuilder_ == null) {
-          arrivalWaypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder>(
-                  getArrivalWaypoint(),
-                  getParentForChildren(),
-                  isClean());
+          arrivalWaypointBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.optimization.v1.Waypoint,
+                  com.google.cloud.optimization.v1.Waypoint.Builder,
+                  com.google.cloud.optimization.v1.WaypointOrBuilder>(
+                  getArrivalWaypoint(), getParentForChildren(), isClean());
           arrivalWaypoint_ = null;
         }
         return arrivalWaypointBuilder_;
@@ -2590,8 +2925,13 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
 
       private com.google.type.LatLng departureLocation_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> departureLocationBuilder_;
+              com.google.type.LatLng,
+              com.google.type.LatLng.Builder,
+              com.google.type.LatLngOrBuilder>
+          departureLocationBuilder_;
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2600,12 +2940,15 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getArrivalWaypointOrBu
        * 
* * .google.type.LatLng departure_location = 3; + * * @return Whether the departureLocation field is set. */ public boolean hasDepartureLocation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2614,16 +2957,21 @@ public boolean hasDepartureLocation() {
        * 
* * .google.type.LatLng departure_location = 3; + * * @return The departureLocation. */ public com.google.type.LatLng getDepartureLocation() { if (departureLocationBuilder_ == null) { - return departureLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : departureLocation_; + return departureLocation_ == null + ? com.google.type.LatLng.getDefaultInstance() + : departureLocation_; } else { return departureLocationBuilder_.getMessage(); } } /** + * + * *
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2647,6 +2995,8 @@ public Builder setDepartureLocation(com.google.type.LatLng value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2656,8 +3006,7 @@ public Builder setDepartureLocation(com.google.type.LatLng value) {
        *
        * .google.type.LatLng departure_location = 3;
        */
-      public Builder setDepartureLocation(
-          com.google.type.LatLng.Builder builderForValue) {
+      public Builder setDepartureLocation(com.google.type.LatLng.Builder builderForValue) {
         if (departureLocationBuilder_ == null) {
           departureLocation_ = builderForValue.build();
         } else {
@@ -2668,6 +3017,8 @@ public Builder setDepartureLocation(
         return this;
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2679,9 +3030,9 @@ public Builder setDepartureLocation(
        */
       public Builder mergeDepartureLocation(com.google.type.LatLng value) {
         if (departureLocationBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0) &&
-            departureLocation_ != null &&
-            departureLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0)
+              && departureLocation_ != null
+              && departureLocation_ != com.google.type.LatLng.getDefaultInstance()) {
             getDepartureLocationBuilder().mergeFrom(value);
           } else {
             departureLocation_ = value;
@@ -2694,6 +3045,8 @@ public Builder mergeDepartureLocation(com.google.type.LatLng value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2714,6 +3067,8 @@ public Builder clearDepartureLocation() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2729,6 +3084,8 @@ public com.google.type.LatLng.Builder getDepartureLocationBuilder() {
         return getDepartureLocationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2742,11 +3099,14 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
         if (departureLocationBuilder_ != null) {
           return departureLocationBuilder_.getMessageOrBuilder();
         } else {
-          return departureLocation_ == null ?
-              com.google.type.LatLng.getDefaultInstance() : departureLocation_;
+          return departureLocation_ == null
+              ? com.google.type.LatLng.getDefaultInstance()
+              : departureLocation_;
         }
       }
       /**
+       *
+       *
        * 
        * The geo-location where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_location`.
@@ -2757,14 +3117,17 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
        * .google.type.LatLng departure_location = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> 
+              com.google.type.LatLng,
+              com.google.type.LatLng.Builder,
+              com.google.type.LatLngOrBuilder>
           getDepartureLocationFieldBuilder() {
         if (departureLocationBuilder_ == null) {
-          departureLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
-                  getDepartureLocation(),
-                  getParentForChildren(),
-                  isClean());
+          departureLocationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LatLng,
+                  com.google.type.LatLng.Builder,
+                  com.google.type.LatLngOrBuilder>(
+                  getDepartureLocation(), getParentForChildren(), isClean());
           departureLocation_ = null;
         }
         return departureLocationBuilder_;
@@ -2772,8 +3135,13 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
 
       private com.google.cloud.optimization.v1.Waypoint departureWaypoint_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> departureWaypointBuilder_;
+              com.google.cloud.optimization.v1.Waypoint,
+              com.google.cloud.optimization.v1.Waypoint.Builder,
+              com.google.cloud.optimization.v1.WaypointOrBuilder>
+          departureWaypointBuilder_;
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2782,12 +3150,15 @@ public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder() {
        * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; + * * @return Whether the departureWaypoint field is set. */ public boolean hasDepartureWaypoint() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2796,16 +3167,21 @@ public boolean hasDepartureWaypoint() {
        * 
* * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4; + * * @return The departureWaypoint. */ public com.google.cloud.optimization.v1.Waypoint getDepartureWaypoint() { if (departureWaypointBuilder_ == null) { - return departureWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : departureWaypoint_; + return departureWaypoint_ == null + ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() + : departureWaypoint_; } else { return departureWaypointBuilder_.getMessage(); } } /** + * + * *
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2829,6 +3205,8 @@ public Builder setDepartureWaypoint(com.google.cloud.optimization.v1.Waypoint va
         return this;
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2850,6 +3228,8 @@ public Builder setDepartureWaypoint(
         return this;
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2861,9 +3241,10 @@ public Builder setDepartureWaypoint(
        */
       public Builder mergeDepartureWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
         if (departureWaypointBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0) &&
-            departureWaypoint_ != null &&
-            departureWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0)
+              && departureWaypoint_ != null
+              && departureWaypoint_
+                  != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
             getDepartureWaypointBuilder().mergeFrom(value);
           } else {
             departureWaypoint_ = value;
@@ -2876,6 +3257,8 @@ public Builder mergeDepartureWaypoint(com.google.cloud.optimization.v1.Waypoint
         return this;
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2896,6 +3279,8 @@ public Builder clearDepartureWaypoint() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2911,6 +3296,8 @@ public com.google.cloud.optimization.v1.Waypoint.Builder getDepartureWaypointBui
         return getDepartureWaypointFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2924,11 +3311,14 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOr
         if (departureWaypointBuilder_ != null) {
           return departureWaypointBuilder_.getMessageOrBuilder();
         } else {
-          return departureWaypoint_ == null ?
-              com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : departureWaypoint_;
+          return departureWaypoint_ == null
+              ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
+              : departureWaypoint_;
         }
       }
       /**
+       *
+       *
        * 
        * The waypoint where the vehicle departs after completing this
        * `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`.
@@ -2939,14 +3329,17 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOr
        * .google.cloud.optimization.v1.Waypoint departure_waypoint = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> 
+              com.google.cloud.optimization.v1.Waypoint,
+              com.google.cloud.optimization.v1.Waypoint.Builder,
+              com.google.cloud.optimization.v1.WaypointOrBuilder>
           getDepartureWaypointFieldBuilder() {
         if (departureWaypointBuilder_ == null) {
-          departureWaypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder>(
-                  getDepartureWaypoint(),
-                  getParentForChildren(),
-                  isClean());
+          departureWaypointBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.optimization.v1.Waypoint,
+                  com.google.cloud.optimization.v1.Waypoint.Builder,
+                  com.google.cloud.optimization.v1.WaypointOrBuilder>(
+                  getDepartureWaypoint(), getParentForChildren(), isClean());
           departureWaypoint_ = null;
         }
         return departureWaypointBuilder_;
@@ -2954,6 +3347,7 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getDepartureWaypointOr
 
       private com.google.protobuf.LazyStringArrayList tags_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
+
       private void ensureTagsIsMutable() {
         if (!tags_.isModifiable()) {
           tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
@@ -2961,38 +3355,46 @@ private void ensureTagsIsMutable() {
         bitField0_ |= 0x00000010;
       }
       /**
+       *
+       *
        * 
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** + * + * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -3000,33 +3402,39 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000010; @@ -3034,18 +3442,22 @@ public Builder setTags( return this; } /** + * + * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000010; @@ -3053,53 +3465,61 @@ public Builder addTags( return this; } /** + * + * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @return This builder for chaining. */ public Builder clearTags() { - tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * *
        * Specifies tags attached to the visit request.
        * Empty or duplicate strings are not allowed.
        * 
* * repeated string tags = 5; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -3109,18 +3529,25 @@ public Builder addTagsBytes( } private java.util.List timeWindows_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTimeWindowsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - timeWindows_ = new java.util.ArrayList(timeWindows_); + timeWindows_ = + new java.util.ArrayList(timeWindows_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> timeWindowsBuilder_; + com.google.cloud.optimization.v1.TimeWindow, + com.google.cloud.optimization.v1.TimeWindow.Builder, + com.google.cloud.optimization.v1.TimeWindowOrBuilder> + timeWindowsBuilder_; /** + * + * *
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3148,6 +3575,8 @@ public java.util.List getTimeWindow
         }
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3175,6 +3604,8 @@ public int getTimeWindowsCount() {
         }
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3202,6 +3633,8 @@ public com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index) {
         }
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3221,8 +3654,7 @@ public com.google.cloud.optimization.v1.TimeWindow getTimeWindows(int index) {
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public Builder setTimeWindows(
-          int index, com.google.cloud.optimization.v1.TimeWindow value) {
+      public Builder setTimeWindows(int index, com.google.cloud.optimization.v1.TimeWindow value) {
         if (timeWindowsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3236,6 +3668,8 @@ public Builder setTimeWindows(
         return this;
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3267,6 +3701,8 @@ public Builder setTimeWindows(
         return this;
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3300,6 +3736,8 @@ public Builder addTimeWindows(com.google.cloud.optimization.v1.TimeWindow value)
         return this;
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3319,8 +3757,7 @@ public Builder addTimeWindows(com.google.cloud.optimization.v1.TimeWindow value)
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public Builder addTimeWindows(
-          int index, com.google.cloud.optimization.v1.TimeWindow value) {
+      public Builder addTimeWindows(int index, com.google.cloud.optimization.v1.TimeWindow value) {
         if (timeWindowsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3334,6 +3771,8 @@ public Builder addTimeWindows(
         return this;
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3365,6 +3804,8 @@ public Builder addTimeWindows(
         return this;
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3396,7 +3837,9 @@ public Builder addTimeWindows(
         return this;
       }
       /**
-       * 
+       *
+       *
+       * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
        * arrival time + duration do not need to be inside a time window. This can
@@ -3419,8 +3862,7 @@ public Builder addAllTimeWindows(
           java.lang.Iterable values) {
         if (timeWindowsBuilder_ == null) {
           ensureTimeWindowsIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(
-              values, timeWindows_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeWindows_);
           onChanged();
         } else {
           timeWindowsBuilder_.addAllMessages(values);
@@ -3428,6 +3870,8 @@ public Builder addAllTimeWindows(
         return this;
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3458,6 +3902,8 @@ public Builder clearTimeWindows() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3488,6 +3934,8 @@ public Builder removeTimeWindows(int index) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3507,11 +3955,12 @@ public Builder removeTimeWindows(int index) {
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public com.google.cloud.optimization.v1.TimeWindow.Builder getTimeWindowsBuilder(
-          int index) {
+      public com.google.cloud.optimization.v1.TimeWindow.Builder getTimeWindowsBuilder(int index) {
         return getTimeWindowsFieldBuilder().getBuilder(index);
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3534,11 +3983,14 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder getTimeWindowsBuilder
       public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuilder(
           int index) {
         if (timeWindowsBuilder_ == null) {
-          return timeWindows_.get(index);  } else {
+          return timeWindows_.get(index);
+        } else {
           return timeWindowsBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3558,8 +4010,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuil
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public java.util.List 
-           getTimeWindowsOrBuilderList() {
+      public java.util.List
+          getTimeWindowsOrBuilderList() {
         if (timeWindowsBuilder_ != null) {
           return timeWindowsBuilder_.getMessageOrBuilderList();
         } else {
@@ -3567,6 +4019,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuil
         }
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3587,10 +4041,12 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getTimeWindowsOrBuil
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
       public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder() {
-        return getTimeWindowsFieldBuilder().addBuilder(
-            com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+        return getTimeWindowsFieldBuilder()
+            .addBuilder(com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3610,12 +4066,13 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder(
-          int index) {
-        return getTimeWindowsFieldBuilder().addBuilder(
-            index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+      public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder(int index) {
+        return getTimeWindowsFieldBuilder()
+            .addBuilder(index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
       }
       /**
+       *
+       *
        * 
        * Time windows which constrain the arrival time at a visit.
        * Note that a vehicle may depart outside of the arrival time window, i.e.
@@ -3635,16 +4092,22 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder
        *
        * repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
        */
-      public java.util.List 
-           getTimeWindowsBuilderList() {
+      public java.util.List
+          getTimeWindowsBuilderList() {
         return getTimeWindowsFieldBuilder().getBuilderList();
       }
+
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> 
+              com.google.cloud.optimization.v1.TimeWindow,
+              com.google.cloud.optimization.v1.TimeWindow.Builder,
+              com.google.cloud.optimization.v1.TimeWindowOrBuilder>
           getTimeWindowsFieldBuilder() {
         if (timeWindowsBuilder_ == null) {
-          timeWindowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
+          timeWindowsBuilder_ =
+              new com.google.protobuf.RepeatedFieldBuilderV3<
+                  com.google.cloud.optimization.v1.TimeWindow,
+                  com.google.cloud.optimization.v1.TimeWindow.Builder,
+                  com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
                   timeWindows_,
                   ((bitField0_ & 0x00000020) != 0),
                   getParentForChildren(),
@@ -3656,8 +4119,13 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder
 
       private com.google.protobuf.Duration duration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          durationBuilder_;
       /**
+       *
+       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3665,12 +4133,15 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addTimeWindowsBuilder
        * 
* * .google.protobuf.Duration duration = 7; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3678,6 +4149,7 @@ public boolean hasDuration() {
        * 
* * .google.protobuf.Duration duration = 7; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -3688,6 +4160,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3710,6 +4184,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3718,8 +4194,7 @@ public Builder setDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration duration = 7;
        */
-      public Builder setDuration(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
         if (durationBuilder_ == null) {
           duration_ = builderForValue.build();
         } else {
@@ -3730,6 +4205,8 @@ public Builder setDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3740,9 +4217,9 @@ public Builder setDuration(
        */
       public Builder mergeDuration(com.google.protobuf.Duration value) {
         if (durationBuilder_ == null) {
-          if (((bitField0_ & 0x00000040) != 0) &&
-            duration_ != null &&
-            duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000040) != 0)
+              && duration_ != null
+              && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getDurationBuilder().mergeFrom(value);
           } else {
             duration_ = value;
@@ -3755,6 +4232,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3774,6 +4253,8 @@ public Builder clearDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3788,6 +4269,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
         return getDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3800,11 +4283,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
         if (durationBuilder_ != null) {
           return durationBuilder_.getMessageOrBuilder();
         } else {
-          return duration_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : duration_;
+          return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration of the visit, i.e. time spent by the vehicle between arrival
        * and departure (to be added to the possible waiting time; see
@@ -3814,21 +4298,26 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
        * .google.protobuf.Duration duration = 7;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getDurationFieldBuilder() {
         if (durationBuilder_ == null) {
-          durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getDuration(),
-                  getParentForChildren(),
-                  isClean());
+          durationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getDuration(), getParentForChildren(), isClean());
           duration_ = null;
         }
         return durationBuilder_;
       }
 
-      private double cost_ ;
+      private double cost_;
       /**
+       *
+       *
        * 
        * Cost to service this visit request on a vehicle route. This can be used
        * to pay different costs for each alternative pickup or delivery of a
@@ -3837,6 +4326,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
        * 
* * double cost = 8; + * * @return The cost. */ @java.lang.Override @@ -3844,6 +4334,8 @@ public double getCost() { return cost_; } /** + * + * *
        * Cost to service this visit request on a vehicle route. This can be used
        * to pay different costs for each alternative pickup or delivery of a
@@ -3852,6 +4344,7 @@ public double getCost() {
        * 
* * double cost = 8; + * * @param value The cost to set. * @return This builder for chaining. */ @@ -3863,6 +4356,8 @@ public Builder setCost(double value) { return this; } /** + * + * *
        * Cost to service this visit request on a vehicle route. This can be used
        * to pay different costs for each alternative pickup or delivery of a
@@ -3871,6 +4366,7 @@ public Builder setCost(double value) {
        * 
* * double cost = 8; + * * @return This builder for chaining. */ public Builder clearCost() { @@ -3881,8 +4377,11 @@ public Builder clearCost() { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> + loadDemands_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> internalGetLoadDemands() { if (loadDemands_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -3890,11 +4389,13 @@ public Builder clearCost() { } return loadDemands_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> internalGetMutableLoadDemands() { if (loadDemands_ == null) { - loadDemands_ = com.google.protobuf.MapField.newMapField( - LoadDemandsDefaultEntryHolder.defaultEntry); + loadDemands_ = + com.google.protobuf.MapField.newMapField(LoadDemandsDefaultEntryHolder.defaultEntry); } if (!loadDemands_.isMutable()) { loadDemands_ = loadDemands_.copy(); @@ -3903,10 +4404,13 @@ public Builder clearCost() { onChanged(); return loadDemands_; } + public int getLoadDemandsCount() { return internalGetLoadDemands().getMap().size(); } /** + * + * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -3917,23 +4421,26 @@ public int getLoadDemandsCount() {
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ @java.lang.Override - public boolean containsLoadDemands( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLoadDemands(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLoadDemands().getMap().containsKey(key); } - /** - * Use {@link #getLoadDemandsMap()} instead. - */ + /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getLoadDemands() { + public java.util.Map + getLoadDemands() { return getLoadDemandsMap(); } /** + * + * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -3944,13 +4451,17 @@ public java.util.Map
        *
-       * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
+       * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
+       * 
        */
       @java.lang.Override
-      public java.util.Map getLoadDemandsMap() {
+      public java.util.Map
+          getLoadDemandsMap() {
         return internalGetLoadDemands().getMap();
       }
       /**
+       *
+       *
        * 
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -3961,20 +4472,24 @@ public java.util.Map
        *
-       * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
+       * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
+       * 
        */
       @java.lang.Override
-      public /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+      public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
           java.lang.String key,
           /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
+          com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         java.util.Map map =
             internalGetLoadDemands().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -3985,12 +4500,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -3998,13 +4516,15 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( } return map.get(key); } + public Builder clearLoadDemands() { bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableLoadDemands().getMutableMap() - .clear(); + internalGetMutableLoadDemands().getMutableMap().clear(); return this; } /** + * + * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4015,18 +4535,17 @@ public Builder clearLoadDemands() {
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ - public Builder removeLoadDemands( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLoadDemands().getMutableMap() - .remove(key); + public Builder removeLoadDemands(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLoadDemands().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLoadDemands() { @@ -4034,6 +4553,8 @@ public Builder removeLoadDemands( return internalGetMutableLoadDemands().getMutableMap(); } /** + * + * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4044,19 +4565,24 @@ public Builder removeLoadDemands(
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ public Builder putLoadDemands( - java.lang.String key, - com.google.cloud.optimization.v1.Shipment.Load value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLoadDemands().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.optimization.v1.Shipment.Load value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLoadDemands().getMutableMap().put(key, value); bitField0_ |= 0x00000100; return this; } /** + * + * *
        * Load demands of this visit request. This is just like
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
@@ -4067,18 +4593,19 @@ public Builder putLoadDemands(
        * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12; + * */ public Builder putAllLoadDemands( java.util.Map values) { - internalGetMutableLoadDemands().getMutableMap() - .putAll(values); + internalGetMutableLoadDemands().getMutableMap().putAll(values); bitField0_ |= 0x00000100; return this; } private com.google.protobuf.LazyStringArrayList visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureVisitTypesIsMutable() { if (!visitTypes_.isModifiable()) { visitTypes_ = new com.google.protobuf.LazyStringArrayList(visitTypes_); @@ -4086,6 +4613,8 @@ private void ensureVisitTypesIsMutable() { bitField0_ |= 0x00000200; } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4095,14 +4624,16 @@ private void ensureVisitTypesIsMutable() {
        * 
* * repeated string visit_types = 10; + * * @return A list containing the visitTypes. */ - public com.google.protobuf.ProtocolStringList - getVisitTypesList() { + public com.google.protobuf.ProtocolStringList getVisitTypesList() { visitTypes_.makeImmutable(); return visitTypes_; } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4112,12 +4643,15 @@ private void ensureVisitTypesIsMutable() {
        * 
* * repeated string visit_types = 10; + * * @return The count of visitTypes. */ public int getVisitTypesCount() { return visitTypes_.size(); } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4127,6 +4661,7 @@ public int getVisitTypesCount() {
        * 
* * repeated string visit_types = 10; + * * @param index The index of the element to return. * @return The visitTypes at the given index. */ @@ -4134,6 +4669,8 @@ public java.lang.String getVisitTypes(int index) { return visitTypes_.get(index); } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4143,14 +4680,16 @@ public java.lang.String getVisitTypes(int index) {
        * 
* * repeated string visit_types = 10; + * * @param index The index of the value to return. * @return The bytes of the visitTypes at the given index. */ - public com.google.protobuf.ByteString - getVisitTypesBytes(int index) { + public com.google.protobuf.ByteString getVisitTypesBytes(int index) { return visitTypes_.getByteString(index); } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4160,13 +4699,15 @@ public java.lang.String getVisitTypes(int index) {
        * 
* * repeated string visit_types = 10; + * * @param index The index to set the value at. * @param value The visitTypes to set. * @return This builder for chaining. */ - public Builder setVisitTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVisitTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureVisitTypesIsMutable(); visitTypes_.set(index, value); bitField0_ |= 0x00000200; @@ -4174,6 +4715,8 @@ public Builder setVisitTypes( return this; } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4183,12 +4726,14 @@ public Builder setVisitTypes(
        * 
* * repeated string visit_types = 10; + * * @param value The visitTypes to add. * @return This builder for chaining. */ - public Builder addVisitTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addVisitTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureVisitTypesIsMutable(); visitTypes_.add(value); bitField0_ |= 0x00000200; @@ -4196,6 +4741,8 @@ public Builder addVisitTypes( return this; } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4205,19 +4752,20 @@ public Builder addVisitTypes(
        * 
* * repeated string visit_types = 10; + * * @param values The visitTypes to add. * @return This builder for chaining. */ - public Builder addAllVisitTypes( - java.lang.Iterable values) { + public Builder addAllVisitTypes(java.lang.Iterable values) { ensureVisitTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, visitTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visitTypes_); bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4227,16 +4775,19 @@ public Builder addAllVisitTypes(
        * 
* * repeated string visit_types = 10; + * * @return This builder for chaining. */ public Builder clearVisitTypes() { - visitTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200);; + visitTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; onChanged(); return this; } /** + * + * *
        * Specifies the types of the visit. This may be used to allocate additional
        * time required for a vehicle to complete this visit (see
@@ -4246,12 +4797,14 @@ public Builder clearVisitTypes() {
        * 
* * repeated string visit_types = 10; + * * @param value The bytes of the visitTypes to add. * @return This builder for chaining. */ - public Builder addVisitTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addVisitTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureVisitTypesIsMutable(); visitTypes_.add(value); @@ -4262,6 +4815,8 @@ public Builder addVisitTypesBytes( private java.lang.Object label_ = ""; /** + * + * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4269,13 +4824,13 @@ public Builder addVisitTypesBytes(
        * 
* * string label = 11; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -4284,6 +4839,8 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4291,15 +4848,14 @@ public java.lang.String getLabel() {
        * 
* * string label = 11; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -4307,6 +4863,8 @@ public java.lang.String getLabel() { } } /** + * + * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4314,18 +4872,22 @@ public java.lang.String getLabel() {
        * 
* * string label = 11; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } label_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4333,6 +4895,7 @@ public Builder setLabel(
        * 
* * string label = 11; + * * @return This builder for chaining. */ public Builder clearLabel() { @@ -4342,6 +4905,8 @@ public Builder clearLabel() { return this; } /** + * + * *
        * Specifies a label for this `VisitRequest`. This label is reported in the
        * response as `visit_label` in the corresponding
@@ -4349,12 +4914,14 @@ public Builder clearLabel() {
        * 
* * string label = 11; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000400; @@ -4363,27 +4930,37 @@ public Builder setLabelBytes( } private java.util.List demands_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDemandsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - demands_ = new java.util.ArrayList(demands_); + demands_ = + new java.util.ArrayList(demands_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> demandsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + demandsBuilder_; /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getDemandsList() { + @java.lang.Deprecated + public java.util.List getDemandsList() { if (demandsBuilder_ == null) { return java.util.Collections.unmodifiableList(demands_); } else { @@ -4391,15 +4968,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public int getDemandsCount() { + @java.lang.Deprecated + public int getDemandsCount() { if (demandsBuilder_ == null) { return demands_.size(); } else { @@ -4407,15 +4989,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { if (demandsBuilder_ == null) { return demands_.get(index); } else { @@ -4423,15 +5010,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDemands( + @java.lang.Deprecated + public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { @@ -4446,15 +5038,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDemands( + @java.lang.Deprecated + public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -4466,15 +5063,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4488,15 +5090,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( + @java.lang.Deprecated + public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { @@ -4511,15 +5118,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( + @java.lang.Deprecated + public Builder addDemands( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -4531,15 +5143,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( + @java.lang.Deprecated + public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -4551,20 +5168,24 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllDemands( + @java.lang.Deprecated + public Builder addAllDemands( java.lang.Iterable values) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, demands_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, demands_); onChanged(); } else { demandsBuilder_.addAllMessages(values); @@ -4572,15 +5193,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearDemands() { + @java.lang.Deprecated + public Builder clearDemands() { if (demandsBuilder_ == null) { demands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); @@ -4591,15 +5217,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeDemands(int index) { + @java.lang.Deprecated + public Builder removeDemands(int index) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); demands_.remove(index); @@ -4610,45 +5241,61 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( int index) { return getDemandsFieldBuilder().getBuilder(index); } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { if (demandsBuilder_ == null) { - return demands_.get(index); } else { + return demands_.get(index); + } else { return demandsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getDemandsOrBuilderList() { + @java.lang.Deprecated + public java.util.List + getDemandsOrBuilderList() { if (demandsBuilder_ != null) { return demandsBuilder_.getMessageOrBuilderList(); } else { @@ -4656,59 +5303,79 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { - return getDemandsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { + return getDemandsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( int index) { - return getDemandsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + return getDemandsFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
        * Deprecated: Use
        * [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getDemandsBuilderList() { + @java.lang.Deprecated + public java.util.List + getDemandsBuilderList() { return getDemandsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getDemandsFieldBuilder() { if (demandsBuilder_ == null) { - demandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - demands_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); + demandsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + demands_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); demands_ = null; } return demandsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4721,12 +5388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Shipment.VisitRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Shipment.VisitRequest) private static final com.google.cloud.optimization.v1.Shipment.VisitRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Shipment.VisitRequest(); } @@ -4735,27 +5402,28 @@ public static com.google.cloud.optimization.v1.Shipment.VisitRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VisitRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VisitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4770,14 +5438,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Shipment.VisitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface LoadOrBuilder extends + public interface LoadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Shipment.Load) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The amount by which the load of the vehicle performing the corresponding
      * visit will vary. Since it is an integer, users are advised to choose an
@@ -4785,11 +5455,14 @@ public interface LoadOrBuilder extends
      * 
* * int64 amount = 2; + * * @return The amount. */ long getAmount(); } /** + * + * *
    * When performing a visit, a predefined amount may be added to the vehicle
    * load if it's a pickup, or subtracted if it's a delivery. This message
@@ -4799,41 +5472,44 @@ public interface LoadOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.Shipment.Load}
    */
-  public static final class Load extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Load extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Shipment.Load)
       LoadOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Load.newBuilder() to construct.
     private Load(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private Load() {
-    }
+
+    private Load() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Load();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Shipment.Load.class, com.google.cloud.optimization.v1.Shipment.Load.Builder.class);
+              com.google.cloud.optimization.v1.Shipment.Load.class,
+              com.google.cloud.optimization.v1.Shipment.Load.Builder.class);
     }
 
     public static final int AMOUNT_FIELD_NUMBER = 2;
     private long amount_ = 0L;
     /**
+     *
+     *
      * 
      * The amount by which the load of the vehicle performing the corresponding
      * visit will vary. Since it is an integer, users are advised to choose an
@@ -4841,6 +5517,7 @@ protected java.lang.Object newInstance(
      * 
* * int64 amount = 2; + * * @return The amount. */ @java.lang.Override @@ -4849,6 +5526,7 @@ public long getAmount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4860,8 +5538,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (amount_ != 0L) { output.writeInt64(2, amount_); } @@ -4875,8 +5552,7 @@ public int getSerializedSize() { size = 0; if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4886,15 +5562,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Shipment.Load)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Shipment.Load other = (com.google.cloud.optimization.v1.Shipment.Load) obj; + com.google.cloud.optimization.v1.Shipment.Load other = + (com.google.cloud.optimization.v1.Shipment.Load) obj; - if (getAmount() - != other.getAmount()) return false; + if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4907,97 +5583,100 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.Load parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment.Load parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Shipment.Load parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Shipment.Load parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Shipment.Load parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.Shipment.Load prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5007,6 +5686,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * When performing a visit, a predefined amount may be added to the vehicle
      * load if it's a pickup, or subtracted if it's a delivery. This message
@@ -5016,33 +5697,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.Shipment.Load}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Shipment.Load)
         com.google.cloud.optimization.v1.Shipment.LoadOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.Shipment.Load.class, com.google.cloud.optimization.v1.Shipment.Load.Builder.class);
+                com.google.cloud.optimization.v1.Shipment.Load.class,
+                com.google.cloud.optimization.v1.Shipment.Load.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.Shipment.Load.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5052,9 +5733,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor;
       }
 
       @java.lang.Override
@@ -5073,8 +5754,11 @@ public com.google.cloud.optimization.v1.Shipment.Load build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.Shipment.Load buildPartial() {
-        com.google.cloud.optimization.v1.Shipment.Load result = new com.google.cloud.optimization.v1.Shipment.Load(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.Shipment.Load result =
+            new com.google.cloud.optimization.v1.Shipment.Load(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -5090,38 +5774,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.Shipment.Load result
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.Shipment.Load) {
-          return mergeFrom((com.google.cloud.optimization.v1.Shipment.Load)other);
+          return mergeFrom((com.google.cloud.optimization.v1.Shipment.Load) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -5129,7 +5816,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment.Load other) {
-        if (other == com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance())
+          return this;
         if (other.getAmount() != 0L) {
           setAmount(other.getAmount());
         }
@@ -5159,17 +5847,19 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 16: {
-                amount_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 16
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 16:
+                {
+                  amount_ = input.readInt64();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 16
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5179,10 +5869,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private long amount_ ;
+      private long amount_;
       /**
+       *
+       *
        * 
        * The amount by which the load of the vehicle performing the corresponding
        * visit will vary. Since it is an integer, users are advised to choose an
@@ -5190,6 +5883,7 @@ public Builder mergeFrom(
        * 
* * int64 amount = 2; + * * @return The amount. */ @java.lang.Override @@ -5197,6 +5891,8 @@ public long getAmount() { return amount_; } /** + * + * *
        * The amount by which the load of the vehicle performing the corresponding
        * visit will vary. Since it is an integer, users are advised to choose an
@@ -5204,6 +5900,7 @@ public long getAmount() {
        * 
* * int64 amount = 2; + * * @param value The amount to set. * @return This builder for chaining. */ @@ -5215,6 +5912,8 @@ public Builder setAmount(long value) { return this; } /** + * + * *
        * The amount by which the load of the vehicle performing the corresponding
        * visit will vary. Since it is an integer, users are advised to choose an
@@ -5222,6 +5921,7 @@ public Builder setAmount(long value) {
        * 
* * int64 amount = 2; + * * @return This builder for chaining. */ public Builder clearAmount() { @@ -5230,6 +5930,7 @@ public Builder clearAmount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5242,12 +5943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Shipment.Load) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Shipment.Load) private static final com.google.cloud.optimization.v1.Shipment.Load DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Shipment.Load(); } @@ -5256,27 +5957,28 @@ public static com.google.cloud.optimization.v1.Shipment.Load getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Load parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Load parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5291,14 +5993,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Shipment.Load getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int PICKUPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List pickups_; /** + * + * *
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -5311,6 +6015,8 @@ public java.util.List ge
     return pickups_;
   }
   /**
+   *
+   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -5319,11 +6025,13 @@ public java.util.List ge
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPickupsOrBuilderList() {
     return pickups_;
   }
   /**
+   *
+   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -5336,6 +6044,8 @@ public int getPickupsCount() {
     return pickups_.size();
   }
   /**
+   *
+   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -5348,6 +6058,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest getPickups(int ind
     return pickups_.get(index);
   }
   /**
+   *
+   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -5362,9 +6074,12 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
   }
 
   public static final int DELIVERIES_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List deliveries_;
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -5373,10 +6088,13 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
   @java.lang.Override
-  public java.util.List getDeliveriesList() {
+  public java.util.List
+      getDeliveriesList() {
     return deliveries_;
   }
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -5385,11 +6103,13 @@ public java.util.List ge
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getDeliveriesOrBuilderList() {
     return deliveries_;
   }
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -5402,6 +6122,8 @@ public int getDeliveriesCount() {
     return deliveries_.size();
   }
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -5414,6 +6136,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest getDeliveries(int
     return deliveries_.get(index);
   }
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -5428,32 +6152,42 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDelive
   }
 
   public static final int LOAD_DEMANDS_FIELD_NUMBER = 14;
+
   private static final class LoadDemandsDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> defaultEntry =
+            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.optimization.v1.FleetRoutingProto
+                            .internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_;
-  private com.google.protobuf.MapField
-  internalGetLoadDemands() {
+          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+      loadDemands_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+      internalGetLoadDemands() {
     if (loadDemands_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          LoadDemandsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(LoadDemandsDefaultEntryHolder.defaultEntry);
     }
     return loadDemands_;
   }
+
   public int getLoadDemandsCount() {
     return internalGetLoadDemands().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -5466,20 +6200,22 @@ public int getLoadDemandsCount() {
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   @java.lang.Override
-  public boolean containsLoadDemands(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLoadDemands(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLoadDemands().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLoadDemandsMap()} instead.
-   */
+  /** Use {@link #getLoadDemandsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map getLoadDemands() {
+  public java.util.Map
+      getLoadDemands() {
     return getLoadDemandsMap();
   }
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -5492,10 +6228,13 @@ public java.util.Mapmap<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   @java.lang.Override
-  public java.util.Map getLoadDemandsMap() {
+  public java.util.Map
+      getLoadDemandsMap() {
     return internalGetLoadDemands().getMap();
   }
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -5508,17 +6247,20 @@ public java.util.Mapmap<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   @java.lang.Override
-  public /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+  public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetLoadDemands().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -5533,7 +6275,9 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
   @java.lang.Override
   public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetLoadDemands().getMap();
     if (!map.containsKey(key)) {
@@ -5545,6 +6289,8 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
   public static final int PENALTY_COST_FIELD_NUMBER = 4;
   private double penaltyCost_ = 0D;
   /**
+   *
+   *
    * 
    * If the shipment is not completed, this penalty is added to the overall
    * cost of the routes. A shipment is considered completed if one of its pickup
@@ -5557,6 +6303,7 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * optional double penalty_cost = 4; + * * @return Whether the penaltyCost field is set. */ @java.lang.Override @@ -5564,6 +6311,8 @@ public boolean hasPenaltyCost() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * If the shipment is not completed, this penalty is added to the overall
    * cost of the routes. A shipment is considered completed if one of its pickup
@@ -5576,6 +6325,7 @@ public boolean hasPenaltyCost() {
    * 
* * optional double penalty_cost = 4; + * * @return The penaltyCost. */ @java.lang.Override @@ -5584,9 +6334,12 @@ public double getPenaltyCost() { } public static final int ALLOWED_VEHICLE_INDICES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList allowedVehicleIndices_; /** + * + * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -5594,14 +6347,16 @@ public double getPenaltyCost() {
    * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @return A list containing the allowedVehicleIndices. */ @java.lang.Override - public java.util.List - getAllowedVehicleIndicesList() { + public java.util.List getAllowedVehicleIndicesList() { return allowedVehicleIndices_; } /** + * + * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -5609,12 +6364,15 @@ public double getPenaltyCost() {
    * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @return The count of allowedVehicleIndices. */ public int getAllowedVehicleIndicesCount() { return allowedVehicleIndices_.size(); } /** + * + * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -5622,18 +6380,23 @@ public int getAllowedVehicleIndicesCount() {
    * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @param index The index of the element to return. * @return The allowedVehicleIndices at the given index. */ public int getAllowedVehicleIndices(int index) { return allowedVehicleIndices_.getInt(index); } + private int allowedVehicleIndicesMemoizedSerializedSize = -1; public static final int COSTS_PER_VEHICLE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList costsPerVehicle_; /** + * + * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -5649,14 +6412,16 @@ public int getAllowedVehicleIndices(int index) {
    * 
* * repeated double costs_per_vehicle = 6; + * * @return A list containing the costsPerVehicle. */ @java.lang.Override - public java.util.List - getCostsPerVehicleList() { + public java.util.List getCostsPerVehicleList() { return costsPerVehicle_; } /** + * + * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -5672,12 +6437,15 @@ public int getAllowedVehicleIndices(int index) {
    * 
* * repeated double costs_per_vehicle = 6; + * * @return The count of costsPerVehicle. */ public int getCostsPerVehicleCount() { return costsPerVehicle_.size(); } /** + * + * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -5693,18 +6461,23 @@ public int getCostsPerVehicleCount() {
    * 
* * repeated double costs_per_vehicle = 6; + * * @param index The index of the element to return. * @return The costsPerVehicle at the given index. */ public double getCostsPerVehicle(int index) { return costsPerVehicle_.getDouble(index); } + private int costsPerVehicleMemoizedSerializedSize = -1; public static final int COSTS_PER_VEHICLE_INDICES_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList costsPerVehicleIndices_; /** + * + * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -5713,14 +6486,16 @@ public double getCostsPerVehicle(int index) {
    * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @return A list containing the costsPerVehicleIndices. */ @java.lang.Override - public java.util.List - getCostsPerVehicleIndicesList() { + public java.util.List getCostsPerVehicleIndicesList() { return costsPerVehicleIndices_; } /** + * + * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -5729,12 +6504,15 @@ public double getCostsPerVehicle(int index) {
    * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @return The count of costsPerVehicleIndices. */ public int getCostsPerVehicleIndicesCount() { return costsPerVehicleIndices_.size(); } /** + * + * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -5743,17 +6521,21 @@ public int getCostsPerVehicleIndicesCount() {
    * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @param index The index of the element to return. * @return The costsPerVehicleIndices at the given index. */ public int getCostsPerVehicleIndices(int index) { return costsPerVehicleIndices_.getInt(index); } + private int costsPerVehicleIndicesMemoizedSerializedSize = -1; public static final int PICKUP_TO_DELIVERY_RELATIVE_DETOUR_LIMIT_FIELD_NUMBER = 8; private double pickupToDeliveryRelativeDetourLimit_ = 0D; /** + * + * *
    * Specifies the maximum relative detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -5775,6 +6557,7 @@ public int getCostsPerVehicleIndices(int index) {
    * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; + * * @return Whether the pickupToDeliveryRelativeDetourLimit field is set. */ @java.lang.Override @@ -5782,6 +6565,8 @@ public boolean hasPickupToDeliveryRelativeDetourLimit() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Specifies the maximum relative detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -5803,6 +6588,7 @@ public boolean hasPickupToDeliveryRelativeDetourLimit() {
    * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; + * * @return The pickupToDeliveryRelativeDetourLimit. */ @java.lang.Override @@ -5813,6 +6599,8 @@ public double getPickupToDeliveryRelativeDetourLimit() { public static final int PICKUP_TO_DELIVERY_ABSOLUTE_DETOUR_LIMIT_FIELD_NUMBER = 9; private com.google.protobuf.Duration pickupToDeliveryAbsoluteDetourLimit_; /** + * + * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -5834,6 +6622,7 @@ public double getPickupToDeliveryRelativeDetourLimit() {
    * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; + * * @return Whether the pickupToDeliveryAbsoluteDetourLimit field is set. */ @java.lang.Override @@ -5841,6 +6630,8 @@ public boolean hasPickupToDeliveryAbsoluteDetourLimit() { return pickupToDeliveryAbsoluteDetourLimit_ != null; } /** + * + * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -5862,13 +6653,18 @@ public boolean hasPickupToDeliveryAbsoluteDetourLimit() {
    * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; + * * @return The pickupToDeliveryAbsoluteDetourLimit. */ @java.lang.Override public com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit() { - return pickupToDeliveryAbsoluteDetourLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryAbsoluteDetourLimit_; + return pickupToDeliveryAbsoluteDetourLimit_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pickupToDeliveryAbsoluteDetourLimit_; } /** + * + * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -5893,12 +6689,16 @@ public com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLimitOrBuilder() {
-    return pickupToDeliveryAbsoluteDetourLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryAbsoluteDetourLimit_;
+    return pickupToDeliveryAbsoluteDetourLimit_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : pickupToDeliveryAbsoluteDetourLimit_;
   }
 
   public static final int PICKUP_TO_DELIVERY_TIME_LIMIT_FIELD_NUMBER = 10;
   private com.google.protobuf.Duration pickupToDeliveryTimeLimit_;
   /**
+   *
+   *
    * 
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -5909,6 +6709,7 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
    * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; + * * @return Whether the pickupToDeliveryTimeLimit field is set. */ @java.lang.Override @@ -5916,6 +6717,8 @@ public boolean hasPickupToDeliveryTimeLimit() { return pickupToDeliveryTimeLimit_ != null; } /** + * + * *
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -5926,13 +6729,18 @@ public boolean hasPickupToDeliveryTimeLimit() {
    * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; + * * @return The pickupToDeliveryTimeLimit. */ @java.lang.Override public com.google.protobuf.Duration getPickupToDeliveryTimeLimit() { - return pickupToDeliveryTimeLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryTimeLimit_; + return pickupToDeliveryTimeLimit_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pickupToDeliveryTimeLimit_; } /** + * + * *
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -5946,13 +6754,18 @@ public com.google.protobuf.Duration getPickupToDeliveryTimeLimit() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuilder() {
-    return pickupToDeliveryTimeLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryTimeLimit_;
+    return pickupToDeliveryTimeLimit_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : pickupToDeliveryTimeLimit_;
   }
 
   public static final int SHIPMENT_TYPE_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object shipmentType_ = "";
   /**
+   *
+   *
    * 
    * Non-empty string specifying a "type" for this shipment.
    * This feature can be used to define incompatibilities or requirements
@@ -5965,6 +6778,7 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
    * 
* * string shipment_type = 11; + * * @return The shipmentType. */ @java.lang.Override @@ -5973,14 +6787,15 @@ public java.lang.String getShipmentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shipmentType_ = s; return s; } } /** + * + * *
    * Non-empty string specifying a "type" for this shipment.
    * This feature can be used to define incompatibilities or requirements
@@ -5993,16 +6808,15 @@ public java.lang.String getShipmentType() {
    * 
* * string shipment_type = 11; + * * @return The bytes for shipmentType. */ @java.lang.Override - public com.google.protobuf.ByteString - getShipmentTypeBytes() { + public com.google.protobuf.ByteString getShipmentTypeBytes() { java.lang.Object ref = shipmentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shipmentType_ = b; return b; } else { @@ -6011,9 +6825,12 @@ public java.lang.String getShipmentType() { } public static final int LABEL_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** + * + * *
    * Specifies a label for this shipment. This label is reported in the response
    * in the `shipment_label` of the corresponding
@@ -6021,6 +6838,7 @@ public java.lang.String getShipmentType() {
    * 
* * string label = 12; + * * @return The label. */ @java.lang.Override @@ -6029,14 +6847,15 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
    * Specifies a label for this shipment. This label is reported in the response
    * in the `shipment_label` of the corresponding
@@ -6044,16 +6863,15 @@ public java.lang.String getLabel() {
    * 
* * string label = 12; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -6064,6 +6882,8 @@ public java.lang.String getLabel() { public static final int IGNORE_FIELD_NUMBER = 13; private boolean ignore_ = false; /** + * + * *
    * If true, skip this shipment, but don't apply a `penalty_cost`.
    *
@@ -6077,6 +6897,7 @@ public java.lang.String getLabel() {
    * 
* * bool ignore = 13; + * * @return The ignore. */ @java.lang.Override @@ -6085,77 +6906,98 @@ public boolean getIgnore() { } public static final int DEMANDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List demands_; /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getDemandsList() { + @java.lang.Deprecated + public java.util.List getDemandsList() { return demands_; } /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getDemandsOrBuilderList() { return demands_; } /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getDemandsCount() { + @java.lang.Deprecated + public int getDemandsCount() { return demands_.size(); } /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { return demands_.get(index); } /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder(int index) { return demands_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6167,8 +7009,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < pickups_.size(); i++) { output.writeMessage(1, pickups_.get(i)); @@ -6221,12 +7062,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (ignore_ != false) { output.writeBool(13, ignore_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLoadDemands(), - LoadDemandsDefaultEntryHolder.defaultEntry, - 14); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLoadDemands(), LoadDemandsDefaultEntryHolder.defaultEntry, 14); getUnknownFields().writeTo(output); } @@ -6237,32 +7074,28 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < pickups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pickups_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pickups_.get(i)); } for (int i = 0; i < deliveries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, deliveries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, deliveries_.get(i)); } for (int i = 0; i < demands_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, demands_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, demands_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, penaltyCost_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, penaltyCost_); } { int dataSize = 0; for (int i = 0; i < allowedVehicleIndices_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(allowedVehicleIndices_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + allowedVehicleIndices_.getInt(i)); } size += dataSize; if (!getAllowedVehicleIndicesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } allowedVehicleIndicesMemoizedSerializedSize = dataSize; } @@ -6272,36 +7105,38 @@ public int getSerializedSize() { size += dataSize; if (!getCostsPerVehicleList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } costsPerVehicleMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < costsPerVehicleIndices_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(costsPerVehicleIndices_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + costsPerVehicleIndices_.getInt(i)); } size += dataSize; if (!getCostsPerVehicleIndicesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } costsPerVehicleIndicesMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(8, pickupToDeliveryRelativeDetourLimit_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 8, pickupToDeliveryRelativeDetourLimit_); } if (pickupToDeliveryAbsoluteDetourLimit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getPickupToDeliveryAbsoluteDetourLimit()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getPickupToDeliveryAbsoluteDetourLimit()); } if (pickupToDeliveryTimeLimit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getPickupToDeliveryTimeLimit()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getPickupToDeliveryTimeLimit()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shipmentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, shipmentType_); @@ -6310,18 +7145,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, label_); } if (ignore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, ignore_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, ignore_); } - for (java.util.Map.Entry entry - : internalGetLoadDemands().getMap().entrySet()) { + for (java.util.Map.Entry + entry : internalGetLoadDemands().getMap().entrySet()) { com.google.protobuf.MapEntry - loadDemands__ = LoadDemandsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, loadDemands__); + loadDemands__ = + LoadDemandsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, loadDemands__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6331,55 +7166,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Shipment)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Shipment other = (com.google.cloud.optimization.v1.Shipment) obj; + com.google.cloud.optimization.v1.Shipment other = + (com.google.cloud.optimization.v1.Shipment) obj; - if (!getPickupsList() - .equals(other.getPickupsList())) return false; - if (!getDeliveriesList() - .equals(other.getDeliveriesList())) return false; - if (!internalGetLoadDemands().equals( - other.internalGetLoadDemands())) return false; + if (!getPickupsList().equals(other.getPickupsList())) return false; + if (!getDeliveriesList().equals(other.getDeliveriesList())) return false; + if (!internalGetLoadDemands().equals(other.internalGetLoadDemands())) return false; if (hasPenaltyCost() != other.hasPenaltyCost()) return false; if (hasPenaltyCost()) { if (java.lang.Double.doubleToLongBits(getPenaltyCost()) - != java.lang.Double.doubleToLongBits( - other.getPenaltyCost())) return false; - } - if (!getAllowedVehicleIndicesList() - .equals(other.getAllowedVehicleIndicesList())) return false; - if (!getCostsPerVehicleList() - .equals(other.getCostsPerVehicleList())) return false; - if (!getCostsPerVehicleIndicesList() - .equals(other.getCostsPerVehicleIndicesList())) return false; - if (hasPickupToDeliveryRelativeDetourLimit() != other.hasPickupToDeliveryRelativeDetourLimit()) return false; + != java.lang.Double.doubleToLongBits(other.getPenaltyCost())) return false; + } + if (!getAllowedVehicleIndicesList().equals(other.getAllowedVehicleIndicesList())) return false; + if (!getCostsPerVehicleList().equals(other.getCostsPerVehicleList())) return false; + if (!getCostsPerVehicleIndicesList().equals(other.getCostsPerVehicleIndicesList())) + return false; + if (hasPickupToDeliveryRelativeDetourLimit() != other.hasPickupToDeliveryRelativeDetourLimit()) + return false; if (hasPickupToDeliveryRelativeDetourLimit()) { if (java.lang.Double.doubleToLongBits(getPickupToDeliveryRelativeDetourLimit()) - != java.lang.Double.doubleToLongBits( - other.getPickupToDeliveryRelativeDetourLimit())) return false; + != java.lang.Double.doubleToLongBits(other.getPickupToDeliveryRelativeDetourLimit())) + return false; } - if (hasPickupToDeliveryAbsoluteDetourLimit() != other.hasPickupToDeliveryAbsoluteDetourLimit()) return false; + if (hasPickupToDeliveryAbsoluteDetourLimit() != other.hasPickupToDeliveryAbsoluteDetourLimit()) + return false; if (hasPickupToDeliveryAbsoluteDetourLimit()) { if (!getPickupToDeliveryAbsoluteDetourLimit() .equals(other.getPickupToDeliveryAbsoluteDetourLimit())) return false; } if (hasPickupToDeliveryTimeLimit() != other.hasPickupToDeliveryTimeLimit()) return false; if (hasPickupToDeliveryTimeLimit()) { - if (!getPickupToDeliveryTimeLimit() - .equals(other.getPickupToDeliveryTimeLimit())) return false; - } - if (!getShipmentType() - .equals(other.getShipmentType())) return false; - if (!getLabel() - .equals(other.getLabel())) return false; - if (getIgnore() - != other.getIgnore()) return false; - if (!getDemandsList() - .equals(other.getDemandsList())) return false; + if (!getPickupToDeliveryTimeLimit().equals(other.getPickupToDeliveryTimeLimit())) + return false; + } + if (!getShipmentType().equals(other.getShipmentType())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (getIgnore() != other.getIgnore()) return false; + if (!getDemandsList().equals(other.getDemandsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6405,8 +7233,10 @@ public int hashCode() { } if (hasPenaltyCost()) { hash = (37 * hash) + PENALTY_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPenaltyCost())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPenaltyCost())); } if (getAllowedVehicleIndicesCount() > 0) { hash = (37 * hash) + ALLOWED_VEHICLE_INDICES_FIELD_NUMBER; @@ -6422,8 +7252,10 @@ public int hashCode() { } if (hasPickupToDeliveryRelativeDetourLimit()) { hash = (37 * hash) + PICKUP_TO_DELIVERY_RELATIVE_DETOUR_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPickupToDeliveryRelativeDetourLimit())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPickupToDeliveryRelativeDetourLimit())); } if (hasPickupToDeliveryAbsoluteDetourLimit()) { hash = (37 * hash) + PICKUP_TO_DELIVERY_ABSOLUTE_DETOUR_LIMIT_FIELD_NUMBER; @@ -6438,8 +7270,7 @@ public int hashCode() { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + IGNORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIgnore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnore()); if (getDemandsCount() > 0) { hash = (37 * hash) + DEMANDS_FIELD_NUMBER; hash = (53 * hash) + getDemandsList().hashCode(); @@ -6449,99 +7280,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.Shipment parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Shipment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Shipment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Shipment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Shipment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Shipment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Shipment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Shipment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Shipment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.Shipment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The shipment of a single item, from one of its pickups to one of its
    * deliveries. For the shipment to be considered as performed, a unique vehicle
@@ -6552,55 +7388,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.Shipment}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Shipment)
       com.google.cloud.optimization.v1.ShipmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Shipment_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 14:
           return internalGetLoadDemands();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 14:
           return internalGetMutableLoadDemands();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Shipment.class, com.google.cloud.optimization.v1.Shipment.Builder.class);
+              com.google.cloud.optimization.v1.Shipment.class,
+              com.google.cloud.optimization.v1.Shipment.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.Shipment.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -6649,9 +7482,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Shipment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Shipment_descriptor;
     }
 
     @java.lang.Override
@@ -6670,9 +7503,12 @@ public com.google.cloud.optimization.v1.Shipment build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.Shipment buildPartial() {
-      com.google.cloud.optimization.v1.Shipment result = new com.google.cloud.optimization.v1.Shipment(this);
+      com.google.cloud.optimization.v1.Shipment result =
+          new com.google.cloud.optimization.v1.Shipment(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -6738,14 +7574,16 @@ private void buildPartial0(com.google.cloud.optimization.v1.Shipment result) {
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.pickupToDeliveryAbsoluteDetourLimit_ = pickupToDeliveryAbsoluteDetourLimitBuilder_ == null
-            ? pickupToDeliveryAbsoluteDetourLimit_
-            : pickupToDeliveryAbsoluteDetourLimitBuilder_.build();
+        result.pickupToDeliveryAbsoluteDetourLimit_ =
+            pickupToDeliveryAbsoluteDetourLimitBuilder_ == null
+                ? pickupToDeliveryAbsoluteDetourLimit_
+                : pickupToDeliveryAbsoluteDetourLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.pickupToDeliveryTimeLimit_ = pickupToDeliveryTimeLimitBuilder_ == null
-            ? pickupToDeliveryTimeLimit_
-            : pickupToDeliveryTimeLimitBuilder_.build();
+        result.pickupToDeliveryTimeLimit_ =
+            pickupToDeliveryTimeLimitBuilder_ == null
+                ? pickupToDeliveryTimeLimit_
+                : pickupToDeliveryTimeLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.shipmentType_ = shipmentType_;
@@ -6763,38 +7601,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.Shipment result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.Shipment) {
-        return mergeFrom((com.google.cloud.optimization.v1.Shipment)other);
+        return mergeFrom((com.google.cloud.optimization.v1.Shipment) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -6821,9 +7660,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment other) {
             pickupsBuilder_ = null;
             pickups_ = other.pickups_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            pickupsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPickupsFieldBuilder() : null;
+            pickupsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPickupsFieldBuilder()
+                    : null;
           } else {
             pickupsBuilder_.addAllMessages(other.pickups_);
           }
@@ -6847,16 +7687,16 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment other) {
             deliveriesBuilder_ = null;
             deliveries_ = other.deliveries_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            deliveriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getDeliveriesFieldBuilder() : null;
+            deliveriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getDeliveriesFieldBuilder()
+                    : null;
           } else {
             deliveriesBuilder_.addAllMessages(other.deliveries_);
           }
         }
       }
-      internalGetMutableLoadDemands().mergeFrom(
-          other.internalGetLoadDemands());
+      internalGetMutableLoadDemands().mergeFrom(other.internalGetLoadDemands());
       bitField0_ |= 0x00000004;
       if (other.hasPenaltyCost()) {
         setPenaltyCost(other.getPenaltyCost());
@@ -6931,9 +7771,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Shipment other) {
             demandsBuilder_ = null;
             demands_ = other.demands_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            demandsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getDemandsFieldBuilder() : null;
+            demandsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getDemandsFieldBuilder()
+                    : null;
           } else {
             demandsBuilder_.addAllMessages(other.demands_);
           }
@@ -6965,147 +7806,168 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.optimization.v1.Shipment.VisitRequest m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.Shipment.VisitRequest.parser(),
-                      extensionRegistry);
-              if (pickupsBuilder_ == null) {
-                ensurePickupsIsMutable();
-                pickups_.add(m);
-              } else {
-                pickupsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.optimization.v1.Shipment.VisitRequest m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.Shipment.VisitRequest.parser(),
-                      extensionRegistry);
-              if (deliveriesBuilder_ == null) {
-                ensureDeliveriesIsMutable();
-                deliveries_.add(m);
-              } else {
-                deliveriesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.optimization.v1.CapacityQuantity m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                      extensionRegistry);
-              if (demandsBuilder_ == null) {
-                ensureDemandsIsMutable();
-                demands_.add(m);
-              } else {
-                demandsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 33: {
-              penaltyCost_ = input.readDouble();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 33
-            case 40: {
-              int v = input.readInt32();
-              ensureAllowedVehicleIndicesIsMutable();
-              allowedVehicleIndices_.addInt(v);
-              break;
-            } // case 40
-            case 42: {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              ensureAllowedVehicleIndicesIsMutable();
-              while (input.getBytesUntilLimit() > 0) {
-                allowedVehicleIndices_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
-            } // case 42
-            case 49: {
-              double v = input.readDouble();
-              ensureCostsPerVehicleIsMutable();
-              costsPerVehicle_.addDouble(v);
-              break;
-            } // case 49
-            case 50: {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              ensureCostsPerVehicleIsMutable();
-              while (input.getBytesUntilLimit() > 0) {
-                costsPerVehicle_.addDouble(input.readDouble());
-              }
-              input.popLimit(limit);
-              break;
-            } // case 50
-            case 56: {
-              int v = input.readInt32();
-              ensureCostsPerVehicleIndicesIsMutable();
-              costsPerVehicleIndices_.addInt(v);
-              break;
-            } // case 56
-            case 58: {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              ensureCostsPerVehicleIndicesIsMutable();
-              while (input.getBytesUntilLimit() > 0) {
-                costsPerVehicleIndices_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
-            } // case 58
-            case 65: {
-              pickupToDeliveryRelativeDetourLimit_ = input.readDouble();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 65
-            case 74: {
-              input.readMessage(
-                  getPickupToDeliveryAbsoluteDetourLimitFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getPickupToDeliveryTimeLimitFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              shipmentType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 90
-            case 98: {
-              label_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 98
-            case 104: {
-              ignore_ = input.readBool();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 104
-            case 114: {
-              com.google.protobuf.MapEntry
-              loadDemands__ = input.readMessage(
-                  LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLoadDemands().getMutableMap().put(
-                  loadDemands__.getKey(), loadDemands__.getValue());
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 114
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.optimization.v1.Shipment.VisitRequest m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.Shipment.VisitRequest.parser(),
+                        extensionRegistry);
+                if (pickupsBuilder_ == null) {
+                  ensurePickupsIsMutable();
+                  pickups_.add(m);
+                } else {
+                  pickupsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.optimization.v1.Shipment.VisitRequest m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.Shipment.VisitRequest.parser(),
+                        extensionRegistry);
+                if (deliveriesBuilder_ == null) {
+                  ensureDeliveriesIsMutable();
+                  deliveries_.add(m);
+                } else {
+                  deliveriesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.optimization.v1.CapacityQuantity m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                        extensionRegistry);
+                if (demandsBuilder_ == null) {
+                  ensureDemandsIsMutable();
+                  demands_.add(m);
+                } else {
+                  demandsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 33:
+              {
+                penaltyCost_ = input.readDouble();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 33
+            case 40:
+              {
+                int v = input.readInt32();
+                ensureAllowedVehicleIndicesIsMutable();
+                allowedVehicleIndices_.addInt(v);
+                break;
+              } // case 40
+            case 42:
+              {
+                int length = input.readRawVarint32();
+                int limit = input.pushLimit(length);
+                ensureAllowedVehicleIndicesIsMutable();
+                while (input.getBytesUntilLimit() > 0) {
+                  allowedVehicleIndices_.addInt(input.readInt32());
+                }
+                input.popLimit(limit);
+                break;
+              } // case 42
+            case 49:
+              {
+                double v = input.readDouble();
+                ensureCostsPerVehicleIsMutable();
+                costsPerVehicle_.addDouble(v);
+                break;
+              } // case 49
+            case 50:
+              {
+                int length = input.readRawVarint32();
+                int limit = input.pushLimit(length);
+                ensureCostsPerVehicleIsMutable();
+                while (input.getBytesUntilLimit() > 0) {
+                  costsPerVehicle_.addDouble(input.readDouble());
+                }
+                input.popLimit(limit);
+                break;
+              } // case 50
+            case 56:
+              {
+                int v = input.readInt32();
+                ensureCostsPerVehicleIndicesIsMutable();
+                costsPerVehicleIndices_.addInt(v);
+                break;
+              } // case 56
+            case 58:
+              {
+                int length = input.readRawVarint32();
+                int limit = input.pushLimit(length);
+                ensureCostsPerVehicleIndicesIsMutable();
+                while (input.getBytesUntilLimit() > 0) {
+                  costsPerVehicleIndices_.addInt(input.readInt32());
+                }
+                input.popLimit(limit);
+                break;
+              } // case 58
+            case 65:
+              {
+                pickupToDeliveryRelativeDetourLimit_ = input.readDouble();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 65
+            case 74:
+              {
+                input.readMessage(
+                    getPickupToDeliveryAbsoluteDetourLimitFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(
+                    getPickupToDeliveryTimeLimitFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                shipmentType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+            case 98:
+              {
+                label_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 98
+            case 104:
+              {
+                ignore_ = input.readBool();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 104
+            case 114:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+                    loadDemands__ =
+                        input.readMessage(
+                            LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableLoadDemands()
+                    .getMutableMap()
+                    .put(loadDemands__.getKey(), loadDemands__.getValue());
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 114
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7115,21 +7977,30 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List pickups_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensurePickupsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        pickups_ = new java.util.ArrayList(pickups_);
+        pickups_ =
+            new java.util.ArrayList(
+                pickups_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder> pickupsBuilder_;
+            com.google.cloud.optimization.v1.Shipment.VisitRequest,
+            com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
+            com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>
+        pickupsBuilder_;
 
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7145,6 +8016,8 @@ public java.util.List ge
       }
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7160,6 +8033,8 @@ public int getPickupsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7175,6 +8050,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest getPickups(int ind
       }
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7197,6 +8074,8 @@ public Builder setPickups(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7216,6 +8095,8 @@ public Builder setPickups(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7237,6 +8118,8 @@ public Builder addPickups(com.google.cloud.optimization.v1.Shipment.VisitRequest
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7259,6 +8142,8 @@ public Builder addPickups(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7278,6 +8163,8 @@ public Builder addPickups(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7297,6 +8184,8 @@ public Builder addPickups(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7305,11 +8194,11 @@ public Builder addPickups(
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
      */
     public Builder addAllPickups(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (pickupsBuilder_ == null) {
         ensurePickupsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, pickups_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pickups_);
         onChanged();
       } else {
         pickupsBuilder_.addAllMessages(values);
@@ -7317,6 +8206,8 @@ public Builder addAllPickups(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7335,6 +8226,8 @@ public Builder clearPickups() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7353,6 +8246,8 @@ public Builder removePickups(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7365,6 +8260,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder getPickups
       return getPickupsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7375,11 +8272,14 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder getPickups
     public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuilder(
         int index) {
       if (pickupsBuilder_ == null) {
-        return pickups_.get(index);  } else {
+        return pickups_.get(index);
+      } else {
         return pickupsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7387,8 +8287,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
      */
-    public java.util.List 
-         getPickupsOrBuilderList() {
+    public java.util.List
+        getPickupsOrBuilderList() {
       if (pickupsBuilder_ != null) {
         return pickupsBuilder_.getMessageOrBuilderList();
       } else {
@@ -7396,6 +8296,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
       }
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7404,10 +8306,12 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickup
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
      */
     public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addPickupsBuilder() {
-      return getPickupsFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
+      return getPickupsFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7417,10 +8321,13 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addPickups
      */
     public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addPickupsBuilder(
         int index) {
-      return getPickupsFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
+      return getPickupsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Set of pickup alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -7428,38 +8335,49 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addPickups
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
      */
-    public java.util.List 
-         getPickupsBuilderList() {
+    public java.util.List
+        getPickupsBuilderList() {
       return getPickupsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder> 
+            com.google.cloud.optimization.v1.Shipment.VisitRequest,
+            com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
+            com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>
         getPickupsFieldBuilder() {
       if (pickupsBuilder_ == null) {
-        pickupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>(
-                pickups_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        pickupsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.Shipment.VisitRequest,
+                com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
+                com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>(
+                pickups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         pickups_ = null;
       }
       return pickupsBuilder_;
     }
 
     private java.util.List deliveries_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureDeliveriesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        deliveries_ = new java.util.ArrayList(deliveries_);
+        deliveries_ =
+            new java.util.ArrayList(
+                deliveries_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder> deliveriesBuilder_;
+            com.google.cloud.optimization.v1.Shipment.VisitRequest,
+            com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
+            com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>
+        deliveriesBuilder_;
 
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7467,7 +8385,8 @@ private void ensureDeliveriesIsMutable() {
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
-    public java.util.List getDeliveriesList() {
+    public java.util.List
+        getDeliveriesList() {
       if (deliveriesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(deliveries_);
       } else {
@@ -7475,6 +8394,8 @@ public java.util.List ge
       }
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7490,6 +8411,8 @@ public int getDeliveriesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7505,6 +8428,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest getDeliveries(int
       }
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7527,6 +8452,8 @@ public Builder setDeliveries(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7546,6 +8473,8 @@ public Builder setDeliveries(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7567,6 +8496,8 @@ public Builder addDeliveries(com.google.cloud.optimization.v1.Shipment.VisitRequ
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7589,6 +8520,8 @@ public Builder addDeliveries(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7608,6 +8541,8 @@ public Builder addDeliveries(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7627,6 +8562,8 @@ public Builder addDeliveries(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7635,11 +8572,11 @@ public Builder addDeliveries(
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
     public Builder addAllDeliveries(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (deliveriesBuilder_ == null) {
         ensureDeliveriesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, deliveries_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deliveries_);
         onChanged();
       } else {
         deliveriesBuilder_.addAllMessages(values);
@@ -7647,6 +8584,8 @@ public Builder addAllDeliveries(
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7665,6 +8604,8 @@ public Builder clearDeliveries() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7683,6 +8624,8 @@ public Builder removeDeliveries(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7695,6 +8638,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder getDeliver
       return getDeliveriesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7705,11 +8650,14 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder getDeliver
     public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDeliveriesOrBuilder(
         int index) {
       if (deliveriesBuilder_ == null) {
-        return deliveries_.get(index);  } else {
+        return deliveries_.get(index);
+      } else {
         return deliveriesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7717,8 +8665,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDelive
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
-    public java.util.List 
-         getDeliveriesOrBuilderList() {
+    public java.util.List
+        getDeliveriesOrBuilderList() {
       if (deliveriesBuilder_ != null) {
         return deliveriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -7726,6 +8674,8 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDelive
       }
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7734,10 +8684,12 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDelive
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
     public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliveriesBuilder() {
-      return getDeliveriesFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
+      return getDeliveriesFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7747,10 +8699,13 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliver
      */
     public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliveriesBuilder(
         int index) {
-      return getDeliveriesFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
+      return getDeliveriesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.optimization.v1.Shipment.VisitRequest.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Set of delivery alternatives associated to the shipment. If not specified,
      * the vehicle only needs to visit a location corresponding to the pickups.
@@ -7758,28 +8713,34 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliver
      *
      * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
      */
-    public java.util.List 
-         getDeliveriesBuilderList() {
+    public java.util.List
+        getDeliveriesBuilderList() {
       return getDeliveriesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder> 
+            com.google.cloud.optimization.v1.Shipment.VisitRequest,
+            com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
+            com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>
         getDeliveriesFieldBuilder() {
       if (deliveriesBuilder_ == null) {
-        deliveriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.Shipment.VisitRequest, com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder, com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>(
-                deliveries_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        deliveriesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.Shipment.VisitRequest,
+                com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder,
+                com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder>(
+                deliveries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         deliveries_ = null;
       }
       return deliveriesBuilder_;
     }
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+        loadDemands_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
         internalGetLoadDemands() {
       if (loadDemands_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -7787,11 +8748,13 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliver
       }
       return loadDemands_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
         internalGetMutableLoadDemands() {
       if (loadDemands_ == null) {
-        loadDemands_ = com.google.protobuf.MapField.newMapField(
-            LoadDemandsDefaultEntryHolder.defaultEntry);
+        loadDemands_ =
+            com.google.protobuf.MapField.newMapField(LoadDemandsDefaultEntryHolder.defaultEntry);
       }
       if (!loadDemands_.isMutable()) {
         loadDemands_ = loadDemands_.copy();
@@ -7800,10 +8763,13 @@ public com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder addDeliver
       onChanged();
       return loadDemands_;
     }
+
     public int getLoadDemandsCount() {
       return internalGetLoadDemands().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -7813,23 +8779,26 @@ public int getLoadDemandsCount() {
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * */ @java.lang.Override - public boolean containsLoadDemands( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLoadDemands(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLoadDemands().getMap().containsKey(key); } - /** - * Use {@link #getLoadDemandsMap()} instead. - */ + /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getLoadDemands() { + public java.util.Map + getLoadDemands() { return getLoadDemandsMap(); } /** + * + * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -7839,13 +8808,17 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
+     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
+     * 
      */
     @java.lang.Override
-    public java.util.Map getLoadDemandsMap() {
+    public java.util.Map
+        getLoadDemandsMap() {
       return internalGetLoadDemands().getMap();
     }
     /**
+     *
+     *
      * 
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -7855,20 +8828,24 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
+     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
+     * 
      */
     @java.lang.Override
-    public /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+    public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
         java.lang.String key,
         /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetLoadDemands().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -7878,12 +8855,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -7891,13 +8871,15 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( } return map.get(key); } + public Builder clearLoadDemands() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableLoadDemands().getMutableMap() - .clear(); + internalGetMutableLoadDemands().getMutableMap().clear(); return this; } /** + * + * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -7907,18 +8889,17 @@ public Builder clearLoadDemands() {
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * */ - public Builder removeLoadDemands( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLoadDemands().getMutableMap() - .remove(key); + public Builder removeLoadDemands(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLoadDemands().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLoadDemands() { @@ -7926,6 +8907,8 @@ public Builder removeLoadDemands( return internalGetMutableLoadDemands().getMutableMap(); } /** + * + * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -7935,19 +8918,24 @@ public Builder removeLoadDemands(
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * */ public Builder putLoadDemands( - java.lang.String key, - com.google.cloud.optimization.v1.Shipment.Load value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLoadDemands().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.optimization.v1.Shipment.Load value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLoadDemands().getMutableMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** + * + * *
      * Load demands of the shipment (for example weight, volume, number of
      * pallets etc). The keys in the map should be identifiers describing the type
@@ -7957,18 +8945,20 @@ public Builder putLoadDemands(
      * considered as null.
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; + * */ public Builder putAllLoadDemands( java.util.Map values) { - internalGetMutableLoadDemands().getMutableMap() - .putAll(values); + internalGetMutableLoadDemands().getMutableMap().putAll(values); bitField0_ |= 0x00000004; return this; } - private double penaltyCost_ ; + private double penaltyCost_; /** + * + * *
      * If the shipment is not completed, this penalty is added to the overall
      * cost of the routes. A shipment is considered completed if one of its pickup
@@ -7981,6 +8971,7 @@ public Builder putAllLoadDemands(
      * 
* * optional double penalty_cost = 4; + * * @return Whether the penaltyCost field is set. */ @java.lang.Override @@ -7988,6 +8979,8 @@ public boolean hasPenaltyCost() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * If the shipment is not completed, this penalty is added to the overall
      * cost of the routes. A shipment is considered completed if one of its pickup
@@ -8000,6 +8993,7 @@ public boolean hasPenaltyCost() {
      * 
* * optional double penalty_cost = 4; + * * @return The penaltyCost. */ @java.lang.Override @@ -8007,6 +9001,8 @@ public double getPenaltyCost() { return penaltyCost_; } /** + * + * *
      * If the shipment is not completed, this penalty is added to the overall
      * cost of the routes. A shipment is considered completed if one of its pickup
@@ -8019,6 +9015,7 @@ public double getPenaltyCost() {
      * 
* * optional double penalty_cost = 4; + * * @param value The penaltyCost to set. * @return This builder for chaining. */ @@ -8030,6 +9027,8 @@ public Builder setPenaltyCost(double value) { return this; } /** + * + * *
      * If the shipment is not completed, this penalty is added to the overall
      * cost of the routes. A shipment is considered completed if one of its pickup
@@ -8042,6 +9041,7 @@ public Builder setPenaltyCost(double value) {
      * 
* * optional double penalty_cost = 4; + * * @return This builder for chaining. */ public Builder clearPenaltyCost() { @@ -8052,6 +9052,7 @@ public Builder clearPenaltyCost() { } private com.google.protobuf.Internal.IntList allowedVehicleIndices_ = emptyIntList(); + private void ensureAllowedVehicleIndicesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { allowedVehicleIndices_ = mutableCopy(allowedVehicleIndices_); @@ -8059,6 +9060,8 @@ private void ensureAllowedVehicleIndicesIsMutable() { } } /** + * + * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -8066,14 +9069,17 @@ private void ensureAllowedVehicleIndicesIsMutable() {
      * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @return A list containing the allowedVehicleIndices. */ - public java.util.List - getAllowedVehicleIndicesList() { - return ((bitField0_ & 0x00000010) != 0) ? - java.util.Collections.unmodifiableList(allowedVehicleIndices_) : allowedVehicleIndices_; + public java.util.List getAllowedVehicleIndicesList() { + return ((bitField0_ & 0x00000010) != 0) + ? java.util.Collections.unmodifiableList(allowedVehicleIndices_) + : allowedVehicleIndices_; } /** + * + * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -8081,12 +9087,15 @@ private void ensureAllowedVehicleIndicesIsMutable() {
      * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @return The count of allowedVehicleIndices. */ public int getAllowedVehicleIndicesCount() { return allowedVehicleIndices_.size(); } /** + * + * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -8094,6 +9103,7 @@ public int getAllowedVehicleIndicesCount() {
      * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @param index The index of the element to return. * @return The allowedVehicleIndices at the given index. */ @@ -8101,6 +9111,8 @@ public int getAllowedVehicleIndices(int index) { return allowedVehicleIndices_.getInt(index); } /** + * + * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -8108,12 +9120,12 @@ public int getAllowedVehicleIndices(int index) {
      * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @param index The index to set the value at. * @param value The allowedVehicleIndices to set. * @return This builder for chaining. */ - public Builder setAllowedVehicleIndices( - int index, int value) { + public Builder setAllowedVehicleIndices(int index, int value) { ensureAllowedVehicleIndicesIsMutable(); allowedVehicleIndices_.setInt(index, value); @@ -8121,6 +9133,8 @@ public Builder setAllowedVehicleIndices( return this; } /** + * + * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -8128,6 +9142,7 @@ public Builder setAllowedVehicleIndices(
      * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @param value The allowedVehicleIndices to add. * @return This builder for chaining. */ @@ -8139,6 +9154,8 @@ public Builder addAllowedVehicleIndices(int value) { return this; } /** + * + * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -8146,18 +9163,20 @@ public Builder addAllowedVehicleIndices(int value) {
      * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @param values The allowedVehicleIndices to add. * @return This builder for chaining. */ public Builder addAllAllowedVehicleIndices( java.lang.Iterable values) { ensureAllowedVehicleIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedVehicleIndices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedVehicleIndices_); onChanged(); return this; } /** + * + * *
      * The set of vehicles that may perform this shipment. If empty, all vehicles
      * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -8165,6 +9184,7 @@ public Builder addAllAllowedVehicleIndices(
      * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @return This builder for chaining. */ public Builder clearAllowedVehicleIndices() { @@ -8175,6 +9195,7 @@ public Builder clearAllowedVehicleIndices() { } private com.google.protobuf.Internal.DoubleList costsPerVehicle_ = emptyDoubleList(); + private void ensureCostsPerVehicleIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { costsPerVehicle_ = mutableCopy(costsPerVehicle_); @@ -8182,6 +9203,8 @@ private void ensureCostsPerVehicleIsMutable() { } } /** + * + * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -8197,14 +9220,17 @@ private void ensureCostsPerVehicleIsMutable() {
      * 
* * repeated double costs_per_vehicle = 6; + * * @return A list containing the costsPerVehicle. */ - public java.util.List - getCostsPerVehicleList() { - return ((bitField0_ & 0x00000020) != 0) ? - java.util.Collections.unmodifiableList(costsPerVehicle_) : costsPerVehicle_; + public java.util.List getCostsPerVehicleList() { + return ((bitField0_ & 0x00000020) != 0) + ? java.util.Collections.unmodifiableList(costsPerVehicle_) + : costsPerVehicle_; } /** + * + * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -8220,12 +9246,15 @@ private void ensureCostsPerVehicleIsMutable() {
      * 
* * repeated double costs_per_vehicle = 6; + * * @return The count of costsPerVehicle. */ public int getCostsPerVehicleCount() { return costsPerVehicle_.size(); } /** + * + * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -8241,6 +9270,7 @@ public int getCostsPerVehicleCount() {
      * 
* * repeated double costs_per_vehicle = 6; + * * @param index The index of the element to return. * @return The costsPerVehicle at the given index. */ @@ -8248,6 +9278,8 @@ public double getCostsPerVehicle(int index) { return costsPerVehicle_.getDouble(index); } /** + * + * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -8263,12 +9295,12 @@ public double getCostsPerVehicle(int index) {
      * 
* * repeated double costs_per_vehicle = 6; + * * @param index The index to set the value at. * @param value The costsPerVehicle to set. * @return This builder for chaining. */ - public Builder setCostsPerVehicle( - int index, double value) { + public Builder setCostsPerVehicle(int index, double value) { ensureCostsPerVehicleIsMutable(); costsPerVehicle_.setDouble(index, value); @@ -8276,6 +9308,8 @@ public Builder setCostsPerVehicle( return this; } /** + * + * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -8291,6 +9325,7 @@ public Builder setCostsPerVehicle(
      * 
* * repeated double costs_per_vehicle = 6; + * * @param value The costsPerVehicle to add. * @return This builder for chaining. */ @@ -8302,6 +9337,8 @@ public Builder addCostsPerVehicle(double value) { return this; } /** + * + * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -8317,18 +9354,19 @@ public Builder addCostsPerVehicle(double value) {
      * 
* * repeated double costs_per_vehicle = 6; + * * @param values The costsPerVehicle to add. * @return This builder for chaining. */ - public Builder addAllCostsPerVehicle( - java.lang.Iterable values) { + public Builder addAllCostsPerVehicle(java.lang.Iterable values) { ensureCostsPerVehicleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, costsPerVehicle_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, costsPerVehicle_); onChanged(); return this; } /** + * + * *
      * Specifies the cost that is incurred when this shipment is delivered by each
      * vehicle. If specified, it must have EITHER:
@@ -8344,6 +9382,7 @@ public Builder addAllCostsPerVehicle(
      * 
* * repeated double costs_per_vehicle = 6; + * * @return This builder for chaining. */ public Builder clearCostsPerVehicle() { @@ -8354,6 +9393,7 @@ public Builder clearCostsPerVehicle() { } private com.google.protobuf.Internal.IntList costsPerVehicleIndices_ = emptyIntList(); + private void ensureCostsPerVehicleIndicesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { costsPerVehicleIndices_ = mutableCopy(costsPerVehicleIndices_); @@ -8361,6 +9401,8 @@ private void ensureCostsPerVehicleIndicesIsMutable() { } } /** + * + * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -8369,14 +9411,17 @@ private void ensureCostsPerVehicleIndicesIsMutable() {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @return A list containing the costsPerVehicleIndices. */ - public java.util.List - getCostsPerVehicleIndicesList() { - return ((bitField0_ & 0x00000040) != 0) ? - java.util.Collections.unmodifiableList(costsPerVehicleIndices_) : costsPerVehicleIndices_; + public java.util.List getCostsPerVehicleIndicesList() { + return ((bitField0_ & 0x00000040) != 0) + ? java.util.Collections.unmodifiableList(costsPerVehicleIndices_) + : costsPerVehicleIndices_; } /** + * + * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -8385,12 +9430,15 @@ private void ensureCostsPerVehicleIndicesIsMutable() {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @return The count of costsPerVehicleIndices. */ public int getCostsPerVehicleIndicesCount() { return costsPerVehicleIndices_.size(); } /** + * + * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -8399,6 +9447,7 @@ public int getCostsPerVehicleIndicesCount() {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @param index The index of the element to return. * @return The costsPerVehicleIndices at the given index. */ @@ -8406,6 +9455,8 @@ public int getCostsPerVehicleIndices(int index) { return costsPerVehicleIndices_.getInt(index); } /** + * + * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -8414,12 +9465,12 @@ public int getCostsPerVehicleIndices(int index) {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @param index The index to set the value at. * @param value The costsPerVehicleIndices to set. * @return This builder for chaining. */ - public Builder setCostsPerVehicleIndices( - int index, int value) { + public Builder setCostsPerVehicleIndices(int index, int value) { ensureCostsPerVehicleIndicesIsMutable(); costsPerVehicleIndices_.setInt(index, value); @@ -8427,6 +9478,8 @@ public Builder setCostsPerVehicleIndices( return this; } /** + * + * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -8435,6 +9488,7 @@ public Builder setCostsPerVehicleIndices(
      * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @param value The costsPerVehicleIndices to add. * @return This builder for chaining. */ @@ -8446,6 +9500,8 @@ public Builder addCostsPerVehicleIndices(int value) { return this; } /** + * + * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -8454,18 +9510,20 @@ public Builder addCostsPerVehicleIndices(int value) {
      * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @param values The costsPerVehicleIndices to add. * @return This builder for chaining. */ public Builder addAllCostsPerVehicleIndices( java.lang.Iterable values) { ensureCostsPerVehicleIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, costsPerVehicleIndices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, costsPerVehicleIndices_); onChanged(); return this; } /** + * + * *
      * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
      * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -8474,6 +9532,7 @@ public Builder addAllCostsPerVehicleIndices(
      * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @return This builder for chaining. */ public Builder clearCostsPerVehicleIndices() { @@ -8483,8 +9542,10 @@ public Builder clearCostsPerVehicleIndices() { return this; } - private double pickupToDeliveryRelativeDetourLimit_ ; + private double pickupToDeliveryRelativeDetourLimit_; /** + * + * *
      * Specifies the maximum relative detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8506,6 +9567,7 @@ public Builder clearCostsPerVehicleIndices() {
      * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; + * * @return Whether the pickupToDeliveryRelativeDetourLimit field is set. */ @java.lang.Override @@ -8513,6 +9575,8 @@ public boolean hasPickupToDeliveryRelativeDetourLimit() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Specifies the maximum relative detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8534,6 +9598,7 @@ public boolean hasPickupToDeliveryRelativeDetourLimit() {
      * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; + * * @return The pickupToDeliveryRelativeDetourLimit. */ @java.lang.Override @@ -8541,6 +9606,8 @@ public double getPickupToDeliveryRelativeDetourLimit() { return pickupToDeliveryRelativeDetourLimit_; } /** + * + * *
      * Specifies the maximum relative detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8562,6 +9629,7 @@ public double getPickupToDeliveryRelativeDetourLimit() {
      * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; + * * @param value The pickupToDeliveryRelativeDetourLimit to set. * @return This builder for chaining. */ @@ -8573,6 +9641,8 @@ public Builder setPickupToDeliveryRelativeDetourLimit(double value) { return this; } /** + * + * *
      * Specifies the maximum relative detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8594,6 +9664,7 @@ public Builder setPickupToDeliveryRelativeDetourLimit(double value) {
      * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; + * * @return This builder for chaining. */ public Builder clearPickupToDeliveryRelativeDetourLimit() { @@ -8605,8 +9676,13 @@ public Builder clearPickupToDeliveryRelativeDetourLimit() { private com.google.protobuf.Duration pickupToDeliveryAbsoluteDetourLimit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> pickupToDeliveryAbsoluteDetourLimitBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + pickupToDeliveryAbsoluteDetourLimitBuilder_; /** + * + * *
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8628,12 +9704,15 @@ public Builder clearPickupToDeliveryRelativeDetourLimit() {
      * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; + * * @return Whether the pickupToDeliveryAbsoluteDetourLimit field is set. */ public boolean hasPickupToDeliveryAbsoluteDetourLimit() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8655,16 +9734,21 @@ public boolean hasPickupToDeliveryAbsoluteDetourLimit() {
      * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; + * * @return The pickupToDeliveryAbsoluteDetourLimit. */ public com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit() { if (pickupToDeliveryAbsoluteDetourLimitBuilder_ == null) { - return pickupToDeliveryAbsoluteDetourLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryAbsoluteDetourLimit_; + return pickupToDeliveryAbsoluteDetourLimit_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pickupToDeliveryAbsoluteDetourLimit_; } else { return pickupToDeliveryAbsoluteDetourLimitBuilder_.getMessage(); } } /** + * + * *
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8701,6 +9785,8 @@ public Builder setPickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Durati
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8735,6 +9821,8 @@ public Builder setPickupToDeliveryAbsoluteDetourLimit(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8759,9 +9847,10 @@ public Builder setPickupToDeliveryAbsoluteDetourLimit(
      */
     public Builder mergePickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Duration value) {
       if (pickupToDeliveryAbsoluteDetourLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
-          pickupToDeliveryAbsoluteDetourLimit_ != null &&
-          pickupToDeliveryAbsoluteDetourLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0)
+            && pickupToDeliveryAbsoluteDetourLimit_ != null
+            && pickupToDeliveryAbsoluteDetourLimit_
+                != com.google.protobuf.Duration.getDefaultInstance()) {
           getPickupToDeliveryAbsoluteDetourLimitBuilder().mergeFrom(value);
         } else {
           pickupToDeliveryAbsoluteDetourLimit_ = value;
@@ -8774,6 +9863,8 @@ public Builder mergePickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Dura
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8807,6 +9898,8 @@ public Builder clearPickupToDeliveryAbsoluteDetourLimit() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8835,6 +9928,8 @@ public com.google.protobuf.Duration.Builder getPickupToDeliveryAbsoluteDetourLim
       return getPickupToDeliveryAbsoluteDetourLimitFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8861,11 +9956,14 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
       if (pickupToDeliveryAbsoluteDetourLimitBuilder_ != null) {
         return pickupToDeliveryAbsoluteDetourLimitBuilder_.getMessageOrBuilder();
       } else {
-        return pickupToDeliveryAbsoluteDetourLimit_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryAbsoluteDetourLimit_;
+        return pickupToDeliveryAbsoluteDetourLimit_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : pickupToDeliveryAbsoluteDetourLimit_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum absolute detour time compared to the shortest path
      * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -8889,14 +9987,17 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
      * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getPickupToDeliveryAbsoluteDetourLimitFieldBuilder() {
       if (pickupToDeliveryAbsoluteDetourLimitBuilder_ == null) {
-        pickupToDeliveryAbsoluteDetourLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getPickupToDeliveryAbsoluteDetourLimit(),
-                getParentForChildren(),
-                isClean());
+        pickupToDeliveryAbsoluteDetourLimitBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getPickupToDeliveryAbsoluteDetourLimit(), getParentForChildren(), isClean());
         pickupToDeliveryAbsoluteDetourLimit_ = null;
       }
       return pickupToDeliveryAbsoluteDetourLimitBuilder_;
@@ -8904,8 +10005,13 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
 
     private com.google.protobuf.Duration pickupToDeliveryTimeLimit_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> pickupToDeliveryTimeLimitBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        pickupToDeliveryTimeLimitBuilder_;
     /**
+     *
+     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -8916,12 +10022,15 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLi
      * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; + * * @return Whether the pickupToDeliveryTimeLimit field is set. */ public boolean hasPickupToDeliveryTimeLimit() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -8932,16 +10041,21 @@ public boolean hasPickupToDeliveryTimeLimit() {
      * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; + * * @return The pickupToDeliveryTimeLimit. */ public com.google.protobuf.Duration getPickupToDeliveryTimeLimit() { if (pickupToDeliveryTimeLimitBuilder_ == null) { - return pickupToDeliveryTimeLimit_ == null ? com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryTimeLimit_; + return pickupToDeliveryTimeLimit_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : pickupToDeliveryTimeLimit_; } else { return pickupToDeliveryTimeLimitBuilder_.getMessage(); } } /** + * + * *
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -8967,6 +10081,8 @@ public Builder setPickupToDeliveryTimeLimit(com.google.protobuf.Duration value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -8990,6 +10106,8 @@ public Builder setPickupToDeliveryTimeLimit(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -9003,9 +10121,9 @@ public Builder setPickupToDeliveryTimeLimit(
      */
     public Builder mergePickupToDeliveryTimeLimit(com.google.protobuf.Duration value) {
       if (pickupToDeliveryTimeLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          pickupToDeliveryTimeLimit_ != null &&
-          pickupToDeliveryTimeLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && pickupToDeliveryTimeLimit_ != null
+            && pickupToDeliveryTimeLimit_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getPickupToDeliveryTimeLimitBuilder().mergeFrom(value);
         } else {
           pickupToDeliveryTimeLimit_ = value;
@@ -9018,6 +10136,8 @@ public Builder mergePickupToDeliveryTimeLimit(com.google.protobuf.Duration value
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -9040,6 +10160,8 @@ public Builder clearPickupToDeliveryTimeLimit() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -9057,6 +10179,8 @@ public com.google.protobuf.Duration.Builder getPickupToDeliveryTimeLimitBuilder(
       return getPickupToDeliveryTimeLimitFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -9072,11 +10196,14 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
       if (pickupToDeliveryTimeLimitBuilder_ != null) {
         return pickupToDeliveryTimeLimitBuilder_.getMessageOrBuilder();
       } else {
-        return pickupToDeliveryTimeLimit_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : pickupToDeliveryTimeLimit_;
+        return pickupToDeliveryTimeLimit_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : pickupToDeliveryTimeLimit_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies the maximum duration from start of pickup to start of delivery of
      * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -9089,14 +10216,17 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
      * .google.protobuf.Duration pickup_to_delivery_time_limit = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getPickupToDeliveryTimeLimitFieldBuilder() {
       if (pickupToDeliveryTimeLimitBuilder_ == null) {
-        pickupToDeliveryTimeLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getPickupToDeliveryTimeLimit(),
-                getParentForChildren(),
-                isClean());
+        pickupToDeliveryTimeLimitBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getPickupToDeliveryTimeLimit(), getParentForChildren(), isClean());
         pickupToDeliveryTimeLimit_ = null;
       }
       return pickupToDeliveryTimeLimitBuilder_;
@@ -9104,6 +10234,8 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
 
     private java.lang.Object shipmentType_ = "";
     /**
+     *
+     *
      * 
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -9116,13 +10248,13 @@ public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuild
      * 
* * string shipment_type = 11; + * * @return The shipmentType. */ public java.lang.String getShipmentType() { java.lang.Object ref = shipmentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shipmentType_ = s; return s; @@ -9131,6 +10263,8 @@ public java.lang.String getShipmentType() { } } /** + * + * *
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -9143,15 +10277,14 @@ public java.lang.String getShipmentType() {
      * 
* * string shipment_type = 11; + * * @return The bytes for shipmentType. */ - public com.google.protobuf.ByteString - getShipmentTypeBytes() { + public com.google.protobuf.ByteString getShipmentTypeBytes() { java.lang.Object ref = shipmentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shipmentType_ = b; return b; } else { @@ -9159,6 +10292,8 @@ public java.lang.String getShipmentType() { } } /** + * + * *
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -9171,18 +10306,22 @@ public java.lang.String getShipmentType() {
      * 
* * string shipment_type = 11; + * * @param value The shipmentType to set. * @return This builder for chaining. */ - public Builder setShipmentType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setShipmentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } shipmentType_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -9195,6 +10334,7 @@ public Builder setShipmentType(
      * 
* * string shipment_type = 11; + * * @return This builder for chaining. */ public Builder clearShipmentType() { @@ -9204,6 +10344,8 @@ public Builder clearShipmentType() { return this; } /** + * + * *
      * Non-empty string specifying a "type" for this shipment.
      * This feature can be used to define incompatibilities or requirements
@@ -9216,12 +10358,14 @@ public Builder clearShipmentType() {
      * 
* * string shipment_type = 11; + * * @param value The bytes for shipmentType to set. * @return This builder for chaining. */ - public Builder setShipmentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setShipmentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); shipmentType_ = value; bitField0_ |= 0x00000400; @@ -9231,6 +10375,8 @@ public Builder setShipmentTypeBytes( private java.lang.Object label_ = ""; /** + * + * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -9238,13 +10384,13 @@ public Builder setShipmentTypeBytes(
      * 
* * string label = 12; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -9253,6 +10399,8 @@ public java.lang.String getLabel() { } } /** + * + * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -9260,15 +10408,14 @@ public java.lang.String getLabel() {
      * 
* * string label = 12; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -9276,6 +10423,8 @@ public java.lang.String getLabel() { } } /** + * + * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -9283,18 +10432,22 @@ public java.lang.String getLabel() {
      * 
* * string label = 12; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } label_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -9302,6 +10455,7 @@ public Builder setLabel(
      * 
* * string label = 12; + * * @return This builder for chaining. */ public Builder clearLabel() { @@ -9311,6 +10465,8 @@ public Builder clearLabel() { return this; } /** + * + * *
      * Specifies a label for this shipment. This label is reported in the response
      * in the `shipment_label` of the corresponding
@@ -9318,12 +10474,14 @@ public Builder clearLabel() {
      * 
* * string label = 12; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000800; @@ -9331,8 +10489,10 @@ public Builder setLabelBytes( return this; } - private boolean ignore_ ; + private boolean ignore_; /** + * + * *
      * If true, skip this shipment, but don't apply a `penalty_cost`.
      *
@@ -9346,6 +10506,7 @@ public Builder setLabelBytes(
      * 
* * bool ignore = 13; + * * @return The ignore. */ @java.lang.Override @@ -9353,6 +10514,8 @@ public boolean getIgnore() { return ignore_; } /** + * + * *
      * If true, skip this shipment, but don't apply a `penalty_cost`.
      *
@@ -9366,6 +10529,7 @@ public boolean getIgnore() {
      * 
* * bool ignore = 13; + * * @param value The ignore to set. * @return This builder for chaining. */ @@ -9377,6 +10541,8 @@ public Builder setIgnore(boolean value) { return this; } /** + * + * *
      * If true, skip this shipment, but don't apply a `penalty_cost`.
      *
@@ -9390,6 +10556,7 @@ public Builder setIgnore(boolean value) {
      * 
* * bool ignore = 13; + * * @return This builder for chaining. */ public Builder clearIgnore() { @@ -9400,27 +10567,37 @@ public Builder clearIgnore() { } private java.util.List demands_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDemandsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - demands_ = new java.util.ArrayList(demands_); + demands_ = + new java.util.ArrayList(demands_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> demandsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + demandsBuilder_; /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getDemandsList() { + @java.lang.Deprecated + public java.util.List getDemandsList() { if (demandsBuilder_ == null) { return java.util.Collections.unmodifiableList(demands_); } else { @@ -9428,15 +10605,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public int getDemandsCount() { + @java.lang.Deprecated + public int getDemandsCount() { if (demandsBuilder_ == null) { return demands_.size(); } else { @@ -9444,15 +10626,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { if (demandsBuilder_ == null) { return demands_.get(index); } else { @@ -9460,16 +10647,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDemands( - int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder setDemands(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9483,15 +10674,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDemands( + @java.lang.Deprecated + public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -9503,15 +10699,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9525,16 +10726,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( - int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addDemands(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9548,15 +10753,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( + @java.lang.Deprecated + public Builder addDemands( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -9568,15 +10778,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( + @java.lang.Deprecated + public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -9588,20 +10803,24 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllDemands( + @java.lang.Deprecated + public Builder addAllDemands( java.lang.Iterable values) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, demands_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, demands_); onChanged(); } else { demandsBuilder_.addAllMessages(values); @@ -9609,15 +10828,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearDemands() { + @java.lang.Deprecated + public Builder clearDemands() { if (demandsBuilder_ == null) { demands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); @@ -9628,15 +10852,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeDemands(int index) { + @java.lang.Deprecated + public Builder removeDemands(int index) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); demands_.remove(index); @@ -9647,45 +10876,60 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder(int index) { return getDemandsFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { if (demandsBuilder_ == null) { - return demands_.get(index); } else { + return demands_.get(index); + } else { return demandsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getDemandsOrBuilderList() { + @java.lang.Deprecated + public java.util.List + getDemandsOrBuilderList() { if (demandsBuilder_ != null) { return demandsBuilder_.getMessageOrBuilderList(); } else { @@ -9693,62 +10937,80 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { - return getDemandsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { + return getDemandsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( - int index) { - return getDemandsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder(int index) { + return getDemandsFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getDemandsBuilderList() { + @java.lang.Deprecated + public java.util.List + getDemandsBuilderList() { return getDemandsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getDemandsFieldBuilder() { if (demandsBuilder_ == null) { - demandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - demands_, - ((bitField0_ & 0x00002000) != 0), - getParentForChildren(), - isClean()); + demandsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + demands_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); demands_ = null; } return demandsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9758,12 +11020,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Shipment) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Shipment) private static final com.google.cloud.optimization.v1.Shipment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Shipment(); } @@ -9772,27 +11034,27 @@ public static com.google.cloud.optimization.v1.Shipment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Shipment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Shipment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9807,6 +11069,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Shipment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java similarity index 73% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java index 782ce1ec19ee..816fba2d4995 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModel.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * A shipment model contains a set of shipments which must be performed by a
  * set of vehicles, while minimizing the overall cost, which is the sum of:
@@ -16,23 +33,22 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel}
  */
-public final class ShipmentModel extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ShipmentModel extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel)
     ShipmentModelOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ShipmentModel.newBuilder() to construct.
   private ShipmentModel(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ShipmentModel() {
     shipments_ = java.util.Collections.emptyList();
     vehicles_ = java.util.Collections.emptyList();
     durationDistanceMatrices_ = java.util.Collections.emptyList();
-    durationDistanceMatrixSrcTags_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
-    durationDistanceMatrixDstTags_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
     transitionAttributes_ = java.util.Collections.emptyList();
     shipmentTypeIncompatibilities_ = java.util.Collections.emptyList();
     shipmentTypeRequirements_ = java.util.Collections.emptyList();
@@ -42,83 +58,109 @@ private ShipmentModel() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ShipmentModel();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.ShipmentModel.class, com.google.cloud.optimization.v1.ShipmentModel.Builder.class);
+            com.google.cloud.optimization.v1.ShipmentModel.class,
+            com.google.cloud.optimization.v1.ShipmentModel.Builder.class);
   }
 
-  public interface DurationDistanceMatrixOrBuilder extends
+  public interface DurationDistanceMatrixOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - java.util.List + java.util.List getRowsList(); /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows(int index); /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ int getRowsCount(); /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> getRowsOrBuilderList(); /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder getRowsOrBuilder( - int index); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder + getRowsOrBuilder(int index); /** + * + * *
      * Tag defining to which vehicles this duration and distance matrix applies.
      * If empty, this applies to all vehicles, and there can only be a single
@@ -132,10 +174,13 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuild
      * 
* * string vehicle_start_tag = 2; + * * @return The vehicleStartTag. */ java.lang.String getVehicleStartTag(); /** + * + * *
      * Tag defining to which vehicles this duration and distance matrix applies.
      * If empty, this applies to all vehicles, and there can only be a single
@@ -149,12 +194,14 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuild
      * 
* * string vehicle_start_tag = 2; + * * @return The bytes for vehicleStartTag. */ - com.google.protobuf.ByteString - getVehicleStartTagBytes(); + com.google.protobuf.ByteString getVehicleStartTagBytes(); } /** + * + * *
    * Specifies a duration and distance matrix from visit and vehicle start
    * locations to visit and vehicle end locations.
@@ -162,15 +209,16 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuild
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix}
    */
-  public static final class DurationDistanceMatrix extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class DurationDistanceMatrix extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)
       DurationDistanceMatrixOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use DurationDistanceMatrix.newBuilder() to construct.
     private DurationDistanceMatrix(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private DurationDistanceMatrix() {
       rows_ = java.util.Collections.emptyList();
       vehicleStartTag_ = "";
@@ -178,29 +226,33 @@ private DurationDistanceMatrix() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new DurationDistanceMatrix();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.class, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.class,
+              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder.class);
     }
 
-    public interface RowOrBuilder extends
+    public interface RowOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -208,9 +260,10 @@ public interface RowOrBuilder extends
        *
        * repeated .google.protobuf.Duration durations = 1;
        */
-      java.util.List 
-          getDurationsList();
+      java.util.List getDurationsList();
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -220,6 +273,8 @@ public interface RowOrBuilder extends
        */
       com.google.protobuf.Duration getDurations(int index);
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -229,6 +284,8 @@ public interface RowOrBuilder extends
        */
       int getDurationsCount();
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -236,9 +293,10 @@ public interface RowOrBuilder extends
        *
        * repeated .google.protobuf.Duration durations = 1;
        */
-      java.util.List 
-          getDurationsOrBuilderList();
+      java.util.List getDurationsOrBuilderList();
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -246,10 +304,11 @@ public interface RowOrBuilder extends
        *
        * repeated .google.protobuf.Duration durations = 1;
        */
-      com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
-          int index);
+      com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index);
 
       /**
+       *
+       *
        * 
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -257,10 +316,13 @@ com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
        * 
* * repeated double meters = 2; + * * @return A list containing the meters. */ java.util.List getMetersList(); /** + * + * *
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -268,10 +330,13 @@ com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
        * 
* * repeated double meters = 2; + * * @return The count of meters. */ int getMetersCount(); /** + * + * *
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -279,27 +344,31 @@ com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
        * 
* * repeated double meters = 2; + * * @param index The index of the element to return. * @return The meters at the given index. */ double getMeters(int index); } /** + * + * *
      * Specifies a row of the duration and distance matrix.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row} */ - public static final class Row extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Row extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) RowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Row() { durations_ = java.util.Collections.emptyList(); meters_ = emptyDoubleList(); @@ -307,28 +376,33 @@ private Row() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Row(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.class, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder.class); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.class, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder + .class); } public static final int DURATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List durations_; /** + * + * *
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -341,6 +415,8 @@ public java.util.List getDurationsList() {
         return durations_;
       }
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -349,11 +425,13 @@ public java.util.List getDurationsList() {
        * repeated .google.protobuf.Duration durations = 1;
        */
       @java.lang.Override
-      public java.util.List 
+      public java.util.List
           getDurationsOrBuilderList() {
         return durations_;
       }
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -366,6 +444,8 @@ public int getDurationsCount() {
         return durations_.size();
       }
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -378,6 +458,8 @@ public com.google.protobuf.Duration getDurations(int index) {
         return durations_.get(index);
       }
       /**
+       *
+       *
        * 
        * Duration values for a given row. It must have as many elements as
        * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -386,15 +468,17 @@ public com.google.protobuf.Duration getDurations(int index) {
        * repeated .google.protobuf.Duration durations = 1;
        */
       @java.lang.Override
-      public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
-          int index) {
+      public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index) {
         return durations_.get(index);
       }
 
       public static final int METERS_FIELD_NUMBER = 2;
+
       @SuppressWarnings("serial")
       private com.google.protobuf.Internal.DoubleList meters_;
       /**
+       *
+       *
        * 
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -402,14 +486,16 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
        * 
* * repeated double meters = 2; + * * @return A list containing the meters. */ @java.lang.Override - public java.util.List - getMetersList() { + public java.util.List getMetersList() { return meters_; } /** + * + * *
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -417,12 +503,15 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
        * 
* * repeated double meters = 2; + * * @return The count of meters. */ public int getMetersCount() { return meters_.size(); } /** + * + * *
        * Distance values for a given row. If no costs or constraints refer to
        * distances in the model, this can be left empty; otherwise it must have
@@ -430,15 +519,18 @@ public int getMetersCount() {
        * 
* * repeated double meters = 2; + * * @param index The index of the element to return. * @return The meters at the given index. */ public double getMeters(int index) { return meters_.getDouble(index); } + private int metersMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -450,8 +542,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < durations_.size(); i++) { output.writeMessage(1, durations_.get(i)); @@ -473,8 +564,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < durations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, durations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, durations_.get(i)); } { int dataSize = 0; @@ -482,8 +572,7 @@ public int getSerializedSize() { size += dataSize; if (!getMetersList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } metersMemoizedSerializedSize = dataSize; } @@ -495,17 +584,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row)) { + if (!(obj + instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row other = (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) obj; + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row other = + (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) obj; - if (!getDurationsList() - .equals(other.getDurationsList())) return false; - if (!getMetersList() - .equals(other.getMetersList())) return false; + if (!getDurationsList().equals(other.getDurationsList())) return false; + if (!getMetersList().equals(other.getMetersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -530,90 +619,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -623,39 +725,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Specifies a row of the duration and distance matrix.
        * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.class, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder.class); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.class, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder + .class); } - // Construct using com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -672,19 +778,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.getDefaultInstance(); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row build() { - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result = buildPartial(); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -692,15 +801,20 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row buildPartial() { - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result = new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row(this); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + buildPartial() { + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result = + new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result) { + private void buildPartialRepeatedFields( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result) { if (durationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { durations_ = java.util.Collections.unmodifiableList(durations_); @@ -717,7 +831,8 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen result.meters_ = meters_; } - private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result) { + private void buildPartial0( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row result) { int from_bitField0_ = bitField0_; } @@ -725,46 +840,55 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.Durati public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) { - return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row)other); + if (other + instanceof + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) { + return mergeFrom( + (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row other) { - if (other == com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row other) { + if (other + == com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + .getDefaultInstance()) return this; if (durationsBuilder_ == null) { if (!other.durations_.isEmpty()) { if (durations_.isEmpty()) { @@ -783,9 +907,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.Duration durationsBuilder_ = null; durations_ = other.durations_; bitField0_ = (bitField0_ & ~0x00000001); - durationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDurationsFieldBuilder() : null; + durationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDurationsFieldBuilder() + : null; } else { durationsBuilder_.addAllMessages(other.durations_); } @@ -827,41 +952,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.Duration m = - input.readMessage( - com.google.protobuf.Duration.parser(), - extensionRegistry); - if (durationsBuilder_ == null) { - ensureDurationsIsMutable(); - durations_.add(m); - } else { - durationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 17: { - double v = input.readDouble(); - ensureMetersIsMutable(); - meters_.addDouble(v); - break; - } // case 17 - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureMetersIsMutable(); - while (input.getBytesUntilLimit() > 0) { - meters_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.Duration m = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (durationsBuilder_ == null) { + ensureDurationsIsMutable(); + durations_.add(m); + } else { + durationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 17: + { + double v = input.readDouble(); + ensureMetersIsMutable(); + meters_.addDouble(v); + break; + } // case 17 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureMetersIsMutable(); + while (input.getBytesUntilLimit() > 0) { + meters_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -871,21 +998,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List durations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDurationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { durations_ = new java.util.ArrayList(durations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationsBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationsBuilder_; /** + * + * *
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -901,6 +1035,8 @@ public java.util.List getDurationsList() {
           }
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -916,6 +1052,8 @@ public int getDurationsCount() {
           }
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -931,6 +1069,8 @@ public com.google.protobuf.Duration getDurations(int index) {
           }
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -938,8 +1078,7 @@ public com.google.protobuf.Duration getDurations(int index) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public Builder setDurations(
-            int index, com.google.protobuf.Duration value) {
+        public Builder setDurations(int index, com.google.protobuf.Duration value) {
           if (durationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -953,6 +1092,8 @@ public Builder setDurations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -972,6 +1113,8 @@ public Builder setDurations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -993,6 +1136,8 @@ public Builder addDurations(com.google.protobuf.Duration value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1000,8 +1145,7 @@ public Builder addDurations(com.google.protobuf.Duration value) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public Builder addDurations(
-            int index, com.google.protobuf.Duration value) {
+        public Builder addDurations(int index, com.google.protobuf.Duration value) {
           if (durationsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -1015,6 +1159,8 @@ public Builder addDurations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1022,8 +1168,7 @@ public Builder addDurations(
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public Builder addDurations(
-            com.google.protobuf.Duration.Builder builderForValue) {
+        public Builder addDurations(com.google.protobuf.Duration.Builder builderForValue) {
           if (durationsBuilder_ == null) {
             ensureDurationsIsMutable();
             durations_.add(builderForValue.build());
@@ -1034,6 +1179,8 @@ public Builder addDurations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1053,6 +1200,8 @@ public Builder addDurations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1064,8 +1213,7 @@ public Builder addAllDurations(
             java.lang.Iterable values) {
           if (durationsBuilder_ == null) {
             ensureDurationsIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(
-                values, durations_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, durations_);
             onChanged();
           } else {
             durationsBuilder_.addAllMessages(values);
@@ -1073,6 +1221,8 @@ public Builder addAllDurations(
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1091,6 +1241,8 @@ public Builder clearDurations() {
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1109,6 +1261,8 @@ public Builder removeDurations(int index) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1116,11 +1270,12 @@ public Builder removeDurations(int index) {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public com.google.protobuf.Duration.Builder getDurationsBuilder(
-            int index) {
+        public com.google.protobuf.Duration.Builder getDurationsBuilder(int index) {
           return getDurationsFieldBuilder().getBuilder(index);
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1128,14 +1283,16 @@ public com.google.protobuf.Duration.Builder getDurationsBuilder(
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
-            int index) {
+        public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(int index) {
           if (durationsBuilder_ == null) {
-            return durations_.get(index);  } else {
+            return durations_.get(index);
+          } else {
             return durationsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1143,8 +1300,8 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public java.util.List 
-             getDurationsOrBuilderList() {
+        public java.util.List
+            getDurationsOrBuilderList() {
           if (durationsBuilder_ != null) {
             return durationsBuilder_.getMessageOrBuilderList();
           } else {
@@ -1152,6 +1309,8 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
           }
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1160,10 +1319,12 @@ public com.google.protobuf.DurationOrBuilder getDurationsOrBuilder(
          * repeated .google.protobuf.Duration durations = 1;
          */
         public com.google.protobuf.Duration.Builder addDurationsBuilder() {
-          return getDurationsFieldBuilder().addBuilder(
-              com.google.protobuf.Duration.getDefaultInstance());
+          return getDurationsFieldBuilder()
+              .addBuilder(com.google.protobuf.Duration.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1171,12 +1332,13 @@ public com.google.protobuf.Duration.Builder addDurationsBuilder() {
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public com.google.protobuf.Duration.Builder addDurationsBuilder(
-            int index) {
-          return getDurationsFieldBuilder().addBuilder(
-              index, com.google.protobuf.Duration.getDefaultInstance());
+        public com.google.protobuf.Duration.Builder addDurationsBuilder(int index) {
+          return getDurationsFieldBuilder()
+              .addBuilder(index, com.google.protobuf.Duration.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Duration values for a given row. It must have as many elements as
          * [ShipmentModel.duration_distance_matrix_dst_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_dst_tags].
@@ -1184,16 +1346,21 @@ public com.google.protobuf.Duration.Builder addDurationsBuilder(
          *
          * repeated .google.protobuf.Duration durations = 1;
          */
-        public java.util.List 
-             getDurationsBuilderList() {
+        public java.util.List getDurationsBuilderList() {
           return getDurationsFieldBuilder().getBuilderList();
         }
+
         private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>
             getDurationsFieldBuilder() {
           if (durationsBuilder_ == null) {
-            durationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+            durationsBuilder_ =
+                new com.google.protobuf.RepeatedFieldBuilderV3<
+                    com.google.protobuf.Duration,
+                    com.google.protobuf.Duration.Builder,
+                    com.google.protobuf.DurationOrBuilder>(
                     durations_,
                     ((bitField0_ & 0x00000001) != 0),
                     getParentForChildren(),
@@ -1204,6 +1371,7 @@ public com.google.protobuf.Duration.Builder addDurationsBuilder(
         }
 
         private com.google.protobuf.Internal.DoubleList meters_ = emptyDoubleList();
+
         private void ensureMetersIsMutable() {
           if (!((bitField0_ & 0x00000002) != 0)) {
             meters_ = mutableCopy(meters_);
@@ -1211,6 +1379,8 @@ private void ensureMetersIsMutable() {
           }
         }
         /**
+         *
+         *
          * 
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1218,14 +1388,17 @@ private void ensureMetersIsMutable() {
          * 
* * repeated double meters = 2; + * * @return A list containing the meters. */ - public java.util.List - getMetersList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(meters_) : meters_; + public java.util.List getMetersList() { + return ((bitField0_ & 0x00000002) != 0) + ? java.util.Collections.unmodifiableList(meters_) + : meters_; } /** + * + * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1233,12 +1406,15 @@ private void ensureMetersIsMutable() {
          * 
* * repeated double meters = 2; + * * @return The count of meters. */ public int getMetersCount() { return meters_.size(); } /** + * + * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1246,6 +1422,7 @@ public int getMetersCount() {
          * 
* * repeated double meters = 2; + * * @param index The index of the element to return. * @return The meters at the given index. */ @@ -1253,6 +1430,8 @@ public double getMeters(int index) { return meters_.getDouble(index); } /** + * + * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1260,12 +1439,12 @@ public double getMeters(int index) {
          * 
* * repeated double meters = 2; + * * @param index The index to set the value at. * @param value The meters to set. * @return This builder for chaining. */ - public Builder setMeters( - int index, double value) { + public Builder setMeters(int index, double value) { ensureMetersIsMutable(); meters_.setDouble(index, value); @@ -1273,6 +1452,8 @@ public Builder setMeters( return this; } /** + * + * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1280,6 +1461,7 @@ public Builder setMeters(
          * 
* * repeated double meters = 2; + * * @param value The meters to add. * @return This builder for chaining. */ @@ -1291,6 +1473,8 @@ public Builder addMeters(double value) { return this; } /** + * + * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1298,18 +1482,19 @@ public Builder addMeters(double value) {
          * 
* * repeated double meters = 2; + * * @param values The meters to add. * @return This builder for chaining. */ - public Builder addAllMeters( - java.lang.Iterable values) { + public Builder addAllMeters(java.lang.Iterable values) { ensureMetersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, meters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, meters_); onChanged(); return this; } /** + * + * *
          * Distance values for a given row. If no costs or constraints refer to
          * distances in the model, this can be left empty; otherwise it must have
@@ -1317,6 +1502,7 @@ public Builder addAllMeters(
          * 
* * repeated double meters = 2; + * * @return This builder for chaining. */ public Builder clearMeters() { @@ -1325,6 +1511,7 @@ public Builder clearMeters() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1337,41 +1524,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row) - private static final com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row(); + DEFAULT_INSTANCE = + new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row(); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Row parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Row parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1383,87 +1574,117 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ROWS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List rows_; + private java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row> + rows_; /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ @java.lang.Override - public java.util.List getRowsList() { + public java.util.List + getRowsList() { return rows_; } /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> getRowsOrBuilderList() { return rows_; } /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ @java.lang.Override public int getRowsCount() { return rows_.size(); } /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows( + int index) { return rows_.get(index); } /** + * + * *
      * Specifies the rows of the duration and distance matrix. It must have as
      * many elements as
      * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder getRowsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder + getRowsOrBuilder(int index) { return rows_.get(index); } public static final int VEHICLE_START_TAG_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object vehicleStartTag_ = ""; /** + * + * *
      * Tag defining to which vehicles this duration and distance matrix applies.
      * If empty, this applies to all vehicles, and there can only be a single
@@ -1477,6 +1698,7 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row
      * 
* * string vehicle_start_tag = 2; + * * @return The vehicleStartTag. */ @java.lang.Override @@ -1485,14 +1707,15 @@ public java.lang.String getVehicleStartTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vehicleStartTag_ = s; return s; } } /** + * + * *
      * Tag defining to which vehicles this duration and distance matrix applies.
      * If empty, this applies to all vehicles, and there can only be a single
@@ -1506,16 +1729,15 @@ public java.lang.String getVehicleStartTag() {
      * 
* * string vehicle_start_tag = 2; + * * @return The bytes for vehicleStartTag. */ @java.lang.Override - public com.google.protobuf.ByteString - getVehicleStartTagBytes() { + public com.google.protobuf.ByteString getVehicleStartTagBytes() { java.lang.Object ref = vehicleStartTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vehicleStartTag_ = b; return b; } else { @@ -1524,6 +1746,7 @@ public java.lang.String getVehicleStartTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1535,8 +1758,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rows_.size(); i++) { output.writeMessage(1, rows_.get(i)); } @@ -1553,8 +1775,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rows_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rows_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vehicleStartTag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vehicleStartTag_); @@ -1567,17 +1788,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix other = (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) obj; + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix other = + (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) obj; - if (!getRowsList() - .equals(other.getRowsList())) return false; - if (!getVehicleStartTag() - .equals(other.getVehicleStartTag())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (!getVehicleStartTag().equals(other.getVehicleStartTag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1601,89 +1821,95 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1693,6 +1919,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Specifies a duration and distance matrix from visit and vehicle start
      * locations to visit and vehicle end locations.
@@ -1700,33 +1928,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)
         com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.class, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.class,
+                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1743,19 +1973,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDefaultInstanceForType() {
-        return com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.getDefaultInstance();
+      public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix
+          getDefaultInstanceForType() {
+        return com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix build() {
-        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result = buildPartial();
+        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1764,14 +1997,18 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix bui
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result = new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix(this);
+        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result =
+            new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result) {
+      private void buildPartialRepeatedFields(
+          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result) {
         if (rowsBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             rows_ = java.util.Collections.unmodifiableList(rows_);
@@ -1783,7 +2020,8 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
         }
       }
 
-      private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result) {
+      private void buildPartial0(
+          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.vehicleStartTag_ = vehicleStartTag_;
@@ -1794,46 +2032,54 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.Durati
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix)other);
+        if (other
+            instanceof com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) {
+          return mergeFrom(
+              (com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix other) {
+        if (other
+            == com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix
+                .getDefaultInstance()) return this;
         if (rowsBuilder_ == null) {
           if (!other.rows_.isEmpty()) {
             if (rows_.isEmpty()) {
@@ -1852,9 +2098,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.Duration
               rowsBuilder_ = null;
               rows_ = other.rows_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              rowsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getRowsFieldBuilder() : null;
+              rowsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getRowsFieldBuilder()
+                      : null;
             } else {
               rowsBuilder_.addAllMessages(other.rows_);
             }
@@ -1891,30 +2138,34 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.parser(),
-                        extensionRegistry);
-                if (rowsBuilder_ == null) {
-                  ensureRowsIsMutable();
-                  rows_.add(m);
-                } else {
-                  rowsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-              case 18: {
-                vehicleStartTag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row m =
+                      input.readMessage(
+                          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row
+                              .parser(),
+                          extensionRegistry);
+                  if (rowsBuilder_ == null) {
+                    ensureRowsIsMutable();
+                    rows_.add(m);
+                  } else {
+                    rowsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 10
+              case 18:
+                {
+                  vehicleStartTag_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1924,30 +2175,44 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private java.util.List rows_ =
-        java.util.Collections.emptyList();
+      private java.util.List<
+              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row>
+          rows_ = java.util.Collections.emptyList();
+
       private void ensureRowsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          rows_ = new java.util.ArrayList(rows_);
+          rows_ =
+              new java.util.ArrayList<
+                  com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row>(rows_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> rowsBuilder_;
+              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row,
+              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder,
+              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder>
+          rowsBuilder_;
 
       /**
+       *
+       *
        * 
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public java.util.List getRowsList() { + public java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row> + getRowsList() { if (rowsBuilder_ == null) { return java.util.Collections.unmodifiableList(rows_); } else { @@ -1955,13 +2220,17 @@ public java.util.List * Specifies the rows of the duration and distance matrix. It must have as * many elements as * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags]. *
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public int getRowsCount() { if (rowsBuilder_ == null) { @@ -1971,15 +2240,20 @@ public int getRowsCount() { } } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row getRows( + int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { @@ -1987,16 +2261,21 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row } } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public Builder setRows( - int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2010,16 +2289,22 @@ public Builder setRows( return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public Builder setRows( - int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder + builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); @@ -2030,15 +2315,20 @@ public Builder setRows( return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public Builder addRows(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { + public Builder addRows( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2052,16 +2342,21 @@ public Builder addRows(com.google.cloud.optimization.v1.ShipmentModel.DurationDi return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public Builder addRows( - int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2075,16 +2370,21 @@ public Builder addRows( return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public Builder addRows( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue) { + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder + builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); @@ -2095,16 +2395,22 @@ public Builder addRows( return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public Builder addRows( - int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder + builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); @@ -2115,20 +2421,26 @@ public Builder addRows( return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public Builder addAllRows( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row> + values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); @@ -2136,13 +2448,17 @@ public Builder addAllRows( return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public Builder clearRows() { if (rowsBuilder_ == null) { @@ -2155,13 +2471,17 @@ public Builder clearRows() { return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ public Builder removeRows(int index) { if (rowsBuilder_ == null) { @@ -2174,45 +2494,61 @@ public Builder removeRows(int index) { return this; } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder getRowsBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder + getRowsBuilder(int index) { return getRowsFieldBuilder().getBuilder(index); } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder getRowsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder + getRowsOrBuilder(int index) { if (rowsBuilder_ == null) { - return rows_.get(index); } else { + return rows_.get(index); + } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public java.util.List - getRowsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + .RowOrBuilder> + getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { @@ -2220,55 +2556,78 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row } } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder + addRowsBuilder() { + return getRowsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + .getDefaultInstance()); } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder addRowsBuilder( - int index) { - return getRowsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder + addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row + .getDefaultInstance()); } /** + * + * *
        * Specifies the rows of the duration and distance matrix. It must have as
        * many elements as
        * [ShipmentModel.duration_distance_matrix_src_tags][google.cloud.optimization.v1.ShipmentModel.duration_distance_matrix_src_tags].
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row rows = 1; + * */ - public java.util.List - getRowsBuilderList() { + public java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder> + getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.RowOrBuilder>( - rows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row.Builder, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + .RowOrBuilder>( + rows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; @@ -2276,6 +2635,8 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row private java.lang.Object vehicleStartTag_ = ""; /** + * + * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2289,13 +2650,13 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Row
        * 
* * string vehicle_start_tag = 2; + * * @return The vehicleStartTag. */ public java.lang.String getVehicleStartTag() { java.lang.Object ref = vehicleStartTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vehicleStartTag_ = s; return s; @@ -2304,6 +2665,8 @@ public java.lang.String getVehicleStartTag() { } } /** + * + * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2317,15 +2680,14 @@ public java.lang.String getVehicleStartTag() {
        * 
* * string vehicle_start_tag = 2; + * * @return The bytes for vehicleStartTag. */ - public com.google.protobuf.ByteString - getVehicleStartTagBytes() { + public com.google.protobuf.ByteString getVehicleStartTagBytes() { java.lang.Object ref = vehicleStartTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vehicleStartTag_ = b; return b; } else { @@ -2333,6 +2695,8 @@ public java.lang.String getVehicleStartTag() { } } /** + * + * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2346,18 +2710,22 @@ public java.lang.String getVehicleStartTag() {
        * 
* * string vehicle_start_tag = 2; + * * @param value The vehicleStartTag to set. * @return This builder for chaining. */ - public Builder setVehicleStartTag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVehicleStartTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vehicleStartTag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2371,6 +2739,7 @@ public Builder setVehicleStartTag(
        * 
* * string vehicle_start_tag = 2; + * * @return This builder for chaining. */ public Builder clearVehicleStartTag() { @@ -2380,6 +2749,8 @@ public Builder clearVehicleStartTag() { return this; } /** + * + * *
        * Tag defining to which vehicles this duration and distance matrix applies.
        * If empty, this applies to all vehicles, and there can only be a single
@@ -2393,18 +2764,21 @@ public Builder clearVehicleStartTag() {
        * 
* * string vehicle_start_tag = 2; + * * @param value The bytes for vehicleStartTag to set. * @return This builder for chaining. */ - public Builder setVehicleStartTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVehicleStartTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vehicleStartTag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2417,41 +2791,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix) - private static final com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix(); + DEFAULT_INSTANCE = + new com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix(); } - public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationDistanceMatrix parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DurationDistanceMatrix parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2463,93 +2841,120 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PrecedenceRuleOrBuilder extends + public interface PrecedenceRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Shipment index of the "first" event. This field must be specified.
      * 
* * optional int32 first_index = 1; + * * @return Whether the firstIndex field is set. */ boolean hasFirstIndex(); /** + * + * *
      * Shipment index of the "first" event. This field must be specified.
      * 
* * optional int32 first_index = 1; + * * @return The firstIndex. */ int getFirstIndex(); /** + * + * *
      * Indicates if the "first" event is a delivery.
      * 
* * bool first_is_delivery = 3; + * * @return The firstIsDelivery. */ boolean getFirstIsDelivery(); /** + * + * *
      * Shipment index of the "second" event. This field must be specified.
      * 
* * optional int32 second_index = 2; + * * @return Whether the secondIndex field is set. */ boolean hasSecondIndex(); /** + * + * *
      * Shipment index of the "second" event. This field must be specified.
      * 
* * optional int32 second_index = 2; + * * @return The secondIndex. */ int getSecondIndex(); /** + * + * *
      * Indicates if the "second" event is a delivery.
      * 
* * bool second_is_delivery = 4; + * * @return The secondIsDelivery. */ boolean getSecondIsDelivery(); /** + * + * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
* * .google.protobuf.Duration offset_duration = 5; + * * @return Whether the offsetDuration field is set. */ boolean hasOffsetDuration(); /** + * + * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
* * .google.protobuf.Duration offset_duration = 5; + * * @return The offsetDuration. */ com.google.protobuf.Duration getOffsetDuration(); /** + * + * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
@@ -2559,6 +2964,8 @@ public interface PrecedenceRuleOrBuilder extends com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder(); } /** + * + * *
    * A precedence rule between two events (each event is the pickup or the
    * delivery of a shipment): the "second" event has to start at least
@@ -2574,47 +2981,51 @@ public interface PrecedenceRuleOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.PrecedenceRule}
    */
-  public static final class PrecedenceRule extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class PrecedenceRule extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule)
       PrecedenceRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use PrecedenceRule.newBuilder() to construct.
     private PrecedenceRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private PrecedenceRule() {
-    }
+
+    private PrecedenceRule() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new PrecedenceRule();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.class, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.class,
+              com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder.class);
     }
 
     private int bitField0_;
     public static final int FIRST_INDEX_FIELD_NUMBER = 1;
     private int firstIndex_ = 0;
     /**
+     *
+     *
      * 
      * Shipment index of the "first" event. This field must be specified.
      * 
* * optional int32 first_index = 1; + * * @return Whether the firstIndex field is set. */ @java.lang.Override @@ -2622,11 +3033,14 @@ public boolean hasFirstIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Shipment index of the "first" event. This field must be specified.
      * 
* * optional int32 first_index = 1; + * * @return The firstIndex. */ @java.lang.Override @@ -2637,11 +3051,14 @@ public int getFirstIndex() { public static final int FIRST_IS_DELIVERY_FIELD_NUMBER = 3; private boolean firstIsDelivery_ = false; /** + * + * *
      * Indicates if the "first" event is a delivery.
      * 
* * bool first_is_delivery = 3; + * * @return The firstIsDelivery. */ @java.lang.Override @@ -2652,11 +3069,14 @@ public boolean getFirstIsDelivery() { public static final int SECOND_INDEX_FIELD_NUMBER = 2; private int secondIndex_ = 0; /** + * + * *
      * Shipment index of the "second" event. This field must be specified.
      * 
* * optional int32 second_index = 2; + * * @return Whether the secondIndex field is set. */ @java.lang.Override @@ -2664,11 +3084,14 @@ public boolean hasSecondIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Shipment index of the "second" event. This field must be specified.
      * 
* * optional int32 second_index = 2; + * * @return The secondIndex. */ @java.lang.Override @@ -2679,11 +3102,14 @@ public int getSecondIndex() { public static final int SECOND_IS_DELIVERY_FIELD_NUMBER = 4; private boolean secondIsDelivery_ = false; /** + * + * *
      * Indicates if the "second" event is a delivery.
      * 
* * bool second_is_delivery = 4; + * * @return The secondIsDelivery. */ @java.lang.Override @@ -2694,11 +3120,14 @@ public boolean getSecondIsDelivery() { public static final int OFFSET_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration offsetDuration_; /** + * + * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
* * .google.protobuf.Duration offset_duration = 5; + * * @return Whether the offsetDuration field is set. */ @java.lang.Override @@ -2706,18 +3135,25 @@ public boolean hasOffsetDuration() { return offsetDuration_ != null; } /** + * + * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
* * .google.protobuf.Duration offset_duration = 5; + * * @return The offsetDuration. */ @java.lang.Override public com.google.protobuf.Duration getOffsetDuration() { - return offsetDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offsetDuration_; + return offsetDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : offsetDuration_; } /** + * + * *
      * The offset between the "first" and "second" event. It can be negative.
      * 
@@ -2726,10 +3162,13 @@ public com.google.protobuf.Duration getOffsetDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder() { - return offsetDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offsetDuration_; + return offsetDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : offsetDuration_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2741,8 +3180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, firstIndex_); } @@ -2768,24 +3206,19 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, firstIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, firstIndex_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, secondIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, secondIndex_); } if (firstIsDelivery_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, firstIsDelivery_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, firstIsDelivery_); } if (secondIsDelivery_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, secondIsDelivery_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, secondIsDelivery_); } if (offsetDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOffsetDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOffsetDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2795,31 +3228,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule other = (com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) obj; + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule other = + (com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) obj; if (hasFirstIndex() != other.hasFirstIndex()) return false; if (hasFirstIndex()) { - if (getFirstIndex() - != other.getFirstIndex()) return false; + if (getFirstIndex() != other.getFirstIndex()) return false; } - if (getFirstIsDelivery() - != other.getFirstIsDelivery()) return false; + if (getFirstIsDelivery() != other.getFirstIsDelivery()) return false; if (hasSecondIndex() != other.hasSecondIndex()) return false; if (hasSecondIndex()) { - if (getSecondIndex() - != other.getSecondIndex()) return false; + if (getSecondIndex() != other.getSecondIndex()) return false; } - if (getSecondIsDelivery() - != other.getSecondIsDelivery()) return false; + if (getSecondIsDelivery() != other.getSecondIsDelivery()) return false; if (hasOffsetDuration() != other.hasOffsetDuration()) return false; if (hasOffsetDuration()) { - if (!getOffsetDuration() - .equals(other.getOffsetDuration())) return false; + if (!getOffsetDuration().equals(other.getOffsetDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2837,15 +3266,13 @@ public int hashCode() { hash = (53 * hash) + getFirstIndex(); } hash = (37 * hash) + FIRST_IS_DELIVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFirstIsDelivery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFirstIsDelivery()); if (hasSecondIndex()) { hash = (37 * hash) + SECOND_INDEX_FIELD_NUMBER; hash = (53 * hash) + getSecondIndex(); } hash = (37 * hash) + SECOND_IS_DELIVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSecondIsDelivery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSecondIsDelivery()); if (hasOffsetDuration()) { hash = (37 * hash) + OFFSET_DURATION_FIELD_NUMBER; hash = (53 * hash) + getOffsetDuration().hashCode(); @@ -2856,89 +3283,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2948,6 +3380,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A precedence rule between two events (each event is the pickup or the
      * delivery of a shipment): the "second" event has to start at least
@@ -2963,33 +3397,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.PrecedenceRule}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule)
         com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.class, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.class,
+                com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.newBuilder()
-      private Builder() {
+      private Builder() {}
 
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
-
-      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3007,13 +3441,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getDefaultInstanceForType() {
+      public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule
+          getDefaultInstanceForType() {
         return com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance();
       }
 
@@ -3028,13 +3463,17 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule result = new com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule result =
+            new com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule result) {
+      private void buildPartial0(
+          com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule result) {
         int from_bitField0_ = bitField0_;
         int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -3052,9 +3491,8 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.Preced
           result.secondIsDelivery_ = secondIsDelivery_;
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.offsetDuration_ = offsetDurationBuilder_ == null
-              ? offsetDuration_
-              : offsetDurationBuilder_.build();
+          result.offsetDuration_ =
+              offsetDurationBuilder_ == null ? offsetDuration_ : offsetDurationBuilder_.build();
         }
         result.bitField0_ |= to_bitField0_;
       }
@@ -3063,46 +3501,52 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.Preced
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule)other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule other) {
+        if (other
+            == com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance())
+          return this;
         if (other.hasFirstIndex()) {
           setFirstIndex(other.getFirstIndex());
         }
@@ -3144,39 +3588,44 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                firstIndex_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              case 16: {
-                secondIndex_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 16
-              case 24: {
-                firstIsDelivery_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-              case 32: {
-                secondIsDelivery_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-              case 42: {
-                input.readMessage(
-                    getOffsetDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  firstIndex_ = input.readInt32();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              case 16:
+                {
+                  secondIndex_ = input.readInt32();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 16
+              case 24:
+                {
+                  firstIsDelivery_ = input.readBool();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 24
+              case 32:
+                {
+                  secondIsDelivery_ = input.readBool();
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 32
+              case 42:
+                {
+                  input.readMessage(
+                      getOffsetDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 42
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3186,15 +3635,19 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private int firstIndex_ ;
+      private int firstIndex_;
       /**
+       *
+       *
        * 
        * Shipment index of the "first" event. This field must be specified.
        * 
* * optional int32 first_index = 1; + * * @return Whether the firstIndex field is set. */ @java.lang.Override @@ -3202,11 +3655,14 @@ public boolean hasFirstIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Shipment index of the "first" event. This field must be specified.
        * 
* * optional int32 first_index = 1; + * * @return The firstIndex. */ @java.lang.Override @@ -3214,11 +3670,14 @@ public int getFirstIndex() { return firstIndex_; } /** + * + * *
        * Shipment index of the "first" event. This field must be specified.
        * 
* * optional int32 first_index = 1; + * * @param value The firstIndex to set. * @return This builder for chaining. */ @@ -3230,11 +3689,14 @@ public Builder setFirstIndex(int value) { return this; } /** + * + * *
        * Shipment index of the "first" event. This field must be specified.
        * 
* * optional int32 first_index = 1; + * * @return This builder for chaining. */ public Builder clearFirstIndex() { @@ -3244,13 +3706,16 @@ public Builder clearFirstIndex() { return this; } - private boolean firstIsDelivery_ ; + private boolean firstIsDelivery_; /** + * + * *
        * Indicates if the "first" event is a delivery.
        * 
* * bool first_is_delivery = 3; + * * @return The firstIsDelivery. */ @java.lang.Override @@ -3258,11 +3723,14 @@ public boolean getFirstIsDelivery() { return firstIsDelivery_; } /** + * + * *
        * Indicates if the "first" event is a delivery.
        * 
* * bool first_is_delivery = 3; + * * @param value The firstIsDelivery to set. * @return This builder for chaining. */ @@ -3274,11 +3742,14 @@ public Builder setFirstIsDelivery(boolean value) { return this; } /** + * + * *
        * Indicates if the "first" event is a delivery.
        * 
* * bool first_is_delivery = 3; + * * @return This builder for chaining. */ public Builder clearFirstIsDelivery() { @@ -3288,13 +3759,16 @@ public Builder clearFirstIsDelivery() { return this; } - private int secondIndex_ ; + private int secondIndex_; /** + * + * *
        * Shipment index of the "second" event. This field must be specified.
        * 
* * optional int32 second_index = 2; + * * @return Whether the secondIndex field is set. */ @java.lang.Override @@ -3302,11 +3776,14 @@ public boolean hasSecondIndex() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Shipment index of the "second" event. This field must be specified.
        * 
* * optional int32 second_index = 2; + * * @return The secondIndex. */ @java.lang.Override @@ -3314,11 +3791,14 @@ public int getSecondIndex() { return secondIndex_; } /** + * + * *
        * Shipment index of the "second" event. This field must be specified.
        * 
* * optional int32 second_index = 2; + * * @param value The secondIndex to set. * @return This builder for chaining. */ @@ -3330,11 +3810,14 @@ public Builder setSecondIndex(int value) { return this; } /** + * + * *
        * Shipment index of the "second" event. This field must be specified.
        * 
* * optional int32 second_index = 2; + * * @return This builder for chaining. */ public Builder clearSecondIndex() { @@ -3344,13 +3827,16 @@ public Builder clearSecondIndex() { return this; } - private boolean secondIsDelivery_ ; + private boolean secondIsDelivery_; /** + * + * *
        * Indicates if the "second" event is a delivery.
        * 
* * bool second_is_delivery = 4; + * * @return The secondIsDelivery. */ @java.lang.Override @@ -3358,11 +3844,14 @@ public boolean getSecondIsDelivery() { return secondIsDelivery_; } /** + * + * *
        * Indicates if the "second" event is a delivery.
        * 
* * bool second_is_delivery = 4; + * * @param value The secondIsDelivery to set. * @return This builder for chaining. */ @@ -3374,11 +3863,14 @@ public Builder setSecondIsDelivery(boolean value) { return this; } /** + * + * *
        * Indicates if the "second" event is a delivery.
        * 
* * bool second_is_delivery = 4; + * * @return This builder for chaining. */ public Builder clearSecondIsDelivery() { @@ -3390,34 +3882,47 @@ public Builder clearSecondIsDelivery() { private com.google.protobuf.Duration offsetDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> offsetDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + offsetDurationBuilder_; /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
* * .google.protobuf.Duration offset_duration = 5; + * * @return Whether the offsetDuration field is set. */ public boolean hasOffsetDuration() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
* * .google.protobuf.Duration offset_duration = 5; + * * @return The offsetDuration. */ public com.google.protobuf.Duration getOffsetDuration() { if (offsetDurationBuilder_ == null) { - return offsetDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offsetDuration_; + return offsetDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : offsetDuration_; } else { return offsetDurationBuilder_.getMessage(); } } /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -3438,14 +3943,15 @@ public Builder setOffsetDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
* * .google.protobuf.Duration offset_duration = 5; */ - public Builder setOffsetDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setOffsetDuration(com.google.protobuf.Duration.Builder builderForValue) { if (offsetDurationBuilder_ == null) { offsetDuration_ = builderForValue.build(); } else { @@ -3456,6 +3962,8 @@ public Builder setOffsetDuration( return this; } /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -3464,9 +3972,9 @@ public Builder setOffsetDuration( */ public Builder mergeOffsetDuration(com.google.protobuf.Duration value) { if (offsetDurationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - offsetDuration_ != null && - offsetDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && offsetDuration_ != null + && offsetDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getOffsetDurationBuilder().mergeFrom(value); } else { offsetDuration_ = value; @@ -3479,6 +3987,8 @@ public Builder mergeOffsetDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -3496,6 +4006,8 @@ public Builder clearOffsetDuration() { return this; } /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -3508,6 +4020,8 @@ public com.google.protobuf.Duration.Builder getOffsetDurationBuilder() { return getOffsetDurationFieldBuilder().getBuilder(); } /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -3518,11 +4032,14 @@ public com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder() { if (offsetDurationBuilder_ != null) { return offsetDurationBuilder_.getMessageOrBuilder(); } else { - return offsetDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : offsetDuration_; + return offsetDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : offsetDuration_; } } /** + * + * *
        * The offset between the "first" and "second" event. It can be negative.
        * 
@@ -3530,18 +4047,22 @@ public com.google.protobuf.DurationOrBuilder getOffsetDurationOrBuilder() { * .google.protobuf.Duration offset_duration = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getOffsetDurationFieldBuilder() { if (offsetDurationBuilder_ == null) { - offsetDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getOffsetDuration(), - getParentForChildren(), - isClean()); + offsetDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getOffsetDuration(), getParentForChildren(), isClean()); offsetDuration_ = null; } return offsetDurationBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3554,41 +4075,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.PrecedenceRule) - private static final com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule(); } - public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrecedenceRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrecedenceRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3600,110 +4124,161 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - @java.lang.Deprecated public interface BreakRuleOrBuilder extends + @java.lang.Deprecated + public interface BreakRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.BreakRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - java.util.List + java.util.List getBreakRequestsList(); /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests(int index); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests( + int index); /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ int getBreakRequestsCount(); /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> getBreakRequestsOrBuilderList(); /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder( - int index); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder + getBreakRequestsOrBuilder(int index); /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - java.util.List + java.util.List getFrequencyConstraintsList(); /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getFrequencyConstraints(int index); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + getFrequencyConstraints(int index); /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ int getFrequencyConstraintsCount(); /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.BreakRule + .FrequencyConstraintOrBuilder> getFrequencyConstraintsOrBuilderList(); /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( - int index); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder + getFrequencyConstraintsOrBuilder(int index); } /** + * + * *
    * Deprecated: Use top level
    * [BreakRule][google.cloud.optimization.v1.ShipmentModel.BreakRule] instead.
@@ -3722,15 +4297,17 @@ com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBu
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule}
    */
-  @java.lang.Deprecated public static final class BreakRule extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  @java.lang.Deprecated
+  public static final class BreakRule extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule)
       BreakRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BreakRule.newBuilder() to construct.
     private BreakRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private BreakRule() {
       breakRequests_ = java.util.Collections.emptyList();
       frequencyConstraints_ = java.util.Collections.emptyList();
@@ -3738,110 +4315,153 @@ private BreakRule() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BreakRule();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.class,
+              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder.class);
     }
 
-    public interface BreakRequestOrBuilder extends
+    public interface BreakRequestOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the earliestStartTime field is set. */ boolean hasEarliestStartTime(); /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The earliestStartTime. */ com.google.protobuf.Timestamp getEarliestStartTime(); /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder(); /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the latestStartTime field is set. */ boolean hasLatestStartTime(); /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The latestStartTime. */ com.google.protobuf.Timestamp getLatestStartTime(); /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder(); /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minDuration field is set. */ boolean hasMinDuration(); /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minDuration. */ com.google.protobuf.Duration getMinDuration(); /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder(); } /** + * + * *
      * The sequence of breaks (i.e. their number and order) that apply to each
      * vehicle must be known beforehand. The repeated `BreakRequest`s define
@@ -3852,46 +4472,53 @@ public interface BreakRequestOrBuilder extends
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest}
      */
-    public static final class BreakRequest extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class BreakRequest extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)
         BreakRequestOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use BreakRequest.newBuilder() to construct.
       private BreakRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
-      private BreakRequest() {
-      }
+
+      private BreakRequest() {}
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new BreakRequest();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.class,
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder
+                    .class);
       }
 
       public static final int EARLIEST_START_TIME_FIELD_NUMBER = 1;
       private com.google.protobuf.Timestamp earliestStartTime_;
       /**
+       *
+       *
        * 
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the earliestStartTime field is set. */ @java.lang.Override @@ -3899,37 +4526,55 @@ public boolean hasEarliestStartTime() { return earliestStartTime_ != null; } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The earliestStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEarliestStartTime() { - return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; } /** + * + * *
        * Required. Lower bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { - return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; } public static final int LATEST_START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp latestStartTime_; /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the latestStartTime field is set. */ @java.lang.Override @@ -3937,37 +4582,54 @@ public boolean hasLatestStartTime() { return latestStartTime_ != null; } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The latestStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLatestStartTime() { - return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; + return latestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestStartTime_; } /** + * + * *
        * Required. Upper bound (inclusive) on the start of the break.
        * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { - return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; + return latestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestStartTime_; } public static final int MIN_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration minDuration_; /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minDuration field is set. */ @java.lang.Override @@ -3975,30 +4637,42 @@ public boolean hasMinDuration() { return minDuration_ != null; } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinDuration() { - return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } /** + * + * *
        * Required. Minimum duration of the break. Must be positive.
        * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { - return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4010,8 +4684,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (earliestStartTime_ != null) { output.writeMessage(1, getEarliestStartTime()); } @@ -4031,16 +4704,14 @@ public int getSerializedSize() { size = 0; if (earliestStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEarliestStartTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEarliestStartTime()); } if (latestStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLatestStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLatestStartTime()); } if (minDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMinDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4050,27 +4721,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)) { + if (!(obj + instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest other = (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) obj; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest other = + (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) obj; if (hasEarliestStartTime() != other.hasEarliestStartTime()) return false; if (hasEarliestStartTime()) { - if (!getEarliestStartTime() - .equals(other.getEarliestStartTime())) return false; + if (!getEarliestStartTime().equals(other.getEarliestStartTime())) return false; } if (hasLatestStartTime() != other.hasLatestStartTime()) return false; if (hasLatestStartTime()) { - if (!getLatestStartTime() - .equals(other.getLatestStartTime())) return false; + if (!getLatestStartTime().equals(other.getLatestStartTime())) return false; } if (hasMinDuration() != other.hasMinDuration()) return false; if (hasMinDuration()) { - if (!getMinDuration() - .equals(other.getMinDuration())) return false; + if (!getMinDuration().equals(other.getMinDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4101,89 +4771,96 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4193,6 +4870,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * The sequence of breaks (i.e. their number and order) that apply to each
        * vehicle must be known beforehand. The repeated `BreakRequest`s define
@@ -4203,33 +4882,35 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest}
        */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
+      public static final class Builder
+          extends com.google.protobuf.GeneratedMessageV3.Builder
+          implements
           // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)
           com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.cloud.optimization.v1.FleetRoutingProto
+              .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable
+          return com.google.cloud.optimization.v1.FleetRoutingProto
+              .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder.class);
+                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.class,
+                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder
+                      .class);
         }
 
-        // Construct using com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.newBuilder()
-        private Builder() {
-
-        }
+        // Construct using
+        // com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.newBuilder()
+        private Builder() {}
 
-        private Builder(
-            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
-
         }
+
         @java.lang.Override
         public Builder clear() {
           super.clear();
@@ -4253,19 +4934,22 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.cloud.optimization.v1.FleetRoutingProto
+              .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor;
         }
 
         @java.lang.Override
-        public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getDefaultInstanceForType() {
-          return com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.getDefaultInstance();
+        public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
+            getDefaultInstanceForType() {
+          return com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
+              .getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest build() {
-          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result = buildPartial();
+          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result =
+              buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -4273,29 +4957,35 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest bui
         }
 
         @java.lang.Override
-        public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest buildPartial() {
-          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest(this);
-          if (bitField0_ != 0) { buildPartial0(result); }
+        public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
+            buildPartial() {
+          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result =
+              new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest(this);
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result) {
+        private void buildPartial0(
+            com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest result) {
           int from_bitField0_ = bitField0_;
           if (((from_bitField0_ & 0x00000001) != 0)) {
-            result.earliestStartTime_ = earliestStartTimeBuilder_ == null
-                ? earliestStartTime_
-                : earliestStartTimeBuilder_.build();
+            result.earliestStartTime_ =
+                earliestStartTimeBuilder_ == null
+                    ? earliestStartTime_
+                    : earliestStartTimeBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000002) != 0)) {
-            result.latestStartTime_ = latestStartTimeBuilder_ == null
-                ? latestStartTime_
-                : latestStartTimeBuilder_.build();
+            result.latestStartTime_ =
+                latestStartTimeBuilder_ == null
+                    ? latestStartTime_
+                    : latestStartTimeBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000004) != 0)) {
-            result.minDuration_ = minDurationBuilder_ == null
-                ? minDuration_
-                : minDurationBuilder_.build();
+            result.minDuration_ =
+                minDurationBuilder_ == null ? minDuration_ : minDurationBuilder_.build();
           }
         }
 
@@ -4303,46 +4993,54 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.BreakR
         public Builder clone() {
           return super.clone();
         }
+
         @java.lang.Override
         public Builder setField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.setField(field, value);
         }
+
         @java.lang.Override
-        public Builder clearField(
-            com.google.protobuf.Descriptors.FieldDescriptor field) {
+        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return super.clearField(field);
         }
+
         @java.lang.Override
-        public Builder clearOneof(
-            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return super.clearOneof(oneof);
         }
+
         @java.lang.Override
         public Builder setRepeatedField(
             com.google.protobuf.Descriptors.FieldDescriptor field,
-            int index, java.lang.Object value) {
+            int index,
+            java.lang.Object value) {
           return super.setRepeatedField(field, index, value);
         }
+
         @java.lang.Override
         public Builder addRepeatedField(
-            com.google.protobuf.Descriptors.FieldDescriptor field,
-            java.lang.Object value) {
+            com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return super.addRepeatedField(field, value);
         }
+
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
-          if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) {
-            return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest)other);
+          if (other
+              instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) {
+            return mergeFrom(
+                (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest other) {
-          if (other == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.getDefaultInstance()) return this;
+        public Builder mergeFrom(
+            com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest other) {
+          if (other
+              == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
+                  .getDefaultInstance()) return this;
           if (other.hasEarliestStartTime()) {
             mergeEarliestStartTime(other.getEarliestStartTime());
           }
@@ -4378,33 +5076,33 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 10: {
-                  input.readMessage(
-                      getEarliestStartTimeFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-                case 18: {
-                  input.readMessage(
-                      getLatestStartTimeFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-                case 26: {
-                  input.readMessage(
-                      getMinDurationFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 10:
+                  {
+                    input.readMessage(
+                        getEarliestStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000001;
+                    break;
+                  } // case 10
+                case 18:
+                  {
+                    input.readMessage(
+                        getLatestStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000002;
+                    break;
+                  } // case 18
+                case 26:
+                  {
+                    input.readMessage(getMinDurationFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000004;
+                    break;
+                  } // case 26
+                default:
+                  {
+                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                      done = true; // was an endgroup tag
+                    }
+                    break;
+                  } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4414,43 +5112,63 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int bitField0_;
 
         private com.google.protobuf.Timestamp earliestStartTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestStartTimeBuilder_;
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>
+            earliestStartTimeBuilder_;
         /**
+         *
+         *
          * 
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the earliestStartTime field is set. */ public boolean hasEarliestStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The earliestStartTime. */ public com.google.protobuf.Timestamp getEarliestStartTime() { if (earliestStartTimeBuilder_ == null) { - return earliestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; } else { return earliestStartTimeBuilder_.getMessage(); } } /** + * + * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { if (earliestStartTimeBuilder_ == null) { @@ -4466,14 +5184,17 @@ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEarliestStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (earliestStartTimeBuilder_ == null) { earliestStartTime_ = builderForValue.build(); } else { @@ -4484,17 +5205,21 @@ public Builder setEarliestStartTime( return this; } /** + * + * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { if (earliestStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - earliestStartTime_ != null && - earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && earliestStartTime_ != null + && earliestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEarliestStartTimeBuilder().mergeFrom(value); } else { earliestStartTime_ = value; @@ -4507,11 +5232,15 @@ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEarliestStartTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -4524,11 +5253,15 @@ public Builder clearEarliestStartTime() { return this; } /** + * + * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { bitField0_ |= 0x00000001; @@ -4536,36 +5269,48 @@ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { return getEarliestStartTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { if (earliestStartTimeBuilder_ != null) { return earliestStartTimeBuilder_.getMessageOrBuilder(); } else { - return earliestStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : earliestStartTime_; + return earliestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestStartTime_; } } /** + * + * *
          * Required. Lower bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEarliestStartTimeFieldBuilder() { if (earliestStartTimeBuilder_ == null) { - earliestStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEarliestStartTime(), - getParentForChildren(), - isClean()); + earliestStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEarliestStartTime(), getParentForChildren(), isClean()); earliestStartTime_ = null; } return earliestStartTimeBuilder_; @@ -4573,39 +5318,58 @@ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { private com.google.protobuf.Timestamp latestStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> latestStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestStartTimeBuilder_; /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the latestStartTime field is set. */ public boolean hasLatestStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The latestStartTime. */ public com.google.protobuf.Timestamp getLatestStartTime() { if (latestStartTimeBuilder_ == null) { - return latestStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; + return latestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestStartTime_; } else { return latestStartTimeBuilder_.getMessage(); } } /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setLatestStartTime(com.google.protobuf.Timestamp value) { if (latestStartTimeBuilder_ == null) { @@ -4621,14 +5385,17 @@ public Builder setLatestStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setLatestStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLatestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (latestStartTimeBuilder_ == null) { latestStartTime_ = builderForValue.build(); } else { @@ -4639,17 +5406,21 @@ public Builder setLatestStartTime( return this; } /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeLatestStartTime(com.google.protobuf.Timestamp value) { if (latestStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - latestStartTime_ != null && - latestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && latestStartTime_ != null + && latestStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLatestStartTimeBuilder().mergeFrom(value); } else { latestStartTime_ = value; @@ -4662,11 +5433,15 @@ public Builder mergeLatestStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearLatestStartTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4679,11 +5454,15 @@ public Builder clearLatestStartTime() { return this; } /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder() { bitField0_ |= 0x00000002; @@ -4691,36 +5470,48 @@ public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder() { return getLatestStartTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { if (latestStartTimeBuilder_ != null) { return latestStartTimeBuilder_.getMessageOrBuilder(); } else { - return latestStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : latestStartTime_; + return latestStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestStartTime_; } } /** + * + * *
          * Required. Upper bound (inclusive) on the start of the break.
          * 
* - * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLatestStartTimeFieldBuilder() { if (latestStartTimeBuilder_ == null) { - latestStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLatestStartTime(), - getParentForChildren(), - isClean()); + latestStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestStartTime(), getParentForChildren(), isClean()); latestStartTime_ = null; } return latestStartTimeBuilder_; @@ -4728,39 +5519,58 @@ public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder() { private com.google.protobuf.Duration minDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minDurationBuilder_; /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minDuration field is set. */ public boolean hasMinDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minDuration. */ public com.google.protobuf.Duration getMinDuration() { if (minDurationBuilder_ == null) { - return minDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } else { return minDurationBuilder_.getMessage(); } } /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { @@ -4776,14 +5586,17 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMinDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) { if (minDurationBuilder_ == null) { minDuration_ = builderForValue.build(); } else { @@ -4794,17 +5607,21 @@ public Builder setMinDuration( return this; } /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - minDuration_ != null && - minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && minDuration_ != null + && minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinDurationBuilder().mergeFrom(value); } else { minDuration_ = value; @@ -4817,11 +5634,15 @@ public Builder mergeMinDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMinDuration() { bitField0_ = (bitField0_ & ~0x00000004); @@ -4834,11 +5655,15 @@ public Builder clearMinDuration() { return this; } /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { bitField0_ |= 0x00000004; @@ -4846,40 +5671,53 @@ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { return getMinDurationFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { if (minDurationBuilder_ != null) { return minDurationBuilder_.getMessageOrBuilder(); } else { - return minDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minDuration_; + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } } /** + * + * *
          * Required. Minimum duration of the break. Must be positive.
          * 
* - * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinDurationFieldBuilder() { if (minDurationBuilder_ == null) { - minDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinDuration(), - getParentForChildren(), - isClean()); + minDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinDuration(), getParentForChildren(), isClean()); minDuration_ = null; } return minDurationBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4892,41 +5730,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest) - private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest(); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BreakRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BreakRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4938,80 +5780,111 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface FrequencyConstraintOrBuilder extends + public interface FrequencyConstraintOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minBreakDuration field is set. */ boolean hasMinBreakDuration(); /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minBreakDuration. */ com.google.protobuf.Duration getMinBreakDuration(); /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder(); /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxInterBreakDuration field is set. */ boolean hasMaxInterBreakDuration(); /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxInterBreakDuration. */ com.google.protobuf.Duration getMaxInterBreakDuration(); /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder(); } /** + * + * *
      * One may further constrain the frequency and duration of the breaks
      * specified above, by enforcing a minimum break frequency, such as
@@ -5048,49 +5921,57 @@ public interface FrequencyConstraintOrBuilder extends
      * ```
      * 
* - * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint} + * Protobuf type {@code + * google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint} */ - public static final class FrequencyConstraint extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class FrequencyConstraint extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) FrequencyConstraintOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FrequencyConstraint.newBuilder() to construct. private FrequencyConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FrequencyConstraint() { - } + + private FrequencyConstraint() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FrequencyConstraint(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder.class); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.class, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder + .class); } public static final int MIN_BREAK_DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration minBreakDuration_; /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minBreakDuration field is set. */ @java.lang.Override @@ -5098,41 +5979,59 @@ public boolean hasMinBreakDuration() { return minBreakDuration_ != null; } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minBreakDuration. */ @java.lang.Override public com.google.protobuf.Duration getMinBreakDuration() { - return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; + return minBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBreakDuration_; } /** + * + * *
        * Required. Minimum break duration for this constraint. Nonnegative.
        * See description of `FrequencyConstraint`.
        * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { - return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; + return minBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBreakDuration_; } public static final int MAX_INTER_BREAK_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxInterBreakDuration_; /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxInterBreakDuration field is set. */ @java.lang.Override @@ -5140,34 +6039,48 @@ public boolean hasMaxInterBreakDuration() { return maxInterBreakDuration_ != null; } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxInterBreakDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxInterBreakDuration() { - return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; + return maxInterBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxInterBreakDuration_; } /** + * + * *
        * Required. Maximum allowed span of any interval of time in the route
        * that does not include at least partially a break of `duration >=
        * min_break_duration`. Must be positive.
        * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder() { - return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; + return maxInterBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxInterBreakDuration_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5179,8 +6092,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (minBreakDuration_ != null) { output.writeMessage(1, getMinBreakDuration()); } @@ -5197,12 +6109,13 @@ public int getSerializedSize() { size = 0; if (minBreakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinBreakDuration()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinBreakDuration()); } if (maxInterBreakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxInterBreakDuration()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getMaxInterBreakDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5212,22 +6125,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint)) { + if (!(obj + instanceof + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint other = (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) obj; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint other = + (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) obj; if (hasMinBreakDuration() != other.hasMinBreakDuration()) return false; if (hasMinBreakDuration()) { - if (!getMinBreakDuration() - .equals(other.getMinBreakDuration())) return false; + if (!getMinBreakDuration().equals(other.getMinBreakDuration())) return false; } if (hasMaxInterBreakDuration() != other.hasMaxInterBreakDuration()) return false; if (hasMaxInterBreakDuration()) { - if (!getMaxInterBreakDuration() - .equals(other.getMaxInterBreakDuration())) return false; + if (!getMaxInterBreakDuration().equals(other.getMaxInterBreakDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5253,90 +6167,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5346,6 +6273,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * One may further constrain the frequency and duration of the breaks
        * specified above, by enforcing a minimum break frequency, such as
@@ -5382,35 +6311,39 @@ protected Builder newBuilderForType(
        * ```
        * 
* - * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint} + * Protobuf type {@code + * google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder.class); + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + .class, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + .Builder.class); } - // Construct using com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -5429,19 +6362,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getDefaultInstanceForType() { - return com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.getDefaultInstance(); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + getDefaultInstanceForType() { + return com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint build() { - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result = buildPartial(); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + build() { + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5449,24 +6386,32 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstra } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint buildPartial() { - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + buildPartial() { + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result = + new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result) { + private void buildPartial0( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.minBreakDuration_ = minBreakDurationBuilder_ == null - ? minBreakDuration_ - : minBreakDurationBuilder_.build(); + result.minBreakDuration_ = + minBreakDurationBuilder_ == null + ? minBreakDuration_ + : minBreakDurationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxInterBreakDuration_ = maxInterBreakDurationBuilder_ == null - ? maxInterBreakDuration_ - : maxInterBreakDurationBuilder_.build(); + result.maxInterBreakDuration_ = + maxInterBreakDurationBuilder_ == null + ? maxInterBreakDuration_ + : maxInterBreakDurationBuilder_.build(); } } @@ -5474,46 +6419,56 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.BreakR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) { - return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint)other); + if (other + instanceof + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) { + return mergeFrom( + (com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint other) { - if (other == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint other) { + if (other + == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + .getDefaultInstance()) return this; if (other.hasMinBreakDuration()) { mergeMinBreakDuration(other.getMinBreakDuration()); } @@ -5546,26 +6501,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getMinBreakDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMaxInterBreakDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getMinBreakDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getMaxInterBreakDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5575,46 +6531,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration minBreakDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minBreakDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minBreakDurationBuilder_; /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the minBreakDuration field is set. */ public boolean hasMinBreakDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The minBreakDuration. */ public com.google.protobuf.Duration getMinBreakDuration() { if (minBreakDurationBuilder_ == null) { - return minBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; + return minBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBreakDuration_; } else { return minBreakDurationBuilder_.getMessage(); } } /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMinBreakDuration(com.google.protobuf.Duration value) { if (minBreakDurationBuilder_ == null) { @@ -5630,15 +6606,18 @@ public Builder setMinBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMinBreakDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinBreakDuration(com.google.protobuf.Duration.Builder builderForValue) { if (minBreakDurationBuilder_ == null) { minBreakDuration_ = builderForValue.build(); } else { @@ -5649,18 +6628,22 @@ public Builder setMinBreakDuration( return this; } /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMinBreakDuration(com.google.protobuf.Duration value) { if (minBreakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - minBreakDuration_ != null && - minBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && minBreakDuration_ != null + && minBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinBreakDurationBuilder().mergeFrom(value); } else { minBreakDuration_ = value; @@ -5673,12 +6656,16 @@ public Builder mergeMinBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMinBreakDuration() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5691,12 +6678,16 @@ public Builder clearMinBreakDuration() { return this; } /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getMinBreakDurationBuilder() { bitField0_ |= 0x00000001; @@ -5704,38 +6695,50 @@ public com.google.protobuf.Duration.Builder getMinBreakDurationBuilder() { return getMinBreakDurationFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { if (minBreakDurationBuilder_ != null) { return minBreakDurationBuilder_.getMessageOrBuilder(); } else { - return minBreakDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minBreakDuration_; + return minBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minBreakDuration_; } } /** + * + * *
          * Required. Minimum break duration for this constraint. Nonnegative.
          * See description of `FrequencyConstraint`.
          * 
* - * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration min_break_duration = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinBreakDurationFieldBuilder() { if (minBreakDurationBuilder_ == null) { - minBreakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinBreakDuration(), - getParentForChildren(), - isClean()); + minBreakDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinBreakDuration(), getParentForChildren(), isClean()); minBreakDuration_ = null; } return minBreakDurationBuilder_; @@ -5743,45 +6746,64 @@ public com.google.protobuf.DurationOrBuilder getMinBreakDurationOrBuilder() { private com.google.protobuf.Duration maxInterBreakDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxInterBreakDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxInterBreakDurationBuilder_; /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxInterBreakDuration field is set. */ public boolean hasMaxInterBreakDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxInterBreakDuration. */ public com.google.protobuf.Duration getMaxInterBreakDuration() { if (maxInterBreakDurationBuilder_ == null) { - return maxInterBreakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; + return maxInterBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxInterBreakDuration_; } else { return maxInterBreakDurationBuilder_.getMessage(); } } /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMaxInterBreakDuration(com.google.protobuf.Duration value) { if (maxInterBreakDurationBuilder_ == null) { @@ -5797,13 +6819,17 @@ public Builder setMaxInterBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMaxInterBreakDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -5817,19 +6843,23 @@ public Builder setMaxInterBreakDuration( return this; } /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMaxInterBreakDuration(com.google.protobuf.Duration value) { if (maxInterBreakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - maxInterBreakDuration_ != null && - maxInterBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && maxInterBreakDuration_ != null + && maxInterBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxInterBreakDurationBuilder().mergeFrom(value); } else { maxInterBreakDuration_ = value; @@ -5842,13 +6872,17 @@ public Builder mergeMaxInterBreakDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMaxInterBreakDuration() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5861,13 +6895,17 @@ public Builder clearMaxInterBreakDuration() { return this; } /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Duration.Builder getMaxInterBreakDurationBuilder() { bitField0_ |= 0x00000002; @@ -5875,44 +6913,57 @@ public com.google.protobuf.Duration.Builder getMaxInterBreakDurationBuilder() { return getMaxInterBreakDurationFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.DurationOrBuilder getMaxInterBreakDurationOrBuilder() { if (maxInterBreakDurationBuilder_ != null) { return maxInterBreakDurationBuilder_.getMessageOrBuilder(); } else { - return maxInterBreakDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxInterBreakDuration_; + return maxInterBreakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxInterBreakDuration_; } } /** + * + * *
          * Required. Maximum allowed span of any interval of time in the route
          * that does not include at least partially a break of `duration >=
          * min_break_duration`. Must be positive.
          * 
* - * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.Duration max_inter_break_duration = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMaxInterBreakDurationFieldBuilder() { if (maxInterBreakDurationBuilder_ == null) { - maxInterBreakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxInterBreakDuration(), - getParentForChildren(), - isClean()); + maxInterBreakDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxInterBreakDuration(), getParentForChildren(), isClean()); maxInterBreakDuration_ = null; } return maxInterBreakDurationBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5925,41 +6976,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint) - private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule + .FrequencyConstraint + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint(); + DEFAULT_INSTANCE = + new com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint(); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FrequencyConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrequencyConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5971,140 +7027,196 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BREAK_REQUESTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List breakRequests_; + private java.util.List + breakRequests_; /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ @java.lang.Override - public java.util.List getBreakRequestsList() { + public java.util.List + getBreakRequestsList() { return breakRequests_; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> getBreakRequestsOrBuilderList() { return breakRequests_; } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ @java.lang.Override public int getBreakRequestsCount() { return breakRequests_.size(); } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests( + int index) { return breakRequests_.get(index); } /** + * + * *
      * Sequence of breaks. See the `BreakRequest` message.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder + getBreakRequestsOrBuilder(int index) { return breakRequests_.get(index); } public static final int FREQUENCY_CONSTRAINTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") - private java.util.List frequencyConstraints_; + private java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> + frequencyConstraints_; /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override - public java.util.List getFrequencyConstraintsList() { + public java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> + getFrequencyConstraintsList() { return frequencyConstraints_; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.BreakRule + .FrequencyConstraintOrBuilder> getFrequencyConstraintsOrBuilderList() { return frequencyConstraints_; } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override public int getFrequencyConstraintsCount() { return frequencyConstraints_.size(); } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getFrequencyConstraints(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + getFrequencyConstraints(int index) { return frequencyConstraints_.get(index); } /** + * + * *
      * Several `FrequencyConstraint` may apply. They must all be satisfied by
      * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder + getFrequencyConstraintsOrBuilder(int index) { return frequencyConstraints_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6116,8 +7228,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < breakRequests_.size(); i++) { output.writeMessage(1, breakRequests_.get(i)); } @@ -6134,12 +7245,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < breakRequests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, breakRequests_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, breakRequests_.get(i)); } for (int i = 0; i < frequencyConstraints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, frequencyConstraints_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, frequencyConstraints_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6149,17 +7260,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel.BreakRule other = (com.google.cloud.optimization.v1.ShipmentModel.BreakRule) obj; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule other = + (com.google.cloud.optimization.v1.ShipmentModel.BreakRule) obj; - if (!getBreakRequestsList() - .equals(other.getBreakRequestsList())) return false; - if (!getFrequencyConstraintsList() - .equals(other.getFrequencyConstraintsList())) return false; + if (!getBreakRequestsList().equals(other.getBreakRequestsList())) return false; + if (!getFrequencyConstraintsList().equals(other.getFrequencyConstraintsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6185,89 +7295,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel.BreakRule prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6277,6 +7392,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Deprecated: Use top level
      * [BreakRule][google.cloud.optimization.v1.ShipmentModel.BreakRule] instead.
@@ -6295,33 +7412,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel.BreakRule}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel.BreakRule)
         com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.class, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.class,
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentModel.BreakRule.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -6344,9 +7461,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor;
       }
 
       @java.lang.Override
@@ -6365,14 +7482,18 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentModel.BreakRule buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentModel.BreakRule result = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule(this);
+        com.google.cloud.optimization.v1.ShipmentModel.BreakRule result =
+            new com.google.cloud.optimization.v1.ShipmentModel.BreakRule(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentModel.BreakRule result) {
+      private void buildPartialRepeatedFields(
+          com.google.cloud.optimization.v1.ShipmentModel.BreakRule result) {
         if (breakRequestsBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
             breakRequests_ = java.util.Collections.unmodifiableList(breakRequests_);
@@ -6401,38 +7522,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel.BreakR
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentModel.BreakRule) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.BreakRule)other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel.BreakRule) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -6440,7 +7564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRule other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance())
+          return this;
         if (breakRequestsBuilder_ == null) {
           if (!other.breakRequests_.isEmpty()) {
             if (breakRequests_.isEmpty()) {
@@ -6459,9 +7584,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRul
               breakRequestsBuilder_ = null;
               breakRequests_ = other.breakRequests_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              breakRequestsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getBreakRequestsFieldBuilder() : null;
+              breakRequestsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getBreakRequestsFieldBuilder()
+                      : null;
             } else {
               breakRequestsBuilder_.addAllMessages(other.breakRequests_);
             }
@@ -6485,9 +7611,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel.BreakRul
               frequencyConstraintsBuilder_ = null;
               frequencyConstraints_ = other.frequencyConstraints_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              frequencyConstraintsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getFrequencyConstraintsFieldBuilder() : null;
+              frequencyConstraintsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getFrequencyConstraintsFieldBuilder()
+                      : null;
             } else {
               frequencyConstraintsBuilder_.addAllMessages(other.frequencyConstraints_);
             }
@@ -6519,38 +7646,43 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.parser(),
-                        extensionRegistry);
-                if (breakRequestsBuilder_ == null) {
-                  ensureBreakRequestsIsMutable();
-                  breakRequests_.add(m);
-                } else {
-                  breakRequestsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-              case 18: {
-                com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.parser(),
-                        extensionRegistry);
-                if (frequencyConstraintsBuilder_ == null) {
-                  ensureFrequencyConstraintsIsMutable();
-                  frequencyConstraints_.add(m);
-                } else {
-                  frequencyConstraintsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest m =
+                      input.readMessage(
+                          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest
+                              .parser(),
+                          extensionRegistry);
+                  if (breakRequestsBuilder_ == null) {
+                    ensureBreakRequestsIsMutable();
+                    breakRequests_.add(m);
+                  } else {
+                    breakRequestsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 10
+              case 18:
+                {
+                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint m =
+                      input.readMessage(
+                          com.google.cloud.optimization.v1.ShipmentModel.BreakRule
+                              .FrequencyConstraint.parser(),
+                          extensionRegistry);
+                  if (frequencyConstraintsBuilder_ == null) {
+                    ensureFrequencyConstraintsIsMutable();
+                    frequencyConstraints_.add(m);
+                  } else {
+                    frequencyConstraintsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -6560,28 +7692,41 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private java.util.List breakRequests_ =
-        java.util.Collections.emptyList();
+      private java.util.List
+          breakRequests_ = java.util.Collections.emptyList();
+
       private void ensureBreakRequestsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          breakRequests_ = new java.util.ArrayList(breakRequests_);
+          breakRequests_ =
+              new java.util.ArrayList<
+                  com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest>(
+                  breakRequests_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> breakRequestsBuilder_;
+              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest,
+              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder,
+              com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder>
+          breakRequestsBuilder_;
 
       /**
+       *
+       *
        * 
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public java.util.List getBreakRequestsList() { + public java.util.List + getBreakRequestsList() { if (breakRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(breakRequests_); } else { @@ -6589,11 +7734,15 @@ public java.util.List * Sequence of breaks. See the `BreakRequest` message. *
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public int getBreakRequestsCount() { if (breakRequestsBuilder_ == null) { @@ -6603,13 +7752,18 @@ public int getBreakRequestsCount() { } } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest getBreakRequests( + int index) { if (breakRequestsBuilder_ == null) { return breakRequests_.get(index); } else { @@ -6617,11 +7771,15 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest get } } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public Builder setBreakRequests( int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest value) { @@ -6638,14 +7796,20 @@ public Builder setBreakRequests( return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public Builder setBreakRequests( - int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder + builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.set(index, builderForValue.build()); @@ -6656,13 +7820,18 @@ public Builder setBreakRequests( return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public Builder addBreakRequests(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest value) { + public Builder addBreakRequests( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest value) { if (breakRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6676,11 +7845,15 @@ public Builder addBreakRequests(com.google.cloud.optimization.v1.ShipmentModel.B return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addBreakRequests( int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest value) { @@ -6697,14 +7870,19 @@ public Builder addBreakRequests( return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addBreakRequests( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder builderForValue) { + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder + builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.add(builderForValue.build()); @@ -6715,14 +7893,20 @@ public Builder addBreakRequests( return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addBreakRequests( - int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder + builderForValue) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); breakRequests_.add(index, builderForValue.build()); @@ -6733,18 +7917,23 @@ public Builder addBreakRequests( return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public Builder addAllBreakRequests( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest> + values) { if (breakRequestsBuilder_ == null) { ensureBreakRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, breakRequests_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breakRequests_); onChanged(); } else { breakRequestsBuilder_.addAllMessages(values); @@ -6752,11 +7941,15 @@ public Builder addAllBreakRequests( return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public Builder clearBreakRequests() { if (breakRequestsBuilder_ == null) { @@ -6769,11 +7962,15 @@ public Builder clearBreakRequests() { return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ public Builder removeBreakRequests(int index) { if (breakRequestsBuilder_ == null) { @@ -6786,39 +7983,54 @@ public Builder removeBreakRequests(int index) { return this; } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder getBreakRequestsBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder + getBreakRequestsBuilder(int index) { return getBreakRequestsFieldBuilder().getBuilder(index); } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder + getBreakRequestsOrBuilder(int index) { if (breakRequestsBuilder_ == null) { - return breakRequests_.get(index); } else { + return breakRequests_.get(index); + } else { return breakRequestsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public java.util.List - getBreakRequestsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> + getBreakRequestsOrBuilderList() { if (breakRequestsBuilder_ != null) { return breakRequestsBuilder_.getMessageOrBuilderList(); } else { @@ -6826,45 +8038,70 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBu } } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder addBreakRequestsBuilder() { - return getBreakRequestsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder + addBreakRequestsBuilder() { + return getBreakRequestsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest + .getDefaultInstance()); } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder addBreakRequestsBuilder( - int index) { - return getBreakRequestsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder + addBreakRequestsBuilder(int index) { + return getBreakRequestsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest + .getDefaultInstance()); } /** + * + * *
        * Sequence of breaks. See the `BreakRequest` message.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest break_requests = 1; + * */ - public java.util.List - getBreakRequestsBuilderList() { + public java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder> + getBreakRequestsBuilderList() { return getBreakRequestsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder> getBreakRequestsFieldBuilder() { if (breakRequestsBuilder_ == null) { - breakRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder>( + breakRequestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Builder, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequestOrBuilder>( breakRequests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -6874,27 +8111,41 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.BreakRequest.Bui return breakRequestsBuilder_; } - private java.util.List frequencyConstraints_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> + frequencyConstraints_ = java.util.Collections.emptyList(); + private void ensureFrequencyConstraintsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - frequencyConstraints_ = new java.util.ArrayList(frequencyConstraints_); + frequencyConstraints_ = + new java.util.ArrayList< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint>( + frequencyConstraints_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder> frequencyConstraintsBuilder_; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder> + frequencyConstraintsBuilder_; /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public java.util.List getFrequencyConstraintsList() { + public java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> + getFrequencyConstraintsList() { if (frequencyConstraintsBuilder_ == null) { return java.util.Collections.unmodifiableList(frequencyConstraints_); } else { @@ -6902,12 +8153,16 @@ public java.util.List * Several `FrequencyConstraint` may apply. They must all be satisfied by * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`. *
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public int getFrequencyConstraintsCount() { if (frequencyConstraintsBuilder_ == null) { @@ -6917,14 +8172,19 @@ public int getFrequencyConstraintsCount() { } } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint getFrequencyConstraints(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + getFrequencyConstraints(int index) { if (frequencyConstraintsBuilder_ == null) { return frequencyConstraints_.get(index); } else { @@ -6932,15 +8192,20 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstra } } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder setFrequencyConstraints( - int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { if (frequencyConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6954,15 +8219,21 @@ public Builder setFrequencyConstraints( return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder setFrequencyConstraints( - int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder + builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.set(index, builderForValue.build()); @@ -6973,14 +8244,19 @@ public Builder setFrequencyConstraints( return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public Builder addFrequencyConstraints(com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { + public Builder addFrequencyConstraints( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { if (frequencyConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6994,15 +8270,20 @@ public Builder addFrequencyConstraints(com.google.cloud.optimization.v1.Shipment return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder addFrequencyConstraints( - int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint value) { if (frequencyConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7016,15 +8297,20 @@ public Builder addFrequencyConstraints( return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder addFrequencyConstraints( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder builderForValue) { + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder + builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.add(builderForValue.build()); @@ -7035,15 +8321,21 @@ public Builder addFrequencyConstraints( return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder addFrequencyConstraints( - int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder + builderForValue) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); frequencyConstraints_.add(index, builderForValue.build()); @@ -7054,19 +8346,25 @@ public Builder addFrequencyConstraints( return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder addAllFrequencyConstraints( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint> + values) { if (frequencyConstraintsBuilder_ == null) { ensureFrequencyConstraintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, frequencyConstraints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frequencyConstraints_); onChanged(); } else { frequencyConstraintsBuilder_.addAllMessages(values); @@ -7074,12 +8372,16 @@ public Builder addAllFrequencyConstraints( return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder clearFrequencyConstraints() { if (frequencyConstraintsBuilder_ == null) { @@ -7092,12 +8394,16 @@ public Builder clearFrequencyConstraints() { return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ public Builder removeFrequencyConstraints(int index) { if (frequencyConstraintsBuilder_ == null) { @@ -7110,42 +8416,58 @@ public Builder removeFrequencyConstraints(int index) { return this; } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder getFrequencyConstraintsBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder + getFrequencyConstraintsBuilder(int index) { return getFrequencyConstraintsFieldBuilder().getBuilder(index); } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder + getFrequencyConstraintsOrBuilder(int index) { if (frequencyConstraintsBuilder_ == null) { - return frequencyConstraints_.get(index); } else { + return frequencyConstraints_.get(index); + } else { return frequencyConstraintsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public java.util.List - getFrequencyConstraintsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.BreakRule + .FrequencyConstraintOrBuilder> + getFrequencyConstraintsOrBuilderList() { if (frequencyConstraintsBuilder_ != null) { return frequencyConstraintsBuilder_.getMessageOrBuilderList(); } else { @@ -7153,48 +8475,75 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstra } } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder() { - return getFrequencyConstraintsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder + addFrequencyConstraintsBuilder() { + return getFrequencyConstraintsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + .getDefaultInstance()); } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder( - int index) { - return getFrequencyConstraintsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder + addFrequencyConstraintsBuilder(int index) { + return getFrequencyConstraintsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + .getDefaultInstance()); } /** + * + * *
        * Several `FrequencyConstraint` may apply. They must all be satisfied by
        * the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
        * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint frequency_constraints = 2; + * */ - public java.util.List - getFrequencyConstraintsBuilderList() { + public java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder> + getFrequencyConstraintsBuilderList() { return getFrequencyConstraintsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder> getFrequencyConstraintsFieldBuilder() { if (frequencyConstraintsBuilder_ == null) { - frequencyConstraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraintOrBuilder>( + frequencyConstraintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstraint + .Builder, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule + .FrequencyConstraintOrBuilder>( frequencyConstraints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -7203,6 +8552,7 @@ public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.FrequencyConstra } return frequencyConstraintsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7215,12 +8565,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel.BreakRule) private static final com.google.cloud.optimization.v1.ShipmentModel.BreakRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel.BreakRule(); } @@ -7229,27 +8579,28 @@ public static com.google.cloud.optimization.v1.ShipmentModel.BreakRule getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BreakRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BreakRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7264,14 +8615,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int SHIPMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List shipments_; /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
@@ -7283,6 +8636,8 @@ public java.util.List getShipmentsLis return shipments_; } /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
@@ -7290,11 +8645,13 @@ public java.util.List getShipmentsLis * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ @java.lang.Override - public java.util.List + public java.util.List getShipmentsOrBuilderList() { return shipments_; } /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
@@ -7306,6 +8663,8 @@ public int getShipmentsCount() { return shipments_.size(); } /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
@@ -7317,6 +8676,8 @@ public com.google.cloud.optimization.v1.Shipment getShipments(int index) { return shipments_.get(index); } /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
@@ -7324,15 +8685,17 @@ public com.google.cloud.optimization.v1.Shipment getShipments(int index) { * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder(int index) { return shipments_.get(index); } public static final int VEHICLES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List vehicles_; /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -7344,6 +8707,8 @@ public java.util.List getVehiclesList( return vehicles_; } /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -7351,11 +8716,13 @@ public java.util.List getVehiclesList( * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ @java.lang.Override - public java.util.List + public java.util.List getVehiclesOrBuilderList() { return vehicles_; } /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -7367,6 +8734,8 @@ public int getVehiclesCount() { return vehicles_.size(); } /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -7378,6 +8747,8 @@ public com.google.cloud.optimization.v1.Vehicle getVehicles(int index) { return vehicles_.get(index); } /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -7385,14 +8756,15 @@ public com.google.cloud.optimization.v1.Vehicle getVehicles(int index) { * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ @java.lang.Override - public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(int index) { return vehicles_.get(index); } public static final int MAX_ACTIVE_VEHICLES_FIELD_NUMBER = 4; private int maxActiveVehicles_ = 0; /** + * + * *
    * Constrains the maximum number of active vehicles. A vehicle is active if
    * its route performs at least one shipment. This can be used to limit the
@@ -7403,6 +8775,7 @@ public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * 
* * optional int32 max_active_vehicles = 4; + * * @return Whether the maxActiveVehicles field is set. */ @java.lang.Override @@ -7410,6 +8783,8 @@ public boolean hasMaxActiveVehicles() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Constrains the maximum number of active vehicles. A vehicle is active if
    * its route performs at least one shipment. This can be used to limit the
@@ -7420,6 +8795,7 @@ public boolean hasMaxActiveVehicles() {
    * 
* * optional int32 max_active_vehicles = 4; + * * @return The maxActiveVehicles. */ @java.lang.Override @@ -7430,6 +8806,8 @@ public int getMaxActiveVehicles() { public static final int GLOBAL_START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp globalStartTime_; /** + * + * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -7445,6 +8823,7 @@ public int getMaxActiveVehicles() {
    * 
* * .google.protobuf.Timestamp global_start_time = 5; + * * @return Whether the globalStartTime field is set. */ @java.lang.Override @@ -7452,6 +8831,8 @@ public boolean hasGlobalStartTime() { return globalStartTime_ != null; } /** + * + * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -7467,13 +8848,18 @@ public boolean hasGlobalStartTime() {
    * 
* * .google.protobuf.Timestamp global_start_time = 5; + * * @return The globalStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getGlobalStartTime() { - return globalStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalStartTime_; + return globalStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : globalStartTime_; } /** + * + * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -7492,18 +8878,23 @@ public com.google.protobuf.Timestamp getGlobalStartTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder() {
-    return globalStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalStartTime_;
+    return globalStartTime_ == null
+        ? com.google.protobuf.Timestamp.getDefaultInstance()
+        : globalStartTime_;
   }
 
   public static final int GLOBAL_END_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp globalEndTime_;
   /**
+   *
+   *
    * 
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
    * 
* * .google.protobuf.Timestamp global_end_time = 6; + * * @return Whether the globalEndTime field is set. */ @java.lang.Override @@ -7511,19 +8902,26 @@ public boolean hasGlobalEndTime() { return globalEndTime_ != null; } /** + * + * *
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
    * 
* * .google.protobuf.Timestamp global_end_time = 6; + * * @return The globalEndTime. */ @java.lang.Override public com.google.protobuf.Timestamp getGlobalEndTime() { - return globalEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalEndTime_; + return globalEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : globalEndTime_; } /** + * + * *
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
@@ -7533,12 +8931,16 @@ public com.google.protobuf.Timestamp getGlobalEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
-    return globalEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalEndTime_;
+    return globalEndTime_ == null
+        ? com.google.protobuf.Timestamp.getDefaultInstance()
+        : globalEndTime_;
   }
 
   public static final int GLOBAL_DURATION_COST_PER_HOUR_FIELD_NUMBER = 7;
   private double globalDurationCostPerHour_ = 0D;
   /**
+   *
+   *
    * 
    * The "global duration" of the overall plan is the difference between the
    * earliest effective start time and the latest effective end time of
@@ -7549,6 +8951,7 @@ public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
    * 
* * double global_duration_cost_per_hour = 7; + * * @return The globalDurationCostPerHour. */ @java.lang.Override @@ -7557,9 +8960,13 @@ public double getGlobalDurationCostPerHour() { } public static final int DURATION_DISTANCE_MATRICES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") - private java.util.List durationDistanceMatrices_; + private java.util.List + durationDistanceMatrices_; /** + * + * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -7650,13 +9057,18 @@ public double getGlobalDurationCostPerHour() {
    * ```
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ @java.lang.Override - public java.util.List getDurationDistanceMatricesList() { + public java.util.List + getDurationDistanceMatricesList() { return durationDistanceMatrices_; } /** + * + * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -7747,14 +9159,19 @@ public java.util.List
    *
-   * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
+   * 
+   * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder>
       getDurationDistanceMatricesOrBuilderList() {
     return durationDistanceMatrices_;
   }
   /**
+   *
+   *
    * 
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -7845,13 +9262,17 @@ public java.util.List
    *
-   * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
+   * 
+   * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
+   * 
    */
   @java.lang.Override
   public int getDurationDistanceMatricesCount() {
     return durationDistanceMatrices_.size();
   }
   /**
+   *
+   *
    * 
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -7942,13 +9363,18 @@ public int getDurationDistanceMatricesCount() {
    * ```
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + getDurationDistanceMatrices(int index) { return durationDistanceMatrices_.get(index); } /** + * + * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -8039,19 +9465,24 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix get
    * ```
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder getDurationDistanceMatricesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder + getDurationDistanceMatricesOrBuilder(int index) { return durationDistanceMatrices_.get(index); } public static final int DURATION_DISTANCE_MATRIX_SRC_TAGS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -8069,13 +9500,15 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBu
    * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @return A list containing the durationDistanceMatrixSrcTags. */ - public com.google.protobuf.ProtocolStringList - getDurationDistanceMatrixSrcTagsList() { + public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixSrcTagsList() { return durationDistanceMatrixSrcTags_; } /** + * + * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -8093,12 +9526,15 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBu
    * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @return The count of durationDistanceMatrixSrcTags. */ public int getDurationDistanceMatrixSrcTagsCount() { return durationDistanceMatrixSrcTags_.size(); } /** + * + * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -8116,6 +9552,7 @@ public int getDurationDistanceMatrixSrcTagsCount() {
    * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param index The index of the element to return. * @return The durationDistanceMatrixSrcTags at the given index. */ @@ -8123,6 +9560,8 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) { return durationDistanceMatrixSrcTags_.get(index); } /** + * + * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -8140,19 +9579,22 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) {
    * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixSrcTags at the given index. */ - public com.google.protobuf.ByteString - getDurationDistanceMatrixSrcTagsBytes(int index) { + public com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int index) { return durationDistanceMatrixSrcTags_.getByteString(index); } public static final int DURATION_DISTANCE_MATRIX_DST_TAGS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -8172,13 +9614,15 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) {
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @return A list containing the durationDistanceMatrixDstTags. */ - public com.google.protobuf.ProtocolStringList - getDurationDistanceMatrixDstTagsList() { + public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixDstTagsList() { return durationDistanceMatrixDstTags_; } /** + * + * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -8198,12 +9642,15 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) {
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @return The count of durationDistanceMatrixDstTags. */ public int getDurationDistanceMatrixDstTagsCount() { return durationDistanceMatrixDstTags_.size(); } /** + * + * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -8223,6 +9670,7 @@ public int getDurationDistanceMatrixDstTagsCount() {
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param index The index of the element to return. * @return The durationDistanceMatrixDstTags at the given index. */ @@ -8230,6 +9678,8 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) { return durationDistanceMatrixDstTags_.get(index); } /** + * + * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -8249,262 +9699,357 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) {
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixDstTags at the given index. */ - public com.google.protobuf.ByteString - getDurationDistanceMatrixDstTagsBytes(int index) { + public com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int index) { return durationDistanceMatrixDstTags_.getByteString(index); } public static final int TRANSITION_ATTRIBUTES_FIELD_NUMBER = 11; + @SuppressWarnings("serial") - private java.util.List transitionAttributes_; + private java.util.List + transitionAttributes_; /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ @java.lang.Override - public java.util.List getTransitionAttributesList() { + public java.util.List + getTransitionAttributesList() { return transitionAttributes_; } /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ @java.lang.Override - public java.util.List + public java.util.List getTransitionAttributesOrBuilderList() { return transitionAttributes_; } /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ @java.lang.Override public int getTransitionAttributesCount() { return transitionAttributes_.size(); } /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ @java.lang.Override public com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttributes(int index) { return transitionAttributes_.get(index); } /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder getTransitionAttributesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder + getTransitionAttributesOrBuilder(int index) { return transitionAttributes_.get(index); } public static final int SHIPMENT_TYPE_INCOMPATIBILITIES_FIELD_NUMBER = 12; + @SuppressWarnings("serial") - private java.util.List shipmentTypeIncompatibilities_; + private java.util.List + shipmentTypeIncompatibilities_; /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ @java.lang.Override - public java.util.List getShipmentTypeIncompatibilitiesList() { + public java.util.List + getShipmentTypeIncompatibilitiesList() { return shipmentTypeIncompatibilities_; } /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> getShipmentTypeIncompatibilitiesOrBuilderList() { return shipmentTypeIncompatibilities_; } /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ @java.lang.Override public int getShipmentTypeIncompatibilitiesCount() { return shipmentTypeIncompatibilities_.size(); } /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeIncompatibilities(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility + getShipmentTypeIncompatibilities(int index) { return shipmentTypeIncompatibilities_.get(index); } /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder getShipmentTypeIncompatibilitiesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder + getShipmentTypeIncompatibilitiesOrBuilder(int index) { return shipmentTypeIncompatibilities_.get(index); } public static final int SHIPMENT_TYPE_REQUIREMENTS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") - private java.util.List shipmentTypeRequirements_; + private java.util.List + shipmentTypeRequirements_; /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ @java.lang.Override - public java.util.List getShipmentTypeRequirementsList() { + public java.util.List + getShipmentTypeRequirementsList() { return shipmentTypeRequirements_; } /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ @java.lang.Override - public java.util.List + public java.util.List getShipmentTypeRequirementsOrBuilderList() { return shipmentTypeRequirements_; } /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ @java.lang.Override public int getShipmentTypeRequirementsCount() { return shipmentTypeRequirements_.size(); } /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements( + int index) { return shipmentTypeRequirements_.get(index); } /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder getShipmentTypeRequirementsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder + getShipmentTypeRequirementsOrBuilder(int index) { return shipmentTypeRequirements_.get(index); } public static final int PRECEDENCE_RULES_FIELD_NUMBER = 14; + @SuppressWarnings("serial") - private java.util.List precedenceRules_; + private java.util.List + precedenceRules_; /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ @java.lang.Override - public java.util.List getPrecedenceRulesList() { + public java.util.List + getPrecedenceRulesList() { return precedenceRules_; } /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> getPrecedenceRulesOrBuilderList() { return precedenceRules_; } /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ @java.lang.Override public int getPrecedenceRulesCount() { return precedenceRules_.size(); } /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules( + int index) { return precedenceRules_.get(index); } /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPrecedenceRulesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder + getPrecedenceRulesOrBuilder(int index) { return precedenceRules_.get(index); } public static final int BREAK_RULES_FIELD_NUMBER = 15; + @SuppressWarnings("serial") private java.util.List breakRules_; /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -8513,13 +10058,19 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder ge
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getBreakRulesList() { + @java.lang.Deprecated + public java.util.List + getBreakRulesList() { return breakRules_; } /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -8528,14 +10079,19 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder ge
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getBreakRulesOrBuilderList() { return breakRules_; } /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -8544,13 +10100,18 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder ge
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getBreakRulesCount() { + @java.lang.Deprecated + public int getBreakRulesCount() { return breakRules_.size(); } /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -8559,13 +10120,18 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder ge
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index) { return breakRules_.get(index); } /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -8574,15 +10140,19 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder ge
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( int index) { return breakRules_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8594,8 +10164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < shipments_.size(); i++) { output.writeMessage(1, shipments_.get(i)); } @@ -8618,10 +10187,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(8, durationDistanceMatrices_.get(i)); } for (int i = 0; i < durationDistanceMatrixSrcTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, durationDistanceMatrixSrcTags_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 9, durationDistanceMatrixSrcTags_.getRaw(i)); } for (int i = 0; i < durationDistanceMatrixDstTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, durationDistanceMatrixDstTags_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 10, durationDistanceMatrixDstTags_.getRaw(i)); } for (int i = 0; i < transitionAttributes_.size(); i++) { output.writeMessage(11, transitionAttributes_.get(i)); @@ -8648,32 +10219,28 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < shipments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, shipments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, shipments_.get(i)); } for (int i = 0; i < vehicles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, vehicles_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, vehicles_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, maxActiveVehicles_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxActiveVehicles_); } if (globalStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getGlobalStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getGlobalStartTime()); } if (globalEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getGlobalEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGlobalEndTime()); } if (java.lang.Double.doubleToRawLongBits(globalDurationCostPerHour_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(7, globalDurationCostPerHour_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(7, globalDurationCostPerHour_); } for (int i = 0; i < durationDistanceMatrices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, durationDistanceMatrices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, durationDistanceMatrices_.get(i)); } { int dataSize = 0; @@ -8692,24 +10259,25 @@ public int getSerializedSize() { size += 1 * getDurationDistanceMatrixDstTagsList().size(); } for (int i = 0; i < transitionAttributes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, transitionAttributes_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, transitionAttributes_.get(i)); } for (int i = 0; i < shipmentTypeIncompatibilities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, shipmentTypeIncompatibilities_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, shipmentTypeIncompatibilities_.get(i)); } for (int i = 0; i < shipmentTypeRequirements_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, shipmentTypeRequirements_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, shipmentTypeRequirements_.get(i)); } for (int i = 0; i < precedenceRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, precedenceRules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, precedenceRules_.get(i)); } for (int i = 0; i < breakRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, breakRules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, breakRules_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8719,51 +10287,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentModel)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentModel other = (com.google.cloud.optimization.v1.ShipmentModel) obj; + com.google.cloud.optimization.v1.ShipmentModel other = + (com.google.cloud.optimization.v1.ShipmentModel) obj; - if (!getShipmentsList() - .equals(other.getShipmentsList())) return false; - if (!getVehiclesList() - .equals(other.getVehiclesList())) return false; + if (!getShipmentsList().equals(other.getShipmentsList())) return false; + if (!getVehiclesList().equals(other.getVehiclesList())) return false; if (hasMaxActiveVehicles() != other.hasMaxActiveVehicles()) return false; if (hasMaxActiveVehicles()) { - if (getMaxActiveVehicles() - != other.getMaxActiveVehicles()) return false; + if (getMaxActiveVehicles() != other.getMaxActiveVehicles()) return false; } if (hasGlobalStartTime() != other.hasGlobalStartTime()) return false; if (hasGlobalStartTime()) { - if (!getGlobalStartTime() - .equals(other.getGlobalStartTime())) return false; + if (!getGlobalStartTime().equals(other.getGlobalStartTime())) return false; } if (hasGlobalEndTime() != other.hasGlobalEndTime()) return false; if (hasGlobalEndTime()) { - if (!getGlobalEndTime() - .equals(other.getGlobalEndTime())) return false; + if (!getGlobalEndTime().equals(other.getGlobalEndTime())) return false; } if (java.lang.Double.doubleToLongBits(getGlobalDurationCostPerHour()) - != java.lang.Double.doubleToLongBits( - other.getGlobalDurationCostPerHour())) return false; - if (!getDurationDistanceMatricesList() - .equals(other.getDurationDistanceMatricesList())) return false; + != java.lang.Double.doubleToLongBits(other.getGlobalDurationCostPerHour())) return false; + if (!getDurationDistanceMatricesList().equals(other.getDurationDistanceMatricesList())) + return false; if (!getDurationDistanceMatrixSrcTagsList() .equals(other.getDurationDistanceMatrixSrcTagsList())) return false; if (!getDurationDistanceMatrixDstTagsList() .equals(other.getDurationDistanceMatrixDstTagsList())) return false; - if (!getTransitionAttributesList() - .equals(other.getTransitionAttributesList())) return false; + if (!getTransitionAttributesList().equals(other.getTransitionAttributesList())) return false; if (!getShipmentTypeIncompatibilitiesList() .equals(other.getShipmentTypeIncompatibilitiesList())) return false; - if (!getShipmentTypeRequirementsList() - .equals(other.getShipmentTypeRequirementsList())) return false; - if (!getPrecedenceRulesList() - .equals(other.getPrecedenceRulesList())) return false; - if (!getBreakRulesList() - .equals(other.getBreakRulesList())) return false; + if (!getShipmentTypeRequirementsList().equals(other.getShipmentTypeRequirementsList())) + return false; + if (!getPrecedenceRulesList().equals(other.getPrecedenceRulesList())) return false; + if (!getBreakRulesList().equals(other.getBreakRulesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8796,8 +10356,10 @@ public int hashCode() { hash = (53 * hash) + getGlobalEndTime().hashCode(); } hash = (37 * hash) + GLOBAL_DURATION_COST_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getGlobalDurationCostPerHour())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGlobalDurationCostPerHour())); if (getDurationDistanceMatricesCount() > 0) { hash = (37 * hash) + DURATION_DISTANCE_MATRICES_FIELD_NUMBER; hash = (53 * hash) + getDurationDistanceMatricesList().hashCode(); @@ -8835,99 +10397,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentModel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentModel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentModel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentModel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentModel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A shipment model contains a set of shipments which must be performed by a
    * set of vehicles, while minimizing the overall cost, which is the sum of:
@@ -8940,33 +10507,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentModel}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentModel)
       com.google.cloud.optimization.v1.ShipmentModelOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentModel.class, com.google.cloud.optimization.v1.ShipmentModel.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentModel.class,
+              com.google.cloud.optimization.v1.ShipmentModel.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.ShipmentModel.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -9004,10 +10570,8 @@ public Builder clear() {
         durationDistanceMatricesBuilder_.clear();
       }
       bitField0_ = (bitField0_ & ~0x00000040);
-      durationDistanceMatrixSrcTags_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      durationDistanceMatrixDstTags_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
       if (transitionAttributesBuilder_ == null) {
         transitionAttributes_ = java.util.Collections.emptyList();
       } else {
@@ -9047,9 +10611,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor;
     }
 
     @java.lang.Override
@@ -9068,9 +10632,12 @@ public com.google.cloud.optimization.v1.ShipmentModel build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.ShipmentModel buildPartial() {
-      com.google.cloud.optimization.v1.ShipmentModel result = new com.google.cloud.optimization.v1.ShipmentModel(this);
+      com.google.cloud.optimization.v1.ShipmentModel result =
+          new com.google.cloud.optimization.v1.ShipmentModel(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -9096,7 +10663,8 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
       }
       if (durationDistanceMatricesBuilder_ == null) {
         if (((bitField0_ & 0x00000040) != 0)) {
-          durationDistanceMatrices_ = java.util.Collections.unmodifiableList(durationDistanceMatrices_);
+          durationDistanceMatrices_ =
+              java.util.Collections.unmodifiableList(durationDistanceMatrices_);
           bitField0_ = (bitField0_ & ~0x00000040);
         }
         result.durationDistanceMatrices_ = durationDistanceMatrices_;
@@ -9114,7 +10682,8 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
       }
       if (shipmentTypeIncompatibilitiesBuilder_ == null) {
         if (((bitField0_ & 0x00000400) != 0)) {
-          shipmentTypeIncompatibilities_ = java.util.Collections.unmodifiableList(shipmentTypeIncompatibilities_);
+          shipmentTypeIncompatibilities_ =
+              java.util.Collections.unmodifiableList(shipmentTypeIncompatibilities_);
           bitField0_ = (bitField0_ & ~0x00000400);
         }
         result.shipmentTypeIncompatibilities_ = shipmentTypeIncompatibilities_;
@@ -9123,7 +10692,8 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
       }
       if (shipmentTypeRequirementsBuilder_ == null) {
         if (((bitField0_ & 0x00000800) != 0)) {
-          shipmentTypeRequirements_ = java.util.Collections.unmodifiableList(shipmentTypeRequirements_);
+          shipmentTypeRequirements_ =
+              java.util.Collections.unmodifiableList(shipmentTypeRequirements_);
           bitField0_ = (bitField0_ & ~0x00000800);
         }
         result.shipmentTypeRequirements_ = shipmentTypeRequirements_;
@@ -9158,14 +10728,12 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel result
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.globalStartTime_ = globalStartTimeBuilder_ == null
-            ? globalStartTime_
-            : globalStartTimeBuilder_.build();
+        result.globalStartTime_ =
+            globalStartTimeBuilder_ == null ? globalStartTime_ : globalStartTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.globalEndTime_ = globalEndTimeBuilder_ == null
-            ? globalEndTime_
-            : globalEndTimeBuilder_.build();
+        result.globalEndTime_ =
+            globalEndTimeBuilder_ == null ? globalEndTime_ : globalEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.globalDurationCostPerHour_ = globalDurationCostPerHour_;
@@ -9185,38 +10753,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentModel result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.ShipmentModel) {
-        return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel)other);
+        return mergeFrom((com.google.cloud.optimization.v1.ShipmentModel) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -9243,9 +10812,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             shipmentsBuilder_ = null;
             shipments_ = other.shipments_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            shipmentsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getShipmentsFieldBuilder() : null;
+            shipmentsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getShipmentsFieldBuilder()
+                    : null;
           } else {
             shipmentsBuilder_.addAllMessages(other.shipments_);
           }
@@ -9269,9 +10839,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             vehiclesBuilder_ = null;
             vehicles_ = other.vehicles_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            vehiclesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getVehiclesFieldBuilder() : null;
+            vehiclesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getVehiclesFieldBuilder()
+                    : null;
           } else {
             vehiclesBuilder_.addAllMessages(other.vehicles_);
           }
@@ -9307,9 +10878,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             durationDistanceMatricesBuilder_ = null;
             durationDistanceMatrices_ = other.durationDistanceMatrices_;
             bitField0_ = (bitField0_ & ~0x00000040);
-            durationDistanceMatricesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getDurationDistanceMatricesFieldBuilder() : null;
+            durationDistanceMatricesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getDurationDistanceMatricesFieldBuilder()
+                    : null;
           } else {
             durationDistanceMatricesBuilder_.addAllMessages(other.durationDistanceMatrices_);
           }
@@ -9353,9 +10925,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             transitionAttributesBuilder_ = null;
             transitionAttributes_ = other.transitionAttributes_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            transitionAttributesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTransitionAttributesFieldBuilder() : null;
+            transitionAttributesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTransitionAttributesFieldBuilder()
+                    : null;
           } else {
             transitionAttributesBuilder_.addAllMessages(other.transitionAttributes_);
           }
@@ -9379,11 +10952,13 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             shipmentTypeIncompatibilitiesBuilder_ = null;
             shipmentTypeIncompatibilities_ = other.shipmentTypeIncompatibilities_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            shipmentTypeIncompatibilitiesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getShipmentTypeIncompatibilitiesFieldBuilder() : null;
+            shipmentTypeIncompatibilitiesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getShipmentTypeIncompatibilitiesFieldBuilder()
+                    : null;
           } else {
-            shipmentTypeIncompatibilitiesBuilder_.addAllMessages(other.shipmentTypeIncompatibilities_);
+            shipmentTypeIncompatibilitiesBuilder_.addAllMessages(
+                other.shipmentTypeIncompatibilities_);
           }
         }
       }
@@ -9405,9 +10980,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             shipmentTypeRequirementsBuilder_ = null;
             shipmentTypeRequirements_ = other.shipmentTypeRequirements_;
             bitField0_ = (bitField0_ & ~0x00000800);
-            shipmentTypeRequirementsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getShipmentTypeRequirementsFieldBuilder() : null;
+            shipmentTypeRequirementsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getShipmentTypeRequirementsFieldBuilder()
+                    : null;
           } else {
             shipmentTypeRequirementsBuilder_.addAllMessages(other.shipmentTypeRequirements_);
           }
@@ -9431,9 +11007,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             precedenceRulesBuilder_ = null;
             precedenceRules_ = other.precedenceRules_;
             bitField0_ = (bitField0_ & ~0x00001000);
-            precedenceRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPrecedenceRulesFieldBuilder() : null;
+            precedenceRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPrecedenceRulesFieldBuilder()
+                    : null;
           } else {
             precedenceRulesBuilder_.addAllMessages(other.precedenceRules_);
           }
@@ -9457,9 +11034,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentModel other) {
             breakRulesBuilder_ = null;
             breakRules_ = other.breakRules_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            breakRulesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBreakRulesFieldBuilder() : null;
+            breakRulesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBreakRulesFieldBuilder()
+                    : null;
           } else {
             breakRulesBuilder_.addAllMessages(other.breakRules_);
           }
@@ -9491,152 +11069,162 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.optimization.v1.Shipment m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.Shipment.parser(),
-                      extensionRegistry);
-              if (shipmentsBuilder_ == null) {
-                ensureShipmentsIsMutable();
-                shipments_.add(m);
-              } else {
-                shipmentsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.optimization.v1.Vehicle m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.Vehicle.parser(),
-                      extensionRegistry);
-              if (vehiclesBuilder_ == null) {
-                ensureVehiclesIsMutable();
-                vehicles_.add(m);
-              } else {
-                vehiclesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 32: {
-              maxActiveVehicles_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getGlobalStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getGlobalEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 50
-            case 57: {
-              globalDurationCostPerHour_ = input.readDouble();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 57
-            case 66: {
-              com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.parser(),
-                      extensionRegistry);
-              if (durationDistanceMatricesBuilder_ == null) {
-                ensureDurationDistanceMatricesIsMutable();
-                durationDistanceMatrices_.add(m);
-              } else {
-                durationDistanceMatricesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 66
-            case 74: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureDurationDistanceMatrixSrcTagsIsMutable();
-              durationDistanceMatrixSrcTags_.add(s);
-              break;
-            } // case 74
-            case 82: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureDurationDistanceMatrixDstTagsIsMutable();
-              durationDistanceMatrixDstTags_.add(s);
-              break;
-            } // case 82
-            case 90: {
-              com.google.cloud.optimization.v1.TransitionAttributes m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.TransitionAttributes.parser(),
-                      extensionRegistry);
-              if (transitionAttributesBuilder_ == null) {
-                ensureTransitionAttributesIsMutable();
-                transitionAttributes_.add(m);
-              } else {
-                transitionAttributesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 90
-            case 98: {
-              com.google.cloud.optimization.v1.ShipmentTypeIncompatibility m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.parser(),
-                      extensionRegistry);
-              if (shipmentTypeIncompatibilitiesBuilder_ == null) {
-                ensureShipmentTypeIncompatibilitiesIsMutable();
-                shipmentTypeIncompatibilities_.add(m);
-              } else {
-                shipmentTypeIncompatibilitiesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 98
-            case 106: {
-              com.google.cloud.optimization.v1.ShipmentTypeRequirement m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentTypeRequirement.parser(),
-                      extensionRegistry);
-              if (shipmentTypeRequirementsBuilder_ == null) {
-                ensureShipmentTypeRequirementsIsMutable();
-                shipmentTypeRequirements_.add(m);
-              } else {
-                shipmentTypeRequirementsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 106
-            case 114: {
-              com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.parser(),
-                      extensionRegistry);
-              if (precedenceRulesBuilder_ == null) {
-                ensurePrecedenceRulesIsMutable();
-                precedenceRules_.add(m);
-              } else {
-                precedenceRulesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 122: {
-              com.google.cloud.optimization.v1.ShipmentModel.BreakRule m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentModel.BreakRule.parser(),
-                      extensionRegistry);
-              if (breakRulesBuilder_ == null) {
-                ensureBreakRulesIsMutable();
-                breakRules_.add(m);
-              } else {
-                breakRulesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 122
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.optimization.v1.Shipment m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.Shipment.parser(), extensionRegistry);
+                if (shipmentsBuilder_ == null) {
+                  ensureShipmentsIsMutable();
+                  shipments_.add(m);
+                } else {
+                  shipmentsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.optimization.v1.Vehicle m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.Vehicle.parser(), extensionRegistry);
+                if (vehiclesBuilder_ == null) {
+                  ensureVehiclesIsMutable();
+                  vehicles_.add(m);
+                } else {
+                  vehiclesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 32:
+              {
+                maxActiveVehicles_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getGlobalStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getGlobalEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 50
+            case 57:
+              {
+                globalDurationCostPerHour_ = input.readDouble();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 57
+            case 66:
+              {
+                com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix
+                            .parser(),
+                        extensionRegistry);
+                if (durationDistanceMatricesBuilder_ == null) {
+                  ensureDurationDistanceMatricesIsMutable();
+                  durationDistanceMatrices_.add(m);
+                } else {
+                  durationDistanceMatricesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 66
+            case 74:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDurationDistanceMatrixSrcTagsIsMutable();
+                durationDistanceMatrixSrcTags_.add(s);
+                break;
+              } // case 74
+            case 82:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDurationDistanceMatrixDstTagsIsMutable();
+                durationDistanceMatrixDstTags_.add(s);
+                break;
+              } // case 82
+            case 90:
+              {
+                com.google.cloud.optimization.v1.TransitionAttributes m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.TransitionAttributes.parser(),
+                        extensionRegistry);
+                if (transitionAttributesBuilder_ == null) {
+                  ensureTransitionAttributesIsMutable();
+                  transitionAttributes_.add(m);
+                } else {
+                  transitionAttributesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 90
+            case 98:
+              {
+                com.google.cloud.optimization.v1.ShipmentTypeIncompatibility m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.parser(),
+                        extensionRegistry);
+                if (shipmentTypeIncompatibilitiesBuilder_ == null) {
+                  ensureShipmentTypeIncompatibilitiesIsMutable();
+                  shipmentTypeIncompatibilities_.add(m);
+                } else {
+                  shipmentTypeIncompatibilitiesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 98
+            case 106:
+              {
+                com.google.cloud.optimization.v1.ShipmentTypeRequirement m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentTypeRequirement.parser(),
+                        extensionRegistry);
+                if (shipmentTypeRequirementsBuilder_ == null) {
+                  ensureShipmentTypeRequirementsIsMutable();
+                  shipmentTypeRequirements_.add(m);
+                } else {
+                  shipmentTypeRequirementsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 106
+            case 114:
+              {
+                com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.parser(),
+                        extensionRegistry);
+                if (precedenceRulesBuilder_ == null) {
+                  ensurePrecedenceRulesIsMutable();
+                  precedenceRules_.add(m);
+                } else {
+                  precedenceRulesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 122:
+              {
+                com.google.cloud.optimization.v1.ShipmentModel.BreakRule m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentModel.BreakRule.parser(),
+                        extensionRegistry);
+                if (breakRulesBuilder_ == null) {
+                  ensureBreakRulesIsMutable();
+                  breakRules_.add(m);
+                } else {
+                  breakRulesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 122
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9646,21 +11234,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List shipments_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureShipmentsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         shipments_ = new java.util.ArrayList(shipments_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.Shipment, com.google.cloud.optimization.v1.Shipment.Builder, com.google.cloud.optimization.v1.ShipmentOrBuilder> shipmentsBuilder_;
+            com.google.cloud.optimization.v1.Shipment,
+            com.google.cloud.optimization.v1.Shipment.Builder,
+            com.google.cloud.optimization.v1.ShipmentOrBuilder>
+        shipmentsBuilder_;
 
     /**
+     *
+     *
      * 
      * Set of shipments which must be performed in the model.
      * 
@@ -9675,6 +11270,8 @@ public java.util.List getShipmentsLis } } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9689,6 +11286,8 @@ public int getShipmentsCount() { } } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9703,14 +11302,15 @@ public com.google.cloud.optimization.v1.Shipment getShipments(int index) { } } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public Builder setShipments( - int index, com.google.cloud.optimization.v1.Shipment value) { + public Builder setShipments(int index, com.google.cloud.optimization.v1.Shipment value) { if (shipmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9724,6 +11324,8 @@ public Builder setShipments( return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9742,6 +11344,8 @@ public Builder setShipments( return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9762,14 +11366,15 @@ public Builder addShipments(com.google.cloud.optimization.v1.Shipment value) { return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public Builder addShipments( - int index, com.google.cloud.optimization.v1.Shipment value) { + public Builder addShipments(int index, com.google.cloud.optimization.v1.Shipment value) { if (shipmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9783,14 +11388,15 @@ public Builder addShipments( return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public Builder addShipments( - com.google.cloud.optimization.v1.Shipment.Builder builderForValue) { + public Builder addShipments(com.google.cloud.optimization.v1.Shipment.Builder builderForValue) { if (shipmentsBuilder_ == null) { ensureShipmentsIsMutable(); shipments_.add(builderForValue.build()); @@ -9801,6 +11407,8 @@ public Builder addShipments( return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9819,6 +11427,8 @@ public Builder addShipments( return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9829,8 +11439,7 @@ public Builder addAllShipments( java.lang.Iterable values) { if (shipmentsBuilder_ == null) { ensureShipmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shipments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shipments_); onChanged(); } else { shipmentsBuilder_.addAllMessages(values); @@ -9838,6 +11447,8 @@ public Builder addAllShipments( return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9855,6 +11466,8 @@ public Builder clearShipments() { return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9872,39 +11485,44 @@ public Builder removeShipments(int index) { return this; } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public com.google.cloud.optimization.v1.Shipment.Builder getShipmentsBuilder( - int index) { + public com.google.cloud.optimization.v1.Shipment.Builder getShipmentsBuilder(int index) { return getShipmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder(int index) { if (shipmentsBuilder_ == null) { - return shipments_.get(index); } else { + return shipments_.get(index); + } else { return shipmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public java.util.List - getShipmentsOrBuilderList() { + public java.util.List + getShipmentsOrBuilderList() { if (shipmentsBuilder_ != null) { return shipmentsBuilder_.getMessageOrBuilderList(); } else { @@ -9912,6 +11530,8 @@ public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( } } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
@@ -9919,60 +11539,72 @@ public com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ public com.google.cloud.optimization.v1.Shipment.Builder addShipmentsBuilder() { - return getShipmentsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.Shipment.getDefaultInstance()); + return getShipmentsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.Shipment.getDefaultInstance()); } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public com.google.cloud.optimization.v1.Shipment.Builder addShipmentsBuilder( - int index) { - return getShipmentsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.Shipment.getDefaultInstance()); + public com.google.cloud.optimization.v1.Shipment.Builder addShipmentsBuilder(int index) { + return getShipmentsFieldBuilder() + .addBuilder(index, com.google.cloud.optimization.v1.Shipment.getDefaultInstance()); } /** + * + * *
      * Set of shipments which must be performed in the model.
      * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - public java.util.List - getShipmentsBuilderList() { + public java.util.List + getShipmentsBuilderList() { return getShipmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Shipment, com.google.cloud.optimization.v1.Shipment.Builder, com.google.cloud.optimization.v1.ShipmentOrBuilder> + com.google.cloud.optimization.v1.Shipment, + com.google.cloud.optimization.v1.Shipment.Builder, + com.google.cloud.optimization.v1.ShipmentOrBuilder> getShipmentsFieldBuilder() { if (shipmentsBuilder_ == null) { - shipmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Shipment, com.google.cloud.optimization.v1.Shipment.Builder, com.google.cloud.optimization.v1.ShipmentOrBuilder>( - shipments_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + shipmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.Shipment, + com.google.cloud.optimization.v1.Shipment.Builder, + com.google.cloud.optimization.v1.ShipmentOrBuilder>( + shipments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); shipments_ = null; } return shipmentsBuilder_; } private java.util.List vehicles_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVehiclesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { vehicles_ = new java.util.ArrayList(vehicles_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle, com.google.cloud.optimization.v1.Vehicle.Builder, com.google.cloud.optimization.v1.VehicleOrBuilder> vehiclesBuilder_; + com.google.cloud.optimization.v1.Vehicle, + com.google.cloud.optimization.v1.Vehicle.Builder, + com.google.cloud.optimization.v1.VehicleOrBuilder> + vehiclesBuilder_; /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -9987,6 +11619,8 @@ public java.util.List getVehiclesList( } } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10001,6 +11635,8 @@ public int getVehiclesCount() { } } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10015,14 +11651,15 @@ public com.google.cloud.optimization.v1.Vehicle getVehicles(int index) { } } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public Builder setVehicles( - int index, com.google.cloud.optimization.v1.Vehicle value) { + public Builder setVehicles(int index, com.google.cloud.optimization.v1.Vehicle value) { if (vehiclesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10036,6 +11673,8 @@ public Builder setVehicles( return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10054,6 +11693,8 @@ public Builder setVehicles( return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10074,14 +11715,15 @@ public Builder addVehicles(com.google.cloud.optimization.v1.Vehicle value) { return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public Builder addVehicles( - int index, com.google.cloud.optimization.v1.Vehicle value) { + public Builder addVehicles(int index, com.google.cloud.optimization.v1.Vehicle value) { if (vehiclesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10095,14 +11737,15 @@ public Builder addVehicles( return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public Builder addVehicles( - com.google.cloud.optimization.v1.Vehicle.Builder builderForValue) { + public Builder addVehicles(com.google.cloud.optimization.v1.Vehicle.Builder builderForValue) { if (vehiclesBuilder_ == null) { ensureVehiclesIsMutable(); vehicles_.add(builderForValue.build()); @@ -10113,6 +11756,8 @@ public Builder addVehicles( return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10131,6 +11776,8 @@ public Builder addVehicles( return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10141,8 +11788,7 @@ public Builder addAllVehicles( java.lang.Iterable values) { if (vehiclesBuilder_ == null) { ensureVehiclesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vehicles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vehicles_); onChanged(); } else { vehiclesBuilder_.addAllMessages(values); @@ -10150,6 +11796,8 @@ public Builder addAllVehicles( return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10167,6 +11815,8 @@ public Builder clearVehicles() { return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10184,39 +11834,44 @@ public Builder removeVehicles(int index) { return this; } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public com.google.cloud.optimization.v1.Vehicle.Builder getVehiclesBuilder( - int index) { + public com.google.cloud.optimization.v1.Vehicle.Builder getVehiclesBuilder(int index) { return getVehiclesFieldBuilder().getBuilder(index); } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(int index) { if (vehiclesBuilder_ == null) { - return vehicles_.get(index); } else { + return vehicles_.get(index); + } else { return vehiclesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public java.util.List - getVehiclesOrBuilderList() { + public java.util.List + getVehiclesOrBuilderList() { if (vehiclesBuilder_ != null) { return vehiclesBuilder_.getMessageOrBuilderList(); } else { @@ -10224,6 +11879,8 @@ public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder( } } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
@@ -10231,49 +11888,57 @@ public com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder( * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ public com.google.cloud.optimization.v1.Vehicle.Builder addVehiclesBuilder() { - return getVehiclesFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.Vehicle.getDefaultInstance()); + return getVehiclesFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.Vehicle.getDefaultInstance()); } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public com.google.cloud.optimization.v1.Vehicle.Builder addVehiclesBuilder( - int index) { - return getVehiclesFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.Vehicle.getDefaultInstance()); + public com.google.cloud.optimization.v1.Vehicle.Builder addVehiclesBuilder(int index) { + return getVehiclesFieldBuilder() + .addBuilder(index, com.google.cloud.optimization.v1.Vehicle.getDefaultInstance()); } /** + * + * *
      * Set of vehicles which can be used to perform visits.
      * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - public java.util.List - getVehiclesBuilderList() { + public java.util.List + getVehiclesBuilderList() { return getVehiclesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle, com.google.cloud.optimization.v1.Vehicle.Builder, com.google.cloud.optimization.v1.VehicleOrBuilder> + com.google.cloud.optimization.v1.Vehicle, + com.google.cloud.optimization.v1.Vehicle.Builder, + com.google.cloud.optimization.v1.VehicleOrBuilder> getVehiclesFieldBuilder() { if (vehiclesBuilder_ == null) { - vehiclesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle, com.google.cloud.optimization.v1.Vehicle.Builder, com.google.cloud.optimization.v1.VehicleOrBuilder>( - vehicles_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + vehiclesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.Vehicle, + com.google.cloud.optimization.v1.Vehicle.Builder, + com.google.cloud.optimization.v1.VehicleOrBuilder>( + vehicles_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); vehicles_ = null; } return vehiclesBuilder_; } - private int maxActiveVehicles_ ; + private int maxActiveVehicles_; /** + * + * *
      * Constrains the maximum number of active vehicles. A vehicle is active if
      * its route performs at least one shipment. This can be used to limit the
@@ -10284,6 +11949,7 @@ public com.google.cloud.optimization.v1.Vehicle.Builder addVehiclesBuilder(
      * 
* * optional int32 max_active_vehicles = 4; + * * @return Whether the maxActiveVehicles field is set. */ @java.lang.Override @@ -10291,6 +11957,8 @@ public boolean hasMaxActiveVehicles() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Constrains the maximum number of active vehicles. A vehicle is active if
      * its route performs at least one shipment. This can be used to limit the
@@ -10301,6 +11969,7 @@ public boolean hasMaxActiveVehicles() {
      * 
* * optional int32 max_active_vehicles = 4; + * * @return The maxActiveVehicles. */ @java.lang.Override @@ -10308,6 +11977,8 @@ public int getMaxActiveVehicles() { return maxActiveVehicles_; } /** + * + * *
      * Constrains the maximum number of active vehicles. A vehicle is active if
      * its route performs at least one shipment. This can be used to limit the
@@ -10318,6 +11989,7 @@ public int getMaxActiveVehicles() {
      * 
* * optional int32 max_active_vehicles = 4; + * * @param value The maxActiveVehicles to set. * @return This builder for chaining. */ @@ -10329,6 +12001,8 @@ public Builder setMaxActiveVehicles(int value) { return this; } /** + * + * *
      * Constrains the maximum number of active vehicles. A vehicle is active if
      * its route performs at least one shipment. This can be used to limit the
@@ -10339,6 +12013,7 @@ public Builder setMaxActiveVehicles(int value) {
      * 
* * optional int32 max_active_vehicles = 4; + * * @return This builder for chaining. */ public Builder clearMaxActiveVehicles() { @@ -10350,8 +12025,13 @@ public Builder clearMaxActiveVehicles() { private com.google.protobuf.Timestamp globalStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> globalStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + globalStartTimeBuilder_; /** + * + * *
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10367,12 +12047,15 @@ public Builder clearMaxActiveVehicles() {
      * 
* * .google.protobuf.Timestamp global_start_time = 5; + * * @return Whether the globalStartTime field is set. */ public boolean hasGlobalStartTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10388,16 +12071,21 @@ public boolean hasGlobalStartTime() {
      * 
* * .google.protobuf.Timestamp global_start_time = 5; + * * @return The globalStartTime. */ public com.google.protobuf.Timestamp getGlobalStartTime() { if (globalStartTimeBuilder_ == null) { - return globalStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalStartTime_; + return globalStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : globalStartTime_; } else { return globalStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10428,6 +12116,8 @@ public Builder setGlobalStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10444,8 +12134,7 @@ public Builder setGlobalStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp global_start_time = 5;
      */
-    public Builder setGlobalStartTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setGlobalStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (globalStartTimeBuilder_ == null) {
         globalStartTime_ = builderForValue.build();
       } else {
@@ -10456,6 +12145,8 @@ public Builder setGlobalStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10474,9 +12165,9 @@ public Builder setGlobalStartTime(
      */
     public Builder mergeGlobalStartTime(com.google.protobuf.Timestamp value) {
       if (globalStartTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          globalStartTime_ != null &&
-          globalStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && globalStartTime_ != null
+            && globalStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getGlobalStartTimeBuilder().mergeFrom(value);
         } else {
           globalStartTime_ = value;
@@ -10489,6 +12180,8 @@ public Builder mergeGlobalStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10516,6 +12209,8 @@ public Builder clearGlobalStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10538,6 +12233,8 @@ public com.google.protobuf.Timestamp.Builder getGlobalStartTimeBuilder() {
       return getGlobalStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10558,11 +12255,14 @@ public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder() {
       if (globalStartTimeBuilder_ != null) {
         return globalStartTimeBuilder_.getMessageOrBuilder();
       } else {
-        return globalStartTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : globalStartTime_;
+        return globalStartTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : globalStartTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Global start and end time of the model: no times outside of this range
      * can be considered valid.
@@ -10580,14 +12280,17 @@ public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder() {
      * .google.protobuf.Timestamp global_start_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getGlobalStartTimeFieldBuilder() {
       if (globalStartTimeBuilder_ == null) {
-        globalStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getGlobalStartTime(),
-                getParentForChildren(),
-                isClean());
+        globalStartTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getGlobalStartTime(), getParentForChildren(), isClean());
         globalStartTime_ = null;
       }
       return globalStartTimeBuilder_;
@@ -10595,36 +12298,49 @@ public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp globalEndTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> globalEndTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        globalEndTimeBuilder_;
     /**
+     *
+     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
      * 
* * .google.protobuf.Timestamp global_end_time = 6; + * * @return Whether the globalEndTime field is set. */ public boolean hasGlobalEndTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
      * 
* * .google.protobuf.Timestamp global_end_time = 6; + * * @return The globalEndTime. */ public com.google.protobuf.Timestamp getGlobalEndTime() { if (globalEndTimeBuilder_ == null) { - return globalEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : globalEndTime_; + return globalEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : globalEndTime_; } else { return globalEndTimeBuilder_.getMessage(); } } /** + * + * *
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -10646,6 +12362,8 @@ public Builder setGlobalEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -10653,8 +12371,7 @@ public Builder setGlobalEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp global_end_time = 6;
      */
-    public Builder setGlobalEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setGlobalEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (globalEndTimeBuilder_ == null) {
         globalEndTime_ = builderForValue.build();
       } else {
@@ -10665,6 +12382,8 @@ public Builder setGlobalEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -10674,9 +12393,9 @@ public Builder setGlobalEndTime(
      */
     public Builder mergeGlobalEndTime(com.google.protobuf.Timestamp value) {
       if (globalEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          globalEndTime_ != null &&
-          globalEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && globalEndTime_ != null
+            && globalEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getGlobalEndTimeBuilder().mergeFrom(value);
         } else {
           globalEndTime_ = value;
@@ -10689,6 +12408,8 @@ public Builder mergeGlobalEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -10707,6 +12428,8 @@ public Builder clearGlobalEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -10720,6 +12443,8 @@ public com.google.protobuf.Timestamp.Builder getGlobalEndTimeBuilder() {
       return getGlobalEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -10731,11 +12456,14 @@ public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
       if (globalEndTimeBuilder_ != null) {
         return globalEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return globalEndTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : globalEndTime_;
+        return globalEndTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : globalEndTime_;
       }
     }
     /**
+     *
+     *
      * 
      * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
      * is used as default.
@@ -10744,21 +12472,26 @@ public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
      * .google.protobuf.Timestamp global_end_time = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getGlobalEndTimeFieldBuilder() {
       if (globalEndTimeBuilder_ == null) {
-        globalEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getGlobalEndTime(),
-                getParentForChildren(),
-                isClean());
+        globalEndTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getGlobalEndTime(), getParentForChildren(), isClean());
         globalEndTime_ = null;
       }
       return globalEndTimeBuilder_;
     }
 
-    private double globalDurationCostPerHour_ ;
+    private double globalDurationCostPerHour_;
     /**
+     *
+     *
      * 
      * The "global duration" of the overall plan is the difference between the
      * earliest effective start time and the latest effective end time of
@@ -10769,6 +12502,7 @@ public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder() {
      * 
* * double global_duration_cost_per_hour = 7; + * * @return The globalDurationCostPerHour. */ @java.lang.Override @@ -10776,6 +12510,8 @@ public double getGlobalDurationCostPerHour() { return globalDurationCostPerHour_; } /** + * + * *
      * The "global duration" of the overall plan is the difference between the
      * earliest effective start time and the latest effective end time of
@@ -10786,6 +12522,7 @@ public double getGlobalDurationCostPerHour() {
      * 
* * double global_duration_cost_per_hour = 7; + * * @param value The globalDurationCostPerHour to set. * @return This builder for chaining. */ @@ -10797,6 +12534,8 @@ public Builder setGlobalDurationCostPerHour(double value) { return this; } /** + * + * *
      * The "global duration" of the overall plan is the difference between the
      * earliest effective start time and the latest effective end time of
@@ -10807,6 +12546,7 @@ public Builder setGlobalDurationCostPerHour(double value) {
      * 
* * double global_duration_cost_per_hour = 7; + * * @return This builder for chaining. */ public Builder clearGlobalDurationCostPerHour() { @@ -10816,19 +12556,28 @@ public Builder clearGlobalDurationCostPerHour() { return this; } - private java.util.List durationDistanceMatrices_ = - java.util.Collections.emptyList(); + private java.util.List + durationDistanceMatrices_ = java.util.Collections.emptyList(); + private void ensureDurationDistanceMatricesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { - durationDistanceMatrices_ = new java.util.ArrayList(durationDistanceMatrices_); + durationDistanceMatrices_ = + new java.util.ArrayList< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix>( + durationDistanceMatrices_); bitField0_ |= 0x00000040; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> durationDistanceMatricesBuilder_; + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> + durationDistanceMatricesBuilder_; /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -10919,9 +12668,12 @@ private void ensureDurationDistanceMatricesIsMutable() {
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public java.util.List getDurationDistanceMatricesList() { + public java.util.List + getDurationDistanceMatricesList() { if (durationDistanceMatricesBuilder_ == null) { return java.util.Collections.unmodifiableList(durationDistanceMatrices_); } else { @@ -10929,6 +12681,8 @@ public java.util.List * Specifies duration and distance matrices used in the model. If this field * is empty, Google Maps or geodesic distances will be used instead, depending @@ -11019,7 +12773,9 @@ public java.util.List * - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public int getDurationDistanceMatricesCount() { if (durationDistanceMatricesBuilder_ == null) { @@ -11029,6 +12785,8 @@ public int getDurationDistanceMatricesCount() { } } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11119,9 +12877,12 @@ public int getDurationDistanceMatricesCount() {
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + getDurationDistanceMatrices(int index) { if (durationDistanceMatricesBuilder_ == null) { return durationDistanceMatrices_.get(index); } else { @@ -11129,6 +12890,8 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix get } } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11219,7 +12982,9 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix get
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public Builder setDurationDistanceMatrices( int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix value) { @@ -11236,6 +13001,8 @@ public Builder setDurationDistanceMatrices( return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11326,10 +13093,14 @@ public Builder setDurationDistanceMatrices(
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public Builder setDurationDistanceMatrices( - int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder + builderForValue) { if (durationDistanceMatricesBuilder_ == null) { ensureDurationDistanceMatricesIsMutable(); durationDistanceMatrices_.set(index, builderForValue.build()); @@ -11340,6 +13111,8 @@ public Builder setDurationDistanceMatrices( return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11430,9 +13203,12 @@ public Builder setDurationDistanceMatrices(
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public Builder addDurationDistanceMatrices(com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix value) { + public Builder addDurationDistanceMatrices( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix value) { if (durationDistanceMatricesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11446,6 +13222,8 @@ public Builder addDurationDistanceMatrices(com.google.cloud.optimization.v1.Ship return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11536,7 +13314,9 @@ public Builder addDurationDistanceMatrices(com.google.cloud.optimization.v1.Ship
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public Builder addDurationDistanceMatrices( int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix value) { @@ -11553,6 +13333,8 @@ public Builder addDurationDistanceMatrices( return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11643,10 +13425,13 @@ public Builder addDurationDistanceMatrices(
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public Builder addDurationDistanceMatrices( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder builderForValue) { + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder + builderForValue) { if (durationDistanceMatricesBuilder_ == null) { ensureDurationDistanceMatricesIsMutable(); durationDistanceMatrices_.add(builderForValue.build()); @@ -11657,6 +13442,8 @@ public Builder addDurationDistanceMatrices( return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11747,10 +13534,14 @@ public Builder addDurationDistanceMatrices(
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public Builder addDurationDistanceMatrices( - int index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder + builderForValue) { if (durationDistanceMatricesBuilder_ == null) { ensureDurationDistanceMatricesIsMutable(); durationDistanceMatrices_.add(index, builderForValue.build()); @@ -11761,6 +13552,8 @@ public Builder addDurationDistanceMatrices( return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11851,14 +13644,17 @@ public Builder addDurationDistanceMatrices(
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public Builder addAllDurationDistanceMatrices( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix> + values) { if (durationDistanceMatricesBuilder_ == null) { ensureDurationDistanceMatricesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, durationDistanceMatrices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, durationDistanceMatrices_); onChanged(); } else { durationDistanceMatricesBuilder_.addAllMessages(values); @@ -11866,6 +13662,8 @@ public Builder addAllDurationDistanceMatrices( return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -11956,7 +13754,9 @@ public Builder addAllDurationDistanceMatrices(
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public Builder clearDurationDistanceMatrices() { if (durationDistanceMatricesBuilder_ == null) { @@ -11969,6 +13769,8 @@ public Builder clearDurationDistanceMatrices() { return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12059,7 +13861,9 @@ public Builder clearDurationDistanceMatrices() {
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ public Builder removeDurationDistanceMatrices(int index) { if (durationDistanceMatricesBuilder_ == null) { @@ -12072,6 +13876,8 @@ public Builder removeDurationDistanceMatrices(int index) { return this; } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12162,13 +13968,17 @@ public Builder removeDurationDistanceMatrices(int index) {
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder getDurationDistanceMatricesBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder + getDurationDistanceMatricesBuilder(int index) { return getDurationDistanceMatricesFieldBuilder().getBuilder(index); } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12259,16 +14069,21 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Bui
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder getDurationDistanceMatricesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder + getDurationDistanceMatricesOrBuilder(int index) { if (durationDistanceMatricesBuilder_ == null) { - return durationDistanceMatrices_.get(index); } else { + return durationDistanceMatrices_.get(index); + } else { return durationDistanceMatricesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12359,10 +14174,14 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBu
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public java.util.List - getDurationDistanceMatricesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> + getDurationDistanceMatricesOrBuilderList() { if (durationDistanceMatricesBuilder_ != null) { return durationDistanceMatricesBuilder_.getMessageOrBuilderList(); } else { @@ -12370,6 +14189,8 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBu } } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12460,13 +14281,20 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBu
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder addDurationDistanceMatricesBuilder() { - return getDurationDistanceMatricesFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder + addDurationDistanceMatricesBuilder() { + return getDurationDistanceMatricesFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + .getDefaultInstance()); } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12557,14 +14385,21 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Bui
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder addDurationDistanceMatricesBuilder( - int index) { - return getDurationDistanceMatricesFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder + addDurationDistanceMatricesBuilder(int index) { + return getDurationDistanceMatricesFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix + .getDefaultInstance()); } /** + * + * *
      * Specifies duration and distance matrices used in the model. If this field
      * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -12655,18 +14490,27 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Bui
      * ```
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - public java.util.List - getDurationDistanceMatricesBuilderList() { + public java.util.List< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder> + getDurationDistanceMatricesBuilderList() { return getDurationDistanceMatricesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> getDurationDistanceMatricesFieldBuilder() { if (durationDistanceMatricesBuilder_ == null) { - durationDistanceMatricesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder>( + durationDistanceMatricesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Builder, + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder>( durationDistanceMatrices_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), @@ -12678,13 +14522,17 @@ public com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix.Bui private com.google.protobuf.LazyStringArrayList durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDurationDistanceMatrixSrcTagsIsMutable() { if (!durationDistanceMatrixSrcTags_.isModifiable()) { - durationDistanceMatrixSrcTags_ = new com.google.protobuf.LazyStringArrayList(durationDistanceMatrixSrcTags_); + durationDistanceMatrixSrcTags_ = + new com.google.protobuf.LazyStringArrayList(durationDistanceMatrixSrcTags_); } bitField0_ |= 0x00000080; } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12702,14 +14550,16 @@ private void ensureDurationDistanceMatrixSrcTagsIsMutable() {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @return A list containing the durationDistanceMatrixSrcTags. */ - public com.google.protobuf.ProtocolStringList - getDurationDistanceMatrixSrcTagsList() { + public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixSrcTagsList() { durationDistanceMatrixSrcTags_.makeImmutable(); return durationDistanceMatrixSrcTags_; } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12727,12 +14577,15 @@ private void ensureDurationDistanceMatrixSrcTagsIsMutable() {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @return The count of durationDistanceMatrixSrcTags. */ public int getDurationDistanceMatrixSrcTagsCount() { return durationDistanceMatrixSrcTags_.size(); } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12750,6 +14603,7 @@ public int getDurationDistanceMatrixSrcTagsCount() {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param index The index of the element to return. * @return The durationDistanceMatrixSrcTags at the given index. */ @@ -12757,6 +14611,8 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) { return durationDistanceMatrixSrcTags_.get(index); } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12774,14 +14630,16 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixSrcTags at the given index. */ - public com.google.protobuf.ByteString - getDurationDistanceMatrixSrcTagsBytes(int index) { + public com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int index) { return durationDistanceMatrixSrcTags_.getByteString(index); } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12799,13 +14657,15 @@ public java.lang.String getDurationDistanceMatrixSrcTags(int index) {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param index The index to set the value at. * @param value The durationDistanceMatrixSrcTags to set. * @return This builder for chaining. */ - public Builder setDurationDistanceMatrixSrcTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDurationDistanceMatrixSrcTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDurationDistanceMatrixSrcTagsIsMutable(); durationDistanceMatrixSrcTags_.set(index, value); bitField0_ |= 0x00000080; @@ -12813,6 +14673,8 @@ public Builder setDurationDistanceMatrixSrcTags( return this; } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12830,12 +14692,14 @@ public Builder setDurationDistanceMatrixSrcTags(
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param value The durationDistanceMatrixSrcTags to add. * @return This builder for chaining. */ - public Builder addDurationDistanceMatrixSrcTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDurationDistanceMatrixSrcTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDurationDistanceMatrixSrcTagsIsMutable(); durationDistanceMatrixSrcTags_.add(value); bitField0_ |= 0x00000080; @@ -12843,6 +14707,8 @@ public Builder addDurationDistanceMatrixSrcTags( return this; } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12860,6 +14726,7 @@ public Builder addDurationDistanceMatrixSrcTags(
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param values The durationDistanceMatrixSrcTags to add. * @return This builder for chaining. */ @@ -12873,6 +14740,8 @@ public Builder addAllDurationDistanceMatrixSrcTags( return this; } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12890,16 +14759,19 @@ public Builder addAllDurationDistanceMatrixSrcTags(
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @return This builder for chaining. */ public Builder clearDurationDistanceMatrixSrcTags() { - durationDistanceMatrixSrcTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080);; + durationDistanceMatrixSrcTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; onChanged(); return this; } /** + * + * *
      * Tags defining the sources of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -12917,12 +14789,14 @@ public Builder clearDurationDistanceMatrixSrcTags() {
      * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param value The bytes of the durationDistanceMatrixSrcTags to add. * @return This builder for chaining. */ - public Builder addDurationDistanceMatrixSrcTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDurationDistanceMatrixSrcTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDurationDistanceMatrixSrcTagsIsMutable(); durationDistanceMatrixSrcTags_.add(value); @@ -12933,13 +14807,17 @@ public Builder addDurationDistanceMatrixSrcTagsBytes( private com.google.protobuf.LazyStringArrayList durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDurationDistanceMatrixDstTagsIsMutable() { if (!durationDistanceMatrixDstTags_.isModifiable()) { - durationDistanceMatrixDstTags_ = new com.google.protobuf.LazyStringArrayList(durationDistanceMatrixDstTags_); + durationDistanceMatrixDstTags_ = + new com.google.protobuf.LazyStringArrayList(durationDistanceMatrixDstTags_); } bitField0_ |= 0x00000100; } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -12959,14 +14837,16 @@ private void ensureDurationDistanceMatrixDstTagsIsMutable() {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @return A list containing the durationDistanceMatrixDstTags. */ - public com.google.protobuf.ProtocolStringList - getDurationDistanceMatrixDstTagsList() { + public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixDstTagsList() { durationDistanceMatrixDstTags_.makeImmutable(); return durationDistanceMatrixDstTags_; } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -12986,12 +14866,15 @@ private void ensureDurationDistanceMatrixDstTagsIsMutable() {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @return The count of durationDistanceMatrixDstTags. */ public int getDurationDistanceMatrixDstTagsCount() { return durationDistanceMatrixDstTags_.size(); } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -13011,6 +14894,7 @@ public int getDurationDistanceMatrixDstTagsCount() {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param index The index of the element to return. * @return The durationDistanceMatrixDstTags at the given index. */ @@ -13018,6 +14902,8 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) { return durationDistanceMatrixDstTags_.get(index); } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -13037,14 +14923,16 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixDstTags at the given index. */ - public com.google.protobuf.ByteString - getDurationDistanceMatrixDstTagsBytes(int index) { + public com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int index) { return durationDistanceMatrixDstTags_.getByteString(index); } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -13064,13 +14952,15 @@ public java.lang.String getDurationDistanceMatrixDstTags(int index) {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param index The index to set the value at. * @param value The durationDistanceMatrixDstTags to set. * @return This builder for chaining. */ - public Builder setDurationDistanceMatrixDstTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDurationDistanceMatrixDstTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDurationDistanceMatrixDstTagsIsMutable(); durationDistanceMatrixDstTags_.set(index, value); bitField0_ |= 0x00000100; @@ -13078,6 +14968,8 @@ public Builder setDurationDistanceMatrixDstTags( return this; } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -13097,12 +14989,14 @@ public Builder setDurationDistanceMatrixDstTags(
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param value The durationDistanceMatrixDstTags to add. * @return This builder for chaining. */ - public Builder addDurationDistanceMatrixDstTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDurationDistanceMatrixDstTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDurationDistanceMatrixDstTagsIsMutable(); durationDistanceMatrixDstTags_.add(value); bitField0_ |= 0x00000100; @@ -13110,6 +15004,8 @@ public Builder addDurationDistanceMatrixDstTags( return this; } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -13129,6 +15025,7 @@ public Builder addDurationDistanceMatrixDstTags(
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param values The durationDistanceMatrixDstTags to add. * @return This builder for chaining. */ @@ -13142,6 +15039,8 @@ public Builder addAllDurationDistanceMatrixDstTags( return this; } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -13161,16 +15060,19 @@ public Builder addAllDurationDistanceMatrixDstTags(
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @return This builder for chaining. */ public Builder clearDurationDistanceMatrixDstTags() { - durationDistanceMatrixDstTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100);; + durationDistanceMatrixDstTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; onChanged(); return this; } /** + * + * *
      * Tags defining the destinations of the duration and distance matrices;
      * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -13190,12 +15092,14 @@ public Builder clearDurationDistanceMatrixDstTags() {
      * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param value The bytes of the durationDistanceMatrixDstTags to add. * @return This builder for chaining. */ - public Builder addDurationDistanceMatrixDstTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDurationDistanceMatrixDstTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDurationDistanceMatrixDstTagsIsMutable(); durationDistanceMatrixDstTags_.add(value); @@ -13204,26 +15108,36 @@ public Builder addDurationDistanceMatrixDstTagsBytes( return this; } - private java.util.List transitionAttributes_ = - java.util.Collections.emptyList(); + private java.util.List + transitionAttributes_ = java.util.Collections.emptyList(); + private void ensureTransitionAttributesIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { - transitionAttributes_ = new java.util.ArrayList(transitionAttributes_); + transitionAttributes_ = + new java.util.ArrayList( + transitionAttributes_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TransitionAttributes, com.google.cloud.optimization.v1.TransitionAttributes.Builder, com.google.cloud.optimization.v1.TransitionAttributesOrBuilder> transitionAttributesBuilder_; + com.google.cloud.optimization.v1.TransitionAttributes, + com.google.cloud.optimization.v1.TransitionAttributes.Builder, + com.google.cloud.optimization.v1.TransitionAttributesOrBuilder> + transitionAttributesBuilder_; /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public java.util.List getTransitionAttributesList() { + public java.util.List + getTransitionAttributesList() { if (transitionAttributesBuilder_ == null) { return java.util.Collections.unmodifiableList(transitionAttributes_); } else { @@ -13231,11 +15145,14 @@ public java.util.List get } } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public int getTransitionAttributesCount() { if (transitionAttributesBuilder_ == null) { @@ -13245,13 +15162,17 @@ public int getTransitionAttributesCount() { } } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttributes(int index) { + public com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttributes( + int index) { if (transitionAttributesBuilder_ == null) { return transitionAttributes_.get(index); } else { @@ -13259,11 +15180,14 @@ public com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttrib } } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public Builder setTransitionAttributes( int index, com.google.cloud.optimization.v1.TransitionAttributes value) { @@ -13280,11 +15204,14 @@ public Builder setTransitionAttributes( return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public Builder setTransitionAttributes( int index, com.google.cloud.optimization.v1.TransitionAttributes.Builder builderForValue) { @@ -13298,13 +15225,17 @@ public Builder setTransitionAttributes( return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public Builder addTransitionAttributes(com.google.cloud.optimization.v1.TransitionAttributes value) { + public Builder addTransitionAttributes( + com.google.cloud.optimization.v1.TransitionAttributes value) { if (transitionAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13318,11 +15249,14 @@ public Builder addTransitionAttributes(com.google.cloud.optimization.v1.Transiti return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public Builder addTransitionAttributes( int index, com.google.cloud.optimization.v1.TransitionAttributes value) { @@ -13339,11 +15273,14 @@ public Builder addTransitionAttributes( return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public Builder addTransitionAttributes( com.google.cloud.optimization.v1.TransitionAttributes.Builder builderForValue) { @@ -13357,11 +15294,14 @@ public Builder addTransitionAttributes( return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public Builder addTransitionAttributes( int index, com.google.cloud.optimization.v1.TransitionAttributes.Builder builderForValue) { @@ -13375,18 +15315,21 @@ public Builder addTransitionAttributes( return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public Builder addAllTransitionAttributes( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (transitionAttributesBuilder_ == null) { ensureTransitionAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transitionAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitionAttributes_); onChanged(); } else { transitionAttributesBuilder_.addAllMessages(values); @@ -13394,11 +15337,14 @@ public Builder addAllTransitionAttributes( return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public Builder clearTransitionAttributes() { if (transitionAttributesBuilder_ == null) { @@ -13411,11 +15357,14 @@ public Builder clearTransitionAttributes() { return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ public Builder removeTransitionAttributes(int index) { if (transitionAttributesBuilder_ == null) { @@ -13428,39 +15377,49 @@ public Builder removeTransitionAttributes(int index) { return this; } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public com.google.cloud.optimization.v1.TransitionAttributes.Builder getTransitionAttributesBuilder( - int index) { + public com.google.cloud.optimization.v1.TransitionAttributes.Builder + getTransitionAttributesBuilder(int index) { return getTransitionAttributesFieldBuilder().getBuilder(index); } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder getTransitionAttributesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder + getTransitionAttributesOrBuilder(int index) { if (transitionAttributesBuilder_ == null) { - return transitionAttributes_.get(index); } else { + return transitionAttributes_.get(index); + } else { return transitionAttributesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public java.util.List - getTransitionAttributesOrBuilderList() { + public java.util.List + getTransitionAttributesOrBuilderList() { if (transitionAttributesBuilder_ != null) { return transitionAttributesBuilder_.getMessageOrBuilderList(); } else { @@ -13468,45 +15427,62 @@ public com.google.cloud.optimization.v1.TransitionAttributesOrBuilder getTransit } } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public com.google.cloud.optimization.v1.TransitionAttributes.Builder addTransitionAttributesBuilder() { - return getTransitionAttributesFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()); + public com.google.cloud.optimization.v1.TransitionAttributes.Builder + addTransitionAttributesBuilder() { + return getTransitionAttributesFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()); } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public com.google.cloud.optimization.v1.TransitionAttributes.Builder addTransitionAttributesBuilder( - int index) { - return getTransitionAttributesFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()); + public com.google.cloud.optimization.v1.TransitionAttributes.Builder + addTransitionAttributesBuilder(int index) { + return getTransitionAttributesFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()); } /** + * + * *
      * Transition attributes added to the model.
      * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - public java.util.List - getTransitionAttributesBuilderList() { + public java.util.List + getTransitionAttributesBuilderList() { return getTransitionAttributesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TransitionAttributes, com.google.cloud.optimization.v1.TransitionAttributes.Builder, com.google.cloud.optimization.v1.TransitionAttributesOrBuilder> + com.google.cloud.optimization.v1.TransitionAttributes, + com.google.cloud.optimization.v1.TransitionAttributes.Builder, + com.google.cloud.optimization.v1.TransitionAttributesOrBuilder> getTransitionAttributesFieldBuilder() { if (transitionAttributesBuilder_ == null) { - transitionAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TransitionAttributes, com.google.cloud.optimization.v1.TransitionAttributes.Builder, com.google.cloud.optimization.v1.TransitionAttributesOrBuilder>( + transitionAttributesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.TransitionAttributes, + com.google.cloud.optimization.v1.TransitionAttributes.Builder, + com.google.cloud.optimization.v1.TransitionAttributesOrBuilder>( transitionAttributes_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), @@ -13516,26 +15492,37 @@ public com.google.cloud.optimization.v1.TransitionAttributes.Builder addTransiti return transitionAttributesBuilder_; } - private java.util.List shipmentTypeIncompatibilities_ = - java.util.Collections.emptyList(); + private java.util.List + shipmentTypeIncompatibilities_ = java.util.Collections.emptyList(); + private void ensureShipmentTypeIncompatibilitiesIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - shipmentTypeIncompatibilities_ = new java.util.ArrayList(shipmentTypeIncompatibilities_); + shipmentTypeIncompatibilities_ = + new java.util.ArrayList( + shipmentTypeIncompatibilities_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> shipmentTypeIncompatibilitiesBuilder_; + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> + shipmentTypeIncompatibilitiesBuilder_; /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public java.util.List getShipmentTypeIncompatibilitiesList() { + public java.util.List + getShipmentTypeIncompatibilitiesList() { if (shipmentTypeIncompatibilitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(shipmentTypeIncompatibilities_); } else { @@ -13543,11 +15530,15 @@ public java.util.List * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`). *
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public int getShipmentTypeIncompatibilitiesCount() { if (shipmentTypeIncompatibilitiesBuilder_ == null) { @@ -13557,13 +15548,18 @@ public int getShipmentTypeIncompatibilitiesCount() { } } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeIncompatibilities(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility + getShipmentTypeIncompatibilities(int index) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { return shipmentTypeIncompatibilities_.get(index); } else { @@ -13571,11 +15567,15 @@ public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentT } } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public Builder setShipmentTypeIncompatibilities( int index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility value) { @@ -13592,14 +15592,19 @@ public Builder setShipmentTypeIncompatibilities( return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public Builder setShipmentTypeIncompatibilities( - int index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { ensureShipmentTypeIncompatibilitiesIsMutable(); shipmentTypeIncompatibilities_.set(index, builderForValue.build()); @@ -13610,13 +15615,18 @@ public Builder setShipmentTypeIncompatibilities( return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public Builder addShipmentTypeIncompatibilities(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility value) { + public Builder addShipmentTypeIncompatibilities( + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility value) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13630,11 +15640,15 @@ public Builder addShipmentTypeIncompatibilities(com.google.cloud.optimization.v1 return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public Builder addShipmentTypeIncompatibilities( int index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility value) { @@ -13651,11 +15665,15 @@ public Builder addShipmentTypeIncompatibilities( return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public Builder addShipmentTypeIncompatibilities( com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { @@ -13669,14 +15687,19 @@ public Builder addShipmentTypeIncompatibilities( return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public Builder addShipmentTypeIncompatibilities( - int index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder builderForValue) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { ensureShipmentTypeIncompatibilitiesIsMutable(); shipmentTypeIncompatibilities_.add(index, builderForValue.build()); @@ -13687,14 +15710,19 @@ public Builder addShipmentTypeIncompatibilities( return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public Builder addAllShipmentTypeIncompatibilities( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { ensureShipmentTypeIncompatibilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -13706,11 +15734,15 @@ public Builder addAllShipmentTypeIncompatibilities( return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public Builder clearShipmentTypeIncompatibilities() { if (shipmentTypeIncompatibilitiesBuilder_ == null) { @@ -13723,11 +15755,15 @@ public Builder clearShipmentTypeIncompatibilities() { return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ public Builder removeShipmentTypeIncompatibilities(int index) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { @@ -13740,39 +15776,53 @@ public Builder removeShipmentTypeIncompatibilities(int index) { return this; } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder getShipmentTypeIncompatibilitiesBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder + getShipmentTypeIncompatibilitiesBuilder(int index) { return getShipmentTypeIncompatibilitiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder getShipmentTypeIncompatibilitiesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder + getShipmentTypeIncompatibilitiesOrBuilder(int index) { if (shipmentTypeIncompatibilitiesBuilder_ == null) { - return shipmentTypeIncompatibilities_.get(index); } else { + return shipmentTypeIncompatibilities_.get(index); + } else { return shipmentTypeIncompatibilitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public java.util.List - getShipmentTypeIncompatibilitiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> + getShipmentTypeIncompatibilitiesOrBuilderList() { if (shipmentTypeIncompatibilitiesBuilder_ != null) { return shipmentTypeIncompatibilitiesBuilder_.getMessageOrBuilderList(); } else { @@ -13780,45 +15830,67 @@ public com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder get } } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder addShipmentTypeIncompatibilitiesBuilder() { - return getShipmentTypeIncompatibilitiesFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder + addShipmentTypeIncompatibilitiesBuilder() { + return getShipmentTypeIncompatibilitiesFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()); } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder addShipmentTypeIncompatibilitiesBuilder( - int index) { - return getShipmentTypeIncompatibilitiesFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder + addShipmentTypeIncompatibilitiesBuilder(int index) { + return getShipmentTypeIncompatibilitiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()); } /** + * + * *
      * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - public java.util.List - getShipmentTypeIncompatibilitiesBuilderList() { + public java.util.List + getShipmentTypeIncompatibilitiesBuilderList() { return getShipmentTypeIncompatibilitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder> getShipmentTypeIncompatibilitiesFieldBuilder() { if (shipmentTypeIncompatibilitiesBuilder_ == null) { - shipmentTypeIncompatibilitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder>( + shipmentTypeIncompatibilitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder, + com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder>( shipmentTypeIncompatibilities_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), @@ -13828,26 +15900,37 @@ public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder addS return shipmentTypeIncompatibilitiesBuilder_; } - private java.util.List shipmentTypeRequirements_ = - java.util.Collections.emptyList(); + private java.util.List + shipmentTypeRequirements_ = java.util.Collections.emptyList(); + private void ensureShipmentTypeRequirementsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - shipmentTypeRequirements_ = new java.util.ArrayList(shipmentTypeRequirements_); + shipmentTypeRequirements_ = + new java.util.ArrayList( + shipmentTypeRequirements_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeRequirement, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> shipmentTypeRequirementsBuilder_; + com.google.cloud.optimization.v1.ShipmentTypeRequirement, + com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, + com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> + shipmentTypeRequirementsBuilder_; /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public java.util.List getShipmentTypeRequirementsList() { + public java.util.List + getShipmentTypeRequirementsList() { if (shipmentTypeRequirementsBuilder_ == null) { return java.util.Collections.unmodifiableList(shipmentTypeRequirements_); } else { @@ -13855,11 +15938,15 @@ public java.util.List } } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public int getShipmentTypeRequirementsCount() { if (shipmentTypeRequirementsBuilder_ == null) { @@ -13869,13 +15956,18 @@ public int getShipmentTypeRequirementsCount() { } } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements(int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements( + int index) { if (shipmentTypeRequirementsBuilder_ == null) { return shipmentTypeRequirements_.get(index); } else { @@ -13883,11 +15975,15 @@ public com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeR } } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public Builder setShipmentTypeRequirements( int index, com.google.cloud.optimization.v1.ShipmentTypeRequirement value) { @@ -13904,14 +16000,19 @@ public Builder setShipmentTypeRequirements( return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public Builder setShipmentTypeRequirements( - int index, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { if (shipmentTypeRequirementsBuilder_ == null) { ensureShipmentTypeRequirementsIsMutable(); shipmentTypeRequirements_.set(index, builderForValue.build()); @@ -13922,13 +16023,18 @@ public Builder setShipmentTypeRequirements( return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public Builder addShipmentTypeRequirements(com.google.cloud.optimization.v1.ShipmentTypeRequirement value) { + public Builder addShipmentTypeRequirements( + com.google.cloud.optimization.v1.ShipmentTypeRequirement value) { if (shipmentTypeRequirementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13942,11 +16048,15 @@ public Builder addShipmentTypeRequirements(com.google.cloud.optimization.v1.Ship return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public Builder addShipmentTypeRequirements( int index, com.google.cloud.optimization.v1.ShipmentTypeRequirement value) { @@ -13963,11 +16073,15 @@ public Builder addShipmentTypeRequirements( return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public Builder addShipmentTypeRequirements( com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { @@ -13981,14 +16095,19 @@ public Builder addShipmentTypeRequirements( return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public Builder addShipmentTypeRequirements( - int index, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder builderForValue) { if (shipmentTypeRequirementsBuilder_ == null) { ensureShipmentTypeRequirementsIsMutable(); shipmentTypeRequirements_.add(index, builderForValue.build()); @@ -13999,18 +16118,22 @@ public Builder addShipmentTypeRequirements( return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public Builder addAllShipmentTypeRequirements( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (shipmentTypeRequirementsBuilder_ == null) { ensureShipmentTypeRequirementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shipmentTypeRequirements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shipmentTypeRequirements_); onChanged(); } else { shipmentTypeRequirementsBuilder_.addAllMessages(values); @@ -14018,11 +16141,15 @@ public Builder addAllShipmentTypeRequirements( return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public Builder clearShipmentTypeRequirements() { if (shipmentTypeRequirementsBuilder_ == null) { @@ -14035,11 +16162,15 @@ public Builder clearShipmentTypeRequirements() { return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ public Builder removeShipmentTypeRequirements(int index) { if (shipmentTypeRequirementsBuilder_ == null) { @@ -14052,39 +16183,53 @@ public Builder removeShipmentTypeRequirements(int index) { return this; } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder getShipmentTypeRequirementsBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder + getShipmentTypeRequirementsBuilder(int index) { return getShipmentTypeRequirementsFieldBuilder().getBuilder(index); } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder getShipmentTypeRequirementsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder + getShipmentTypeRequirementsOrBuilder(int index) { if (shipmentTypeRequirementsBuilder_ == null) { - return shipmentTypeRequirements_.get(index); } else { + return shipmentTypeRequirements_.get(index); + } else { return shipmentTypeRequirementsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public java.util.List - getShipmentTypeRequirementsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> + getShipmentTypeRequirementsOrBuilderList() { if (shipmentTypeRequirementsBuilder_ != null) { return shipmentTypeRequirementsBuilder_.getMessageOrBuilderList(); } else { @@ -14092,45 +16237,66 @@ public com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder getShip } } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder addShipmentTypeRequirementsBuilder() { - return getShipmentTypeRequirementsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder + addShipmentTypeRequirementsBuilder() { + return getShipmentTypeRequirementsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()); } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder addShipmentTypeRequirementsBuilder( - int index) { - return getShipmentTypeRequirementsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder + addShipmentTypeRequirementsBuilder(int index) { + return getShipmentTypeRequirementsFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()); } /** + * + * *
      * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - public java.util.List - getShipmentTypeRequirementsBuilderList() { + public java.util.List + getShipmentTypeRequirementsBuilderList() { return getShipmentTypeRequirementsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeRequirement, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> + com.google.cloud.optimization.v1.ShipmentTypeRequirement, + com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, + com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder> getShipmentTypeRequirementsFieldBuilder() { if (shipmentTypeRequirementsBuilder_ == null) { - shipmentTypeRequirementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentTypeRequirement, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder>( + shipmentTypeRequirementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentTypeRequirement, + com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder, + com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder>( shipmentTypeRequirements_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), @@ -14140,26 +16306,37 @@ public com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder addShipm return shipmentTypeRequirementsBuilder_; } - private java.util.List precedenceRules_ = - java.util.Collections.emptyList(); + private java.util.List + precedenceRules_ = java.util.Collections.emptyList(); + private void ensurePrecedenceRulesIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { - precedenceRules_ = new java.util.ArrayList(precedenceRules_); + precedenceRules_ = + new java.util.ArrayList( + precedenceRules_); bitField0_ |= 0x00001000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> precedenceRulesBuilder_; + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> + precedenceRulesBuilder_; /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public java.util.List getPrecedenceRulesList() { + public java.util.List + getPrecedenceRulesList() { if (precedenceRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(precedenceRules_); } else { @@ -14167,11 +16344,15 @@ public java.util.List * Set of precedence rules which must be enforced in the model. *
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public int getPrecedenceRulesCount() { if (precedenceRulesBuilder_ == null) { @@ -14181,13 +16362,18 @@ public int getPrecedenceRulesCount() { } } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules(int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules( + int index) { if (precedenceRulesBuilder_ == null) { return precedenceRules_.get(index); } else { @@ -14195,11 +16381,15 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPreceden } } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public Builder setPrecedenceRules( int index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule value) { @@ -14216,14 +16406,19 @@ public Builder setPrecedenceRules( return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public Builder setPrecedenceRules( - int index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { if (precedenceRulesBuilder_ == null) { ensurePrecedenceRulesIsMutable(); precedenceRules_.set(index, builderForValue.build()); @@ -14234,13 +16429,18 @@ public Builder setPrecedenceRules( return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public Builder addPrecedenceRules(com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule value) { + public Builder addPrecedenceRules( + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule value) { if (precedenceRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14254,11 +16454,15 @@ public Builder addPrecedenceRules(com.google.cloud.optimization.v1.ShipmentModel return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public Builder addPrecedenceRules( int index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule value) { @@ -14275,11 +16479,15 @@ public Builder addPrecedenceRules( return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public Builder addPrecedenceRules( com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { @@ -14293,14 +16501,19 @@ public Builder addPrecedenceRules( return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public Builder addPrecedenceRules( - int index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder builderForValue) { if (precedenceRulesBuilder_ == null) { ensurePrecedenceRulesIsMutable(); precedenceRules_.add(index, builderForValue.build()); @@ -14311,18 +16524,22 @@ public Builder addPrecedenceRules( return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public Builder addAllPrecedenceRules( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (precedenceRulesBuilder_ == null) { ensurePrecedenceRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, precedenceRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, precedenceRules_); onChanged(); } else { precedenceRulesBuilder_.addAllMessages(values); @@ -14330,11 +16547,15 @@ public Builder addAllPrecedenceRules( return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public Builder clearPrecedenceRules() { if (precedenceRulesBuilder_ == null) { @@ -14347,11 +16568,15 @@ public Builder clearPrecedenceRules() { return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ public Builder removePrecedenceRules(int index) { if (precedenceRulesBuilder_ == null) { @@ -14364,39 +16589,53 @@ public Builder removePrecedenceRules(int index) { return this; } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder getPrecedenceRulesBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder + getPrecedenceRulesBuilder(int index) { return getPrecedenceRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPrecedenceRulesOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder + getPrecedenceRulesOrBuilder(int index) { if (precedenceRulesBuilder_ == null) { - return precedenceRules_.get(index); } else { + return precedenceRules_.get(index); + } else { return precedenceRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public java.util.List - getPrecedenceRulesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> + getPrecedenceRulesOrBuilderList() { if (precedenceRulesBuilder_ != null) { return precedenceRulesBuilder_.getMessageOrBuilderList(); } else { @@ -14404,45 +16643,67 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder ge } } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder addPrecedenceRulesBuilder() { - return getPrecedenceRulesFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder + addPrecedenceRulesBuilder() { + return getPrecedenceRulesFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()); } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder addPrecedenceRulesBuilder( - int index) { - return getPrecedenceRulesFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder + addPrecedenceRulesBuilder(int index) { + return getPrecedenceRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.getDefaultInstance()); } /** + * + * *
      * Set of precedence rules which must be enforced in the model.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - public java.util.List - getPrecedenceRulesBuilderList() { + public java.util.List + getPrecedenceRulesBuilderList() { return getPrecedenceRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder> getPrecedenceRulesFieldBuilder() { if (precedenceRulesBuilder_ == null) { - precedenceRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder>( + precedenceRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder, + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder>( precedenceRules_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), @@ -14453,18 +16714,26 @@ public com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule.Builder add } private java.util.List breakRules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBreakRulesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - breakRules_ = new java.util.ArrayList(breakRules_); + breakRules_ = + new java.util.ArrayList( + breakRules_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> breakRulesBuilder_; + com.google.cloud.optimization.v1.ShipmentModel.BreakRule, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, + com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> + breakRulesBuilder_; /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14473,9 +16742,13 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getBreakRulesList() { + @java.lang.Deprecated + public java.util.List + getBreakRulesList() { if (breakRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(breakRules_); } else { @@ -14483,6 +16756,8 @@ private void ensureBreakRulesIsMutable() { } } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14491,9 +16766,12 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public int getBreakRulesCount() { + @java.lang.Deprecated + public int getBreakRulesCount() { if (breakRulesBuilder_ == null) { return breakRules_.size(); } else { @@ -14501,6 +16779,8 @@ private void ensureBreakRulesIsMutable() { } } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14509,9 +16789,12 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index) { if (breakRulesBuilder_ == null) { return breakRules_.get(index); } else { @@ -14519,6 +16802,8 @@ private void ensureBreakRulesIsMutable() { } } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14527,9 +16812,12 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setBreakRules( + @java.lang.Deprecated + public Builder setBreakRules( int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule value) { if (breakRulesBuilder_ == null) { if (value == null) { @@ -14544,6 +16832,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14552,10 +16842,14 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setBreakRules( - int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { + @java.lang.Deprecated + public Builder setBreakRules( + int index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); breakRules_.set(index, builderForValue.build()); @@ -14566,6 +16860,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14574,9 +16870,12 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addBreakRules(com.google.cloud.optimization.v1.ShipmentModel.BreakRule value) { + @java.lang.Deprecated + public Builder addBreakRules(com.google.cloud.optimization.v1.ShipmentModel.BreakRule value) { if (breakRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14590,6 +16889,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14598,9 +16899,12 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addBreakRules( + @java.lang.Deprecated + public Builder addBreakRules( int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule value) { if (breakRulesBuilder_ == null) { if (value == null) { @@ -14615,6 +16919,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14623,9 +16929,12 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addBreakRules( + @java.lang.Deprecated + public Builder addBreakRules( com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); @@ -14637,6 +16946,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14645,10 +16956,14 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addBreakRules( - int index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { + @java.lang.Deprecated + public Builder addBreakRules( + int index, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder builderForValue) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); breakRules_.add(index, builderForValue.build()); @@ -14659,6 +16974,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14667,14 +16984,17 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllBreakRules( - java.lang.Iterable values) { + @java.lang.Deprecated + public Builder addAllBreakRules( + java.lang.Iterable + values) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, breakRules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breakRules_); onChanged(); } else { breakRulesBuilder_.addAllMessages(values); @@ -14682,6 +17002,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14690,9 +17012,12 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearBreakRules() { + @java.lang.Deprecated + public Builder clearBreakRules() { if (breakRulesBuilder_ == null) { breakRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); @@ -14703,6 +17028,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14711,9 +17038,12 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeBreakRules(int index) { + @java.lang.Deprecated + public Builder removeBreakRules(int index) { if (breakRulesBuilder_ == null) { ensureBreakRulesIsMutable(); breakRules_.remove(index); @@ -14724,6 +17054,8 @@ private void ensureBreakRulesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14732,13 +17064,18 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder getBreakRulesBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder getBreakRulesBuilder( int index) { return getBreakRulesFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14747,16 +17084,22 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( int index) { if (breakRulesBuilder_ == null) { - return breakRules_.get(index); } else { + return breakRules_.get(index); + } else { return breakRulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14765,10 +17108,14 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getBreakRulesOrBuilderList() { + @java.lang.Deprecated + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> + getBreakRulesOrBuilderList() { if (breakRulesBuilder_ != null) { return breakRulesBuilder_.getMessageOrBuilderList(); } else { @@ -14776,6 +17123,8 @@ private void ensureBreakRulesIsMutable() { } } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14784,13 +17133,19 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreakRulesBuilder() { - return getBreakRulesFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreakRulesBuilder() { + return getBreakRulesFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()); } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14799,14 +17154,20 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreakRulesBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder addBreakRulesBuilder( int index) { - return getBreakRulesFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()); + return getBreakRulesFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.getDefaultInstance()); } /** + * + * *
      * Deprecated: No longer used.
      * Set of break rules used in the model.
@@ -14815,29 +17176,35 @@ private void ensureBreakRulesIsMutable() {
      * field (which must be a singleton).
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getBreakRulesBuilderList() { + @java.lang.Deprecated + public java.util.List + getBreakRulesBuilderList() { return getBreakRulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> + com.google.cloud.optimization.v1.ShipmentModel.BreakRule, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, + com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder> getBreakRulesFieldBuilder() { if (breakRulesBuilder_ == null) { - breakRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentModel.BreakRule, com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder>( - breakRules_, - ((bitField0_ & 0x00002000) != 0), - getParentForChildren(), - isClean()); + breakRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentModel.BreakRule, + com.google.cloud.optimization.v1.ShipmentModel.BreakRule.Builder, + com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder>( + breakRules_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); breakRules_ = null; } return breakRulesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -14847,12 +17214,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentModel) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentModel) private static final com.google.cloud.optimization.v1.ShipmentModel DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentModel(); } @@ -14861,27 +17228,27 @@ public static com.google.cloud.optimization.v1.ShipmentModel getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShipmentModel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShipmentModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14896,6 +17263,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentModel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java similarity index 86% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java index ae98542b781e..6c11dbe69a5b 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentModelOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentModelOrBuilder extends +public interface ShipmentModelOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentModel) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - java.util.List - getShipmentsList(); + java.util.List getShipmentsList(); /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
@@ -25,6 +44,8 @@ public interface ShipmentModelOrBuilder extends */ com.google.cloud.optimization.v1.Shipment getShipments(int index); /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
@@ -33,34 +54,40 @@ public interface ShipmentModelOrBuilder extends */ int getShipmentsCount(); /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - java.util.List + java.util.List getShipmentsOrBuilderList(); /** + * + * *
    * Set of shipments which must be performed in the model.
    * 
* * repeated .google.cloud.optimization.v1.Shipment shipments = 1; */ - com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( - int index); + com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder(int index); /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - java.util.List - getVehiclesList(); + java.util.List getVehiclesList(); /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -69,6 +96,8 @@ com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( */ com.google.cloud.optimization.v1.Vehicle getVehicles(int index); /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
@@ -77,25 +106,30 @@ com.google.cloud.optimization.v1.ShipmentOrBuilder getShipmentsOrBuilder( */ int getVehiclesCount(); /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - java.util.List + java.util.List getVehiclesOrBuilderList(); /** + * + * *
    * Set of vehicles which can be used to perform visits.
    * 
* * repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; */ - com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder( - int index); + com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(int index); /** + * + * *
    * Constrains the maximum number of active vehicles. A vehicle is active if
    * its route performs at least one shipment. This can be used to limit the
@@ -106,10 +140,13 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * 
* * optional int32 max_active_vehicles = 4; + * * @return Whether the maxActiveVehicles field is set. */ boolean hasMaxActiveVehicles(); /** + * + * *
    * Constrains the maximum number of active vehicles. A vehicle is active if
    * its route performs at least one shipment. This can be used to limit the
@@ -120,11 +157,14 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * 
* * optional int32 max_active_vehicles = 4; + * * @return The maxActiveVehicles. */ int getMaxActiveVehicles(); /** + * + * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -140,10 +180,13 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * 
* * .google.protobuf.Timestamp global_start_time = 5; + * * @return Whether the globalStartTime field is set. */ boolean hasGlobalStartTime(); /** + * + * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -159,10 +202,13 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * 
* * .google.protobuf.Timestamp global_start_time = 5; + * * @return The globalStartTime. */ com.google.protobuf.Timestamp getGlobalStartTime(); /** + * + * *
    * Global start and end time of the model: no times outside of this range
    * can be considered valid.
@@ -182,26 +228,34 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
   com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
    * 
* * .google.protobuf.Timestamp global_end_time = 6; + * * @return Whether the globalEndTime field is set. */ boolean hasGlobalEndTime(); /** + * + * *
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
    * 
* * .google.protobuf.Timestamp global_end_time = 6; + * * @return The globalEndTime. */ com.google.protobuf.Timestamp getGlobalEndTime(); /** + * + * *
    * If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0)
    * is used as default.
@@ -212,6 +266,8 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
   com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The "global duration" of the overall plan is the difference between the
    * earliest effective start time and the latest effective end time of
@@ -222,11 +278,14 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * 
* * double global_duration_cost_per_hour = 7; + * * @return The globalDurationCostPerHour. */ double getGlobalDurationCostPerHour(); /** + * + * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -317,11 +376,15 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * ```
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - java.util.List + java.util.List getDurationDistanceMatricesList(); /** + * + * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -412,10 +475,15 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * ```
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices(int index); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices( + int index); /** + * + * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -506,10 +574,14 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * ```
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ int getDurationDistanceMatricesCount(); /** + * + * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -600,11 +672,16 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * ```
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder> getDurationDistanceMatricesOrBuilderList(); /** + * + * *
    * Specifies duration and distance matrices used in the model. If this field
    * is empty, Google Maps or geodesic distances will be used instead, depending
@@ -695,12 +772,16 @@ com.google.cloud.optimization.v1.VehicleOrBuilder getVehiclesOrBuilder(
    * ```
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8; + * */ - com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder getDurationDistanceMatricesOrBuilder( - int index); + com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder + getDurationDistanceMatricesOrBuilder(int index); /** + * + * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -718,11 +799,13 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder g
    * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @return A list containing the durationDistanceMatrixSrcTags. */ - java.util.List - getDurationDistanceMatrixSrcTagsList(); + java.util.List getDurationDistanceMatrixSrcTagsList(); /** + * + * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -740,10 +823,13 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder g
    * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @return The count of durationDistanceMatrixSrcTags. */ int getDurationDistanceMatrixSrcTagsCount(); /** + * + * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -761,11 +847,14 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder g
    * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param index The index of the element to return. * @return The durationDistanceMatrixSrcTags at the given index. */ java.lang.String getDurationDistanceMatrixSrcTags(int index); /** + * + * *
    * Tags defining the sources of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j)` defines durations and distances
@@ -783,13 +872,15 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder g
    * 
* * repeated string duration_distance_matrix_src_tags = 9; + * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixSrcTags at the given index. */ - com.google.protobuf.ByteString - getDurationDistanceMatrixSrcTagsBytes(int index); + com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int index); /** + * + * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -809,11 +900,13 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder g
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @return A list containing the durationDistanceMatrixDstTags. */ - java.util.List - getDurationDistanceMatrixDstTagsList(); + java.util.List getDurationDistanceMatrixDstTagsList(); /** + * + * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -833,10 +926,13 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder g
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @return The count of durationDistanceMatrixDstTags. */ int getDurationDistanceMatrixDstTagsCount(); /** + * + * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -856,11 +952,14 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder g
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param index The index of the element to return. * @return The durationDistanceMatrixDstTags at the given index. */ java.lang.String getDurationDistanceMatrixDstTags(int index); /** + * + * *
    * Tags defining the destinations of the duration and distance matrices;
    * `duration_distance_matrices(i).rows(j).durations(k)` (resp.
@@ -880,189 +979,267 @@ com.google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrixOrBuilder g
    * 
* * repeated string duration_distance_matrix_dst_tags = 10; + * * @param index The index of the value to return. * @return The bytes of the durationDistanceMatrixDstTags at the given index. */ - com.google.protobuf.ByteString - getDurationDistanceMatrixDstTagsBytes(int index); + com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int index); /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - java.util.List + java.util.List getTransitionAttributesList(); /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ com.google.cloud.optimization.v1.TransitionAttributes getTransitionAttributes(int index); /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ int getTransitionAttributesCount(); /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ - java.util.List + java.util.List getTransitionAttributesOrBuilderList(); /** + * + * *
    * Transition attributes added to the model.
    * 
* - * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; + * */ com.google.cloud.optimization.v1.TransitionAttributesOrBuilder getTransitionAttributesOrBuilder( int index); /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - java.util.List + java.util.List getShipmentTypeIncompatibilitiesList(); /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeIncompatibilities(int index); + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getShipmentTypeIncompatibilities( + int index); /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ int getShipmentTypeIncompatibilitiesCount(); /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - java.util.List + java.util.List getShipmentTypeIncompatibilitiesOrBuilderList(); /** + * + * *
    * Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; + * */ - com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder getShipmentTypeIncompatibilitiesOrBuilder( - int index); + com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder + getShipmentTypeIncompatibilitiesOrBuilder(int index); /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - java.util.List + java.util.List getShipmentTypeRequirementsList(); /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ com.google.cloud.optimization.v1.ShipmentTypeRequirement getShipmentTypeRequirements(int index); /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ int getShipmentTypeRequirementsCount(); /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - java.util.List + java.util.List getShipmentTypeRequirementsOrBuilderList(); /** + * + * *
    * Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * + * repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; + * */ - com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder getShipmentTypeRequirementsOrBuilder( - int index); + com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder + getShipmentTypeRequirementsOrBuilder(int index); /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - java.util.List + java.util.List getPrecedenceRulesList(); /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRule getPrecedenceRules(int index); /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ int getPrecedenceRulesCount(); /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - java.util.List + java.util.List getPrecedenceRulesOrBuilderList(); /** + * + * *
    * Set of precedence rules which must be enforced in the model.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; + * */ - com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPrecedenceRulesOrBuilder( - int index); + com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder + getPrecedenceRulesOrBuilder(int index); /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1071,11 +1248,15 @@ com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPreced
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getBreakRulesList(); + @java.lang.Deprecated + java.util.List getBreakRulesList(); /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1084,10 +1265,15 @@ com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPreced
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.ShipmentModel.BreakRule getBreakRules(int index); /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1096,10 +1282,15 @@ com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPreced
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated int getBreakRulesCount(); + @java.lang.Deprecated + int getBreakRulesCount(); /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1108,11 +1299,16 @@ com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPreced
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getBreakRulesOrBuilderList(); /** + * + * *
    * Deprecated: No longer used.
    * Set of break rules used in the model.
@@ -1121,8 +1317,11 @@ com.google.cloud.optimization.v1.ShipmentModel.PrecedenceRuleOrBuilder getPreced
    * field (which must be a singleton).
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( + @java.lang.Deprecated + com.google.cloud.optimization.v1.ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder( int index); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java similarity index 90% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java index cb4a3168defb..605ba9de29c0 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentOrBuilder extends +public interface ShipmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Shipment) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -15,9 +33,10 @@ public interface ShipmentOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
    */
-  java.util.List 
-      getPickupsList();
+  java.util.List getPickupsList();
   /**
+   *
+   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -27,6 +46,8 @@ public interface ShipmentOrBuilder extends
    */
   com.google.cloud.optimization.v1.Shipment.VisitRequest getPickups(int index);
   /**
+   *
+   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -36,6 +57,8 @@ public interface ShipmentOrBuilder extends
    */
   int getPickupsCount();
   /**
+   *
+   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -43,9 +66,11 @@ public interface ShipmentOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
    */
-  java.util.List 
+  java.util.List
       getPickupsOrBuilderList();
   /**
+   *
+   *
    * 
    * Set of pickup alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the deliveries.
@@ -53,10 +78,11 @@ public interface ShipmentOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;
    */
-  com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -64,9 +90,10 @@ com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuil
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
-  java.util.List 
-      getDeliveriesList();
+  java.util.List getDeliveriesList();
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -76,6 +103,8 @@ com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuil
    */
   com.google.cloud.optimization.v1.Shipment.VisitRequest getDeliveries(int index);
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -85,6 +114,8 @@ com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuil
    */
   int getDeliveriesCount();
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -92,9 +123,11 @@ com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuil
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
-  java.util.List 
+  java.util.List
       getDeliveriesOrBuilderList();
   /**
+   *
+   *
    * 
    * Set of delivery alternatives associated to the shipment. If not specified,
    * the vehicle only needs to visit a location corresponding to the pickups.
@@ -102,10 +135,11 @@ com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getPickupsOrBuil
    *
    * repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;
    */
-  com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDeliveriesOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDeliveriesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -119,6 +153,8 @@ com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDeliveriesOrB
    */
   int getLoadDemandsCount();
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -130,15 +166,13 @@ com.google.cloud.optimization.v1.Shipment.VisitRequestOrBuilder getDeliveriesOrB
    *
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
-  boolean containsLoadDemands(
-      java.lang.String key);
-  /**
-   * Use {@link #getLoadDemandsMap()} instead.
-   */
+  boolean containsLoadDemands(java.lang.String key);
+  /** Use {@link #getLoadDemandsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLoadDemands();
+  java.util.Map getLoadDemands();
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -151,8 +185,10 @@ boolean containsLoadDemands(
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   java.util.Map
-  getLoadDemandsMap();
+      getLoadDemandsMap();
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -165,11 +201,13 @@ boolean containsLoadDemands(
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
   /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+  com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load defaultValue);
+      com.google.cloud.optimization.v1.Shipment.Load defaultValue);
   /**
+   *
+   *
    * 
    * Load demands of the shipment (for example weight, volume, number of
    * pallets etc). The keys in the map should be identifiers describing the type
@@ -181,10 +219,11 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
    *
    * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;
    */
-  com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
-      java.lang.String key);
+  com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * If the shipment is not completed, this penalty is added to the overall
    * cost of the routes. A shipment is considered completed if one of its pickup
@@ -197,10 +236,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * optional double penalty_cost = 4; + * * @return Whether the penaltyCost field is set. */ boolean hasPenaltyCost(); /** + * + * *
    * If the shipment is not completed, this penalty is added to the overall
    * cost of the routes. A shipment is considered completed if one of its pickup
@@ -213,11 +255,14 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * optional double penalty_cost = 4; + * * @return The penaltyCost. */ double getPenaltyCost(); /** + * + * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -225,10 +270,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @return A list containing the allowedVehicleIndices. */ java.util.List getAllowedVehicleIndicesList(); /** + * + * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -236,10 +284,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @return The count of allowedVehicleIndices. */ int getAllowedVehicleIndicesCount(); /** + * + * *
    * The set of vehicles that may perform this shipment. If empty, all vehicles
    * may perform it. Vehicles are given by their index in the `ShipmentModel`'s
@@ -247,12 +298,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated int32 allowed_vehicle_indices = 5; + * * @param index The index of the element to return. * @return The allowedVehicleIndices at the given index. */ int getAllowedVehicleIndices(int index); /** + * + * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -268,10 +322,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated double costs_per_vehicle = 6; + * * @return A list containing the costsPerVehicle. */ java.util.List getCostsPerVehicleList(); /** + * + * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -287,10 +344,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated double costs_per_vehicle = 6; + * * @return The count of costsPerVehicle. */ int getCostsPerVehicleCount(); /** + * + * *
    * Specifies the cost that is incurred when this shipment is delivered by each
    * vehicle. If specified, it must have EITHER:
@@ -306,12 +366,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated double costs_per_vehicle = 6; + * * @param index The index of the element to return. * @return The costsPerVehicle at the given index. */ double getCostsPerVehicle(int index); /** + * + * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -320,10 +383,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @return A list containing the costsPerVehicleIndices. */ java.util.List getCostsPerVehicleIndicesList(); /** + * + * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -332,10 +398,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @return The count of costsPerVehicleIndices. */ int getCostsPerVehicleIndicesCount(); /** + * + * *
    * Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty,
    * it must have the same number of elements as `costs_per_vehicle`. A vehicle
@@ -344,12 +413,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * repeated int32 costs_per_vehicle_indices = 7; + * * @param index The index of the element to return. * @return The costsPerVehicleIndices at the given index. */ int getCostsPerVehicleIndices(int index); /** + * + * *
    * Specifies the maximum relative detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -371,10 +443,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; + * * @return Whether the pickupToDeliveryRelativeDetourLimit field is set. */ boolean hasPickupToDeliveryRelativeDetourLimit(); /** + * + * *
    * Specifies the maximum relative detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -396,11 +471,14 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * optional double pickup_to_delivery_relative_detour_limit = 8; + * * @return The pickupToDeliveryRelativeDetourLimit. */ double getPickupToDeliveryRelativeDetourLimit(); /** + * + * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -422,10 +500,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; + * * @return Whether the pickupToDeliveryAbsoluteDetourLimit field is set. */ boolean hasPickupToDeliveryAbsoluteDetourLimit(); /** + * + * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -447,10 +528,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * .google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; + * * @return The pickupToDeliveryAbsoluteDetourLimit. */ com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit(); /** + * + * *
    * Specifies the maximum absolute detour time compared to the shortest path
    * from pickup to delivery. If specified, it must be nonnegative, and the
@@ -476,6 +560,8 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
   com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLimitOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -486,10 +572,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; + * * @return Whether the pickupToDeliveryTimeLimit field is set. */ boolean hasPickupToDeliveryTimeLimit(); /** + * + * *
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -500,10 +589,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * .google.protobuf.Duration pickup_to_delivery_time_limit = 10; + * * @return The pickupToDeliveryTimeLimit. */ com.google.protobuf.Duration getPickupToDeliveryTimeLimit(); /** + * + * *
    * Specifies the maximum duration from start of pickup to start of delivery of
    * a shipment. If specified, it must be nonnegative, and the shipment must
@@ -518,6 +610,8 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
   com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuilder();
 
   /**
+   *
+   *
    * 
    * Non-empty string specifying a "type" for this shipment.
    * This feature can be used to define incompatibilities or requirements
@@ -530,10 +624,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * string shipment_type = 11; + * * @return The shipmentType. */ java.lang.String getShipmentType(); /** + * + * *
    * Non-empty string specifying a "type" for this shipment.
    * This feature can be used to define incompatibilities or requirements
@@ -546,12 +643,14 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * string shipment_type = 11; + * * @return The bytes for shipmentType. */ - com.google.protobuf.ByteString - getShipmentTypeBytes(); + com.google.protobuf.ByteString getShipmentTypeBytes(); /** + * + * *
    * Specifies a label for this shipment. This label is reported in the response
    * in the `shipment_label` of the corresponding
@@ -559,10 +658,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * string label = 12; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
    * Specifies a label for this shipment. This label is reported in the response
    * in the `shipment_label` of the corresponding
@@ -570,12 +672,14 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * string label = 12; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
    * If true, skip this shipment, but don't apply a `penalty_cost`.
    *
@@ -589,61 +693,80 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
    * 
* * bool ignore = 13; + * * @return The ignore. */ boolean getIgnore(); /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getDemandsList(); + @java.lang.Deprecated + java.util.List getDemandsList(); /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated int getDemandsCount(); + @java.lang.Deprecated + int getDemandsCount(); /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getDemandsOrBuilderList(); /** + * + * *
    * Deprecated: Use
    * [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( - int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder(int index); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java similarity index 73% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java index 20f3c77c93fd..f0266777cb96 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRoute.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * A vehicle's route can be decomposed, along the time axis, like this (we
  * assume there are n visits):
@@ -93,15 +110,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute}
  */
-public final class ShipmentRoute extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ShipmentRoute extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute)
     ShipmentRouteOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ShipmentRoute.newBuilder() to construct.
   private ShipmentRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ShipmentRoute() {
     vehicleLabel_ = "";
     visits_ = java.util.Collections.emptyList();
@@ -113,59 +131,69 @@ private ShipmentRoute() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ShipmentRoute();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 17:
         return internalGetRouteCosts();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.ShipmentRoute.class, com.google.cloud.optimization.v1.ShipmentRoute.Builder.class);
+            com.google.cloud.optimization.v1.ShipmentRoute.class,
+            com.google.cloud.optimization.v1.ShipmentRoute.Builder.class);
   }
 
-  @java.lang.Deprecated public interface DelayOrBuilder extends
+  @java.lang.Deprecated
+  public interface DelayOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.Delay)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Start of the delay.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
      * Start of the delay.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
      * Start of the delay.
      * 
@@ -175,24 +203,32 @@ protected com.google.protobuf.MapField internalGetMapField( com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
      * Duration of the delay.
      * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
      * Duration of the delay.
      * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
      * Duration of the delay.
      * 
@@ -202,6 +238,8 @@ protected com.google.protobuf.MapField internalGetMapField( com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
@@ -211,46 +249,51 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Delay}
    */
-  @java.lang.Deprecated public static final class Delay extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  @java.lang.Deprecated
+  public static final class Delay extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.Delay)
       DelayOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Delay.newBuilder() to construct.
     private Delay(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private Delay() {
-    }
+
+    private Delay() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Delay();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.Delay.class, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.Delay.class,
+              com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder.class);
     }
 
     public static final int START_TIME_FIELD_NUMBER = 1;
     private com.google.protobuf.Timestamp startTime_;
     /**
+     *
+     *
      * 
      * Start of the delay.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -258,11 +301,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
      * Start of the delay.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -270,6 +316,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
      * Start of the delay.
      * 
@@ -284,11 +332,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** + * + * *
      * Duration of the delay.
      * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -296,11 +347,14 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
      * Duration of the delay.
      * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ @java.lang.Override @@ -308,6 +362,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
      * Duration of the delay.
      * 
@@ -320,6 +376,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,8 +388,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -349,12 +405,10 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -364,22 +418,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.Delay)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.Delay other = (com.google.cloud.optimization.v1.ShipmentRoute.Delay) obj; + com.google.cloud.optimization.v1.ShipmentRoute.Delay other = + (com.google.cloud.optimization.v1.ShipmentRoute.Delay) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -406,89 +459,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Delay parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Delay prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.Delay prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -498,6 +556,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
@@ -507,33 +567,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Delay}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.Delay)
         com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.Delay.class, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.Delay.class,
+                com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.Delay.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -552,9 +612,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor;
       }
 
       @java.lang.Override
@@ -573,8 +633,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Delay build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.Delay buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.Delay result = new com.google.cloud.optimization.v1.ShipmentRoute.Delay(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.ShipmentRoute.Delay result =
+            new com.google.cloud.optimization.v1.ShipmentRoute.Delay(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -582,14 +645,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Delay buildPartial() {
       private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Delay result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.startTime_ = startTimeBuilder_ == null
-              ? startTime_
-              : startTimeBuilder_.build();
+          result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.duration_ = durationBuilder_ == null
-              ? duration_
-              : durationBuilder_.build();
+          result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
         }
       }
 
@@ -597,38 +656,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Delay
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.Delay) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Delay)other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Delay) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -636,7 +698,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Delay other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance())
+          return this;
         if (other.hasStartTime()) {
           mergeStartTime(other.getStartTime());
         }
@@ -669,26 +732,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getStartTimeFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -698,38 +760,52 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.Timestamp startTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
+          startTimeBuilder_;
       /**
+       *
+       *
        * 
        * Start of the delay.
        * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Start of the delay.
        * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** + * + * *
        * Start of the delay.
        * 
@@ -750,14 +826,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Start of the delay.
        * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -768,6 +845,8 @@ public Builder setStartTime( return this; } /** + * + * *
        * Start of the delay.
        * 
@@ -776,9 +855,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -791,6 +870,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Start of the delay.
        * 
@@ -808,6 +889,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
        * Start of the delay.
        * 
@@ -820,6 +903,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Start of the delay.
        * 
@@ -830,11 +915,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; } } /** + * + * *
        * Start of the delay.
        * 
@@ -842,14 +930,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -857,24 +948,33 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
        * Duration of the delay.
        * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Duration of the delay.
        * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -885,6 +985,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
        * Duration of the delay.
        * 
@@ -905,14 +1007,15 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Duration of the delay.
        * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -923,6 +1026,8 @@ public Builder setDuration( return this; } /** + * + * *
        * Duration of the delay.
        * 
@@ -931,9 +1036,9 @@ public Builder setDuration( */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - duration_ != null && - duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -946,6 +1051,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Duration of the delay.
        * 
@@ -963,6 +1070,8 @@ public Builder clearDuration() { return this; } /** + * + * *
        * Duration of the delay.
        * 
@@ -975,6 +1084,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** + * + * *
        * Duration of the delay.
        * 
@@ -985,11 +1096,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
        * Duration of the delay.
        * 
@@ -997,18 +1109,22 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1021,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.Delay) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.Delay) private static final com.google.cloud.optimization.v1.ShipmentRoute.Delay DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.Delay(); } @@ -1035,27 +1151,28 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.Delay getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Delay parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Delay parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1070,47 +1187,58 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface VisitOrBuilder extends + public interface VisitOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.Visit) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Index of the `shipments` field in the source
      * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
      * 
* * int32 shipment_index = 1; + * * @return The shipmentIndex. */ int getShipmentIndex(); /** + * + * *
      * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
      * corresponds to a delivery.
      * 
* * bool is_pickup = 2; + * * @return The isPickup. */ boolean getIsPickup(); /** + * + * *
      * Index of `VisitRequest` in either the pickup or delivery field of the
      * `Shipment` (see `is_pickup`).
      * 
* * int32 visit_request_index = 3; + * * @return The visitRequestIndex. */ int getVisitRequestIndex(); /** + * + * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1118,10 +1246,13 @@ public interface VisitOrBuilder extends
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1129,10 +1260,13 @@ public interface VisitOrBuilder extends
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1144,6 +1278,8 @@ public interface VisitOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1152,10 +1288,13 @@ public interface VisitOrBuilder extends
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ int getLoadDemandsCount(); /** + * + * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1164,17 +1303,17 @@ public interface VisitOrBuilder extends
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; - */ - boolean containsLoadDemands( - java.lang.String key); - /** - * Use {@link #getLoadDemandsMap()} instead. + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ + boolean containsLoadDemands(java.lang.String key); + /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Deprecated java.util.Map - getLoadDemands(); + getLoadDemands(); /** + * + * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1183,11 +1322,14 @@ boolean containsLoadDemands(
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ java.util.Map - getLoadDemandsMap(); + getLoadDemandsMap(); /** + * + * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1196,14 +1338,17 @@ boolean containsLoadDemands(
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ /* nullable */ -com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( + com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.optimization.v1.Shipment.Load defaultValue); + com.google.cloud.optimization.v1.Shipment.Load defaultValue); /** + * + * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1212,12 +1357,14 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ - com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( - java.lang.String key); + com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(java.lang.String key); /** + * + * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1237,10 +1384,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * .google.protobuf.Duration detour = 6; + * * @return Whether the detour field is set. */ boolean hasDetour(); /** + * + * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1260,10 +1410,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * .google.protobuf.Duration detour = 6; + * * @return The detour. */ com.google.protobuf.Duration getDetour(); /** + * + * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1287,28 +1440,35 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
     com.google.protobuf.DurationOrBuilder getDetourOrBuilder();
 
     /**
+     *
+     *
      * 
      * Copy of the corresponding `Shipment.label`, if specified in the
      * `Shipment`.
      * 
* * string shipment_label = 7; + * * @return The shipmentLabel. */ java.lang.String getShipmentLabel(); /** + * + * *
      * Copy of the corresponding `Shipment.label`, if specified in the
      * `Shipment`.
      * 
* * string shipment_label = 7; + * * @return The bytes for shipmentLabel. */ - com.google.protobuf.ByteString - getShipmentLabelBytes(); + com.google.protobuf.ByteString getShipmentLabelBytes(); /** + * + * *
      * Copy of the corresponding
      * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -1316,10 +1476,13 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * string visit_label = 8; + * * @return The visitLabel. */ java.lang.String getVisitLabel(); /** + * + * *
      * Copy of the corresponding
      * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -1327,12 +1490,14 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * string visit_label = 8; + * * @return The bytes for visitLabel. */ - com.google.protobuf.ByteString - getVisitLabelBytes(); + com.google.protobuf.ByteString getVisitLabelBytes(); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1345,11 +1510,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getArrivalLoadsList(); + @java.lang.Deprecated + java.util.List getArrivalLoadsList(); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1362,10 +1531,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1378,10 +1552,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated int getArrivalLoadsCount(); + @java.lang.Deprecated + int getArrivalLoadsCount(); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1394,11 +1573,16 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getArrivalLoadsOrBuilderList(); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1411,119 +1595,164 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( - int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder(int index); /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return Whether the delayBeforeStart field is set. */ - @java.lang.Deprecated boolean hasDelayBeforeStart(); + @java.lang.Deprecated + boolean hasDelayBeforeStart(); /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return The delayBeforeStart. */ - @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart(); + @java.lang.Deprecated + com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart(); /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder(); + @java.lang.Deprecated + com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder(); /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getDemandsList(); + @java.lang.Deprecated + java.util.List getDemandsList(); /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index); /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated int getDemandsCount(); + @java.lang.Deprecated + int getDemandsCount(); /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getDemandsOrBuilderList(); /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( - int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder(int index); } /** - *
+   *
+   *
+   * 
    * A visit performed during a route. This visit corresponds to a pickup or a
    * delivery of a `Shipment`.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Visit} */ - public static final class Visit extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Visit extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.Visit) VisitOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Visit.newBuilder() to construct. private Visit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Visit() { shipmentLabel_ = ""; visitLabel_ = ""; @@ -1533,45 +1762,48 @@ private Visit() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Visit(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 11: return internalGetLoadDemands(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentRoute.Visit.class, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder.class); + com.google.cloud.optimization.v1.ShipmentRoute.Visit.class, + com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder.class); } public static final int SHIPMENT_INDEX_FIELD_NUMBER = 1; private int shipmentIndex_ = 0; /** + * + * *
      * Index of the `shipments` field in the source
      * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
      * 
* * int32 shipment_index = 1; + * * @return The shipmentIndex. */ @java.lang.Override @@ -1582,12 +1814,15 @@ public int getShipmentIndex() { public static final int IS_PICKUP_FIELD_NUMBER = 2; private boolean isPickup_ = false; /** + * + * *
      * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
      * corresponds to a delivery.
      * 
* * bool is_pickup = 2; + * * @return The isPickup. */ @java.lang.Override @@ -1598,12 +1833,15 @@ public boolean getIsPickup() { public static final int VISIT_REQUEST_INDEX_FIELD_NUMBER = 3; private int visitRequestIndex_ = 0; /** + * + * *
      * Index of `VisitRequest` in either the pickup or delivery field of the
      * `Shipment` (see `is_pickup`).
      * 
* * int32 visit_request_index = 3; + * * @return The visitRequestIndex. */ @java.lang.Override @@ -1614,6 +1852,8 @@ public int getVisitRequestIndex() { public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** + * + * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1621,6 +1861,7 @@ public int getVisitRequestIndex() {
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -1628,6 +1869,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1635,6 +1878,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ @java.lang.Override @@ -1642,6 +1886,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
      * Time at which the visit starts. Note that the vehicle may arrive earlier
      * than this at the visit location. Times are consistent with the
@@ -1656,32 +1902,43 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
     }
 
     public static final int LOAD_DEMANDS_FIELD_NUMBER = 11;
+
     private static final class LoadDemandsDefaultEntryHolder {
       static final com.google.protobuf.MapEntry<
-          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> defaultEntry =
+              java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+          defaultEntry =
               com.google.protobuf.MapEntry
-              .newDefaultInstance(
-                  com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor, 
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "",
-                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                  com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance());
+                  .
+                      newDefaultInstance(
+                          com.google.cloud.optimization.v1.FleetRoutingProto
+                              .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor,
+                          com.google.protobuf.WireFormat.FieldType.STRING,
+                          "",
+                          com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                          com.google.cloud.optimization.v1.Shipment.Load.getDefaultInstance());
     }
+
     @SuppressWarnings("serial")
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_;
-    private com.google.protobuf.MapField
-    internalGetLoadDemands() {
+            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+        loadDemands_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+        internalGetLoadDemands() {
       if (loadDemands_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             LoadDemandsDefaultEntryHolder.defaultEntry);
       }
       return loadDemands_;
     }
+
     public int getLoadDemandsCount() {
       return internalGetLoadDemands().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1690,23 +1947,26 @@ public int getLoadDemandsCount() {
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ @java.lang.Override - public boolean containsLoadDemands( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLoadDemands(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLoadDemands().getMap().containsKey(key); } - /** - * Use {@link #getLoadDemandsMap()} instead. - */ + /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getLoadDemands() { + public java.util.Map + getLoadDemands() { return getLoadDemandsMap(); } /** + * + * *
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1715,13 +1975,17 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
+     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
+     * 
      */
     @java.lang.Override
-    public java.util.Map getLoadDemandsMap() {
+    public java.util.Map
+        getLoadDemandsMap() {
       return internalGetLoadDemands().getMap();
     }
     /**
+     *
+     *
      * 
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1730,20 +1994,24 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
+     * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
+     * 
      */
     @java.lang.Override
-    public /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+    public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
         java.lang.String key,
         /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetLoadDemands().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Total visit load demand as the sum of the shipment and the visit request
      * `load_demands`. The values are negative if the visit is a delivery.
@@ -1752,12 +2020,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
      * (see this field).
      * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -1769,6 +2040,8 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( public static final int DETOUR_FIELD_NUMBER = 6; private com.google.protobuf.Duration detour_; /** + * + * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1788,6 +2061,7 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow(
      * 
* * .google.protobuf.Duration detour = 6; + * * @return Whether the detour field is set. */ @java.lang.Override @@ -1795,6 +2069,8 @@ public boolean hasDetour() { return detour_ != null; } /** + * + * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1814,6 +2090,7 @@ public boolean hasDetour() {
      * 
* * .google.protobuf.Duration detour = 6; + * * @return The detour. */ @java.lang.Override @@ -1821,6 +2098,8 @@ public com.google.protobuf.Duration getDetour() { return detour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : detour_; } /** + * + * *
      * Extra detour time due to the shipments visited on the route before the
      * visit and to the potential waiting time induced by time windows.
@@ -1847,15 +2126,19 @@ public com.google.protobuf.DurationOrBuilder getDetourOrBuilder() {
     }
 
     public static final int SHIPMENT_LABEL_FIELD_NUMBER = 7;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object shipmentLabel_ = "";
     /**
+     *
+     *
      * 
      * Copy of the corresponding `Shipment.label`, if specified in the
      * `Shipment`.
      * 
* * string shipment_label = 7; + * * @return The shipmentLabel. */ @java.lang.Override @@ -1864,30 +2147,30 @@ public java.lang.String getShipmentLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shipmentLabel_ = s; return s; } } /** + * + * *
      * Copy of the corresponding `Shipment.label`, if specified in the
      * `Shipment`.
      * 
* * string shipment_label = 7; + * * @return The bytes for shipmentLabel. */ @java.lang.Override - public com.google.protobuf.ByteString - getShipmentLabelBytes() { + public com.google.protobuf.ByteString getShipmentLabelBytes() { java.lang.Object ref = shipmentLabel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shipmentLabel_ = b; return b; } else { @@ -1896,9 +2179,12 @@ public java.lang.String getShipmentLabel() { } public static final int VISIT_LABEL_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object visitLabel_ = ""; /** + * + * *
      * Copy of the corresponding
      * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -1906,6 +2192,7 @@ public java.lang.String getShipmentLabel() {
      * 
* * string visit_label = 8; + * * @return The visitLabel. */ @java.lang.Override @@ -1914,14 +2201,15 @@ public java.lang.String getVisitLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); visitLabel_ = s; return s; } } /** + * + * *
      * Copy of the corresponding
      * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -1929,16 +2217,15 @@ public java.lang.String getVisitLabel() {
      * 
* * string visit_label = 8; + * * @return The bytes for visitLabel. */ @java.lang.Override - public com.google.protobuf.ByteString - getVisitLabelBytes() { + public com.google.protobuf.ByteString getVisitLabelBytes() { java.lang.Object ref = visitLabel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); visitLabel_ = b; return b; } else { @@ -1947,9 +2234,12 @@ public java.lang.String getVisitLabel() { } public static final int ARRIVAL_LOADS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List arrivalLoads_; /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1962,13 +2252,18 @@ public java.lang.String getVisitLabel() {
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getArrivalLoadsList() { + @java.lang.Deprecated + public java.util.List getArrivalLoadsList() { return arrivalLoads_; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -1981,14 +2276,19 @@ public java.lang.String getVisitLabel() {
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getArrivalLoadsOrBuilderList() { return arrivalLoads_; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -2001,13 +2301,18 @@ public java.lang.String getVisitLabel() {
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getArrivalLoadsCount() { + @java.lang.Deprecated + public int getArrivalLoadsCount() { return arrivalLoads_.size(); } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -2020,13 +2325,18 @@ public java.lang.String getVisitLabel() {
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index) { return arrivalLoads_.get(index); } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -2039,10 +2349,13 @@ public java.lang.String getVisitLabel() {
      * and that don't have any non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( int index) { return arrivalLoads_.get(index); } @@ -2050,123 +2363,172 @@ public java.lang.String getVisitLabel() { public static final int DELAY_BEFORE_START_FIELD_NUMBER = 10; private com.google.cloud.optimization.v1.ShipmentRoute.Delay delayBeforeStart_; /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return Whether the delayBeforeStart field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasDelayBeforeStart() { + @java.lang.Deprecated + public boolean hasDelayBeforeStart() { return delayBeforeStart_ != null; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return The delayBeforeStart. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart() { - return delayBeforeStart_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeStart_; + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart() { + return delayBeforeStart_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() + : delayBeforeStart_; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
      * instead. Delay occurring before the visit starts.
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder() { - return delayBeforeStart_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeStart_; + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder + getDelayBeforeStartOrBuilder() { + return delayBeforeStart_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() + : delayBeforeStart_; } public static final int DEMANDS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List demands_; /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getDemandsList() { + @java.lang.Deprecated + public java.util.List getDemandsList() { return demands_; } /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getDemandsOrBuilderList() { return demands_; } /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getDemandsCount() { + @java.lang.Deprecated + public int getDemandsCount() { return demands_.size(); } /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { return demands_.get(index); } /** + * + * *
      * Deprecated: Use
      * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { return demands_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2178,8 +2540,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (shipmentIndex_ != 0) { output.writeInt32(1, shipmentIndex_); } @@ -2210,12 +2571,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (delayBeforeStart_ != null) { output.writeMessage(10, getDelayBeforeStart()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLoadDemands(), - LoadDemandsDefaultEntryHolder.defaultEntry, - 11); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLoadDemands(), LoadDemandsDefaultEntryHolder.defaultEntry, 11); getUnknownFields().writeTo(output); } @@ -2226,28 +2583,22 @@ public int getSerializedSize() { size = 0; if (shipmentIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, shipmentIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, shipmentIndex_); } if (isPickup_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isPickup_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isPickup_); } if (visitRequestIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, visitRequestIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, visitRequestIndex_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } for (int i = 0; i < demands_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, demands_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, demands_.get(i)); } if (detour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDetour()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDetour()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shipmentLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, shipmentLabel_); @@ -2256,22 +2607,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, visitLabel_); } for (int i = 0; i < arrivalLoads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, arrivalLoads_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, arrivalLoads_.get(i)); } if (delayBeforeStart_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getDelayBeforeStart()); - } - for (java.util.Map.Entry entry - : internalGetLoadDemands().getMap().entrySet()) { - com.google.protobuf.MapEntry - loadDemands__ = LoadDemandsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, loadDemands__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDelayBeforeStart()); + } + for (java.util.Map.Entry + entry : internalGetLoadDemands().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> + loadDemands__ = + LoadDemandsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, loadDemands__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2281,44 +2632,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.Visit)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.Visit other = (com.google.cloud.optimization.v1.ShipmentRoute.Visit) obj; + com.google.cloud.optimization.v1.ShipmentRoute.Visit other = + (com.google.cloud.optimization.v1.ShipmentRoute.Visit) obj; - if (getShipmentIndex() - != other.getShipmentIndex()) return false; - if (getIsPickup() - != other.getIsPickup()) return false; - if (getVisitRequestIndex() - != other.getVisitRequestIndex()) return false; + if (getShipmentIndex() != other.getShipmentIndex()) return false; + if (getIsPickup() != other.getIsPickup()) return false; + if (getVisitRequestIndex() != other.getVisitRequestIndex()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } - if (!internalGetLoadDemands().equals( - other.internalGetLoadDemands())) return false; + if (!internalGetLoadDemands().equals(other.internalGetLoadDemands())) return false; if (hasDetour() != other.hasDetour()) return false; if (hasDetour()) { - if (!getDetour() - .equals(other.getDetour())) return false; - } - if (!getShipmentLabel() - .equals(other.getShipmentLabel())) return false; - if (!getVisitLabel() - .equals(other.getVisitLabel())) return false; - if (!getArrivalLoadsList() - .equals(other.getArrivalLoadsList())) return false; + if (!getDetour().equals(other.getDetour())) return false; + } + if (!getShipmentLabel().equals(other.getShipmentLabel())) return false; + if (!getVisitLabel().equals(other.getVisitLabel())) return false; + if (!getArrivalLoadsList().equals(other.getArrivalLoadsList())) return false; if (hasDelayBeforeStart() != other.hasDelayBeforeStart()) return false; if (hasDelayBeforeStart()) { - if (!getDelayBeforeStart() - .equals(other.getDelayBeforeStart())) return false; + if (!getDelayBeforeStart().equals(other.getDelayBeforeStart())) return false; } - if (!getDemandsList() - .equals(other.getDemandsList())) return false; + if (!getDemandsList().equals(other.getDemandsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2333,8 +2674,7 @@ public int hashCode() { hash = (37 * hash) + SHIPMENT_INDEX_FIELD_NUMBER; hash = (53 * hash) + getShipmentIndex(); hash = (37 * hash) + IS_PICKUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPickup()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPickup()); hash = (37 * hash) + VISIT_REQUEST_INDEX_FIELD_NUMBER; hash = (53 * hash) + getVisitRequestIndex(); if (hasStartTime()) { @@ -2371,89 +2711,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Visit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Visit prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.Visit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2463,6 +2808,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A visit performed during a route. This visit corresponds to a pickup or a
      * delivery of a `Shipment`.
@@ -2470,55 +2817,53 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Visit}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.Visit)
         com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 11:
             return internalGetLoadDemands();
           default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
+            throw new RuntimeException("Invalid map field number: " + number);
         }
       }
+
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         switch (number) {
           case 11:
             return internalGetMutableLoadDemands();
           default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
+            throw new RuntimeException("Invalid map field number: " + number);
         }
       }
+
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.Visit.class, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.Visit.class,
+                com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.Visit.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2562,9 +2907,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor;
       }
 
       @java.lang.Override
@@ -2583,14 +2928,18 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.Visit buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.Visit result = new com.google.cloud.optimization.v1.ShipmentRoute.Visit(this);
+        com.google.cloud.optimization.v1.ShipmentRoute.Visit result =
+            new com.google.cloud.optimization.v1.ShipmentRoute.Visit(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentRoute.Visit result) {
+      private void buildPartialRepeatedFields(
+          com.google.cloud.optimization.v1.ShipmentRoute.Visit result) {
         if (arrivalLoadsBuilder_ == null) {
           if (((bitField0_ & 0x00000100) != 0)) {
             arrivalLoads_ = java.util.Collections.unmodifiableList(arrivalLoads_);
@@ -2623,18 +2972,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Visit
           result.visitRequestIndex_ = visitRequestIndex_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.startTime_ = startTimeBuilder_ == null
-              ? startTime_
-              : startTimeBuilder_.build();
+          result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
           result.loadDemands_ = internalGetLoadDemands();
           result.loadDemands_.makeImmutable();
         }
         if (((from_bitField0_ & 0x00000020) != 0)) {
-          result.detour_ = detourBuilder_ == null
-              ? detour_
-              : detourBuilder_.build();
+          result.detour_ = detourBuilder_ == null ? detour_ : detourBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
           result.shipmentLabel_ = shipmentLabel_;
@@ -2643,9 +2988,10 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Visit
           result.visitLabel_ = visitLabel_;
         }
         if (((from_bitField0_ & 0x00000200) != 0)) {
-          result.delayBeforeStart_ = delayBeforeStartBuilder_ == null
-              ? delayBeforeStart_
-              : delayBeforeStartBuilder_.build();
+          result.delayBeforeStart_ =
+              delayBeforeStartBuilder_ == null
+                  ? delayBeforeStart_
+                  : delayBeforeStartBuilder_.build();
         }
       }
 
@@ -2653,38 +2999,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Visit
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.Visit) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Visit)other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Visit) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2692,7 +3041,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Visit other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance())
+          return this;
         if (other.getShipmentIndex() != 0) {
           setShipmentIndex(other.getShipmentIndex());
         }
@@ -2705,8 +3055,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Visit ot
         if (other.hasStartTime()) {
           mergeStartTime(other.getStartTime());
         }
-        internalGetMutableLoadDemands().mergeFrom(
-            other.internalGetLoadDemands());
+        internalGetMutableLoadDemands().mergeFrom(other.internalGetLoadDemands());
         bitField0_ |= 0x00000010;
         if (other.hasDetour()) {
           mergeDetour(other.getDetour());
@@ -2739,9 +3088,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Visit ot
               arrivalLoadsBuilder_ = null;
               arrivalLoads_ = other.arrivalLoads_;
               bitField0_ = (bitField0_ & ~0x00000100);
-              arrivalLoadsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getArrivalLoadsFieldBuilder() : null;
+              arrivalLoadsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getArrivalLoadsFieldBuilder()
+                      : null;
             } else {
               arrivalLoadsBuilder_.addAllMessages(other.arrivalLoads_);
             }
@@ -2768,9 +3118,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Visit ot
               demandsBuilder_ = null;
               demands_ = other.demands_;
               bitField0_ = (bitField0_ & ~0x00000400);
-              demandsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getDemandsFieldBuilder() : null;
+              demandsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getDemandsFieldBuilder()
+                      : null;
             } else {
               demandsBuilder_.addAllMessages(other.demands_);
             }
@@ -2802,93 +3153,104 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                shipmentIndex_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              case 16: {
-                isPickup_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-              case 24: {
-                visitRequestIndex_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-              case 34: {
-                input.readMessage(
-                    getStartTimeFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              case 42: {
-                com.google.cloud.optimization.v1.CapacityQuantity m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                        extensionRegistry);
-                if (demandsBuilder_ == null) {
-                  ensureDemandsIsMutable();
-                  demands_.add(m);
-                } else {
-                  demandsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-              case 50: {
-                input.readMessage(
-                    getDetourFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-              case 58: {
-                shipmentLabel_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-              case 66: {
-                visitLabel_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-              case 74: {
-                com.google.cloud.optimization.v1.CapacityQuantity m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                        extensionRegistry);
-                if (arrivalLoadsBuilder_ == null) {
-                  ensureArrivalLoadsIsMutable();
-                  arrivalLoads_.add(m);
-                } else {
-                  arrivalLoadsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 74
-              case 82: {
-                input.readMessage(
-                    getDelayBeforeStartFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-              case 90: {
-                com.google.protobuf.MapEntry
-                loadDemands__ = input.readMessage(
-                    LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-                internalGetMutableLoadDemands().getMutableMap().put(
-                    loadDemands__.getKey(), loadDemands__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 90
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  shipmentIndex_ = input.readInt32();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              case 16:
+                {
+                  isPickup_ = input.readBool();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 16
+              case 24:
+                {
+                  visitRequestIndex_ = input.readInt32();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 24
+              case 34:
+                {
+                  input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              case 42:
+                {
+                  com.google.cloud.optimization.v1.CapacityQuantity m =
+                      input.readMessage(
+                          com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                          extensionRegistry);
+                  if (demandsBuilder_ == null) {
+                    ensureDemandsIsMutable();
+                    demands_.add(m);
+                  } else {
+                    demandsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 42
+              case 50:
+                {
+                  input.readMessage(getDetourFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000020;
+                  break;
+                } // case 50
+              case 58:
+                {
+                  shipmentLabel_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000040;
+                  break;
+                } // case 58
+              case 66:
+                {
+                  visitLabel_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000080;
+                  break;
+                } // case 66
+              case 74:
+                {
+                  com.google.cloud.optimization.v1.CapacityQuantity m =
+                      input.readMessage(
+                          com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                          extensionRegistry);
+                  if (arrivalLoadsBuilder_ == null) {
+                    ensureArrivalLoadsIsMutable();
+                    arrivalLoads_.add(m);
+                  } else {
+                    arrivalLoadsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 74
+              case 82:
+                {
+                  input.readMessage(
+                      getDelayBeforeStartFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000200;
+                  break;
+                } // case 82
+              case 90:
+                {
+                  com.google.protobuf.MapEntry<
+                          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+                      loadDemands__ =
+                          input.readMessage(
+                              LoadDemandsDefaultEntryHolder.defaultEntry.getParserForType(),
+                              extensionRegistry);
+                  internalGetMutableLoadDemands()
+                      .getMutableMap()
+                      .put(loadDemands__.getKey(), loadDemands__.getValue());
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 90
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2898,16 +3260,20 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private int shipmentIndex_ ;
+      private int shipmentIndex_;
       /**
+       *
+       *
        * 
        * Index of the `shipments` field in the source
        * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
        * 
* * int32 shipment_index = 1; + * * @return The shipmentIndex. */ @java.lang.Override @@ -2915,12 +3281,15 @@ public int getShipmentIndex() { return shipmentIndex_; } /** + * + * *
        * Index of the `shipments` field in the source
        * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
        * 
* * int32 shipment_index = 1; + * * @param value The shipmentIndex to set. * @return This builder for chaining. */ @@ -2932,12 +3301,15 @@ public Builder setShipmentIndex(int value) { return this; } /** + * + * *
        * Index of the `shipments` field in the source
        * [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
        * 
* * int32 shipment_index = 1; + * * @return This builder for chaining. */ public Builder clearShipmentIndex() { @@ -2947,14 +3319,17 @@ public Builder clearShipmentIndex() { return this; } - private boolean isPickup_ ; + private boolean isPickup_; /** + * + * *
        * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
        * corresponds to a delivery.
        * 
* * bool is_pickup = 2; + * * @return The isPickup. */ @java.lang.Override @@ -2962,12 +3337,15 @@ public boolean getIsPickup() { return isPickup_; } /** + * + * *
        * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
        * corresponds to a delivery.
        * 
* * bool is_pickup = 2; + * * @param value The isPickup to set. * @return This builder for chaining. */ @@ -2979,12 +3357,15 @@ public Builder setIsPickup(boolean value) { return this; } /** + * + * *
        * If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it
        * corresponds to a delivery.
        * 
* * bool is_pickup = 2; + * * @return This builder for chaining. */ public Builder clearIsPickup() { @@ -2994,14 +3375,17 @@ public Builder clearIsPickup() { return this; } - private int visitRequestIndex_ ; + private int visitRequestIndex_; /** + * + * *
        * Index of `VisitRequest` in either the pickup or delivery field of the
        * `Shipment` (see `is_pickup`).
        * 
* * int32 visit_request_index = 3; + * * @return The visitRequestIndex. */ @java.lang.Override @@ -3009,12 +3393,15 @@ public int getVisitRequestIndex() { return visitRequestIndex_; } /** + * + * *
        * Index of `VisitRequest` in either the pickup or delivery field of the
        * `Shipment` (see `is_pickup`).
        * 
* * int32 visit_request_index = 3; + * * @param value The visitRequestIndex to set. * @return This builder for chaining. */ @@ -3026,12 +3413,15 @@ public Builder setVisitRequestIndex(int value) { return this; } /** + * + * *
        * Index of `VisitRequest` in either the pickup or delivery field of the
        * `Shipment` (see `is_pickup`).
        * 
* * int32 visit_request_index = 3; + * * @return This builder for chaining. */ public Builder clearVisitRequestIndex() { @@ -3043,8 +3433,13 @@ public Builder clearVisitRequestIndex() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3052,12 +3447,15 @@ public Builder clearVisitRequestIndex() {
        * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3065,16 +3463,21 @@ public boolean hasStartTime() {
        * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** + * + * *
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3097,6 +3500,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3105,8 +3510,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp start_time = 4;
        */
-      public Builder setStartTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (startTimeBuilder_ == null) {
           startTime_ = builderForValue.build();
         } else {
@@ -3117,6 +3521,8 @@ public Builder setStartTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3127,9 +3533,9 @@ public Builder setStartTime(
        */
       public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
         if (startTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0) &&
-            startTime_ != null &&
-            startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0)
+              && startTime_ != null
+              && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getStartTimeBuilder().mergeFrom(value);
           } else {
             startTime_ = value;
@@ -3142,6 +3548,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3161,6 +3569,8 @@ public Builder clearStartTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3175,6 +3585,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
         return getStartTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3187,11 +3599,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
         if (startTimeBuilder_ != null) {
           return startTimeBuilder_.getMessageOrBuilder();
         } else {
-          return startTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+          return startTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : startTime_;
         }
       }
       /**
+       *
+       *
        * 
        * Time at which the visit starts. Note that the vehicle may arrive earlier
        * than this at the visit location. Times are consistent with the
@@ -3201,22 +3616,28 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
        * .google.protobuf.Timestamp start_time = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getStartTimeFieldBuilder() {
         if (startTimeBuilder_ == null) {
-          startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getStartTime(),
-                  getParentForChildren(),
-                  isClean());
+          startTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getStartTime(), getParentForChildren(), isClean());
           startTime_ = null;
         }
         return startTimeBuilder_;
       }
 
       private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.optimization.v1.Shipment.Load> loadDemands_;
-      private com.google.protobuf.MapField
+              java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
+          loadDemands_;
+
+      private com.google.protobuf.MapField<
+              java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
           internalGetLoadDemands() {
         if (loadDemands_ == null) {
           return com.google.protobuf.MapField.emptyMapField(
@@ -3224,11 +3645,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
         }
         return loadDemands_;
       }
-      private com.google.protobuf.MapField
+
+      private com.google.protobuf.MapField<
+              java.lang.String, com.google.cloud.optimization.v1.Shipment.Load>
           internalGetMutableLoadDemands() {
         if (loadDemands_ == null) {
-          loadDemands_ = com.google.protobuf.MapField.newMapField(
-              LoadDemandsDefaultEntryHolder.defaultEntry);
+          loadDemands_ =
+              com.google.protobuf.MapField.newMapField(LoadDemandsDefaultEntryHolder.defaultEntry);
         }
         if (!loadDemands_.isMutable()) {
           loadDemands_ = loadDemands_.copy();
@@ -3237,10 +3660,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
         onChanged();
         return loadDemands_;
       }
+
       public int getLoadDemandsCount() {
         return internalGetLoadDemands().getMap().size();
       }
       /**
+       *
+       *
        * 
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3249,23 +3675,26 @@ public int getLoadDemandsCount() {
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ @java.lang.Override - public boolean containsLoadDemands( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLoadDemands(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLoadDemands().getMap().containsKey(key); } - /** - * Use {@link #getLoadDemandsMap()} instead. - */ + /** Use {@link #getLoadDemandsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getLoadDemands() { + public java.util.Map + getLoadDemands() { return getLoadDemandsMap(); } /** + * + * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3274,13 +3703,17 @@ public java.util.Map
        *
-       * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
+       * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
+       * 
        */
       @java.lang.Override
-      public java.util.Map getLoadDemandsMap() {
+      public java.util.Map
+          getLoadDemandsMap() {
         return internalGetLoadDemands().getMap();
       }
       /**
+       *
+       *
        * 
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3289,20 +3722,24 @@ public java.util.Map
        *
-       * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
+       * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
+       * 
        */
       @java.lang.Override
-      public /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
+      public /* nullable */ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
           java.lang.String key,
           /* nullable */
-com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
+          com.google.cloud.optimization.v1.Shipment.Load defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         java.util.Map map =
             internalGetLoadDemands().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3311,12 +3748,15 @@ com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrDefault(
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ @java.lang.Override public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLoadDemands().getMap(); if (!map.containsKey(key)) { @@ -3324,13 +3764,15 @@ public com.google.cloud.optimization.v1.Shipment.Load getLoadDemandsOrThrow( } return map.get(key); } + public Builder clearLoadDemands() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableLoadDemands().getMutableMap() - .clear(); + internalGetMutableLoadDemands().getMutableMap().clear(); return this; } /** + * + * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3339,18 +3781,17 @@ public Builder clearLoadDemands() {
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ - public Builder removeLoadDemands( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLoadDemands().getMutableMap() - .remove(key); + public Builder removeLoadDemands(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLoadDemands().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLoadDemands() { @@ -3358,6 +3799,8 @@ public Builder removeLoadDemands( return internalGetMutableLoadDemands().getMutableMap(); } /** + * + * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3366,19 +3809,24 @@ public Builder removeLoadDemands(
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ public Builder putLoadDemands( - java.lang.String key, - com.google.cloud.optimization.v1.Shipment.Load value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLoadDemands().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.optimization.v1.Shipment.Load value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLoadDemands().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
        * Total visit load demand as the sum of the shipment and the visit request
        * `load_demands`. The values are negative if the visit is a delivery.
@@ -3387,20 +3835,25 @@ public Builder putLoadDemands(
        * (see this field).
        * 
* - * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11; + * */ public Builder putAllLoadDemands( java.util.Map values) { - internalGetMutableLoadDemands().getMutableMap() - .putAll(values); + internalGetMutableLoadDemands().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } private com.google.protobuf.Duration detour_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> detourBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + detourBuilder_; /** + * + * *
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3420,12 +3873,15 @@ public Builder putAllLoadDemands(
        * 
* * .google.protobuf.Duration detour = 6; + * * @return Whether the detour field is set. */ public boolean hasDetour() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3445,6 +3901,7 @@ public boolean hasDetour() {
        * 
* * .google.protobuf.Duration detour = 6; + * * @return The detour. */ public com.google.protobuf.Duration getDetour() { @@ -3455,6 +3912,8 @@ public com.google.protobuf.Duration getDetour() { } } /** + * + * *
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3489,6 +3948,8 @@ public Builder setDetour(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3509,8 +3970,7 @@ public Builder setDetour(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration detour = 6;
        */
-      public Builder setDetour(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setDetour(com.google.protobuf.Duration.Builder builderForValue) {
         if (detourBuilder_ == null) {
           detour_ = builderForValue.build();
         } else {
@@ -3521,6 +3981,8 @@ public Builder setDetour(
         return this;
       }
       /**
+       *
+       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3543,9 +4005,9 @@ public Builder setDetour(
        */
       public Builder mergeDetour(com.google.protobuf.Duration value) {
         if (detourBuilder_ == null) {
-          if (((bitField0_ & 0x00000020) != 0) &&
-            detour_ != null &&
-            detour_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000020) != 0)
+              && detour_ != null
+              && detour_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getDetourBuilder().mergeFrom(value);
           } else {
             detour_ = value;
@@ -3558,6 +4020,8 @@ public Builder mergeDetour(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3589,6 +4053,8 @@ public Builder clearDetour() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3615,6 +4081,8 @@ public com.google.protobuf.Duration.Builder getDetourBuilder() {
         return getDetourFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3639,11 +4107,12 @@ public com.google.protobuf.DurationOrBuilder getDetourOrBuilder() {
         if (detourBuilder_ != null) {
           return detourBuilder_.getMessageOrBuilder();
         } else {
-          return detour_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : detour_;
+          return detour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : detour_;
         }
       }
       /**
+       *
+       *
        * 
        * Extra detour time due to the shipments visited on the route before the
        * visit and to the potential waiting time induced by time windows.
@@ -3665,14 +4134,17 @@ public com.google.protobuf.DurationOrBuilder getDetourOrBuilder() {
        * .google.protobuf.Duration detour = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getDetourFieldBuilder() {
         if (detourBuilder_ == null) {
-          detourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getDetour(),
-                  getParentForChildren(),
-                  isClean());
+          detourBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getDetour(), getParentForChildren(), isClean());
           detour_ = null;
         }
         return detourBuilder_;
@@ -3680,19 +4152,21 @@ public com.google.protobuf.DurationOrBuilder getDetourOrBuilder() {
 
       private java.lang.Object shipmentLabel_ = "";
       /**
+       *
+       *
        * 
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; + * * @return The shipmentLabel. */ public java.lang.String getShipmentLabel() { java.lang.Object ref = shipmentLabel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shipmentLabel_ = s; return s; @@ -3701,21 +4175,22 @@ public java.lang.String getShipmentLabel() { } } /** + * + * *
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; + * * @return The bytes for shipmentLabel. */ - public com.google.protobuf.ByteString - getShipmentLabelBytes() { + public com.google.protobuf.ByteString getShipmentLabelBytes() { java.lang.Object ref = shipmentLabel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shipmentLabel_ = b; return b; } else { @@ -3723,30 +4198,37 @@ public java.lang.String getShipmentLabel() { } } /** + * + * *
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; + * * @param value The shipmentLabel to set. * @return This builder for chaining. */ - public Builder setShipmentLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setShipmentLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } shipmentLabel_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; + * * @return This builder for chaining. */ public Builder clearShipmentLabel() { @@ -3756,18 +4238,22 @@ public Builder clearShipmentLabel() { return this; } /** + * + * *
        * Copy of the corresponding `Shipment.label`, if specified in the
        * `Shipment`.
        * 
* * string shipment_label = 7; + * * @param value The bytes for shipmentLabel to set. * @return This builder for chaining. */ - public Builder setShipmentLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setShipmentLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); shipmentLabel_ = value; bitField0_ |= 0x00000040; @@ -3777,6 +4263,8 @@ public Builder setShipmentLabelBytes( private java.lang.Object visitLabel_ = ""; /** + * + * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -3784,13 +4272,13 @@ public Builder setShipmentLabelBytes(
        * 
* * string visit_label = 8; + * * @return The visitLabel. */ public java.lang.String getVisitLabel() { java.lang.Object ref = visitLabel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); visitLabel_ = s; return s; @@ -3799,6 +4287,8 @@ public java.lang.String getVisitLabel() { } } /** + * + * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -3806,15 +4296,14 @@ public java.lang.String getVisitLabel() {
        * 
* * string visit_label = 8; + * * @return The bytes for visitLabel. */ - public com.google.protobuf.ByteString - getVisitLabelBytes() { + public com.google.protobuf.ByteString getVisitLabelBytes() { java.lang.Object ref = visitLabel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); visitLabel_ = b; return b; } else { @@ -3822,6 +4311,8 @@ public java.lang.String getVisitLabel() { } } /** + * + * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -3829,18 +4320,22 @@ public java.lang.String getVisitLabel() {
        * 
* * string visit_label = 8; + * * @param value The visitLabel to set. * @return This builder for chaining. */ - public Builder setVisitLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVisitLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } visitLabel_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -3848,6 +4343,7 @@ public Builder setVisitLabel(
        * 
* * string visit_label = 8; + * * @return This builder for chaining. */ public Builder clearVisitLabel() { @@ -3857,6 +4353,8 @@ public Builder clearVisitLabel() { return this; } /** + * + * *
        * Copy of the corresponding
        * [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label],
@@ -3864,12 +4362,14 @@ public Builder clearVisitLabel() {
        * 
* * string visit_label = 8; + * * @param value The bytes for visitLabel to set. * @return This builder for chaining. */ - public Builder setVisitLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVisitLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); visitLabel_ = value; bitField0_ |= 0x00000080; @@ -3878,18 +4378,26 @@ public Builder setVisitLabelBytes( } private java.util.List arrivalLoads_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureArrivalLoadsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - arrivalLoads_ = new java.util.ArrayList(arrivalLoads_); + arrivalLoads_ = + new java.util.ArrayList( + arrivalLoads_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> arrivalLoadsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + arrivalLoadsBuilder_; /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -3902,9 +4410,13 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getArrivalLoadsList() { + @java.lang.Deprecated + public java.util.List + getArrivalLoadsList() { if (arrivalLoadsBuilder_ == null) { return java.util.Collections.unmodifiableList(arrivalLoads_); } else { @@ -3912,6 +4424,8 @@ private void ensureArrivalLoadsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -3924,9 +4438,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public int getArrivalLoadsCount() { + @java.lang.Deprecated + public int getArrivalLoadsCount() { if (arrivalLoadsBuilder_ == null) { return arrivalLoads_.size(); } else { @@ -3934,6 +4451,8 @@ private void ensureArrivalLoadsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -3946,9 +4465,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getArrivalLoads(int index) { if (arrivalLoadsBuilder_ == null) { return arrivalLoads_.get(index); } else { @@ -3956,6 +4478,8 @@ private void ensureArrivalLoadsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -3968,9 +4492,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setArrivalLoads( + @java.lang.Deprecated + public Builder setArrivalLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (arrivalLoadsBuilder_ == null) { if (value == null) { @@ -3985,6 +4512,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -3997,9 +4526,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setArrivalLoads( + @java.lang.Deprecated + public Builder setArrivalLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); @@ -4011,6 +4543,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4023,9 +4557,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addArrivalLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addArrivalLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { if (arrivalLoadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4039,6 +4576,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4051,9 +4590,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addArrivalLoads( + @java.lang.Deprecated + public Builder addArrivalLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (arrivalLoadsBuilder_ == null) { if (value == null) { @@ -4068,6 +4610,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4080,9 +4624,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addArrivalLoads( + @java.lang.Deprecated + public Builder addArrivalLoads( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); @@ -4094,6 +4641,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4106,9 +4655,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addArrivalLoads( + @java.lang.Deprecated + public Builder addArrivalLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); @@ -4120,6 +4672,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4132,14 +4686,16 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllArrivalLoads( + @java.lang.Deprecated + public Builder addAllArrivalLoads( java.lang.Iterable values) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, arrivalLoads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, arrivalLoads_); onChanged(); } else { arrivalLoadsBuilder_.addAllMessages(values); @@ -4147,6 +4703,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4159,9 +4717,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearArrivalLoads() { + @java.lang.Deprecated + public Builder clearArrivalLoads() { if (arrivalLoadsBuilder_ == null) { arrivalLoads_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); @@ -4172,6 +4733,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4184,9 +4747,12 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeArrivalLoads(int index) { + @java.lang.Deprecated + public Builder removeArrivalLoads(int index) { if (arrivalLoadsBuilder_ == null) { ensureArrivalLoadsIsMutable(); arrivalLoads_.remove(index); @@ -4197,6 +4763,8 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4209,13 +4777,18 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getArrivalLoadsBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder getArrivalLoadsBuilder( int index) { return getArrivalLoadsFieldBuilder().getBuilder(index); } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4228,16 +4801,22 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getArrivalLoadsOrBuilder( int index) { if (arrivalLoadsBuilder_ == null) { - return arrivalLoads_.get(index); } else { + return arrivalLoads_.get(index); + } else { return arrivalLoadsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4250,10 +4829,13 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getArrivalLoadsOrBuilderList() { + @java.lang.Deprecated + public java.util.List + getArrivalLoadsOrBuilderList() { if (arrivalLoadsBuilder_ != null) { return arrivalLoadsBuilder_.getMessageOrBuilderList(); } else { @@ -4261,6 +4843,8 @@ private void ensureArrivalLoadsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4273,13 +4857,18 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoadsBuilder() { - return getArrivalLoadsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoadsBuilder() { + return getArrivalLoadsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4292,14 +4881,20 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoadsBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addArrivalLoadsBuilder( int index) { - return getArrivalLoadsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + return getArrivalLoadsFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -4312,18 +4907,27 @@ private void ensureArrivalLoadsIsMutable() {
        * and that don't have any non-zero demand on the route.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getArrivalLoadsBuilderList() { + @java.lang.Deprecated + public java.util.List + getArrivalLoadsBuilderList() { return getArrivalLoadsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getArrivalLoadsFieldBuilder() { if (arrivalLoadsBuilder_ == null) { - arrivalLoadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + arrivalLoadsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( arrivalLoads_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -4335,51 +4939,74 @@ private void ensureArrivalLoadsIsMutable() { private com.google.cloud.optimization.v1.ShipmentRoute.Delay delayBeforeStart_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> delayBeforeStartBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.Delay, + com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> + delayBeforeStartBuilder_; /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return Whether the delayBeforeStart field is set. */ - @java.lang.Deprecated public boolean hasDelayBeforeStart() { + @java.lang.Deprecated + public boolean hasDelayBeforeStart() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1965 + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1965 * @return The delayBeforeStart. */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart() { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeStart() { if (delayBeforeStartBuilder_ == null) { - return delayBeforeStart_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeStart_; + return delayBeforeStart_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() + : delayBeforeStart_; } else { return delayBeforeStartBuilder_.getMessage(); } } /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDelayBeforeStart(com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { + @java.lang.Deprecated + public Builder setDelayBeforeStart( + com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { if (delayBeforeStartBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4393,15 +5020,20 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDelayBeforeStart( + @java.lang.Deprecated + public Builder setDelayBeforeStart( com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder builderForValue) { if (delayBeforeStartBuilder_ == null) { delayBeforeStart_ = builderForValue.build(); @@ -4413,19 +5045,26 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder mergeDelayBeforeStart(com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { + @java.lang.Deprecated + public Builder mergeDelayBeforeStart( + com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { if (delayBeforeStartBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - delayBeforeStart_ != null && - delayBeforeStart_ != com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && delayBeforeStart_ != null + && delayBeforeStart_ + != com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) { getDelayBeforeStartBuilder().mergeFrom(value); } else { delayBeforeStart_ = value; @@ -4438,15 +5077,20 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearDelayBeforeStart() { + @java.lang.Deprecated + public Builder clearDelayBeforeStart() { bitField0_ = (bitField0_ & ~0x00000200); delayBeforeStart_ = null; if (delayBeforeStartBuilder_ != null) { @@ -4457,81 +5101,111 @@ private void ensureArrivalLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder getDelayBeforeStartBuilder() { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder + getDelayBeforeStartBuilder() { bitField0_ |= 0x00000200; onChanged(); return getDelayBeforeStartFieldBuilder().getBuilder(); } /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder + getDelayBeforeStartOrBuilder() { if (delayBeforeStartBuilder_ != null) { return delayBeforeStartBuilder_.getMessageOrBuilder(); } else { - return delayBeforeStart_ == null ? - com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeStart_; + return delayBeforeStart_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() + : delayBeforeStart_; } } /** + * + * *
        * Deprecated: Use
        * [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration]
        * instead. Delay occurring before the visit starts.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.Delay, + com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> getDelayBeforeStartFieldBuilder() { if (delayBeforeStartBuilder_ == null) { - delayBeforeStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>( - getDelayBeforeStart(), - getParentForChildren(), - isClean()); + delayBeforeStartBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.Delay, + com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>( + getDelayBeforeStart(), getParentForChildren(), isClean()); delayBeforeStart_ = null; } return delayBeforeStartBuilder_; } private java.util.List demands_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDemandsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - demands_ = new java.util.ArrayList(demands_); + demands_ = + new java.util.ArrayList(demands_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> demandsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + demandsBuilder_; /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getDemandsList() { + @java.lang.Deprecated + public java.util.List getDemandsList() { if (demandsBuilder_ == null) { return java.util.Collections.unmodifiableList(demands_); } else { @@ -4539,15 +5213,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public int getDemandsCount() { + @java.lang.Deprecated + public int getDemandsCount() { if (demandsBuilder_ == null) { return demands_.size(); } else { @@ -4555,15 +5234,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getDemands(int index) { if (demandsBuilder_ == null) { return demands_.get(index); } else { @@ -4571,15 +5255,20 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDemands( + @java.lang.Deprecated + public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { @@ -4594,15 +5283,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDemands( + @java.lang.Deprecated + public Builder setDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -4614,15 +5308,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addDemands(com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4636,15 +5335,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( + @java.lang.Deprecated + public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (demandsBuilder_ == null) { if (value == null) { @@ -4659,15 +5363,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( + @java.lang.Deprecated + public Builder addDemands( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -4679,15 +5388,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addDemands( + @java.lang.Deprecated + public Builder addDemands( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); @@ -4699,20 +5413,24 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllDemands( + @java.lang.Deprecated + public Builder addAllDemands( java.lang.Iterable values) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, demands_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, demands_); onChanged(); } else { demandsBuilder_.addAllMessages(values); @@ -4720,15 +5438,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearDemands() { + @java.lang.Deprecated + public Builder clearDemands() { if (demandsBuilder_ == null) { demands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); @@ -4739,15 +5462,20 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeDemands(int index) { + @java.lang.Deprecated + public Builder removeDemands(int index) { if (demandsBuilder_ == null) { ensureDemandsIsMutable(); demands_.remove(index); @@ -4758,45 +5486,61 @@ private void ensureDemandsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder getDemandsBuilder( int index) { return getDemandsFieldBuilder().getBuilder(index); } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getDemandsOrBuilder( int index) { if (demandsBuilder_ == null) { - return demands_.get(index); } else { + return demands_.get(index); + } else { return demandsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getDemandsOrBuilderList() { + @java.lang.Deprecated + public java.util.List + getDemandsOrBuilderList() { if (demandsBuilder_ != null) { return demandsBuilder_.getMessageOrBuilderList(); } else { @@ -4804,59 +5548,79 @@ private void ensureDemandsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { - return getDemandsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder() { + return getDemandsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addDemandsBuilder( int index) { - return getDemandsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + return getDemandsFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
        * Deprecated: Use
        * [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getDemandsBuilderList() { + @java.lang.Deprecated + public java.util.List + getDemandsBuilderList() { return getDemandsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getDemandsFieldBuilder() { if (demandsBuilder_ == null) { - demandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - demands_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); + demandsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + demands_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); demands_ = null; } return demandsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4869,12 +5633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.Visit) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.Visit) private static final com.google.cloud.optimization.v1.ShipmentRoute.Visit DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.Visit(); } @@ -4883,27 +5647,28 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.Visit getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Visit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Visit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4918,32 +5683,40 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.Visit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TransitionOrBuilder extends + public interface TransitionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.Transition) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Travel duration during this transition.
      * 
* * .google.protobuf.Duration travel_duration = 1; + * * @return Whether the travelDuration field is set. */ boolean hasTravelDuration(); /** + * + * *
      * Travel duration during this transition.
      * 
* * .google.protobuf.Duration travel_duration = 1; + * * @return The travelDuration. */ com.google.protobuf.Duration getTravelDuration(); /** + * + * *
      * Travel duration during this transition.
      * 
@@ -4953,16 +5726,21 @@ public interface TransitionOrBuilder extends com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder(); /** + * + * *
      * Distance traveled during the transition.
      * 
* * double travel_distance_meters = 2; + * * @return The travelDistanceMeters. */ double getTravelDistanceMeters(); /** + * + * *
      * When traffic is requested via
      * [OptimizeToursRequest.consider_road_traffic]
@@ -4973,11 +5751,14 @@ public interface TransitionOrBuilder extends
      * 
* * bool traffic_info_unavailable = 3; + * * @return The trafficInfoUnavailable. */ boolean getTrafficInfoUnavailable(); /** + * + * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -4986,10 +5767,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return Whether the delayDuration field is set. */ boolean hasDelayDuration(); /** + * + * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -4998,10 +5782,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return The delayDuration. */ com.google.protobuf.Duration getDelayDuration(); /** + * + * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -5014,6 +5801,8 @@ public interface TransitionOrBuilder extends
     com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5021,10 +5810,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.protobuf.Duration break_duration = 5; + * * @return Whether the breakDuration field is set. */ boolean hasBreakDuration(); /** + * + * *
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5032,10 +5824,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.protobuf.Duration break_duration = 5; + * * @return The breakDuration. */ com.google.protobuf.Duration getBreakDuration(); /** + * + * *
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5047,6 +5842,8 @@ public interface TransitionOrBuilder extends
     com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5054,10 +5851,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.protobuf.Duration wait_duration = 6; + * * @return Whether the waitDuration field is set. */ boolean hasWaitDuration(); /** + * + * *
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5065,10 +5865,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.protobuf.Duration wait_duration = 6; + * * @return The waitDuration. */ com.google.protobuf.Duration getWaitDuration(); /** + * + * *
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5080,6 +5883,8 @@ public interface TransitionOrBuilder extends
     com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5092,10 +5897,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.protobuf.Duration total_duration = 7; + * * @return Whether the totalDuration field is set. */ boolean hasTotalDuration(); /** + * + * *
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5108,10 +5916,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.protobuf.Duration total_duration = 7; + * * @return The totalDuration. */ com.google.protobuf.Duration getTotalDuration(); /** + * + * *
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5128,24 +5939,32 @@ public interface TransitionOrBuilder extends
     com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Start time of this transition.
      * 
* * .google.protobuf.Timestamp start_time = 8; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
      * Start time of this transition.
      * 
* * .google.protobuf.Timestamp start_time = 8; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
      * Start time of this transition.
      * 
@@ -5155,6 +5974,8 @@ public interface TransitionOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -5164,10 +5985,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * * @return Whether the routePolyline field is set. */ boolean hasRoutePolyline(); /** + * + * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -5177,10 +6001,13 @@ public interface TransitionOrBuilder extends
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * * @return The routePolyline. */ com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline(); /** + * + * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -5191,9 +6018,12 @@ public interface TransitionOrBuilder extends
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      */
-    com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder();
+    com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
+        getRoutePolylineOrBuilder();
 
     /**
+     *
+     *
      * 
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5208,10 +6038,14 @@ public interface TransitionOrBuilder extends
      * on whether the visit was a pickup or a delivery.
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ int getVehicleLoadsCount(); /** + * + * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5226,17 +6060,18 @@ public interface TransitionOrBuilder extends
      * on whether the visit was a pickup or a delivery.
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; - */ - boolean containsVehicleLoads( - java.lang.String key); - /** - * Use {@link #getVehicleLoadsMap()} instead. + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ + boolean containsVehicleLoads(java.lang.String key); + /** Use {@link #getVehicleLoadsMap()} instead. */ @java.lang.Deprecated java.util.Map - getVehicleLoads(); + getVehicleLoads(); /** + * + * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5251,11 +6086,15 @@ boolean containsVehicleLoads(
      * on whether the visit was a pickup or a delivery.
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ java.util.Map - getVehicleLoadsMap(); + getVehicleLoadsMap(); /** + * + * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5270,14 +6109,18 @@ boolean containsVehicleLoads(
      * on whether the visit was a pickup or a delivery.
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ /* nullable */ -com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault( + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue); + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue); /** + * + * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5292,66 +6135,88 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefa
      * on whether the visit was a pickup or a delivery.
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow( java.lang.String key); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getLoadsList(); + @java.lang.Deprecated + java.util.List getLoadsList(); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated int getLoadsCount(); + @java.lang.Deprecated + int getLoadsCount(); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getLoadsOrBuilderList(); /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder( - int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder(int index); } /** + * + * *
    * Transition between two events on the route. See the description of
    * [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
@@ -5362,59 +6227,63 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrThro
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Transition}
    */
-  public static final class Transition extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Transition extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.Transition)
       TransitionOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Transition.newBuilder() to construct.
     private Transition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Transition() {
       loads_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Transition();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
     @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 11:
           return internalGetVehicleLoads();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.Transition.class, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.Transition.class,
+              com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder.class);
     }
 
     public static final int TRAVEL_DURATION_FIELD_NUMBER = 1;
     private com.google.protobuf.Duration travelDuration_;
     /**
+     *
+     *
      * 
      * Travel duration during this transition.
      * 
* * .google.protobuf.Duration travel_duration = 1; + * * @return Whether the travelDuration field is set. */ @java.lang.Override @@ -5422,18 +6291,25 @@ public boolean hasTravelDuration() { return travelDuration_ != null; } /** + * + * *
      * Travel duration during this transition.
      * 
* * .google.protobuf.Duration travel_duration = 1; + * * @return The travelDuration. */ @java.lang.Override public com.google.protobuf.Duration getTravelDuration() { - return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; } /** + * + * *
      * Travel duration during this transition.
      * 
@@ -5442,17 +6318,22 @@ public com.google.protobuf.Duration getTravelDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { - return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; } public static final int TRAVEL_DISTANCE_METERS_FIELD_NUMBER = 2; private double travelDistanceMeters_ = 0D; /** + * + * *
      * Distance traveled during the transition.
      * 
* * double travel_distance_meters = 2; + * * @return The travelDistanceMeters. */ @java.lang.Override @@ -5463,6 +6344,8 @@ public double getTravelDistanceMeters() { public static final int TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER = 3; private boolean trafficInfoUnavailable_ = false; /** + * + * *
      * When traffic is requested via
      * [OptimizeToursRequest.consider_road_traffic]
@@ -5473,6 +6356,7 @@ public double getTravelDistanceMeters() {
      * 
* * bool traffic_info_unavailable = 3; + * * @return The trafficInfoUnavailable. */ @java.lang.Override @@ -5483,6 +6367,8 @@ public boolean getTrafficInfoUnavailable() { public static final int DELAY_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration delayDuration_; /** + * + * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -5491,6 +6377,7 @@ public boolean getTrafficInfoUnavailable() {
      * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return Whether the delayDuration field is set. */ @java.lang.Override @@ -5498,6 +6385,8 @@ public boolean hasDelayDuration() { return delayDuration_ != null; } /** + * + * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -5506,13 +6395,18 @@ public boolean hasDelayDuration() {
      * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return The delayDuration. */ @java.lang.Override public com.google.protobuf.Duration getDelayDuration() { - return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; + return delayDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : delayDuration_; } /** + * + * *
      * Sum of the delay durations applied to this transition. If any, the delay
      * starts exactly `delay_duration` seconds before the next event (visit or
@@ -5524,12 +6418,16 @@ public com.google.protobuf.Duration getDelayDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
-      return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_;
+      return delayDuration_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : delayDuration_;
     }
 
     public static final int BREAK_DURATION_FIELD_NUMBER = 5;
     private com.google.protobuf.Duration breakDuration_;
     /**
+     *
+     *
      * 
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5537,6 +6435,7 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
      * 
* * .google.protobuf.Duration break_duration = 5; + * * @return Whether the breakDuration field is set. */ @java.lang.Override @@ -5544,6 +6443,8 @@ public boolean hasBreakDuration() { return breakDuration_ != null; } /** + * + * *
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5551,13 +6452,18 @@ public boolean hasBreakDuration() {
      * 
* * .google.protobuf.Duration break_duration = 5; + * * @return The breakDuration. */ @java.lang.Override public com.google.protobuf.Duration getBreakDuration() { - return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; + return breakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : breakDuration_; } /** + * + * *
      * Sum of the duration of the breaks occurring during this transition, if
      * any. Details about each break's start time and duration are stored in
@@ -5568,12 +6474,16 @@ public com.google.protobuf.Duration getBreakDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
-      return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_;
+      return breakDuration_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : breakDuration_;
     }
 
     public static final int WAIT_DURATION_FIELD_NUMBER = 6;
     private com.google.protobuf.Duration waitDuration_;
     /**
+     *
+     *
      * 
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5581,6 +6491,7 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
      * 
* * .google.protobuf.Duration wait_duration = 6; + * * @return Whether the waitDuration field is set. */ @java.lang.Override @@ -5588,6 +6499,8 @@ public boolean hasWaitDuration() { return waitDuration_ != null; } /** + * + * *
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5595,13 +6508,18 @@ public boolean hasWaitDuration() {
      * 
* * .google.protobuf.Duration wait_duration = 6; + * * @return The waitDuration. */ @java.lang.Override public com.google.protobuf.Duration getWaitDuration() { - return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; + return waitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitDuration_; } /** + * + * *
      * Time spent waiting during this transition. Wait duration corresponds to
      * idle time and does not include break time. Also note that this wait time
@@ -5612,12 +6530,16 @@ public com.google.protobuf.Duration getWaitDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
-      return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_;
+      return waitDuration_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : waitDuration_;
     }
 
     public static final int TOTAL_DURATION_FIELD_NUMBER = 7;
     private com.google.protobuf.Duration totalDuration_;
     /**
+     *
+     *
      * 
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5630,6 +6552,7 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
      * 
* * .google.protobuf.Duration total_duration = 7; + * * @return Whether the totalDuration field is set. */ @java.lang.Override @@ -5637,6 +6560,8 @@ public boolean hasTotalDuration() { return totalDuration_ != null; } /** + * + * *
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5649,13 +6574,18 @@ public boolean hasTotalDuration() {
      * 
* * .google.protobuf.Duration total_duration = 7; + * * @return The totalDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalDuration() { - return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_; + return totalDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalDuration_; } /** + * + * *
      * Total duration of the transition, provided for convenience. It is equal
      * to:
@@ -5671,17 +6601,22 @@ public com.google.protobuf.Duration getTotalDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
-      return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_;
+      return totalDuration_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : totalDuration_;
     }
 
     public static final int START_TIME_FIELD_NUMBER = 8;
     private com.google.protobuf.Timestamp startTime_;
     /**
+     *
+     *
      * 
      * Start time of this transition.
      * 
* * .google.protobuf.Timestamp start_time = 8; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -5689,11 +6624,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
      * Start time of this transition.
      * 
* * .google.protobuf.Timestamp start_time = 8; + * * @return The startTime. */ @java.lang.Override @@ -5701,6 +6639,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
      * Start time of this transition.
      * 
@@ -5715,6 +6655,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int ROUTE_POLYLINE_FIELD_NUMBER = 9; private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; /** + * + * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -5724,6 +6666,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * * @return Whether the routePolyline field is set. */ @java.lang.Override @@ -5731,6 +6674,8 @@ public boolean hasRoutePolyline() { return routePolyline_ != null; } /** + * + * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -5740,13 +6685,18 @@ public boolean hasRoutePolyline() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * * @return The routePolyline. */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { - return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; + return routePolyline_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() + : routePolyline_; } /** + * + * *
      * The encoded polyline representation of the route followed during the
      * transition.
@@ -5758,37 +6708,52 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      */
     @java.lang.Override
-    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() {
-      return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_;
+    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
+        getRoutePolylineOrBuilder() {
+      return routePolyline_ == null
+          ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()
+          : routePolyline_;
     }
 
     public static final int VEHICLE_LOADS_FIELD_NUMBER = 11;
+
     private static final class VehicleLoadsDefaultEntryHolder {
       static final com.google.protobuf.MapEntry<
-          java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> defaultEntry =
+              java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
+          defaultEntry =
               com.google.protobuf.MapEntry
-              .newDefaultInstance(
-                  com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor, 
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "",
-                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                  com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance());
+                  .
+                      newDefaultInstance(
+                          com.google.cloud.optimization.v1.FleetRoutingProto
+                              .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor,
+                          com.google.protobuf.WireFormat.FieldType.STRING,
+                          "",
+                          com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                          com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad
+                              .getDefaultInstance());
     }
+
     @SuppressWarnings("serial")
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicleLoads_;
-    private com.google.protobuf.MapField
-    internalGetVehicleLoads() {
+            java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
+        vehicleLoads_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
+        internalGetVehicleLoads() {
       if (vehicleLoads_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
             VehicleLoadsDefaultEntryHolder.defaultEntry);
       }
       return vehicleLoads_;
     }
+
     public int getVehicleLoadsCount() {
       return internalGetVehicleLoads().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5803,23 +6768,28 @@ public int getVehicleLoadsCount() {
      * on whether the visit was a pickup or a delivery.
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ @java.lang.Override - public boolean containsVehicleLoads( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsVehicleLoads(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetVehicleLoads().getMap().containsKey(key); } - /** - * Use {@link #getVehicleLoadsMap()} instead. - */ + /** Use {@link #getVehicleLoadsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getVehicleLoads() { + public java.util.Map< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + getVehicleLoads() { return getVehicleLoadsMap(); } /** + * + * *
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5834,13 +6804,19 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
+     * 
+     * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
+     * 
      */
     @java.lang.Override
-    public java.util.Map getVehicleLoadsMap() {
+    public java.util.Map<
+            java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
+        getVehicleLoadsMap() {
       return internalGetVehicleLoads().getMap();
     }
     /**
+     *
+     *
      * 
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5855,20 +6831,26 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
+     * 
+     * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
+     * 
      */
     @java.lang.Override
-    public /* nullable */
-com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault(
-        java.lang.String key,
-        /* nullable */
-com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetVehicleLoads().getMap();
+    public /* nullable */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad
+        getVehicleLoadsOrDefault(
+            java.lang.String key,
+            /* nullable */
+            com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map
+          map = internalGetVehicleLoads().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Vehicle loads during this transition, for each type that either appears
      * in this vehicle's
@@ -5883,14 +6865,18 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefa
      * on whether the visit was a pickup or a delivery.
      * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVehicleLoads().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetVehicleLoads().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -5898,77 +6884,98 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoad } public static final int LOADS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List loads_; /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getLoadsList() { + @java.lang.Deprecated + public java.util.List getLoadsList() { return loads_; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getLoadsOrBuilderList() { return loads_; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getLoadsCount() { + @java.lang.Deprecated + public int getLoadsCount() { return loads_.size(); } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { return loads_.get(index); } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder(int index) { return loads_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5980,8 +6987,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (travelDuration_ != null) { output.writeMessage(1, getTravelDuration()); } @@ -6012,12 +7018,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < loads_.size(); i++) { output.writeMessage(10, loads_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetVehicleLoads(), - VehicleLoadsDefaultEntryHolder.defaultEntry, - 11); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetVehicleLoads(), VehicleLoadsDefaultEntryHolder.defaultEntry, 11); getUnknownFields().writeTo(output); } @@ -6028,54 +7030,47 @@ public int getSerializedSize() { size = 0; if (travelDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTravelDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTravelDuration()); } if (java.lang.Double.doubleToRawLongBits(travelDistanceMeters_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, travelDistanceMeters_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, travelDistanceMeters_); } if (trafficInfoUnavailable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, trafficInfoUnavailable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trafficInfoUnavailable_); } if (delayDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDelayDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDelayDuration()); } if (breakDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getBreakDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBreakDuration()); } if (waitDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getWaitDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getWaitDuration()); } if (totalDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTotalDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTotalDuration()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStartTime()); } if (routePolyline_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getRoutePolyline()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRoutePolyline()); } for (int i = 0; i < loads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, loads_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetVehicleLoads().getMap().entrySet()) { - com.google.protobuf.MapEntry - vehicleLoads__ = VehicleLoadsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, vehicleLoads__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, loads_.get(i)); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + entry : internalGetVehicleLoads().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + vehicleLoads__ = + VehicleLoadsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, vehicleLoads__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6085,57 +7080,47 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.Transition)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.Transition other = (com.google.cloud.optimization.v1.ShipmentRoute.Transition) obj; + com.google.cloud.optimization.v1.ShipmentRoute.Transition other = + (com.google.cloud.optimization.v1.ShipmentRoute.Transition) obj; if (hasTravelDuration() != other.hasTravelDuration()) return false; if (hasTravelDuration()) { - if (!getTravelDuration() - .equals(other.getTravelDuration())) return false; + if (!getTravelDuration().equals(other.getTravelDuration())) return false; } if (java.lang.Double.doubleToLongBits(getTravelDistanceMeters()) - != java.lang.Double.doubleToLongBits( - other.getTravelDistanceMeters())) return false; - if (getTrafficInfoUnavailable() - != other.getTrafficInfoUnavailable()) return false; + != java.lang.Double.doubleToLongBits(other.getTravelDistanceMeters())) return false; + if (getTrafficInfoUnavailable() != other.getTrafficInfoUnavailable()) return false; if (hasDelayDuration() != other.hasDelayDuration()) return false; if (hasDelayDuration()) { - if (!getDelayDuration() - .equals(other.getDelayDuration())) return false; + if (!getDelayDuration().equals(other.getDelayDuration())) return false; } if (hasBreakDuration() != other.hasBreakDuration()) return false; if (hasBreakDuration()) { - if (!getBreakDuration() - .equals(other.getBreakDuration())) return false; + if (!getBreakDuration().equals(other.getBreakDuration())) return false; } if (hasWaitDuration() != other.hasWaitDuration()) return false; if (hasWaitDuration()) { - if (!getWaitDuration() - .equals(other.getWaitDuration())) return false; + if (!getWaitDuration().equals(other.getWaitDuration())) return false; } if (hasTotalDuration() != other.hasTotalDuration()) return false; if (hasTotalDuration()) { - if (!getTotalDuration() - .equals(other.getTotalDuration())) return false; + if (!getTotalDuration().equals(other.getTotalDuration())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasRoutePolyline() != other.hasRoutePolyline()) return false; if (hasRoutePolyline()) { - if (!getRoutePolyline() - .equals(other.getRoutePolyline())) return false; + if (!getRoutePolyline().equals(other.getRoutePolyline())) return false; } - if (!internalGetVehicleLoads().equals( - other.internalGetVehicleLoads())) return false; - if (!getLoadsList() - .equals(other.getLoadsList())) return false; + if (!internalGetVehicleLoads().equals(other.internalGetVehicleLoads())) return false; + if (!getLoadsList().equals(other.getLoadsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6152,11 +7137,12 @@ public int hashCode() { hash = (53 * hash) + getTravelDuration().hashCode(); } hash = (37 * hash) + TRAVEL_DISTANCE_METERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTravelDistanceMeters())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTravelDistanceMeters())); hash = (37 * hash) + TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTrafficInfoUnavailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrafficInfoUnavailable()); if (hasDelayDuration()) { hash = (37 * hash) + DELAY_DURATION_FIELD_NUMBER; hash = (53 * hash) + getDelayDuration().hashCode(); @@ -6195,89 +7181,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Transition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Transition prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.Transition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6287,6 +7278,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Transition between two events on the route. See the description of
      * [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
@@ -6297,55 +7290,53 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Transition}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.Transition)
         com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 11:
             return internalGetVehicleLoads();
           default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
+            throw new RuntimeException("Invalid map field number: " + number);
         }
       }
+
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(
-          int number) {
+      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         switch (number) {
           case 11:
             return internalGetMutableVehicleLoads();
           default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
+            throw new RuntimeException("Invalid map field number: " + number);
         }
       }
+
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.Transition.class, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.Transition.class,
+                com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.Transition.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -6399,9 +7390,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor;
       }
 
       @java.lang.Override
@@ -6420,14 +7411,18 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.Transition buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.Transition result = new com.google.cloud.optimization.v1.ShipmentRoute.Transition(this);
+        com.google.cloud.optimization.v1.ShipmentRoute.Transition result =
+            new com.google.cloud.optimization.v1.ShipmentRoute.Transition(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.ShipmentRoute.Transition result) {
+      private void buildPartialRepeatedFields(
+          com.google.cloud.optimization.v1.ShipmentRoute.Transition result) {
         if (loadsBuilder_ == null) {
           if (((bitField0_ & 0x00000400) != 0)) {
             loads_ = java.util.Collections.unmodifiableList(loads_);
@@ -6442,9 +7437,8 @@ private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.Shipmen
       private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Transition result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.travelDuration_ = travelDurationBuilder_ == null
-              ? travelDuration_
-              : travelDurationBuilder_.build();
+          result.travelDuration_ =
+              travelDurationBuilder_ == null ? travelDuration_ : travelDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.travelDistanceMeters_ = travelDistanceMeters_;
@@ -6453,34 +7447,27 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Transi
           result.trafficInfoUnavailable_ = trafficInfoUnavailable_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.delayDuration_ = delayDurationBuilder_ == null
-              ? delayDuration_
-              : delayDurationBuilder_.build();
+          result.delayDuration_ =
+              delayDurationBuilder_ == null ? delayDuration_ : delayDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.breakDuration_ = breakDurationBuilder_ == null
-              ? breakDuration_
-              : breakDurationBuilder_.build();
+          result.breakDuration_ =
+              breakDurationBuilder_ == null ? breakDuration_ : breakDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000020) != 0)) {
-          result.waitDuration_ = waitDurationBuilder_ == null
-              ? waitDuration_
-              : waitDurationBuilder_.build();
+          result.waitDuration_ =
+              waitDurationBuilder_ == null ? waitDuration_ : waitDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
-          result.totalDuration_ = totalDurationBuilder_ == null
-              ? totalDuration_
-              : totalDurationBuilder_.build();
+          result.totalDuration_ =
+              totalDurationBuilder_ == null ? totalDuration_ : totalDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000080) != 0)) {
-          result.startTime_ = startTimeBuilder_ == null
-              ? startTime_
-              : startTimeBuilder_.build();
+          result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000100) != 0)) {
-          result.routePolyline_ = routePolylineBuilder_ == null
-              ? routePolyline_
-              : routePolylineBuilder_.build();
+          result.routePolyline_ =
+              routePolylineBuilder_ == null ? routePolyline_ : routePolylineBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000200) != 0)) {
           result.vehicleLoads_ = internalGetVehicleLoads();
@@ -6492,38 +7479,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Transi
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.Transition) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Transition)other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Transition) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -6531,7 +7521,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Transition other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance())
+          return this;
         if (other.hasTravelDuration()) {
           mergeTravelDuration(other.getTravelDuration());
         }
@@ -6559,8 +7550,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Transiti
         if (other.hasRoutePolyline()) {
           mergeRoutePolyline(other.getRoutePolyline());
         }
-        internalGetMutableVehicleLoads().mergeFrom(
-            other.internalGetVehicleLoads());
+        internalGetMutableVehicleLoads().mergeFrom(other.internalGetVehicleLoads());
         bitField0_ |= 0x00000200;
         if (loadsBuilder_ == null) {
           if (!other.loads_.isEmpty()) {
@@ -6580,9 +7570,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Transiti
               loadsBuilder_ = null;
               loads_ = other.loads_;
               bitField0_ = (bitField0_ & ~0x00000400);
-              loadsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getLoadsFieldBuilder() : null;
+              loadsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getLoadsFieldBuilder()
+                      : null;
             } else {
               loadsBuilder_.addAllMessages(other.loads_);
             }
@@ -6614,93 +7605,97 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getTravelDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 17: {
-                travelDistanceMeters_ = input.readDouble();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 17
-              case 24: {
-                trafficInfoUnavailable_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-              case 34: {
-                input.readMessage(
-                    getDelayDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              case 42: {
-                input.readMessage(
-                    getBreakDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-              case 50: {
-                input.readMessage(
-                    getWaitDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-              case 58: {
-                input.readMessage(
-                    getTotalDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-              case 66: {
-                input.readMessage(
-                    getStartTimeFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-              case 74: {
-                input.readMessage(
-                    getRoutePolylineFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-              case 82: {
-                com.google.cloud.optimization.v1.CapacityQuantity m =
-                    input.readMessage(
-                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                        extensionRegistry);
-                if (loadsBuilder_ == null) {
-                  ensureLoadsIsMutable();
-                  loads_.add(m);
-                } else {
-                  loadsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 82
-              case 90: {
-                com.google.protobuf.MapEntry
-                vehicleLoads__ = input.readMessage(
-                    VehicleLoadsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-                internalGetMutableVehicleLoads().getMutableMap().put(
-                    vehicleLoads__.getKey(), vehicleLoads__.getValue());
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 90
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getTravelDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 17:
+                {
+                  travelDistanceMeters_ = input.readDouble();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 17
+              case 24:
+                {
+                  trafficInfoUnavailable_ = input.readBool();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 24
+              case 34:
+                {
+                  input.readMessage(getDelayDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              case 42:
+                {
+                  input.readMessage(getBreakDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 42
+              case 50:
+                {
+                  input.readMessage(getWaitDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000020;
+                  break;
+                } // case 50
+              case 58:
+                {
+                  input.readMessage(getTotalDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000040;
+                  break;
+                } // case 58
+              case 66:
+                {
+                  input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000080;
+                  break;
+                } // case 66
+              case 74:
+                {
+                  input.readMessage(getRoutePolylineFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000100;
+                  break;
+                } // case 74
+              case 82:
+                {
+                  com.google.cloud.optimization.v1.CapacityQuantity m =
+                      input.readMessage(
+                          com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                          extensionRegistry);
+                  if (loadsBuilder_ == null) {
+                    ensureLoadsIsMutable();
+                    loads_.add(m);
+                  } else {
+                    loadsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 82
+              case 90:
+                {
+                  com.google.protobuf.MapEntry<
+                          java.lang.String,
+                          com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
+                      vehicleLoads__ =
+                          input.readMessage(
+                              VehicleLoadsDefaultEntryHolder.defaultEntry.getParserForType(),
+                              extensionRegistry);
+                  internalGetMutableVehicleLoads()
+                      .getMutableMap()
+                      .put(vehicleLoads__.getKey(), vehicleLoads__.getValue());
+                  bitField0_ |= 0x00000200;
+                  break;
+                } // case 90
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -6710,38 +7705,52 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.Duration travelDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> travelDurationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          travelDurationBuilder_;
       /**
+       *
+       *
        * 
        * Travel duration during this transition.
        * 
* * .google.protobuf.Duration travel_duration = 1; + * * @return Whether the travelDuration field is set. */ public boolean hasTravelDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Travel duration during this transition.
        * 
* * .google.protobuf.Duration travel_duration = 1; + * * @return The travelDuration. */ public com.google.protobuf.Duration getTravelDuration() { if (travelDurationBuilder_ == null) { - return travelDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; } else { return travelDurationBuilder_.getMessage(); } } /** + * + * *
        * Travel duration during this transition.
        * 
@@ -6762,14 +7771,15 @@ public Builder setTravelDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Travel duration during this transition.
        * 
* * .google.protobuf.Duration travel_duration = 1; */ - public Builder setTravelDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) { if (travelDurationBuilder_ == null) { travelDuration_ = builderForValue.build(); } else { @@ -6780,6 +7790,8 @@ public Builder setTravelDuration( return this; } /** + * + * *
        * Travel duration during this transition.
        * 
@@ -6788,9 +7800,9 @@ public Builder setTravelDuration( */ public Builder mergeTravelDuration(com.google.protobuf.Duration value) { if (travelDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - travelDuration_ != null && - travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && travelDuration_ != null + && travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTravelDurationBuilder().mergeFrom(value); } else { travelDuration_ = value; @@ -6803,6 +7815,8 @@ public Builder mergeTravelDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Travel duration during this transition.
        * 
@@ -6820,6 +7834,8 @@ public Builder clearTravelDuration() { return this; } /** + * + * *
        * Travel duration during this transition.
        * 
@@ -6832,6 +7848,8 @@ public com.google.protobuf.Duration.Builder getTravelDurationBuilder() { return getTravelDurationFieldBuilder().getBuilder(); } /** + * + * *
        * Travel duration during this transition.
        * 
@@ -6842,11 +7860,14 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { if (travelDurationBuilder_ != null) { return travelDurationBuilder_.getMessageOrBuilder(); } else { - return travelDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : travelDuration_; + return travelDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : travelDuration_; } } /** + * + * *
        * Travel duration during this transition.
        * 
@@ -6854,26 +7875,32 @@ public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() { * .google.protobuf.Duration travel_duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTravelDurationFieldBuilder() { if (travelDurationBuilder_ == null) { - travelDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTravelDuration(), - getParentForChildren(), - isClean()); + travelDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTravelDuration(), getParentForChildren(), isClean()); travelDuration_ = null; } return travelDurationBuilder_; } - private double travelDistanceMeters_ ; + private double travelDistanceMeters_; /** + * + * *
        * Distance traveled during the transition.
        * 
* * double travel_distance_meters = 2; + * * @return The travelDistanceMeters. */ @java.lang.Override @@ -6881,11 +7908,14 @@ public double getTravelDistanceMeters() { return travelDistanceMeters_; } /** + * + * *
        * Distance traveled during the transition.
        * 
* * double travel_distance_meters = 2; + * * @param value The travelDistanceMeters to set. * @return This builder for chaining. */ @@ -6897,11 +7927,14 @@ public Builder setTravelDistanceMeters(double value) { return this; } /** + * + * *
        * Distance traveled during the transition.
        * 
* * double travel_distance_meters = 2; + * * @return This builder for chaining. */ public Builder clearTravelDistanceMeters() { @@ -6911,8 +7944,10 @@ public Builder clearTravelDistanceMeters() { return this; } - private boolean trafficInfoUnavailable_ ; + private boolean trafficInfoUnavailable_; /** + * + * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic]
@@ -6923,6 +7958,7 @@ public Builder clearTravelDistanceMeters() {
        * 
* * bool traffic_info_unavailable = 3; + * * @return The trafficInfoUnavailable. */ @java.lang.Override @@ -6930,6 +7966,8 @@ public boolean getTrafficInfoUnavailable() { return trafficInfoUnavailable_; } /** + * + * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic]
@@ -6940,6 +7978,7 @@ public boolean getTrafficInfoUnavailable() {
        * 
* * bool traffic_info_unavailable = 3; + * * @param value The trafficInfoUnavailable to set. * @return This builder for chaining. */ @@ -6951,6 +7990,8 @@ public Builder setTrafficInfoUnavailable(boolean value) { return this; } /** + * + * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic]
@@ -6961,6 +8002,7 @@ public Builder setTrafficInfoUnavailable(boolean value) {
        * 
* * bool traffic_info_unavailable = 3; + * * @return This builder for chaining. */ public Builder clearTrafficInfoUnavailable() { @@ -6972,8 +8014,13 @@ public Builder clearTrafficInfoUnavailable() { private com.google.protobuf.Duration delayDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + delayDurationBuilder_; /** + * + * *
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -6982,12 +8029,15 @@ public Builder clearTrafficInfoUnavailable() {
        * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return Whether the delayDuration field is set. */ public boolean hasDelayDuration() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -6996,16 +8046,21 @@ public boolean hasDelayDuration() {
        * 
* * .google.protobuf.Duration delay_duration = 4; + * * @return The delayDuration. */ public com.google.protobuf.Duration getDelayDuration() { if (delayDurationBuilder_ == null) { - return delayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delayDuration_; + return delayDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : delayDuration_; } else { return delayDurationBuilder_.getMessage(); } } /** + * + * *
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -7029,6 +8084,8 @@ public Builder setDelayDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -7038,8 +8095,7 @@ public Builder setDelayDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration delay_duration = 4;
        */
-      public Builder setDelayDuration(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForValue) {
         if (delayDurationBuilder_ == null) {
           delayDuration_ = builderForValue.build();
         } else {
@@ -7050,6 +8106,8 @@ public Builder setDelayDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -7061,9 +8119,9 @@ public Builder setDelayDuration(
        */
       public Builder mergeDelayDuration(com.google.protobuf.Duration value) {
         if (delayDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0) &&
-            delayDuration_ != null &&
-            delayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0)
+              && delayDuration_ != null
+              && delayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getDelayDurationBuilder().mergeFrom(value);
           } else {
             delayDuration_ = value;
@@ -7076,6 +8134,8 @@ public Builder mergeDelayDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -7096,6 +8156,8 @@ public Builder clearDelayDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -7111,6 +8173,8 @@ public com.google.protobuf.Duration.Builder getDelayDurationBuilder() {
         return getDelayDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -7124,11 +8188,14 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
         if (delayDurationBuilder_ != null) {
           return delayDurationBuilder_.getMessageOrBuilder();
         } else {
-          return delayDuration_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : delayDuration_;
+          return delayDuration_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : delayDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * Sum of the delay durations applied to this transition. If any, the delay
        * starts exactly `delay_duration` seconds before the next event (visit or
@@ -7139,14 +8206,17 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
        * .google.protobuf.Duration delay_duration = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getDelayDurationFieldBuilder() {
         if (delayDurationBuilder_ == null) {
-          delayDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getDelayDuration(),
-                  getParentForChildren(),
-                  isClean());
+          delayDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getDelayDuration(), getParentForChildren(), isClean());
           delayDuration_ = null;
         }
         return delayDurationBuilder_;
@@ -7154,8 +8224,13 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
 
       private com.google.protobuf.Duration breakDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> breakDurationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          breakDurationBuilder_;
       /**
+       *
+       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7163,12 +8238,15 @@ public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder() {
        * 
* * .google.protobuf.Duration break_duration = 5; + * * @return Whether the breakDuration field is set. */ public boolean hasBreakDuration() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7176,16 +8254,21 @@ public boolean hasBreakDuration() {
        * 
* * .google.protobuf.Duration break_duration = 5; + * * @return The breakDuration. */ public com.google.protobuf.Duration getBreakDuration() { if (breakDurationBuilder_ == null) { - return breakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : breakDuration_; + return breakDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : breakDuration_; } else { return breakDurationBuilder_.getMessage(); } } /** + * + * *
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7208,6 +8291,8 @@ public Builder setBreakDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7216,8 +8301,7 @@ public Builder setBreakDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration break_duration = 5;
        */
-      public Builder setBreakDuration(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForValue) {
         if (breakDurationBuilder_ == null) {
           breakDuration_ = builderForValue.build();
         } else {
@@ -7228,6 +8312,8 @@ public Builder setBreakDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7238,9 +8324,9 @@ public Builder setBreakDuration(
        */
       public Builder mergeBreakDuration(com.google.protobuf.Duration value) {
         if (breakDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000010) != 0) &&
-            breakDuration_ != null &&
-            breakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000010) != 0)
+              && breakDuration_ != null
+              && breakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getBreakDurationBuilder().mergeFrom(value);
           } else {
             breakDuration_ = value;
@@ -7253,6 +8339,8 @@ public Builder mergeBreakDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7272,6 +8360,8 @@ public Builder clearBreakDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7286,6 +8376,8 @@ public com.google.protobuf.Duration.Builder getBreakDurationBuilder() {
         return getBreakDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7298,11 +8390,14 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
         if (breakDurationBuilder_ != null) {
           return breakDurationBuilder_.getMessageOrBuilder();
         } else {
-          return breakDuration_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : breakDuration_;
+          return breakDuration_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : breakDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * Sum of the duration of the breaks occurring during this transition, if
        * any. Details about each break's start time and duration are stored in
@@ -7312,14 +8407,17 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
        * .google.protobuf.Duration break_duration = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getBreakDurationFieldBuilder() {
         if (breakDurationBuilder_ == null) {
-          breakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getBreakDuration(),
-                  getParentForChildren(),
-                  isClean());
+          breakDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getBreakDuration(), getParentForChildren(), isClean());
           breakDuration_ = null;
         }
         return breakDurationBuilder_;
@@ -7327,8 +8425,13 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
 
       private com.google.protobuf.Duration waitDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> waitDurationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          waitDurationBuilder_;
       /**
+       *
+       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7336,12 +8439,15 @@ public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder() {
        * 
* * .google.protobuf.Duration wait_duration = 6; + * * @return Whether the waitDuration field is set. */ public boolean hasWaitDuration() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7349,16 +8455,21 @@ public boolean hasWaitDuration() {
        * 
* * .google.protobuf.Duration wait_duration = 6; + * * @return The waitDuration. */ public com.google.protobuf.Duration getWaitDuration() { if (waitDurationBuilder_ == null) { - return waitDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : waitDuration_; + return waitDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : waitDuration_; } else { return waitDurationBuilder_.getMessage(); } } /** + * + * *
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7381,6 +8492,8 @@ public Builder setWaitDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7389,8 +8502,7 @@ public Builder setWaitDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration wait_duration = 6;
        */
-      public Builder setWaitDuration(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForValue) {
         if (waitDurationBuilder_ == null) {
           waitDuration_ = builderForValue.build();
         } else {
@@ -7401,6 +8513,8 @@ public Builder setWaitDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7411,9 +8525,9 @@ public Builder setWaitDuration(
        */
       public Builder mergeWaitDuration(com.google.protobuf.Duration value) {
         if (waitDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000020) != 0) &&
-            waitDuration_ != null &&
-            waitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000020) != 0)
+              && waitDuration_ != null
+              && waitDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getWaitDurationBuilder().mergeFrom(value);
           } else {
             waitDuration_ = value;
@@ -7426,6 +8540,8 @@ public Builder mergeWaitDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7445,6 +8561,8 @@ public Builder clearWaitDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7459,6 +8577,8 @@ public com.google.protobuf.Duration.Builder getWaitDurationBuilder() {
         return getWaitDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7471,11 +8591,14 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
         if (waitDurationBuilder_ != null) {
           return waitDurationBuilder_.getMessageOrBuilder();
         } else {
-          return waitDuration_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : waitDuration_;
+          return waitDuration_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : waitDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * Time spent waiting during this transition. Wait duration corresponds to
        * idle time and does not include break time. Also note that this wait time
@@ -7485,14 +8608,17 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
        * .google.protobuf.Duration wait_duration = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getWaitDurationFieldBuilder() {
         if (waitDurationBuilder_ == null) {
-          waitDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getWaitDuration(),
-                  getParentForChildren(),
-                  isClean());
+          waitDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getWaitDuration(), getParentForChildren(), isClean());
           waitDuration_ = null;
         }
         return waitDurationBuilder_;
@@ -7500,8 +8626,13 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
 
       private com.google.protobuf.Duration totalDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalDurationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          totalDurationBuilder_;
       /**
+       *
+       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7514,12 +8645,15 @@ public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder() {
        * 
* * .google.protobuf.Duration total_duration = 7; + * * @return Whether the totalDuration field is set. */ public boolean hasTotalDuration() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7532,16 +8666,21 @@ public boolean hasTotalDuration() {
        * 
* * .google.protobuf.Duration total_duration = 7; + * * @return The totalDuration. */ public com.google.protobuf.Duration getTotalDuration() { if (totalDurationBuilder_ == null) { - return totalDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalDuration_; + return totalDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalDuration_; } else { return totalDurationBuilder_.getMessage(); } } /** + * + * *
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7569,6 +8708,8 @@ public Builder setTotalDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7582,8 +8723,7 @@ public Builder setTotalDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration total_duration = 7;
        */
-      public Builder setTotalDuration(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForValue) {
         if (totalDurationBuilder_ == null) {
           totalDuration_ = builderForValue.build();
         } else {
@@ -7594,6 +8734,8 @@ public Builder setTotalDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7609,9 +8751,9 @@ public Builder setTotalDuration(
        */
       public Builder mergeTotalDuration(com.google.protobuf.Duration value) {
         if (totalDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000040) != 0) &&
-            totalDuration_ != null &&
-            totalDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000040) != 0)
+              && totalDuration_ != null
+              && totalDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getTotalDurationBuilder().mergeFrom(value);
           } else {
             totalDuration_ = value;
@@ -7624,6 +8766,8 @@ public Builder mergeTotalDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7648,6 +8792,8 @@ public Builder clearTotalDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7667,6 +8813,8 @@ public com.google.protobuf.Duration.Builder getTotalDurationBuilder() {
         return getTotalDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7684,11 +8832,14 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
         if (totalDurationBuilder_ != null) {
           return totalDurationBuilder_.getMessageOrBuilder();
         } else {
-          return totalDuration_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : totalDuration_;
+          return totalDuration_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : totalDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * Total duration of the transition, provided for convenience. It is equal
        * to:
@@ -7703,14 +8854,17 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
        * .google.protobuf.Duration total_duration = 7;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getTotalDurationFieldBuilder() {
         if (totalDurationBuilder_ == null) {
-          totalDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getTotalDuration(),
-                  getParentForChildren(),
-                  isClean());
+          totalDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getTotalDuration(), getParentForChildren(), isClean());
           totalDuration_ = null;
         }
         return totalDurationBuilder_;
@@ -7718,34 +8872,47 @@ public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder() {
 
       private com.google.protobuf.Timestamp startTime_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
+          startTimeBuilder_;
       /**
+       *
+       *
        * 
        * Start time of this transition.
        * 
* * .google.protobuf.Timestamp start_time = 8; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
        * Start time of this transition.
        * 
* * .google.protobuf.Timestamp start_time = 8; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** + * + * *
        * Start time of this transition.
        * 
@@ -7766,14 +8933,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Start time of this transition.
        * 
* * .google.protobuf.Timestamp start_time = 8; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -7784,6 +8952,8 @@ public Builder setStartTime( return this; } /** + * + * *
        * Start time of this transition.
        * 
@@ -7792,9 +8962,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -7807,6 +8977,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Start time of this transition.
        * 
@@ -7824,6 +8996,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
        * Start time of this transition.
        * 
@@ -7836,6 +9010,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Start time of this transition.
        * 
@@ -7846,11 +9022,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; } } /** + * + * *
        * Start time of this transition.
        * 
@@ -7858,14 +9037,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -7873,8 +9055,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> routePolylineBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> + routePolylineBuilder_; /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -7883,13 +9070,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * + * * @return Whether the routePolyline field is set. */ public boolean hasRoutePolyline() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -7898,17 +9089,23 @@ public boolean hasRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * + * * @return The routePolyline. */ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { if (routePolylineBuilder_ == null) { - return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; + return routePolyline_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() + : routePolyline_; } else { return routePolylineBuilder_.getMessage(); } } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -7917,9 +9114,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * */ - public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { + public Builder setRoutePolyline( + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { if (routePolylineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7933,6 +9132,8 @@ public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.E return this; } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -7941,7 +9142,8 @@ public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.E
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * */ public Builder setRoutePolyline( com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder builderForValue) { @@ -7955,6 +9157,8 @@ public Builder setRoutePolyline( return this; } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -7963,13 +9167,17 @@ public Builder setRoutePolyline(
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * */ - public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { + public Builder mergeRoutePolyline( + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { if (routePolylineBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - routePolyline_ != null && - routePolyline_ != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && routePolyline_ != null + && routePolyline_ + != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline + .getDefaultInstance()) { getRoutePolylineBuilder().mergeFrom(value); } else { routePolyline_ = value; @@ -7982,6 +9190,8 @@ public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute return this; } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -7990,7 +9200,8 @@ public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * */ public Builder clearRoutePolyline() { bitField0_ = (bitField0_ & ~0x00000100); @@ -8003,6 +9214,8 @@ public Builder clearRoutePolyline() { return this; } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -8011,14 +9224,18 @@ public Builder clearRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * */ - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder getRoutePolylineBuilder() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder + getRoutePolylineBuilder() { bitField0_ |= 0x00000100; onChanged(); return getRoutePolylineFieldBuilder().getBuilder(); } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -8027,17 +9244,22 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder ge
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * */ - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder + getRoutePolylineOrBuilder() { if (routePolylineBuilder_ != null) { return routePolylineBuilder_.getMessageOrBuilder(); } else { - return routePolyline_ == null ? - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; + return routePolyline_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() + : routePolyline_; } } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * transition.
@@ -8046,25 +9268,32 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder g
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> getRoutePolylineFieldBuilder() { if (routePolylineBuilder_ == null) { - routePolylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>( - getRoutePolyline(), - getParentForChildren(), - isClean()); + routePolylineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>( + getRoutePolyline(), getParentForChildren(), isClean()); routePolyline_ = null; } return routePolylineBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicleLoads_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + vehicleLoads_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> internalGetVehicleLoads() { if (vehicleLoads_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -8072,11 +9301,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder g } return vehicleLoads_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> internalGetMutableVehicleLoads() { if (vehicleLoads_ == null) { - vehicleLoads_ = com.google.protobuf.MapField.newMapField( - VehicleLoadsDefaultEntryHolder.defaultEntry); + vehicleLoads_ = + com.google.protobuf.MapField.newMapField(VehicleLoadsDefaultEntryHolder.defaultEntry); } if (!vehicleLoads_.isMutable()) { vehicleLoads_ = vehicleLoads_.copy(); @@ -8085,10 +9316,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder g onChanged(); return vehicleLoads_; } + public int getVehicleLoadsCount() { return internalGetVehicleLoads().getMap().size(); } /** + * + * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -8103,23 +9337,28 @@ public int getVehicleLoadsCount() {
        * on whether the visit was a pickup or a delivery.
        * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ @java.lang.Override - public boolean containsVehicleLoads( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsVehicleLoads(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetVehicleLoads().getMap().containsKey(key); } - /** - * Use {@link #getVehicleLoadsMap()} instead. - */ + /** Use {@link #getVehicleLoadsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getVehicleLoads() { + public java.util.Map< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + getVehicleLoads() { return getVehicleLoadsMap(); } /** + * + * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -8134,13 +9373,19 @@ public java.util.Map
        *
-       * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
+       * 
+       * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
+       * 
        */
       @java.lang.Override
-      public java.util.Map getVehicleLoadsMap() {
+      public java.util.Map<
+              java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad>
+          getVehicleLoadsMap() {
         return internalGetVehicleLoads().getMap();
       }
       /**
+       *
+       *
        * 
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -8155,20 +9400,26 @@ public java.util.Map
        *
-       * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
+       * 
+       * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
+       * 
        */
       @java.lang.Override
-      public /* nullable */
-com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault(
-          java.lang.String key,
-          /* nullable */
-com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetVehicleLoads().getMap();
+      public /* nullable */ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad
+          getVehicleLoadsOrDefault(
+              java.lang.String key,
+              /* nullable */
+              com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map
+            map = internalGetVehicleLoads().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -8183,26 +9434,32 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrDefa
        * on whether the visit was a pickup or a delivery.
        * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVehicleLoads().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetVehicleLoads().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearVehicleLoads() { bitField0_ = (bitField0_ & ~0x00000200); - internalGetMutableVehicleLoads().getMutableMap() - .clear(); + internalGetMutableVehicleLoads().getMutableMap().clear(); return this; } /** + * + * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -8217,25 +9474,28 @@ public Builder clearVehicleLoads() {
        * on whether the visit was a pickup or a delivery.
        * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ - public Builder removeVehicleLoads( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVehicleLoads().getMutableMap() - .remove(key); + public Builder removeVehicleLoads(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableVehicleLoads().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> getMutableVehicleLoads() { bitField0_ |= 0x00000200; return internalGetMutableVehicleLoads().getMutableMap(); } /** + * + * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -8250,19 +9510,25 @@ public Builder removeVehicleLoads(
        * on whether the visit was a pickup or a delivery.
        * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ public Builder putVehicleLoads( - java.lang.String key, - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVehicleLoads().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableVehicleLoads().getMutableMap().put(key, value); bitField0_ |= 0x00000200; return this; } /** + * + * *
        * Vehicle loads during this transition, for each type that either appears
        * in this vehicle's
@@ -8277,38 +9543,51 @@ public Builder putVehicleLoads(
        * on whether the visit was a pickup or a delivery.
        * 
* - * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * + * map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11; + * */ public Builder putAllVehicleLoads( - java.util.Map values) { - internalGetMutableVehicleLoads().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> + values) { + internalGetMutableVehicleLoads().getMutableMap().putAll(values); bitField0_ |= 0x00000200; return this; } private java.util.List loads_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLoadsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - loads_ = new java.util.ArrayList(loads_); + loads_ = + new java.util.ArrayList(loads_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> loadsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + loadsBuilder_; /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getLoadsList() { + @java.lang.Deprecated + public java.util.List getLoadsList() { if (loadsBuilder_ == null) { return java.util.Collections.unmodifiableList(loads_); } else { @@ -8316,15 +9595,20 @@ private void ensureLoadsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public int getLoadsCount() { + @java.lang.Deprecated + public int getLoadsCount() { if (loadsBuilder_ == null) { return loads_.size(); } else { @@ -8332,15 +9616,20 @@ private void ensureLoadsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getLoads(int index) { if (loadsBuilder_ == null) { return loads_.get(index); } else { @@ -8348,16 +9637,20 @@ private void ensureLoadsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setLoads( - int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder setLoads(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (loadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8371,15 +9664,20 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setLoads( + @java.lang.Deprecated + public Builder setLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); @@ -8391,15 +9689,20 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { if (loadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8413,16 +9716,20 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addLoads( - int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addLoads(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (loadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8436,15 +9743,20 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addLoads( + @java.lang.Deprecated + public Builder addLoads( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); @@ -8456,15 +9768,20 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addLoads( + @java.lang.Deprecated + public Builder addLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); @@ -8476,20 +9793,24 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllLoads( + @java.lang.Deprecated + public Builder addAllLoads( java.lang.Iterable values) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, loads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, loads_); onChanged(); } else { loadsBuilder_.addAllMessages(values); @@ -8497,15 +9818,20 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearLoads() { + @java.lang.Deprecated + public Builder clearLoads() { if (loadsBuilder_ == null) { loads_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); @@ -8516,15 +9842,20 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeLoads(int index) { + @java.lang.Deprecated + public Builder removeLoads(int index) { if (loadsBuilder_ == null) { ensureLoadsIsMutable(); loads_.remove(index); @@ -8535,45 +9866,60 @@ private void ensureLoadsIsMutable() { return this; } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getLoadsBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder getLoadsBuilder(int index) { return getLoadsFieldBuilder().getBuilder(index); } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getLoadsOrBuilder( int index) { if (loadsBuilder_ == null) { - return loads_.get(index); } else { + return loads_.get(index); + } else { return loadsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getLoadsOrBuilderList() { + @java.lang.Deprecated + public java.util.List + getLoadsOrBuilderList() { if (loadsBuilder_ != null) { return loadsBuilder_.getMessageOrBuilderList(); } else { @@ -8581,59 +9927,78 @@ private void ensureLoadsIsMutable() { } } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addLoadsBuilder() { - return getLoadsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addLoadsBuilder() { + return getLoadsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addLoadsBuilder( - int index) { - return getLoadsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addLoadsBuilder(int index) { + return getLoadsFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
        * Deprecated: Use
        * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
        * instead.
        * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getLoadsBuilderList() { + @java.lang.Deprecated + public java.util.List + getLoadsBuilderList() { return getLoadsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getLoadsFieldBuilder() { if (loadsBuilder_ == null) { - loadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - loads_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); + loadsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + loads_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); loads_ = null; } return loadsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8646,12 +10011,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.Transition) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.Transition) private static final com.google.cloud.optimization.v1.ShipmentRoute.Transition DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.Transition(); } @@ -8660,27 +10025,28 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.Transition getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Transition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Transition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8695,14 +10061,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.Transition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface VehicleLoadOrBuilder extends + public interface VehicleLoadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The amount of load on the vehicle, for the given type. The unit of load
      * is usually indicated by the type. See
@@ -8710,11 +10078,14 @@ public interface VehicleLoadOrBuilder extends
      * 
* * int64 amount = 1; + * * @return The amount. */ long getAmount(); } /** + * + * *
    * Reports the actual load of the vehicle at some point along the route,
    * for a given type (see
@@ -8723,41 +10094,44 @@ public interface VehicleLoadOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.VehicleLoad}
    */
-  public static final class VehicleLoad extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class VehicleLoad extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad)
       VehicleLoadOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use VehicleLoad.newBuilder() to construct.
     private VehicleLoad(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private VehicleLoad() {
-    }
+
+    private VehicleLoad() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new VehicleLoad();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.class, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.class,
+              com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.Builder.class);
     }
 
     public static final int AMOUNT_FIELD_NUMBER = 1;
     private long amount_ = 0L;
     /**
+     *
+     *
      * 
      * The amount of load on the vehicle, for the given type. The unit of load
      * is usually indicated by the type. See
@@ -8765,6 +10139,7 @@ protected java.lang.Object newInstance(
      * 
* * int64 amount = 1; + * * @return The amount. */ @java.lang.Override @@ -8773,6 +10148,7 @@ public long getAmount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8784,8 +10160,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (amount_ != 0L) { output.writeInt64(1, amount_); } @@ -8799,8 +10174,7 @@ public int getSerializedSize() { size = 0; if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, amount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, amount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8810,15 +10184,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad other = (com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) obj; + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad other = + (com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) obj; - if (getAmount() - != other.getAmount()) return false; + if (getAmount() != other.getAmount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8831,97 +10205,101 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAmount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8931,6 +10309,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Reports the actual load of the vehicle at some point along the route,
      * for a given type (see
@@ -8939,33 +10319,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.VehicleLoad}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad)
         com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoadOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.class, com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.class,
+                com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -8975,13 +10355,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getDefaultInstanceForType() {
+      public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad
+          getDefaultInstanceForType() {
         return com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance();
       }
 
@@ -8996,13 +10377,17 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad result = new com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad result =
+            new com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad result) {
+      private void buildPartial0(
+          com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.amount_ = amount_;
@@ -9013,38 +10398,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Vehicl
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad)other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -9052,7 +10440,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance()) return this;
+        if (other
+            == com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad.getDefaultInstance())
+          return this;
         if (other.getAmount() != 0L) {
           setAmount(other.getAmount());
         }
@@ -9082,17 +10472,19 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                amount_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  amount_ = input.readInt64();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9102,10 +10494,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private long amount_ ;
+      private long amount_;
       /**
+       *
+       *
        * 
        * The amount of load on the vehicle, for the given type. The unit of load
        * is usually indicated by the type. See
@@ -9113,6 +10508,7 @@ public Builder mergeFrom(
        * 
* * int64 amount = 1; + * * @return The amount. */ @java.lang.Override @@ -9120,6 +10516,8 @@ public long getAmount() { return amount_; } /** + * + * *
        * The amount of load on the vehicle, for the given type. The unit of load
        * is usually indicated by the type. See
@@ -9127,6 +10525,7 @@ public long getAmount() {
        * 
* * int64 amount = 1; + * * @param value The amount to set. * @return This builder for chaining. */ @@ -9138,6 +10537,8 @@ public Builder setAmount(long value) { return this; } /** + * + * *
        * The amount of load on the vehicle, for the given type. The unit of load
        * is usually indicated by the type. See
@@ -9145,6 +10546,7 @@ public Builder setAmount(long value) {
        * 
* * int64 amount = 1; + * * @return This builder for chaining. */ public Builder clearAmount() { @@ -9153,6 +10555,7 @@ public Builder clearAmount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9165,12 +10568,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.VehicleLoad) - private static final com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad(); } @@ -9179,27 +10583,28 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VehicleLoad parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VehicleLoad parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9214,34 +10619,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface EncodedPolylineOrBuilder extends + public interface EncodedPolylineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * String representing encoded points of the polyline.
      * 
* * string points = 1; + * * @return The points. */ java.lang.String getPoints(); /** + * + * *
      * String representing encoded points of the polyline.
      * 
* * string points = 1; + * * @return The bytes for points. */ - com.google.protobuf.ByteString - getPointsBytes(); + com.google.protobuf.ByteString getPointsBytes(); } /** + * + * *
    * The encoded representation of a polyline. More information on polyline
    * encoding can be found here:
@@ -9251,48 +10663,54 @@ public interface EncodedPolylineOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline}
    */
-  public static final class EncodedPolyline extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class EncodedPolyline extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline)
       EncodedPolylineOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use EncodedPolyline.newBuilder() to construct.
     private EncodedPolyline(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private EncodedPolyline() {
       points_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new EncodedPolyline();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.class, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.class,
+              com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder.class);
     }
 
     public static final int POINTS_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object points_ = "";
     /**
+     *
+     *
      * 
      * String representing encoded points of the polyline.
      * 
* * string points = 1; + * * @return The points. */ @java.lang.Override @@ -9301,29 +10719,29 @@ public java.lang.String getPoints() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); points_ = s; return s; } } /** + * + * *
      * String representing encoded points of the polyline.
      * 
* * string points = 1; + * * @return The bytes for points. */ @java.lang.Override - public com.google.protobuf.ByteString - getPointsBytes() { + public com.google.protobuf.ByteString getPointsBytes() { java.lang.Object ref = points_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); points_ = b; return b; } else { @@ -9332,6 +10750,7 @@ public java.lang.String getPoints() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9343,8 +10762,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(points_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, points_); } @@ -9368,15 +10786,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline other = (com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) obj; + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline other = + (com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) obj; - if (!getPoints() - .equals(other.getPoints())) return false; + if (!getPoints().equals(other.getPoints())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9396,89 +10814,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9488,6 +10911,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The encoded representation of a polyline. More information on polyline
      * encoding can be found here:
@@ -9497,33 +10922,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline)
         com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.class, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.class,
+                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -9533,13 +10958,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getDefaultInstanceForType() {
+      public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline
+          getDefaultInstanceForType() {
         return com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance();
       }
 
@@ -9554,13 +10980,17 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline result = new com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline result =
+            new com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline result) {
+      private void buildPartial0(
+          com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.points_ = points_;
@@ -9571,46 +11001,52 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Encode
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline)other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline other) {
+        if (other
+            == com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance())
+          return this;
         if (!other.getPoints().isEmpty()) {
           points_ = other.points_;
           bitField0_ |= 0x00000001;
@@ -9642,17 +11078,19 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                points_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  points_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9662,22 +11100,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object points_ = "";
       /**
+       *
+       *
        * 
        * String representing encoded points of the polyline.
        * 
* * string points = 1; + * * @return The points. */ public java.lang.String getPoints() { java.lang.Object ref = points_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); points_ = s; return s; @@ -9686,20 +11127,21 @@ public java.lang.String getPoints() { } } /** + * + * *
        * String representing encoded points of the polyline.
        * 
* * string points = 1; + * * @return The bytes for points. */ - public com.google.protobuf.ByteString - getPointsBytes() { + public com.google.protobuf.ByteString getPointsBytes() { java.lang.Object ref = points_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); points_ = b; return b; } else { @@ -9707,28 +11149,35 @@ public java.lang.String getPoints() { } } /** + * + * *
        * String representing encoded points of the polyline.
        * 
* * string points = 1; + * * @param value The points to set. * @return This builder for chaining. */ - public Builder setPoints( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPoints(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } points_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * String representing encoded points of the polyline.
        * 
* * string points = 1; + * * @return This builder for chaining. */ public Builder clearPoints() { @@ -9738,23 +11187,28 @@ public Builder clearPoints() { return this; } /** + * + * *
        * String representing encoded points of the polyline.
        * 
* * string points = 1; + * * @param value The bytes for points to set. * @return This builder for chaining. */ - public Builder setPointsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPointsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); points_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9767,41 +11221,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline) - private static final com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline(); } - public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getDefaultInstance() { + public static com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncodedPolyline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncodedPolyline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9813,35 +11270,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BreakOrBuilder extends + public interface BreakOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.Break) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Start time of a break.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
      * Start time of a break.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
      * Start time of a break.
      * 
@@ -9851,24 +11317,32 @@ public interface BreakOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
      * Duration of a break.
      * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
      * Duration of a break.
      * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
      * Duration of a break.
      * 
@@ -9878,52 +11352,58 @@ public interface BreakOrBuilder extends com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); } /** + * + * *
    * Data representing the execution of a break.
    * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Break} */ - public static final class Break extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Break extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.Break) BreakOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Break.newBuilder() to construct. private Break(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Break() { - } + + private Break() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Break(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentRoute.Break.class, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder.class); + com.google.cloud.optimization.v1.ShipmentRoute.Break.class, + com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
      * Start time of a break.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -9931,11 +11411,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
      * Start time of a break.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -9943,6 +11426,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
      * Start time of a break.
      * 
@@ -9957,11 +11442,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** + * + * *
      * Duration of a break.
      * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -9969,11 +11457,14 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
      * Duration of a break.
      * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ @java.lang.Override @@ -9981,6 +11472,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
      * Duration of a break.
      * 
@@ -9993,6 +11486,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10004,8 +11498,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -10022,12 +11515,10 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10037,22 +11528,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.Break)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute.Break other = (com.google.cloud.optimization.v1.ShipmentRoute.Break) obj; + com.google.cloud.optimization.v1.ShipmentRoute.Break other = + (com.google.cloud.optimization.v1.ShipmentRoute.Break) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -10079,89 +11569,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute.Break parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Break prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.Break prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10171,39 +11666,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Data representing the execution of a break.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.Break} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.Break) com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.ShipmentRoute.Break.class, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder.class); + com.google.cloud.optimization.v1.ShipmentRoute.Break.class, + com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder.class); } // Construct using com.google.cloud.optimization.v1.ShipmentRoute.Break.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -10222,9 +11719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; } @java.lang.Override @@ -10243,8 +11740,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break build() { @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.Break buildPartial() { - com.google.cloud.optimization.v1.ShipmentRoute.Break result = new com.google.cloud.optimization.v1.ShipmentRoute.Break(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.ShipmentRoute.Break result = + new com.google.cloud.optimization.v1.ShipmentRoute.Break(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -10252,14 +11752,10 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break buildPartial() { private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Break result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null - ? duration_ - : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); } } @@ -10267,38 +11763,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Break public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.Break) { - return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Break)other); + return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.Break) other); } else { super.mergeFrom(other); return this; @@ -10306,7 +11805,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.Break other) { - if (other == com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance()) return this; + if (other == com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance()) + return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -10330,35 +11830,34 @@ public Builder mergeFrom( throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10368,38 +11867,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
        * Start time of a break.
        * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Start time of a break.
        * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** + * + * *
        * Start time of a break.
        * 
@@ -10420,14 +11933,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Start time of a break.
        * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -10438,6 +11952,8 @@ public Builder setStartTime( return this; } /** + * + * *
        * Start time of a break.
        * 
@@ -10446,9 +11962,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -10461,6 +11977,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Start time of a break.
        * 
@@ -10478,6 +11996,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
        * Start time of a break.
        * 
@@ -10490,6 +12010,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Start time of a break.
        * 
@@ -10500,11 +12022,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; } } /** + * + * *
        * Start time of a break.
        * 
@@ -10512,14 +12037,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -10527,24 +12055,33 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
        * Duration of a break.
        * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Duration of a break.
        * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -10555,6 +12092,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
        * Duration of a break.
        * 
@@ -10575,14 +12114,15 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Duration of a break.
        * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -10593,6 +12133,8 @@ public Builder setDuration( return this; } /** + * + * *
        * Duration of a break.
        * 
@@ -10601,9 +12143,9 @@ public Builder setDuration( */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - duration_ != null && - duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -10616,6 +12158,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Duration of a break.
        * 
@@ -10633,6 +12177,8 @@ public Builder clearDuration() { return this; } /** + * + * *
        * Duration of a break.
        * 
@@ -10645,6 +12191,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** + * + * *
        * Duration of a break.
        * 
@@ -10655,11 +12203,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
        * Duration of a break.
        * 
@@ -10667,18 +12216,22 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10691,12 +12244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.Break) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.Break) private static final com.google.cloud.optimization.v1.ShipmentRoute.Break DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.Break(); } @@ -10705,27 +12258,28 @@ public static com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Break parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Break parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10740,32 +12294,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - @java.lang.Deprecated public interface TravelStepOrBuilder extends + @java.lang.Deprecated + public interface TravelStepOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute.TravelStep) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Duration of the travel step.
      * 
* * .google.protobuf.Duration duration = 1; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
      * Duration of the travel step.
      * 
* * .google.protobuf.Duration duration = 1; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
      * Duration of the travel step.
      * 
@@ -10775,16 +12338,21 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultInstanceFo com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** + * + * *
      * Distance traveled during the step.
      * 
* * double distance_meters = 2; + * * @return The distanceMeters. */ double getDistanceMeters(); /** + * + * *
      * When traffic is requested via
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -10794,11 +12362,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultInstanceFo
      * 
* * bool traffic_info_unavailable = 3; + * * @return The trafficInfoUnavailable. */ boolean getTrafficInfoUnavailable(); /** + * + * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -10809,10 +12380,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultInstanceFo
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * * @return Whether the routePolyline field is set. */ boolean hasRoutePolyline(); /** + * + * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -10823,10 +12397,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultInstanceFo
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * * @return The routePolyline. */ com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline(); /** + * + * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -10838,9 +12415,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultInstanceFo
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;
      */
-    com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder();
+    com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
+        getRoutePolylineOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Deprecated: Use
    * [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition]
@@ -10860,46 +12440,51 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getDefaultInstanceFo
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.TravelStep}
    */
-  @java.lang.Deprecated public static final class TravelStep extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  @java.lang.Deprecated
+  public static final class TravelStep extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentRoute.TravelStep)
       TravelStepOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use TravelStep.newBuilder() to construct.
     private TravelStep(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private TravelStep() {
-    }
+
+    private TravelStep() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new TravelStep();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.class, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.class,
+              com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder.class);
     }
 
     public static final int DURATION_FIELD_NUMBER = 1;
     private com.google.protobuf.Duration duration_;
     /**
+     *
+     *
      * 
      * Duration of the travel step.
      * 
* * .google.protobuf.Duration duration = 1; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -10907,11 +12492,14 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
      * Duration of the travel step.
      * 
* * .google.protobuf.Duration duration = 1; + * * @return The duration. */ @java.lang.Override @@ -10919,6 +12507,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
      * Duration of the travel step.
      * 
@@ -10933,11 +12523,14 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { public static final int DISTANCE_METERS_FIELD_NUMBER = 2; private double distanceMeters_ = 0D; /** + * + * *
      * Distance traveled during the step.
      * 
* * double distance_meters = 2; + * * @return The distanceMeters. */ @java.lang.Override @@ -10948,6 +12541,8 @@ public double getDistanceMeters() { public static final int TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER = 3; private boolean trafficInfoUnavailable_ = false; /** + * + * *
      * When traffic is requested via
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -10957,6 +12552,7 @@ public double getDistanceMeters() {
      * 
* * bool traffic_info_unavailable = 3; + * * @return The trafficInfoUnavailable. */ @java.lang.Override @@ -10967,6 +12563,8 @@ public boolean getTrafficInfoUnavailable() { public static final int ROUTE_POLYLINE_FIELD_NUMBER = 4; private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; /** + * + * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -10977,6 +12575,7 @@ public boolean getTrafficInfoUnavailable() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * * @return Whether the routePolyline field is set. */ @java.lang.Override @@ -10984,6 +12583,8 @@ public boolean hasRoutePolyline() { return routePolyline_ != null; } /** + * + * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -10994,13 +12595,18 @@ public boolean hasRoutePolyline() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * * @return The routePolyline. */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { - return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; + return routePolyline_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() + : routePolyline_; } /** + * + * *
      * The encoded polyline representation of the route followed during the
      * step.
@@ -11013,11 +12619,15 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;
      */
     @java.lang.Override
-    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() {
-      return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_;
+    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
+        getRoutePolylineOrBuilder() {
+      return routePolyline_ == null
+          ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()
+          : routePolyline_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -11029,8 +12639,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (duration_ != null) {
         output.writeMessage(1, getDuration());
       }
@@ -11053,20 +12662,16 @@ public int getSerializedSize() {
 
       size = 0;
       if (duration_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getDuration());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDuration());
       }
       if (java.lang.Double.doubleToRawLongBits(distanceMeters_) != 0) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeDoubleSize(2, distanceMeters_);
+        size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, distanceMeters_);
       }
       if (trafficInfoUnavailable_ != false) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(3, trafficInfoUnavailable_);
+        size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trafficInfoUnavailable_);
       }
       if (routePolyline_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, getRoutePolyline());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRoutePolyline());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -11076,27 +12681,24 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute.TravelStep)) {
         return super.equals(obj);
       }
-      com.google.cloud.optimization.v1.ShipmentRoute.TravelStep other = (com.google.cloud.optimization.v1.ShipmentRoute.TravelStep) obj;
+      com.google.cloud.optimization.v1.ShipmentRoute.TravelStep other =
+          (com.google.cloud.optimization.v1.ShipmentRoute.TravelStep) obj;
 
       if (hasDuration() != other.hasDuration()) return false;
       if (hasDuration()) {
-        if (!getDuration()
-            .equals(other.getDuration())) return false;
+        if (!getDuration().equals(other.getDuration())) return false;
       }
       if (java.lang.Double.doubleToLongBits(getDistanceMeters())
-          != java.lang.Double.doubleToLongBits(
-              other.getDistanceMeters())) return false;
-      if (getTrafficInfoUnavailable()
-          != other.getTrafficInfoUnavailable()) return false;
+          != java.lang.Double.doubleToLongBits(other.getDistanceMeters())) return false;
+      if (getTrafficInfoUnavailable() != other.getTrafficInfoUnavailable()) return false;
       if (hasRoutePolyline() != other.hasRoutePolyline()) return false;
       if (hasRoutePolyline()) {
-        if (!getRoutePolyline()
-            .equals(other.getRoutePolyline())) return false;
+        if (!getRoutePolyline().equals(other.getRoutePolyline())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -11114,11 +12716,12 @@ public int hashCode() {
         hash = (53 * hash) + getDuration().hashCode();
       }
       hash = (37 * hash) + DISTANCE_METERS_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          java.lang.Double.doubleToLongBits(getDistanceMeters()));
+      hash =
+          (53 * hash)
+              + com.google.protobuf.Internal.hashLong(
+                  java.lang.Double.doubleToLongBits(getDistanceMeters()));
       hash = (37 * hash) + TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-          getTrafficInfoUnavailable());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrafficInfoUnavailable());
       if (hasRoutePolyline()) {
         hash = (37 * hash) + ROUTE_POLYLINE_FIELD_NUMBER;
         hash = (53 * hash) + getRoutePolyline().hashCode();
@@ -11129,89 +12732,94 @@ public int hashCode() {
     }
 
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.optimization.v1.ShipmentRoute.TravelStep prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -11221,6 +12829,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Deprecated: Use
      * [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition]
@@ -11240,33 +12850,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute.TravelStep}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute.TravelStep)
         com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.class, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder.class);
+                com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.class,
+                com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -11287,9 +12897,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor;
       }
 
       @java.lang.Override
@@ -11308,8 +12918,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep buildPartial() {
-        com.google.cloud.optimization.v1.ShipmentRoute.TravelStep result = new com.google.cloud.optimization.v1.ShipmentRoute.TravelStep(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.ShipmentRoute.TravelStep result =
+            new com.google.cloud.optimization.v1.ShipmentRoute.TravelStep(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -11317,9 +12930,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep buildPartial()
       private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.duration_ = durationBuilder_ == null
-              ? duration_
-              : durationBuilder_.build();
+          result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.distanceMeters_ = distanceMeters_;
@@ -11328,9 +12939,8 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Travel
           result.trafficInfoUnavailable_ = trafficInfoUnavailable_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.routePolyline_ = routePolylineBuilder_ == null
-              ? routePolyline_
-              : routePolylineBuilder_.build();
+          result.routePolyline_ =
+              routePolylineBuilder_ == null ? routePolyline_ : routePolylineBuilder_.build();
         }
       }
 
@@ -11338,38 +12948,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute.Travel
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute.TravelStep) {
-          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.TravelStep)other);
+          return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute.TravelStep) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -11377,7 +12990,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep other) {
-        if (other == com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance())
+          return this;
         if (other.hasDuration()) {
           mergeDuration(other.getDuration());
         }
@@ -11416,36 +13030,37 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 17: {
-                distanceMeters_ = input.readDouble();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 17
-              case 24: {
-                trafficInfoUnavailable_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-              case 34: {
-                input.readMessage(
-                    getRoutePolylineFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 17:
+                {
+                  distanceMeters_ = input.readDouble();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 17
+              case 24:
+                {
+                  trafficInfoUnavailable_ = input.readBool();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 24
+              case 34:
+                {
+                  input.readMessage(getRoutePolylineFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11455,28 +13070,38 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.Duration duration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          durationBuilder_;
       /**
+       *
+       *
        * 
        * Duration of the travel step.
        * 
* * .google.protobuf.Duration duration = 1; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Duration of the travel step.
        * 
* * .google.protobuf.Duration duration = 1; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -11487,6 +13112,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
        * Duration of the travel step.
        * 
@@ -11507,14 +13134,15 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Duration of the travel step.
        * 
* * .google.protobuf.Duration duration = 1; */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -11525,6 +13153,8 @@ public Builder setDuration( return this; } /** + * + * *
        * Duration of the travel step.
        * 
@@ -11533,9 +13163,9 @@ public Builder setDuration( */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - duration_ != null && - duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -11548,6 +13178,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * Duration of the travel step.
        * 
@@ -11565,6 +13197,8 @@ public Builder clearDuration() { return this; } /** + * + * *
        * Duration of the travel step.
        * 
@@ -11577,6 +13211,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** + * + * *
        * Duration of the travel step.
        * 
@@ -11587,11 +13223,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
        * Duration of the travel step.
        * 
@@ -11599,26 +13236,32 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } - private double distanceMeters_ ; + private double distanceMeters_; /** + * + * *
        * Distance traveled during the step.
        * 
* * double distance_meters = 2; + * * @return The distanceMeters. */ @java.lang.Override @@ -11626,11 +13269,14 @@ public double getDistanceMeters() { return distanceMeters_; } /** + * + * *
        * Distance traveled during the step.
        * 
* * double distance_meters = 2; + * * @param value The distanceMeters to set. * @return This builder for chaining. */ @@ -11642,11 +13288,14 @@ public Builder setDistanceMeters(double value) { return this; } /** + * + * *
        * Distance traveled during the step.
        * 
* * double distance_meters = 2; + * * @return This builder for chaining. */ public Builder clearDistanceMeters() { @@ -11656,8 +13305,10 @@ public Builder clearDistanceMeters() { return this; } - private boolean trafficInfoUnavailable_ ; + private boolean trafficInfoUnavailable_; /** + * + * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -11667,6 +13318,7 @@ public Builder clearDistanceMeters() {
        * 
* * bool traffic_info_unavailable = 3; + * * @return The trafficInfoUnavailable. */ @java.lang.Override @@ -11674,6 +13326,8 @@ public boolean getTrafficInfoUnavailable() { return trafficInfoUnavailable_; } /** + * + * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -11683,6 +13337,7 @@ public boolean getTrafficInfoUnavailable() {
        * 
* * bool traffic_info_unavailable = 3; + * * @param value The trafficInfoUnavailable to set. * @return This builder for chaining. */ @@ -11694,6 +13349,8 @@ public Builder setTrafficInfoUnavailable(boolean value) { return this; } /** + * + * *
        * When traffic is requested via
        * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -11703,6 +13360,7 @@ public Builder setTrafficInfoUnavailable(boolean value) {
        * 
* * bool traffic_info_unavailable = 3; + * * @return This builder for chaining. */ public Builder clearTrafficInfoUnavailable() { @@ -11714,8 +13372,13 @@ public Builder clearTrafficInfoUnavailable() { private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> routePolylineBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> + routePolylineBuilder_; /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11725,13 +13388,17 @@ public Builder clearTrafficInfoUnavailable() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * + * * @return Whether the routePolyline field is set. */ public boolean hasRoutePolyline() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11741,17 +13408,23 @@ public boolean hasRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * + * * @return The routePolyline. */ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { if (routePolylineBuilder_ == null) { - return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; + return routePolyline_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() + : routePolyline_; } else { return routePolylineBuilder_.getMessage(); } } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11761,9 +13434,11 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * */ - public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { + public Builder setRoutePolyline( + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { if (routePolylineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11777,6 +13452,8 @@ public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.E return this; } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11786,7 +13463,8 @@ public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.E
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * */ public Builder setRoutePolyline( com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder builderForValue) { @@ -11800,6 +13478,8 @@ public Builder setRoutePolyline( return this; } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11809,13 +13489,17 @@ public Builder setRoutePolyline(
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * */ - public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { + public Builder mergeRoutePolyline( + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) { if (routePolylineBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - routePolyline_ != null && - routePolyline_ != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && routePolyline_ != null + && routePolyline_ + != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline + .getDefaultInstance()) { getRoutePolylineBuilder().mergeFrom(value); } else { routePolyline_ = value; @@ -11828,6 +13512,8 @@ public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute return this; } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11837,7 +13523,8 @@ public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * */ public Builder clearRoutePolyline() { bitField0_ = (bitField0_ & ~0x00000008); @@ -11850,6 +13537,8 @@ public Builder clearRoutePolyline() { return this; } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11859,14 +13548,18 @@ public Builder clearRoutePolyline() {
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * */ - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder getRoutePolylineBuilder() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder + getRoutePolylineBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRoutePolylineFieldBuilder().getBuilder(); } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11876,17 +13569,22 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder ge
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * */ - public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() { + public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder + getRoutePolylineOrBuilder() { if (routePolylineBuilder_ != null) { return routePolylineBuilder_.getMessageOrBuilder(); } else { - return routePolyline_ == null ? - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; + return routePolyline_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() + : routePolyline_; } } /** + * + * *
        * The encoded polyline representation of the route followed during the
        * step.
@@ -11896,21 +13594,26 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder g
        * is set to true.
        * 
* - * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> getRoutePolylineFieldBuilder() { if (routePolylineBuilder_ == null) { - routePolylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>( - getRoutePolyline(), - getParentForChildren(), - isClean()); + routePolylineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>( + getRoutePolyline(), getParentForChildren(), isClean()); routePolyline_ = null; } return routePolylineBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11923,41 +13626,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute.TravelStep) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute.TravelStep) private static final com.google.cloud.optimization.v1.ShipmentRoute.TravelStep DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute.TravelStep(); } public static com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TravelStep parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TravelStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11972,18 +13676,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int VEHICLE_INDEX_FIELD_NUMBER = 1; private int vehicleIndex_ = 0; /** + * + * *
    * Vehicle performing the route, identified by its index in the source
    * `ShipmentModel`.
    * 
* * int32 vehicle_index = 1; + * * @return The vehicleIndex. */ @java.lang.Override @@ -11992,15 +13698,19 @@ public int getVehicleIndex() { } public static final int VEHICLE_LABEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object vehicleLabel_ = ""; /** + * + * *
    * Label of the vehicle performing this route, equal to
    * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
    * 
* * string vehicle_label = 2; + * * @return The vehicleLabel. */ @java.lang.Override @@ -12009,30 +13719,30 @@ public java.lang.String getVehicleLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vehicleLabel_ = s; return s; } } /** + * + * *
    * Label of the vehicle performing this route, equal to
    * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
    * 
* * string vehicle_label = 2; + * * @return The bytes for vehicleLabel. */ @java.lang.Override - public com.google.protobuf.ByteString - getVehicleLabelBytes() { + public com.google.protobuf.ByteString getVehicleLabelBytes() { java.lang.Object ref = vehicleLabel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vehicleLabel_ = b; return b; } else { @@ -12043,11 +13753,14 @@ public java.lang.String getVehicleLabel() { public static final int VEHICLE_START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp vehicleStartTime_; /** + * + * *
    * Time at which the vehicle starts its route.
    * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; + * * @return Whether the vehicleStartTime field is set. */ @java.lang.Override @@ -12055,18 +13768,25 @@ public boolean hasVehicleStartTime() { return vehicleStartTime_ != null; } /** + * + * *
    * Time at which the vehicle starts its route.
    * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; + * * @return The vehicleStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getVehicleStartTime() { - return vehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleStartTime_; + return vehicleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : vehicleStartTime_; } /** + * + * *
    * Time at which the vehicle starts its route.
    * 
@@ -12075,17 +13795,22 @@ public com.google.protobuf.Timestamp getVehicleStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder() { - return vehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleStartTime_; + return vehicleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : vehicleStartTime_; } public static final int VEHICLE_END_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp vehicleEndTime_; /** + * + * *
    * Time at which the vehicle finishes its route.
    * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; + * * @return Whether the vehicleEndTime field is set. */ @java.lang.Override @@ -12093,18 +13818,25 @@ public boolean hasVehicleEndTime() { return vehicleEndTime_ != null; } /** + * + * *
    * Time at which the vehicle finishes its route.
    * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; + * * @return The vehicleEndTime. */ @java.lang.Override public com.google.protobuf.Timestamp getVehicleEndTime() { - return vehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleEndTime_; + return vehicleEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : vehicleEndTime_; } /** + * + * *
    * Time at which the vehicle finishes its route.
    * 
@@ -12113,13 +13845,18 @@ public com.google.protobuf.Timestamp getVehicleEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder() { - return vehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleEndTime_; + return vehicleEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : vehicleEndTime_; } public static final int VISITS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private java.util.List visits_; /** + * + * *
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -12133,6 +13870,8 @@ public java.util.List getV
     return visits_;
   }
   /**
+   *
+   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -12142,11 +13881,13 @@ public java.util.List getV
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getVisitsOrBuilderList() {
     return visits_;
   }
   /**
+   *
+   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -12160,6 +13901,8 @@ public int getVisitsCount() {
     return visits_.size();
   }
   /**
+   *
+   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -12173,6 +13916,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit getVisits(int index)
     return visits_.get(index);
   }
   /**
+   *
+   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -12188,9 +13933,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr
   }
 
   public static final int TRANSITIONS_FIELD_NUMBER = 8;
+
   @SuppressWarnings("serial")
   private java.util.List transitions_;
   /**
+   *
+   *
    * 
    * Ordered list of transitions for the route.
    * 
@@ -12198,10 +13946,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ @java.lang.Override - public java.util.List getTransitionsList() { + public java.util.List + getTransitionsList() { return transitions_; } /** + * + * *
    * Ordered list of transitions for the route.
    * 
@@ -12209,11 +13960,14 @@ public java.util.List * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> getTransitionsOrBuilderList() { return transitions_; } /** + * + * *
    * Ordered list of transitions for the route.
    * 
@@ -12225,6 +13979,8 @@ public int getTransitionsCount() { return transitions_.size(); } /** + * + * *
    * Ordered list of transitions for the route.
    * 
@@ -12236,6 +13992,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition getTransitions( return transitions_.get(index); } /** + * + * *
    * Ordered list of transitions for the route.
    * 
@@ -12251,6 +14009,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTra public static final int HAS_TRAFFIC_INFEASIBILITIES_FIELD_NUMBER = 9; private boolean hasTrafficInfeasibilities_ = false; /** + * + * *
    * When
    * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -12273,6 +14033,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTra
    * 
* * bool has_traffic_infeasibilities = 9; + * * @return The hasTrafficInfeasibilities. */ @java.lang.Override @@ -12283,6 +14044,8 @@ public boolean getHasTrafficInfeasibilities() { public static final int ROUTE_POLYLINE_FIELD_NUMBER = 10; private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; /** + * + * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -12291,6 +14054,7 @@ public boolean getHasTrafficInfeasibilities() {
    * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; + * * @return Whether the routePolyline field is set. */ @java.lang.Override @@ -12298,6 +14062,8 @@ public boolean hasRoutePolyline() { return routePolyline_ != null; } /** + * + * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -12306,13 +14072,18 @@ public boolean hasRoutePolyline() {
    * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; + * * @return The routePolyline. */ @java.lang.Override public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { - return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; + return routePolyline_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() + : routePolyline_; } /** + * + * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -12323,14 +14094,20 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
    * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() {
-    return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_;
+  public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
+      getRoutePolylineOrBuilder() {
+    return routePolyline_ == null
+        ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()
+        : routePolyline_;
   }
 
   public static final int BREAKS_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
   private java.util.List breaks_;
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -12344,6 +14121,8 @@ public java.util.List getB
     return breaks_;
   }
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -12353,11 +14132,13 @@ public java.util.List getB
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getBreaksOrBuilderList() {
     return breaks_;
   }
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -12371,6 +14152,8 @@ public int getBreaksCount() {
     return breaks_.size();
   }
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -12384,6 +14167,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getBreaks(int index)
     return breaks_.get(index);
   }
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -12401,6 +14186,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
   public static final int METRICS_FIELD_NUMBER = 12;
   private com.google.cloud.optimization.v1.AggregatedMetrics metrics_;
   /**
+   *
+   *
    * 
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -12412,6 +14199,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
    * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; + * * @return Whether the metrics field is set. */ @java.lang.Override @@ -12419,6 +14207,8 @@ public boolean hasMetrics() { return metrics_ != null; } /** + * + * *
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -12430,13 +14220,18 @@ public boolean hasMetrics() {
    * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; + * * @return The metrics. */ @java.lang.Override public com.google.cloud.optimization.v1.AggregatedMetrics getMetrics() { - return metrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() + : metrics_; } /** + * + * *
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -12451,36 +14246,40 @@ public com.google.cloud.optimization.v1.AggregatedMetrics getMetrics() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrBuilder() {
-    return metrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : metrics_;
+    return metrics_ == null
+        ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()
+        : metrics_;
   }
 
   public static final int ROUTE_COSTS_FIELD_NUMBER = 17;
+
   private static final class RouteCostsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.Double> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.DOUBLE,
-                0D);
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.optimization.v1.FleetRoutingProto
+                .internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.DOUBLE,
+            0D);
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.Double> routeCosts_;
-  private com.google.protobuf.MapField
-  internalGetRouteCosts() {
+  private com.google.protobuf.MapField routeCosts_;
+
+  private com.google.protobuf.MapField internalGetRouteCosts() {
     if (routeCosts_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          RouteCostsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(RouteCostsDefaultEntryHolder.defaultEntry);
     }
     return routeCosts_;
   }
+
   public int getRouteCostsCount() {
     return internalGetRouteCosts().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -12495,20 +14294,21 @@ public int getRouteCostsCount() {
    * map<string, double> route_costs = 17;
    */
   @java.lang.Override
-  public boolean containsRouteCosts(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsRouteCosts(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetRouteCosts().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getRouteCostsMap()} instead.
-   */
+  /** Use {@link #getRouteCostsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getRouteCosts() {
     return getRouteCostsMap();
   }
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -12527,6 +14327,8 @@ public java.util.Map getRouteCostsMap() {
     return internalGetRouteCosts().getMap();
   }
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -12541,15 +14343,16 @@ public java.util.Map getRouteCostsMap() {
    * map<string, double> route_costs = 17;
    */
   @java.lang.Override
-  public double getRouteCostsOrDefault(
-      java.lang.String key,
-      double defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetRouteCosts().getMap();
+  public double getRouteCostsOrDefault(java.lang.String key, double defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetRouteCosts().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -12564,11 +14367,11 @@ public double getRouteCostsOrDefault(
    * map<string, double> route_costs = 17;
    */
   @java.lang.Override
-  public double getRouteCostsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetRouteCosts().getMap();
+  public double getRouteCostsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetRouteCosts().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -12578,11 +14381,14 @@ public double getRouteCostsOrThrow(
   public static final int ROUTE_TOTAL_COST_FIELD_NUMBER = 18;
   private double routeTotalCost_ = 0D;
   /**
+   *
+   *
    * 
    * Total cost of the route. The sum of all costs in the cost map.
    * 
* * double route_total_cost = 18; + * * @return The routeTotalCost. */ @java.lang.Override @@ -12591,9 +14397,12 @@ public double getRouteTotalCost() { } public static final int END_LOADS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private java.util.List endLoads_; /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -12605,13 +14414,18 @@ public double getRouteTotalCost() {
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getEndLoadsList() { + @java.lang.Deprecated + public java.util.List getEndLoadsList() { return endLoads_; } /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -12623,14 +14437,19 @@ public double getRouteTotalCost() {
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getEndLoadsOrBuilderList() { return endLoads_; } /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -12642,13 +14461,18 @@ public double getRouteTotalCost() {
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getEndLoadsCount() { + @java.lang.Deprecated + public int getEndLoadsCount() { return endLoads_.size(); } /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -12660,13 +14484,18 @@ public double getRouteTotalCost() {
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) { return endLoads_.get(index); } /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -12678,81 +14507,112 @@ public double getRouteTotalCost() {
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( int index) { return endLoads_.get(index); } public static final int TRAVEL_STEPS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List travelSteps_; /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getTravelStepsList() { + @java.lang.Deprecated + public java.util.List + getTravelStepsList() { return travelSteps_; } /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> getTravelStepsOrBuilderList() { return travelSteps_; } /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getTravelStepsCount() { + @java.lang.Deprecated + public int getTravelStepsCount() { return travelSteps_.size(); } /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index) { return travelSteps_.get(index); } /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( int index) { return travelSteps_.get(index); } @@ -12760,6 +14620,8 @@ public double getRouteTotalCost() { public static final int VEHICLE_DETOUR_FIELD_NUMBER = 15; private com.google.protobuf.Duration vehicleDetour_; /** + * + * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -12774,15 +14636,19 @@ public double getRouteTotalCost() {
    * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return Whether the vehicleDetour field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasVehicleDetour() { + @java.lang.Deprecated + public boolean hasVehicleDetour() { return vehicleDetour_ != null; } /** + * + * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -12797,15 +14663,21 @@ public double getRouteTotalCost() {
    * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return The vehicleDetour. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.Duration getVehicleDetour() { - return vehicleDetour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : vehicleDetour_; + @java.lang.Deprecated + public com.google.protobuf.Duration getVehicleDetour() { + return vehicleDetour_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : vehicleDetour_; } /** + * + * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -12822,56 +14694,82 @@ public double getRouteTotalCost() {
    * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
    */
   @java.lang.Override
-  @java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
-    return vehicleDetour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : vehicleDetour_;
+  @java.lang.Deprecated
+  public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
+    return vehicleDetour_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : vehicleDetour_;
   }
 
   public static final int DELAY_BEFORE_VEHICLE_END_FIELD_NUMBER = 16;
   private com.google.cloud.optimization.v1.ShipmentRoute.Delay delayBeforeVehicleEnd_;
   /**
+   *
+   *
    * 
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return Whether the delayBeforeVehicleEnd field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasDelayBeforeVehicleEnd() { + @java.lang.Deprecated + public boolean hasDelayBeforeVehicleEnd() { return delayBeforeVehicleEnd_ != null; } /** + * + * *
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return The delayBeforeVehicleEnd. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd() { - return delayBeforeVehicleEnd_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeVehicleEnd_; + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd() { + return delayBeforeVehicleEnd_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() + : delayBeforeVehicleEnd_; } /** + * + * *
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeVehicleEndOrBuilder() { - return delayBeforeVehicleEnd_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeVehicleEnd_; + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder + getDelayBeforeVehicleEndOrBuilder() { + return delayBeforeVehicleEnd_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() + : delayBeforeVehicleEnd_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12883,8 +14781,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (vehicleIndex_ != 0) { output.writeInt32(1, vehicleIndex_); } @@ -12927,12 +14824,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (delayBeforeVehicleEnd_ != null) { output.writeMessage(16, getDelayBeforeVehicleEnd()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRouteCosts(), - RouteCostsDefaultEntryHolder.defaultEntry, - 17); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRouteCosts(), RouteCostsDefaultEntryHolder.defaultEntry, 17); if (java.lang.Double.doubleToRawLongBits(routeTotalCost_) != 0) { output.writeDouble(18, routeTotalCost_); } @@ -12946,73 +14839,60 @@ public int getSerializedSize() { size = 0; if (vehicleIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, vehicleIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, vehicleIndex_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vehicleLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vehicleLabel_); } if (vehicleStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getVehicleStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVehicleStartTime()); } if (vehicleEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getVehicleEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVehicleEndTime()); } for (int i = 0; i < visits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, visits_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, visits_.get(i)); } for (int i = 0; i < transitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, transitions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, transitions_.get(i)); } if (hasTrafficInfeasibilities_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, hasTrafficInfeasibilities_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, hasTrafficInfeasibilities_); } if (routePolyline_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getRoutePolyline()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRoutePolyline()); } for (int i = 0; i < breaks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, breaks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, breaks_.get(i)); } if (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getMetrics()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMetrics()); } for (int i = 0; i < endLoads_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, endLoads_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, endLoads_.get(i)); } for (int i = 0; i < travelSteps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, travelSteps_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, travelSteps_.get(i)); } if (vehicleDetour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getVehicleDetour()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVehicleDetour()); } if (delayBeforeVehicleEnd_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getDelayBeforeVehicleEnd()); - } - for (java.util.Map.Entry entry - : internalGetRouteCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry - routeCosts__ = RouteCostsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, routeCosts__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, getDelayBeforeVehicleEnd()); + } + for (java.util.Map.Entry entry : + internalGetRouteCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry routeCosts__ = + RouteCostsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, routeCosts__); } if (java.lang.Double.doubleToRawLongBits(routeTotalCost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(18, routeTotalCost_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(18, routeTotalCost_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13022,63 +14902,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentRoute)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentRoute other = (com.google.cloud.optimization.v1.ShipmentRoute) obj; + com.google.cloud.optimization.v1.ShipmentRoute other = + (com.google.cloud.optimization.v1.ShipmentRoute) obj; - if (getVehicleIndex() - != other.getVehicleIndex()) return false; - if (!getVehicleLabel() - .equals(other.getVehicleLabel())) return false; + if (getVehicleIndex() != other.getVehicleIndex()) return false; + if (!getVehicleLabel().equals(other.getVehicleLabel())) return false; if (hasVehicleStartTime() != other.hasVehicleStartTime()) return false; if (hasVehicleStartTime()) { - if (!getVehicleStartTime() - .equals(other.getVehicleStartTime())) return false; + if (!getVehicleStartTime().equals(other.getVehicleStartTime())) return false; } if (hasVehicleEndTime() != other.hasVehicleEndTime()) return false; if (hasVehicleEndTime()) { - if (!getVehicleEndTime() - .equals(other.getVehicleEndTime())) return false; - } - if (!getVisitsList() - .equals(other.getVisitsList())) return false; - if (!getTransitionsList() - .equals(other.getTransitionsList())) return false; - if (getHasTrafficInfeasibilities() - != other.getHasTrafficInfeasibilities()) return false; + if (!getVehicleEndTime().equals(other.getVehicleEndTime())) return false; + } + if (!getVisitsList().equals(other.getVisitsList())) return false; + if (!getTransitionsList().equals(other.getTransitionsList())) return false; + if (getHasTrafficInfeasibilities() != other.getHasTrafficInfeasibilities()) return false; if (hasRoutePolyline() != other.hasRoutePolyline()) return false; if (hasRoutePolyline()) { - if (!getRoutePolyline() - .equals(other.getRoutePolyline())) return false; + if (!getRoutePolyline().equals(other.getRoutePolyline())) return false; } - if (!getBreaksList() - .equals(other.getBreaksList())) return false; + if (!getBreaksList().equals(other.getBreaksList())) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { - if (!getMetrics() - .equals(other.getMetrics())) return false; + if (!getMetrics().equals(other.getMetrics())) return false; } - if (!internalGetRouteCosts().equals( - other.internalGetRouteCosts())) return false; + if (!internalGetRouteCosts().equals(other.internalGetRouteCosts())) return false; if (java.lang.Double.doubleToLongBits(getRouteTotalCost()) - != java.lang.Double.doubleToLongBits( - other.getRouteTotalCost())) return false; - if (!getEndLoadsList() - .equals(other.getEndLoadsList())) return false; - if (!getTravelStepsList() - .equals(other.getTravelStepsList())) return false; + != java.lang.Double.doubleToLongBits(other.getRouteTotalCost())) return false; + if (!getEndLoadsList().equals(other.getEndLoadsList())) return false; + if (!getTravelStepsList().equals(other.getTravelStepsList())) return false; if (hasVehicleDetour() != other.hasVehicleDetour()) return false; if (hasVehicleDetour()) { - if (!getVehicleDetour() - .equals(other.getVehicleDetour())) return false; + if (!getVehicleDetour().equals(other.getVehicleDetour())) return false; } if (hasDelayBeforeVehicleEnd() != other.hasDelayBeforeVehicleEnd()) return false; if (hasDelayBeforeVehicleEnd()) { - if (!getDelayBeforeVehicleEnd() - .equals(other.getDelayBeforeVehicleEnd())) return false; + if (!getDelayBeforeVehicleEnd().equals(other.getDelayBeforeVehicleEnd())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -13112,8 +14977,7 @@ public int hashCode() { hash = (53 * hash) + getTransitionsList().hashCode(); } hash = (37 * hash) + HAS_TRAFFIC_INFEASIBILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasTrafficInfeasibilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasTrafficInfeasibilities()); if (hasRoutePolyline()) { hash = (37 * hash) + ROUTE_POLYLINE_FIELD_NUMBER; hash = (53 * hash) + getRoutePolyline().hashCode(); @@ -13131,8 +14995,10 @@ public int hashCode() { hash = (53 * hash) + internalGetRouteCosts().hashCode(); } hash = (37 * hash) + ROUTE_TOTAL_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getRouteTotalCost())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRouteTotalCost())); if (getEndLoadsCount() > 0) { hash = (37 * hash) + END_LOADS_FIELD_NUMBER; hash = (53 * hash) + getEndLoadsList().hashCode(); @@ -13154,99 +15020,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentRoute parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentRoute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentRoute parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentRoute parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentRoute prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A vehicle's route can be decomposed, along the time axis, like this (we
    * assume there are n visits):
@@ -13336,55 +15207,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentRoute}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentRoute)
       com.google.cloud.optimization.v1.ShipmentRouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 17:
           return internalGetRouteCosts();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 17:
           return internalGetMutableRouteCosts();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentRoute.class, com.google.cloud.optimization.v1.ShipmentRoute.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentRoute.class,
+              com.google.cloud.optimization.v1.ShipmentRoute.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.ShipmentRoute.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -13463,9 +15331,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor;
     }
 
     @java.lang.Override
@@ -13484,9 +15352,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.ShipmentRoute buildPartial() {
-      com.google.cloud.optimization.v1.ShipmentRoute result = new com.google.cloud.optimization.v1.ShipmentRoute(this);
+      com.google.cloud.optimization.v1.ShipmentRoute result =
+          new com.google.cloud.optimization.v1.ShipmentRoute(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -13548,27 +15419,22 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute result
         result.vehicleLabel_ = vehicleLabel_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.vehicleStartTime_ = vehicleStartTimeBuilder_ == null
-            ? vehicleStartTime_
-            : vehicleStartTimeBuilder_.build();
+        result.vehicleStartTime_ =
+            vehicleStartTimeBuilder_ == null ? vehicleStartTime_ : vehicleStartTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.vehicleEndTime_ = vehicleEndTimeBuilder_ == null
-            ? vehicleEndTime_
-            : vehicleEndTimeBuilder_.build();
+        result.vehicleEndTime_ =
+            vehicleEndTimeBuilder_ == null ? vehicleEndTime_ : vehicleEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.hasTrafficInfeasibilities_ = hasTrafficInfeasibilities_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.routePolyline_ = routePolylineBuilder_ == null
-            ? routePolyline_
-            : routePolylineBuilder_.build();
+        result.routePolyline_ =
+            routePolylineBuilder_ == null ? routePolyline_ : routePolylineBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.metrics_ = metricsBuilder_ == null
-            ? metrics_
-            : metricsBuilder_.build();
+        result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.routeCosts_ = internalGetRouteCosts();
@@ -13578,14 +15444,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute result
         result.routeTotalCost_ = routeTotalCost_;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.vehicleDetour_ = vehicleDetourBuilder_ == null
-            ? vehicleDetour_
-            : vehicleDetourBuilder_.build();
+        result.vehicleDetour_ =
+            vehicleDetourBuilder_ == null ? vehicleDetour_ : vehicleDetourBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.delayBeforeVehicleEnd_ = delayBeforeVehicleEndBuilder_ == null
-            ? delayBeforeVehicleEnd_
-            : delayBeforeVehicleEndBuilder_.build();
+        result.delayBeforeVehicleEnd_ =
+            delayBeforeVehicleEndBuilder_ == null
+                ? delayBeforeVehicleEnd_
+                : delayBeforeVehicleEndBuilder_.build();
       }
     }
 
@@ -13593,38 +15459,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentRoute result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.ShipmentRoute) {
-        return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute)other);
+        return mergeFrom((com.google.cloud.optimization.v1.ShipmentRoute) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -13665,9 +15532,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             visitsBuilder_ = null;
             visits_ = other.visits_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            visitsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getVisitsFieldBuilder() : null;
+            visitsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getVisitsFieldBuilder()
+                    : null;
           } else {
             visitsBuilder_.addAllMessages(other.visits_);
           }
@@ -13691,9 +15559,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             transitionsBuilder_ = null;
             transitions_ = other.transitions_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            transitionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTransitionsFieldBuilder() : null;
+            transitionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTransitionsFieldBuilder()
+                    : null;
           } else {
             transitionsBuilder_.addAllMessages(other.transitions_);
           }
@@ -13723,9 +15592,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             breaksBuilder_ = null;
             breaks_ = other.breaks_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            breaksBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getBreaksFieldBuilder() : null;
+            breaksBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getBreaksFieldBuilder()
+                    : null;
           } else {
             breaksBuilder_.addAllMessages(other.breaks_);
           }
@@ -13734,8 +15604,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
       if (other.hasMetrics()) {
         mergeMetrics(other.getMetrics());
       }
-      internalGetMutableRouteCosts().mergeFrom(
-          other.internalGetRouteCosts());
+      internalGetMutableRouteCosts().mergeFrom(other.internalGetRouteCosts());
       bitField0_ |= 0x00000400;
       if (other.getRouteTotalCost() != 0D) {
         setRouteTotalCost(other.getRouteTotalCost());
@@ -13758,9 +15627,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             endLoadsBuilder_ = null;
             endLoads_ = other.endLoads_;
             bitField0_ = (bitField0_ & ~0x00001000);
-            endLoadsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEndLoadsFieldBuilder() : null;
+            endLoadsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEndLoadsFieldBuilder()
+                    : null;
           } else {
             endLoadsBuilder_.addAllMessages(other.endLoads_);
           }
@@ -13784,9 +15654,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentRoute other) {
             travelStepsBuilder_ = null;
             travelSteps_ = other.travelSteps_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            travelStepsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTravelStepsFieldBuilder() : null;
+            travelStepsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTravelStepsFieldBuilder()
+                    : null;
           } else {
             travelStepsBuilder_.addAllMessages(other.travelSteps_);
           }
@@ -13824,148 +15695,157 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              vehicleIndex_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              vehicleLabel_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 42: {
-              input.readMessage(
-                  getVehicleStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getVehicleEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 50
-            case 58: {
-              com.google.cloud.optimization.v1.ShipmentRoute.Visit m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentRoute.Visit.parser(),
-                      extensionRegistry);
-              if (visitsBuilder_ == null) {
-                ensureVisitsIsMutable();
-                visits_.add(m);
-              } else {
-                visitsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 58
-            case 66: {
-              com.google.cloud.optimization.v1.ShipmentRoute.Transition m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentRoute.Transition.parser(),
-                      extensionRegistry);
-              if (transitionsBuilder_ == null) {
-                ensureTransitionsIsMutable();
-                transitions_.add(m);
-              } else {
-                transitionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 66
-            case 72: {
-              hasTrafficInfeasibilities_ = input.readBool();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 72
-            case 82: {
-              input.readMessage(
-                  getRoutePolylineFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 82
-            case 90: {
-              com.google.cloud.optimization.v1.ShipmentRoute.Break m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentRoute.Break.parser(),
-                      extensionRegistry);
-              if (breaksBuilder_ == null) {
-                ensureBreaksIsMutable();
-                breaks_.add(m);
-              } else {
-                breaksBuilder_.addMessage(m);
-              }
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getMetricsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 98
-            case 106: {
-              com.google.cloud.optimization.v1.CapacityQuantity m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                      extensionRegistry);
-              if (endLoadsBuilder_ == null) {
-                ensureEndLoadsIsMutable();
-                endLoads_.add(m);
-              } else {
-                endLoadsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 106
-            case 114: {
-              com.google.cloud.optimization.v1.ShipmentRoute.TravelStep m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.parser(),
-                      extensionRegistry);
-              if (travelStepsBuilder_ == null) {
-                ensureTravelStepsIsMutable();
-                travelSteps_.add(m);
-              } else {
-                travelStepsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 122: {
-              input.readMessage(
-                  getVehicleDetourFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 122
-            case 130: {
-              input.readMessage(
-                  getDelayBeforeVehicleEndFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 130
-            case 138: {
-              com.google.protobuf.MapEntry
-              routeCosts__ = input.readMessage(
-                  RouteCostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableRouteCosts().getMutableMap().put(
-                  routeCosts__.getKey(), routeCosts__.getValue());
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 138
-            case 145: {
-              routeTotalCost_ = input.readDouble();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 145
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                vehicleIndex_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                vehicleLabel_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 42:
+              {
+                input.readMessage(
+                    getVehicleStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getVehicleEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 50
+            case 58:
+              {
+                com.google.cloud.optimization.v1.ShipmentRoute.Visit m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentRoute.Visit.parser(),
+                        extensionRegistry);
+                if (visitsBuilder_ == null) {
+                  ensureVisitsIsMutable();
+                  visits_.add(m);
+                } else {
+                  visitsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 58
+            case 66:
+              {
+                com.google.cloud.optimization.v1.ShipmentRoute.Transition m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentRoute.Transition.parser(),
+                        extensionRegistry);
+                if (transitionsBuilder_ == null) {
+                  ensureTransitionsIsMutable();
+                  transitions_.add(m);
+                } else {
+                  transitionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 66
+            case 72:
+              {
+                hasTrafficInfeasibilities_ = input.readBool();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 72
+            case 82:
+              {
+                input.readMessage(getRoutePolylineFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 82
+            case 90:
+              {
+                com.google.cloud.optimization.v1.ShipmentRoute.Break m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentRoute.Break.parser(),
+                        extensionRegistry);
+                if (breaksBuilder_ == null) {
+                  ensureBreaksIsMutable();
+                  breaks_.add(m);
+                } else {
+                  breaksBuilder_.addMessage(m);
+                }
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 98
+            case 106:
+              {
+                com.google.cloud.optimization.v1.CapacityQuantity m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                        extensionRegistry);
+                if (endLoadsBuilder_ == null) {
+                  ensureEndLoadsIsMutable();
+                  endLoads_.add(m);
+                } else {
+                  endLoadsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 106
+            case 114:
+              {
+                com.google.cloud.optimization.v1.ShipmentRoute.TravelStep m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.parser(),
+                        extensionRegistry);
+                if (travelStepsBuilder_ == null) {
+                  ensureTravelStepsIsMutable();
+                  travelSteps_.add(m);
+                } else {
+                  travelStepsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 122:
+              {
+                input.readMessage(getVehicleDetourFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 122
+            case 130:
+              {
+                input.readMessage(
+                    getDelayBeforeVehicleEndFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 130
+            case 138:
+              {
+                com.google.protobuf.MapEntry routeCosts__ =
+                    input.readMessage(
+                        RouteCostsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableRouteCosts()
+                    .getMutableMap()
+                    .put(routeCosts__.getKey(), routeCosts__.getValue());
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 138
+            case 145:
+              {
+                routeTotalCost_ = input.readDouble();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 145
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -13975,16 +15855,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int vehicleIndex_ ;
+    private int vehicleIndex_;
     /**
+     *
+     *
      * 
      * Vehicle performing the route, identified by its index in the source
      * `ShipmentModel`.
      * 
* * int32 vehicle_index = 1; + * * @return The vehicleIndex. */ @java.lang.Override @@ -13992,12 +15876,15 @@ public int getVehicleIndex() { return vehicleIndex_; } /** + * + * *
      * Vehicle performing the route, identified by its index in the source
      * `ShipmentModel`.
      * 
* * int32 vehicle_index = 1; + * * @param value The vehicleIndex to set. * @return This builder for chaining. */ @@ -14009,12 +15896,15 @@ public Builder setVehicleIndex(int value) { return this; } /** + * + * *
      * Vehicle performing the route, identified by its index in the source
      * `ShipmentModel`.
      * 
* * int32 vehicle_index = 1; + * * @return This builder for chaining. */ public Builder clearVehicleIndex() { @@ -14026,19 +15916,21 @@ public Builder clearVehicleIndex() { private java.lang.Object vehicleLabel_ = ""; /** + * + * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; + * * @return The vehicleLabel. */ public java.lang.String getVehicleLabel() { java.lang.Object ref = vehicleLabel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vehicleLabel_ = s; return s; @@ -14047,21 +15939,22 @@ public java.lang.String getVehicleLabel() { } } /** + * + * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; + * * @return The bytes for vehicleLabel. */ - public com.google.protobuf.ByteString - getVehicleLabelBytes() { + public com.google.protobuf.ByteString getVehicleLabelBytes() { java.lang.Object ref = vehicleLabel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vehicleLabel_ = b; return b; } else { @@ -14069,30 +15962,37 @@ public java.lang.String getVehicleLabel() { } } /** + * + * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; + * * @param value The vehicleLabel to set. * @return This builder for chaining. */ - public Builder setVehicleLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVehicleLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vehicleLabel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; + * * @return This builder for chaining. */ public Builder clearVehicleLabel() { @@ -14102,18 +16002,22 @@ public Builder clearVehicleLabel() { return this; } /** + * + * *
      * Label of the vehicle performing this route, equal to
      * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
      * 
* * string vehicle_label = 2; + * * @param value The bytes for vehicleLabel to set. * @return This builder for chaining. */ - public Builder setVehicleLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVehicleLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vehicleLabel_ = value; bitField0_ |= 0x00000002; @@ -14123,34 +16027,47 @@ public Builder setVehicleLabelBytes( private com.google.protobuf.Timestamp vehicleStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> vehicleStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + vehicleStartTimeBuilder_; /** + * + * *
      * Time at which the vehicle starts its route.
      * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; + * * @return Whether the vehicleStartTime field is set. */ public boolean hasVehicleStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Time at which the vehicle starts its route.
      * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; + * * @return The vehicleStartTime. */ public com.google.protobuf.Timestamp getVehicleStartTime() { if (vehicleStartTimeBuilder_ == null) { - return vehicleStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleStartTime_; + return vehicleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : vehicleStartTime_; } else { return vehicleStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Time at which the vehicle starts its route.
      * 
@@ -14171,14 +16088,15 @@ public Builder setVehicleStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the vehicle starts its route.
      * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; */ - public Builder setVehicleStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setVehicleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (vehicleStartTimeBuilder_ == null) { vehicleStartTime_ = builderForValue.build(); } else { @@ -14189,6 +16107,8 @@ public Builder setVehicleStartTime( return this; } /** + * + * *
      * Time at which the vehicle starts its route.
      * 
@@ -14197,9 +16117,9 @@ public Builder setVehicleStartTime( */ public Builder mergeVehicleStartTime(com.google.protobuf.Timestamp value) { if (vehicleStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - vehicleStartTime_ != null && - vehicleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && vehicleStartTime_ != null + && vehicleStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getVehicleStartTimeBuilder().mergeFrom(value); } else { vehicleStartTime_ = value; @@ -14212,6 +16132,8 @@ public Builder mergeVehicleStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the vehicle starts its route.
      * 
@@ -14229,6 +16151,8 @@ public Builder clearVehicleStartTime() { return this; } /** + * + * *
      * Time at which the vehicle starts its route.
      * 
@@ -14241,6 +16165,8 @@ public com.google.protobuf.Timestamp.Builder getVehicleStartTimeBuilder() { return getVehicleStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time at which the vehicle starts its route.
      * 
@@ -14251,11 +16177,14 @@ public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder() { if (vehicleStartTimeBuilder_ != null) { return vehicleStartTimeBuilder_.getMessageOrBuilder(); } else { - return vehicleStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : vehicleStartTime_; + return vehicleStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : vehicleStartTime_; } } /** + * + * *
      * Time at which the vehicle starts its route.
      * 
@@ -14263,14 +16192,17 @@ public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder() { * .google.protobuf.Timestamp vehicle_start_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getVehicleStartTimeFieldBuilder() { if (vehicleStartTimeBuilder_ == null) { - vehicleStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVehicleStartTime(), - getParentForChildren(), - isClean()); + vehicleStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getVehicleStartTime(), getParentForChildren(), isClean()); vehicleStartTime_ = null; } return vehicleStartTimeBuilder_; @@ -14278,34 +16210,47 @@ public com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder() { private com.google.protobuf.Timestamp vehicleEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> vehicleEndTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + vehicleEndTimeBuilder_; /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; + * * @return Whether the vehicleEndTime field is set. */ public boolean hasVehicleEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; + * * @return The vehicleEndTime. */ public com.google.protobuf.Timestamp getVehicleEndTime() { if (vehicleEndTimeBuilder_ == null) { - return vehicleEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : vehicleEndTime_; + return vehicleEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : vehicleEndTime_; } else { return vehicleEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
@@ -14326,14 +16271,15 @@ public Builder setVehicleEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; */ - public Builder setVehicleEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setVehicleEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (vehicleEndTimeBuilder_ == null) { vehicleEndTime_ = builderForValue.build(); } else { @@ -14344,6 +16290,8 @@ public Builder setVehicleEndTime( return this; } /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
@@ -14352,9 +16300,9 @@ public Builder setVehicleEndTime( */ public Builder mergeVehicleEndTime(com.google.protobuf.Timestamp value) { if (vehicleEndTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - vehicleEndTime_ != null && - vehicleEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && vehicleEndTime_ != null + && vehicleEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getVehicleEndTimeBuilder().mergeFrom(value); } else { vehicleEndTime_ = value; @@ -14367,6 +16315,8 @@ public Builder mergeVehicleEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
@@ -14384,6 +16334,8 @@ public Builder clearVehicleEndTime() { return this; } /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
@@ -14396,6 +16348,8 @@ public com.google.protobuf.Timestamp.Builder getVehicleEndTimeBuilder() { return getVehicleEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
@@ -14406,11 +16360,14 @@ public com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder() { if (vehicleEndTimeBuilder_ != null) { return vehicleEndTimeBuilder_.getMessageOrBuilder(); } else { - return vehicleEndTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : vehicleEndTime_; + return vehicleEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : vehicleEndTime_; } } /** + * + * *
      * Time at which the vehicle finishes its route.
      * 
@@ -14418,32 +16375,42 @@ public com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder() { * .google.protobuf.Timestamp vehicle_end_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getVehicleEndTimeFieldBuilder() { if (vehicleEndTimeBuilder_ == null) { - vehicleEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVehicleEndTime(), - getParentForChildren(), - isClean()); + vehicleEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getVehicleEndTime(), getParentForChildren(), isClean()); vehicleEndTime_ = null; } return vehicleEndTimeBuilder_; } private java.util.List visits_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVisitsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - visits_ = new java.util.ArrayList(visits_); + visits_ = + new java.util.ArrayList(visits_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Visit, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder, com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder> visitsBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.Visit, + com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder> + visitsBuilder_; /** + * + * *
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14460,6 +16427,8 @@ public java.util.List getV
       }
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14476,6 +16445,8 @@ public int getVisitsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14492,6 +16463,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit getVisits(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14515,6 +16488,8 @@ public Builder setVisits(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14535,6 +16510,8 @@ public Builder setVisits(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14557,6 +16534,8 @@ public Builder addVisits(com.google.cloud.optimization.v1.ShipmentRoute.Visit va
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14580,6 +16559,8 @@ public Builder addVisits(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14600,6 +16581,8 @@ public Builder addVisits(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14620,6 +16603,8 @@ public Builder addVisits(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14632,8 +16617,7 @@ public Builder addAllVisits(
         java.lang.Iterable values) {
       if (visitsBuilder_ == null) {
         ensureVisitsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, visits_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visits_);
         onChanged();
       } else {
         visitsBuilder_.addAllMessages(values);
@@ -14641,6 +16625,8 @@ public Builder addAllVisits(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14660,6 +16646,8 @@ public Builder clearVisits() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14679,6 +16667,8 @@ public Builder removeVisits(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14692,6 +16682,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder getVisitsBui
       return getVisitsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14703,11 +16695,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder getVisitsBui
     public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOrBuilder(
         int index) {
       if (visitsBuilder_ == null) {
-        return visits_.get(index);  } else {
+        return visits_.get(index);
+      } else {
         return visitsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14716,8 +16711,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
      */
-    public java.util.List 
-         getVisitsOrBuilderList() {
+    public java.util.List
+        getVisitsOrBuilderList() {
       if (visitsBuilder_ != null) {
         return visitsBuilder_.getMessageOrBuilderList();
       } else {
@@ -14725,6 +16720,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr
       }
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14734,10 +16731,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOr
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder addVisitsBuilder() {
-      return getVisitsFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance());
+      return getVisitsFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14748,10 +16747,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder addVisitsBui
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder addVisitsBuilder(
         int index) {
-      return getVisitsFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance());
+      return getVisitsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.optimization.v1.ShipmentRoute.Visit.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Ordered sequence of visits representing a route.
      * visits[i] is the i-th visit in the route.
@@ -14760,45 +16762,57 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder addVisitsBui
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
      */
-    public java.util.List 
-         getVisitsBuilderList() {
+    public java.util.List
+        getVisitsBuilderList() {
       return getVisitsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute.Visit, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder, com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder> 
+            com.google.cloud.optimization.v1.ShipmentRoute.Visit,
+            com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder,
+            com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder>
         getVisitsFieldBuilder() {
       if (visitsBuilder_ == null) {
-        visitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.Visit, com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder, com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder>(
-                visits_,
-                ((bitField0_ & 0x00000010) != 0),
-                getParentForChildren(),
-                isClean());
+        visitsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.ShipmentRoute.Visit,
+                com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder,
+                com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder>(
+                visits_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
         visits_ = null;
       }
       return visitsBuilder_;
     }
 
     private java.util.List transitions_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureTransitionsIsMutable() {
       if (!((bitField0_ & 0x00000020) != 0)) {
-        transitions_ = new java.util.ArrayList(transitions_);
+        transitions_ =
+            new java.util.ArrayList(
+                transitions_);
         bitField0_ |= 0x00000020;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute.Transition, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> transitionsBuilder_;
+            com.google.cloud.optimization.v1.ShipmentRoute.Transition,
+            com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder,
+            com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder>
+        transitionsBuilder_;
 
     /**
+     *
+     *
      * 
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public java.util.List getTransitionsList() { + public java.util.List + getTransitionsList() { if (transitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transitions_); } else { @@ -14806,6 +16820,8 @@ public java.util.List } } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14820,6 +16836,8 @@ public int getTransitionsCount() { } } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14834,6 +16852,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition getTransitions( } } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14855,6 +16875,8 @@ public Builder setTransitions( return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14862,7 +16884,8 @@ public Builder setTransitions( * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ public Builder setTransitions( - int index, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.set(index, builderForValue.build()); @@ -14873,6 +16896,8 @@ public Builder setTransitions( return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14893,6 +16918,8 @@ public Builder addTransitions(com.google.cloud.optimization.v1.ShipmentRoute.Tra return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14914,6 +16941,8 @@ public Builder addTransitions( return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14932,6 +16961,8 @@ public Builder addTransitions( return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14939,7 +16970,8 @@ public Builder addTransitions( * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ public Builder addTransitions( - int index, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder builderForValue) { + int index, + com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.add(index, builderForValue.build()); @@ -14950,6 +16982,8 @@ public Builder addTransitions( return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14957,11 +16991,11 @@ public Builder addTransitions( * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ public Builder addAllTransitions( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitions_); onChanged(); } else { transitionsBuilder_.addAllMessages(values); @@ -14969,6 +17003,8 @@ public Builder addAllTransitions( return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -14986,6 +17022,8 @@ public Builder clearTransitions() { return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -15003,6 +17041,8 @@ public Builder removeTransitions(int index) { return this; } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -15014,28 +17054,34 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder getTran return getTransitionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransitionsOrBuilder( - int index) { + public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder + getTransitionsOrBuilder(int index) { if (transitionsBuilder_ == null) { - return transitions_.get(index); } else { + return transitions_.get(index); + } else { return transitionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public java.util.List - getTransitionsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> + getTransitionsOrBuilderList() { if (transitionsBuilder_ != null) { return transitionsBuilder_.getMessageOrBuilderList(); } else { @@ -15043,17 +17089,23 @@ public com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTra } } /** + * + * *
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder addTransitionsBuilder() { - return getTransitionsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()); + public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder + addTransitionsBuilder() { + return getTransitionsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()); } /** + * + * *
      * Ordered list of transitions for the route.
      * 
@@ -15062,37 +17114,46 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder addTran */ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder addTransitionsBuilder( int index) { - return getTransitionsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()); + return getTransitionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.ShipmentRoute.Transition.getDefaultInstance()); } /** + * + * *
      * Ordered list of transitions for the route.
      * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - public java.util.List - getTransitionsBuilderList() { + public java.util.List + getTransitionsBuilderList() { return getTransitionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Transition, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.Transition, + com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder> getTransitionsFieldBuilder() { if (transitionsBuilder_ == null) { - transitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Transition, com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder>( - transitions_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); + transitionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.Transition, + com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder>( + transitions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); transitions_ = null; } return transitionsBuilder_; } - private boolean hasTrafficInfeasibilities_ ; + private boolean hasTrafficInfeasibilities_; /** + * + * *
      * When
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -15115,6 +17176,7 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder addTran
      * 
* * bool has_traffic_infeasibilities = 9; + * * @return The hasTrafficInfeasibilities. */ @java.lang.Override @@ -15122,6 +17184,8 @@ public boolean getHasTrafficInfeasibilities() { return hasTrafficInfeasibilities_; } /** + * + * *
      * When
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -15144,6 +17208,7 @@ public boolean getHasTrafficInfeasibilities() {
      * 
* * bool has_traffic_infeasibilities = 9; + * * @param value The hasTrafficInfeasibilities to set. * @return This builder for chaining. */ @@ -15155,6 +17220,8 @@ public Builder setHasTrafficInfeasibilities(boolean value) { return this; } /** + * + * *
      * When
      * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -15177,6 +17244,7 @@ public Builder setHasTrafficInfeasibilities(boolean value) {
      * 
* * bool has_traffic_infeasibilities = 9; + * * @return This builder for chaining. */ public Builder clearHasTrafficInfeasibilities() { @@ -15188,8 +17256,13 @@ public Builder clearHasTrafficInfeasibilities() { private com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline routePolyline_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> routePolylineBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> + routePolylineBuilder_; /** + * + * *
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15198,12 +17271,15 @@ public Builder clearHasTrafficInfeasibilities() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; + * * @return Whether the routePolyline field is set. */ public boolean hasRoutePolyline() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15212,16 +17288,21 @@ public boolean hasRoutePolyline() {
      * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; + * * @return The routePolyline. */ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline() { if (routePolylineBuilder_ == null) { - return routePolyline_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_; + return routePolyline_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() + : routePolyline_; } else { return routePolylineBuilder_.getMessage(); } } /** + * + * *
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15231,7 +17312,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePo
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
-    public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) {
+    public Builder setRoutePolyline(
+        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) {
       if (routePolylineBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -15245,6 +17327,8 @@ public Builder setRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.E
       return this;
     }
     /**
+     *
+     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15266,6 +17350,8 @@ public Builder setRoutePolyline(
       return this;
     }
     /**
+     *
+     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15275,11 +17361,14 @@ public Builder setRoutePolyline(
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
-    public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) {
+    public Builder mergeRoutePolyline(
+        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline value) {
       if (routePolylineBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          routePolyline_ != null &&
-          routePolyline_ != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && routePolyline_ != null
+            && routePolyline_
+                != com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline
+                    .getDefaultInstance()) {
           getRoutePolylineBuilder().mergeFrom(value);
         } else {
           routePolyline_ = value;
@@ -15292,6 +17381,8 @@ public Builder mergeRoutePolyline(com.google.cloud.optimization.v1.ShipmentRoute
       return this;
     }
     /**
+     *
+     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15312,6 +17403,8 @@ public Builder clearRoutePolyline() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15321,12 +17414,15 @@ public Builder clearRoutePolyline() {
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder getRoutePolylineBuilder() {
+    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder
+        getRoutePolylineBuilder() {
       bitField0_ |= 0x00000080;
       onChanged();
       return getRoutePolylineFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15336,15 +17432,19 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder ge
      *
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
-    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder() {
+    public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
+        getRoutePolylineOrBuilder() {
       if (routePolylineBuilder_ != null) {
         return routePolylineBuilder_.getMessageOrBuilder();
       } else {
-        return routePolyline_ == null ?
-            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance() : routePolyline_;
+        return routePolyline_ == null
+            ? com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.getDefaultInstance()
+            : routePolyline_;
       }
     }
     /**
+     *
+     *
      * 
      * The encoded polyline representation of the route.
      * This field is only populated if
@@ -15355,32 +17455,42 @@ public com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder g
      * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder> 
+            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline,
+            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder,
+            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>
         getRoutePolylineFieldBuilder() {
       if (routePolylineBuilder_ == null) {
-        routePolylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder, com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>(
-                getRoutePolyline(),
-                getParentForChildren(),
-                isClean());
+        routePolylineBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline,
+                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline.Builder,
+                com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder>(
+                getRoutePolyline(), getParentForChildren(), isClean());
         routePolyline_ = null;
       }
       return routePolylineBuilder_;
     }
 
     private java.util.List breaks_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureBreaksIsMutable() {
       if (!((bitField0_ & 0x00000100) != 0)) {
-        breaks_ = new java.util.ArrayList(breaks_);
+        breaks_ =
+            new java.util.ArrayList(breaks_);
         bitField0_ |= 0x00000100;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute.Break, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder, com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder> breaksBuilder_;
+            com.google.cloud.optimization.v1.ShipmentRoute.Break,
+            com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder,
+            com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder>
+        breaksBuilder_;
 
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15397,6 +17507,8 @@ public java.util.List getB
       }
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15413,6 +17525,8 @@ public int getBreaksCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15429,6 +17543,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break getBreaks(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15452,6 +17568,8 @@ public Builder setBreaks(
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15472,6 +17590,8 @@ public Builder setBreaks(
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15494,6 +17614,8 @@ public Builder addBreaks(com.google.cloud.optimization.v1.ShipmentRoute.Break va
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15517,6 +17639,8 @@ public Builder addBreaks(
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15537,6 +17661,8 @@ public Builder addBreaks(
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15557,6 +17683,8 @@ public Builder addBreaks(
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15569,8 +17697,7 @@ public Builder addAllBreaks(
         java.lang.Iterable values) {
       if (breaksBuilder_ == null) {
         ensureBreaksIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, breaks_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breaks_);
         onChanged();
       } else {
         breaksBuilder_.addAllMessages(values);
@@ -15578,6 +17705,8 @@ public Builder addAllBreaks(
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15597,6 +17726,8 @@ public Builder clearBreaks() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15616,6 +17747,8 @@ public Builder removeBreaks(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15629,6 +17762,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder getBreaksBui
       return getBreaksFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15640,11 +17775,14 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder getBreaksBui
     public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder(
         int index) {
       if (breaksBuilder_ == null) {
-        return breaks_.get(index);  } else {
+        return breaks_.get(index);
+      } else {
         return breaksBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15653,8 +17791,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
      */
-    public java.util.List 
-         getBreaksOrBuilderList() {
+    public java.util.List
+        getBreaksOrBuilderList() {
       if (breaksBuilder_ != null) {
         return breaksBuilder_.getMessageOrBuilderList();
       } else {
@@ -15662,6 +17800,8 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
       }
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15671,10 +17811,12 @@ public com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOr
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBuilder() {
-      return getBreaksFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance());
+      return getBreaksFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15685,10 +17827,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBui
      */
     public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBuilder(
         int index) {
-      return getBreaksFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance());
+      return getBreaksFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.optimization.v1.ShipmentRoute.Break.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Breaks scheduled for the vehicle performing this route.
      * The `breaks` sequence represents time intervals, each starting at the
@@ -15697,20 +17842,23 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBui
      *
      * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
      */
-    public java.util.List 
-         getBreaksBuilderList() {
+    public java.util.List
+        getBreaksBuilderList() {
       return getBreaksFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute.Break, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder, com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder> 
+            com.google.cloud.optimization.v1.ShipmentRoute.Break,
+            com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder,
+            com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder>
         getBreaksFieldBuilder() {
       if (breaksBuilder_ == null) {
-        breaksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.ShipmentRoute.Break, com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder, com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder>(
-                breaks_,
-                ((bitField0_ & 0x00000100) != 0),
-                getParentForChildren(),
-                isClean());
+        breaksBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.ShipmentRoute.Break,
+                com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder,
+                com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder>(
+                breaks_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean());
         breaks_ = null;
       }
       return breaksBuilder_;
@@ -15718,8 +17866,13 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBui
 
     private com.google.cloud.optimization.v1.AggregatedMetrics metrics_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> metricsBuilder_;
+            com.google.cloud.optimization.v1.AggregatedMetrics,
+            com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
+            com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>
+        metricsBuilder_;
     /**
+     *
+     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15731,12 +17884,15 @@ public com.google.cloud.optimization.v1.ShipmentRoute.Break.Builder addBreaksBui
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; + * * @return Whether the metrics field is set. */ public boolean hasMetrics() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15748,16 +17904,21 @@ public boolean hasMetrics() {
      * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; + * * @return The metrics. */ public com.google.cloud.optimization.v1.AggregatedMetrics getMetrics() { if (metricsBuilder_ == null) { - return metrics_ == null ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() + : metrics_; } else { return metricsBuilder_.getMessage(); } } /** + * + * *
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15784,6 +17945,8 @@ public Builder setMetrics(com.google.cloud.optimization.v1.AggregatedMetrics val
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15808,6 +17971,8 @@ public Builder setMetrics(
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15822,9 +17987,10 @@ public Builder setMetrics(
      */
     public Builder mergeMetrics(com.google.cloud.optimization.v1.AggregatedMetrics value) {
       if (metricsBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          metrics_ != null &&
-          metrics_ != com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && metrics_ != null
+            && metrics_
+                != com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()) {
           getMetricsBuilder().mergeFrom(value);
         } else {
           metrics_ = value;
@@ -15837,6 +18003,8 @@ public Builder mergeMetrics(com.google.cloud.optimization.v1.AggregatedMetrics v
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15860,6 +18028,8 @@ public Builder clearMetrics() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15878,6 +18048,8 @@ public com.google.cloud.optimization.v1.AggregatedMetrics.Builder getMetricsBuil
       return getMetricsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15894,11 +18066,14 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrB
       if (metricsBuilder_ != null) {
         return metricsBuilder_.getMessageOrBuilder();
       } else {
-        return metrics_ == null ?
-            com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance() : metrics_;
+        return metrics_ == null
+            ? com.google.cloud.optimization.v1.AggregatedMetrics.getDefaultInstance()
+            : metrics_;
       }
     }
     /**
+     *
+     *
      * 
      * Duration, distance and load metrics for this route. The fields of
      * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -15912,21 +18087,24 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrB
      * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder> 
+            com.google.cloud.optimization.v1.AggregatedMetrics,
+            com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
+            com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>
         getMetricsFieldBuilder() {
       if (metricsBuilder_ == null) {
-        metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.AggregatedMetrics, com.google.cloud.optimization.v1.AggregatedMetrics.Builder, com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>(
-                getMetrics(),
-                getParentForChildren(),
-                isClean());
+        metricsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.AggregatedMetrics,
+                com.google.cloud.optimization.v1.AggregatedMetrics.Builder,
+                com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder>(
+                getMetrics(), getParentForChildren(), isClean());
         metrics_ = null;
       }
       return metricsBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.Double> routeCosts_;
+    private com.google.protobuf.MapField routeCosts_;
+
     private com.google.protobuf.MapField
         internalGetRouteCosts() {
       if (routeCosts_ == null) {
@@ -15935,11 +18113,12 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrB
       }
       return routeCosts_;
     }
+
     private com.google.protobuf.MapField
         internalGetMutableRouteCosts() {
       if (routeCosts_ == null) {
-        routeCosts_ = com.google.protobuf.MapField.newMapField(
-            RouteCostsDefaultEntryHolder.defaultEntry);
+        routeCosts_ =
+            com.google.protobuf.MapField.newMapField(RouteCostsDefaultEntryHolder.defaultEntry);
       }
       if (!routeCosts_.isMutable()) {
         routeCosts_ = routeCosts_.copy();
@@ -15948,10 +18127,13 @@ public com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrB
       onChanged();
       return routeCosts_;
     }
+
     public int getRouteCostsCount() {
       return internalGetRouteCosts().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -15966,20 +18148,21 @@ public int getRouteCostsCount() {
      * map<string, double> route_costs = 17;
      */
     @java.lang.Override
-    public boolean containsRouteCosts(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsRouteCosts(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetRouteCosts().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getRouteCostsMap()} instead.
-     */
+    /** Use {@link #getRouteCostsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getRouteCosts() {
       return getRouteCostsMap();
     }
     /**
+     *
+     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -15998,6 +18181,8 @@ public java.util.Map getRouteCostsMap() {
       return internalGetRouteCosts().getMap();
     }
     /**
+     *
+     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -16012,15 +18197,16 @@ public java.util.Map getRouteCostsMap() {
      * map<string, double> route_costs = 17;
      */
     @java.lang.Override
-    public double getRouteCostsOrDefault(
-        java.lang.String key,
-        double defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetRouteCosts().getMap();
+    public double getRouteCostsOrDefault(java.lang.String key, double defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetRouteCosts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -16035,23 +18221,25 @@ public double getRouteCostsOrDefault(
      * map<string, double> route_costs = 17;
      */
     @java.lang.Override
-    public double getRouteCostsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetRouteCosts().getMap();
+    public double getRouteCostsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetRouteCosts().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearRouteCosts() {
       bitField0_ = (bitField0_ & ~0x00000400);
-      internalGetMutableRouteCosts().getMutableMap()
-          .clear();
+      internalGetMutableRouteCosts().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -16065,23 +18253,22 @@ public Builder clearRouteCosts() {
      *
      * map<string, double> route_costs = 17;
      */
-    public Builder removeRouteCosts(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableRouteCosts().getMutableMap()
-          .remove(key);
+    public Builder removeRouteCosts(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableRouteCosts().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableRouteCosts() {
+    public java.util.Map getMutableRouteCosts() {
       bitField0_ |= 0x00000400;
       return internalGetMutableRouteCosts().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -16095,17 +18282,18 @@ public Builder removeRouteCosts(
      *
      * map<string, double> route_costs = 17;
      */
-    public Builder putRouteCosts(
-        java.lang.String key,
-        double value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putRouteCosts(java.lang.String key, double value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
 
-      internalGetMutableRouteCosts().getMutableMap()
-          .put(key, value);
+      internalGetMutableRouteCosts().getMutableMap().put(key, value);
       bitField0_ |= 0x00000400;
       return this;
     }
     /**
+     *
+     *
      * 
      * Cost of the route, broken down by cost-related request fields.
      * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -16119,21 +18307,22 @@ public Builder putRouteCosts(
      *
      * map<string, double> route_costs = 17;
      */
-    public Builder putAllRouteCosts(
-        java.util.Map values) {
-      internalGetMutableRouteCosts().getMutableMap()
-          .putAll(values);
+    public Builder putAllRouteCosts(java.util.Map values) {
+      internalGetMutableRouteCosts().getMutableMap().putAll(values);
       bitField0_ |= 0x00000400;
       return this;
     }
 
-    private double routeTotalCost_ ;
+    private double routeTotalCost_;
     /**
+     *
+     *
      * 
      * Total cost of the route. The sum of all costs in the cost map.
      * 
* * double route_total_cost = 18; + * * @return The routeTotalCost. */ @java.lang.Override @@ -16141,11 +18330,14 @@ public double getRouteTotalCost() { return routeTotalCost_; } /** + * + * *
      * Total cost of the route. The sum of all costs in the cost map.
      * 
* * double route_total_cost = 18; + * * @param value The routeTotalCost to set. * @return This builder for chaining. */ @@ -16157,11 +18349,14 @@ public Builder setRouteTotalCost(double value) { return this; } /** + * + * *
      * Total cost of the route. The sum of all costs in the cost map.
      * 
* * double route_total_cost = 18; + * * @return This builder for chaining. */ public Builder clearRouteTotalCost() { @@ -16172,18 +18367,25 @@ public Builder clearRouteTotalCost() { } private java.util.List endLoads_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEndLoadsIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { - endLoads_ = new java.util.ArrayList(endLoads_); + endLoads_ = + new java.util.ArrayList(endLoads_); bitField0_ |= 0x00001000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> endLoadsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + endLoadsBuilder_; /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16195,9 +18397,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getEndLoadsList() { + @java.lang.Deprecated + public java.util.List getEndLoadsList() { if (endLoadsBuilder_ == null) { return java.util.Collections.unmodifiableList(endLoads_); } else { @@ -16205,6 +18410,8 @@ private void ensureEndLoadsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16216,9 +18423,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public int getEndLoadsCount() { + @java.lang.Deprecated + public int getEndLoadsCount() { if (endLoadsBuilder_ == null) { return endLoads_.size(); } else { @@ -16226,6 +18436,8 @@ private void ensureEndLoadsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16237,9 +18449,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index) { if (endLoadsBuilder_ == null) { return endLoads_.get(index); } else { @@ -16247,6 +18462,8 @@ private void ensureEndLoadsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16258,10 +18475,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setEndLoads( - int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder setEndLoads(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (endLoadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16275,6 +18494,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16286,9 +18507,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setEndLoads( + @java.lang.Deprecated + public Builder setEndLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); @@ -16300,6 +18524,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16311,9 +18537,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addEndLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addEndLoads(com.google.cloud.optimization.v1.CapacityQuantity value) { if (endLoadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16327,6 +18556,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16338,10 +18569,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addEndLoads( - int index, com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addEndLoads(int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (endLoadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16355,6 +18588,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16366,9 +18601,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addEndLoads( + @java.lang.Deprecated + public Builder addEndLoads( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); @@ -16380,6 +18618,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16391,9 +18631,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addEndLoads( + @java.lang.Deprecated + public Builder addEndLoads( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); @@ -16405,6 +18648,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16416,14 +18661,16 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllEndLoads( + @java.lang.Deprecated + public Builder addAllEndLoads( java.lang.Iterable values) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, endLoads_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endLoads_); onChanged(); } else { endLoadsBuilder_.addAllMessages(values); @@ -16431,6 +18678,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16442,9 +18691,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearEndLoads() { + @java.lang.Deprecated + public Builder clearEndLoads() { if (endLoadsBuilder_ == null) { endLoads_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); @@ -16455,6 +18707,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16466,9 +18720,12 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeEndLoads(int index) { + @java.lang.Deprecated + public Builder removeEndLoads(int index) { if (endLoadsBuilder_ == null) { ensureEndLoadsIsMutable(); endLoads_.remove(index); @@ -16479,6 +18736,8 @@ private void ensureEndLoadsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16490,13 +18749,17 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getEndLoadsBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder getEndLoadsBuilder(int index) { return getEndLoadsFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16508,16 +18771,22 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( int index) { if (endLoadsBuilder_ == null) { - return endLoads_.get(index); } else { + return endLoads_.get(index); + } else { return endLoadsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16529,10 +18798,13 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getEndLoadsOrBuilderList() { + @java.lang.Deprecated + public java.util.List + getEndLoadsOrBuilderList() { if (endLoadsBuilder_ != null) { return endLoadsBuilder_.getMessageOrBuilderList(); } else { @@ -16540,6 +18812,8 @@ private void ensureEndLoadsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16551,13 +18825,18 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuilder() { - return getEndLoadsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuilder() { + return getEndLoadsFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16569,14 +18848,19 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuilder( - int index) { - return getEndLoadsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addEndLoadsBuilder(int index) { + return getEndLoadsFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -16588,49 +18872,67 @@ private void ensureEndLoadsIsMutable() {
      * non-zero demand on the route.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getEndLoadsBuilderList() { + @java.lang.Deprecated + public java.util.List + getEndLoadsBuilderList() { return getEndLoadsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getEndLoadsFieldBuilder() { if (endLoadsBuilder_ == null) { - endLoadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - endLoads_, - ((bitField0_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); + endLoadsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + endLoads_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); endLoads_ = null; } return endLoadsBuilder_; } private java.util.List travelSteps_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTravelStepsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - travelSteps_ = new java.util.ArrayList(travelSteps_); + travelSteps_ = + new java.util.ArrayList( + travelSteps_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> travelStepsBuilder_; + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> + travelStepsBuilder_; /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getTravelStepsList() { + @java.lang.Deprecated + public java.util.List + getTravelStepsList() { if (travelStepsBuilder_ == null) { return java.util.Collections.unmodifiableList(travelSteps_); } else { @@ -16638,15 +18940,20 @@ private void ensureTravelStepsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public int getTravelStepsCount() { + @java.lang.Deprecated + public int getTravelStepsCount() { if (travelStepsBuilder_ == null) { return travelSteps_.size(); } else { @@ -16654,15 +18961,20 @@ private void ensureTravelStepsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index) { if (travelStepsBuilder_ == null) { return travelSteps_.get(index); } else { @@ -16670,15 +18982,20 @@ private void ensureTravelStepsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setTravelSteps( + @java.lang.Deprecated + public Builder setTravelSteps( int index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep value) { if (travelStepsBuilder_ == null) { if (value == null) { @@ -16693,16 +19010,22 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setTravelSteps( - int index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { + @java.lang.Deprecated + public Builder setTravelSteps( + int index, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); travelSteps_.set(index, builderForValue.build()); @@ -16713,15 +19036,20 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addTravelSteps(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep value) { + @java.lang.Deprecated + public Builder addTravelSteps(com.google.cloud.optimization.v1.ShipmentRoute.TravelStep value) { if (travelStepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16735,15 +19063,20 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addTravelSteps( + @java.lang.Deprecated + public Builder addTravelSteps( int index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep value) { if (travelStepsBuilder_ == null) { if (value == null) { @@ -16758,15 +19091,20 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addTravelSteps( + @java.lang.Deprecated + public Builder addTravelSteps( com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); @@ -16778,16 +19116,22 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addTravelSteps( - int index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { + @java.lang.Deprecated + public Builder addTravelSteps( + int index, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder builderForValue) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); travelSteps_.add(index, builderForValue.build()); @@ -16798,20 +19142,25 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllTravelSteps( - java.lang.Iterable values) { + @java.lang.Deprecated + public Builder addAllTravelSteps( + java.lang.Iterable + values) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, travelSteps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, travelSteps_); onChanged(); } else { travelStepsBuilder_.addAllMessages(values); @@ -16819,15 +19168,20 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearTravelSteps() { + @java.lang.Deprecated + public Builder clearTravelSteps() { if (travelStepsBuilder_ == null) { travelSteps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); @@ -16838,15 +19192,20 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeTravelSteps(int index) { + @java.lang.Deprecated + public Builder removeTravelSteps(int index) { if (travelStepsBuilder_ == null) { ensureTravelStepsIsMutable(); travelSteps_.remove(index); @@ -16857,45 +19216,62 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder getTravelStepsBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder getTravelStepsBuilder( int index) { return getTravelStepsFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder + getTravelStepsOrBuilder(int index) { if (travelStepsBuilder_ == null) { - return travelSteps_.get(index); } else { + return travelSteps_.get(index); + } else { return travelStepsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getTravelStepsOrBuilderList() { + @java.lang.Deprecated + public java.util.List< + ? extends com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> + getTravelStepsOrBuilderList() { if (travelStepsBuilder_ != null) { return travelStepsBuilder_.getMessageOrBuilderList(); } else { @@ -16903,55 +19279,77 @@ private void ensureTravelStepsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder addTravelStepsBuilder() { - return getTravelStepsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder + addTravelStepsBuilder() { + return getTravelStepsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder addTravelStepsBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder addTravelStepsBuilder( int index) { - return getTravelStepsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()); + return getTravelStepsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
      * instead. Ordered list of travel steps for the route.
      * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getTravelStepsBuilderList() { + @java.lang.Deprecated + public java.util.List + getTravelStepsBuilderList() { return getTravelStepsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder> getTravelStepsFieldBuilder() { if (travelStepsBuilder_ == null) { - travelStepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder>( - travelSteps_, - ((bitField0_ & 0x00002000) != 0), - getParentForChildren(), - isClean()); + travelStepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder>( + travelSteps_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); travelSteps_ = null; } return travelStepsBuilder_; @@ -16959,8 +19357,13 @@ private void ensureTravelStepsIsMutable() { private com.google.protobuf.Duration vehicleDetour_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> vehicleDetourBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + vehicleDetourBuilder_; /** + * + * *
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -16975,14 +19378,18 @@ private void ensureTravelStepsIsMutable() {
      * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return Whether the vehicleDetour field is set. */ - @java.lang.Deprecated public boolean hasVehicleDetour() { + @java.lang.Deprecated + public boolean hasVehicleDetour() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -16997,18 +19404,24 @@ private void ensureTravelStepsIsMutable() {
      * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return The vehicleDetour. */ - @java.lang.Deprecated public com.google.protobuf.Duration getVehicleDetour() { + @java.lang.Deprecated + public com.google.protobuf.Duration getVehicleDetour() { if (vehicleDetourBuilder_ == null) { - return vehicleDetour_ == null ? com.google.protobuf.Duration.getDefaultInstance() : vehicleDetour_; + return vehicleDetour_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : vehicleDetour_; } else { return vehicleDetourBuilder_.getMessage(); } } /** + * + * *
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -17024,7 +19437,8 @@ private void ensureTravelStepsIsMutable() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated public Builder setVehicleDetour(com.google.protobuf.Duration value) {
+    @java.lang.Deprecated
+    public Builder setVehicleDetour(com.google.protobuf.Duration value) {
       if (vehicleDetourBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -17038,6 +19452,8 @@ private void ensureTravelStepsIsMutable() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -17053,8 +19469,8 @@ private void ensureTravelStepsIsMutable() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated public Builder setVehicleDetour(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    @java.lang.Deprecated
+    public Builder setVehicleDetour(com.google.protobuf.Duration.Builder builderForValue) {
       if (vehicleDetourBuilder_ == null) {
         vehicleDetour_ = builderForValue.build();
       } else {
@@ -17065,6 +19481,8 @@ private void ensureTravelStepsIsMutable() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -17080,11 +19498,12 @@ private void ensureTravelStepsIsMutable() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated public Builder mergeVehicleDetour(com.google.protobuf.Duration value) {
+    @java.lang.Deprecated
+    public Builder mergeVehicleDetour(com.google.protobuf.Duration value) {
       if (vehicleDetourBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0) &&
-          vehicleDetour_ != null &&
-          vehicleDetour_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0)
+            && vehicleDetour_ != null
+            && vehicleDetour_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getVehicleDetourBuilder().mergeFrom(value);
         } else {
           vehicleDetour_ = value;
@@ -17097,6 +19516,8 @@ private void ensureTravelStepsIsMutable() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -17112,7 +19533,8 @@ private void ensureTravelStepsIsMutable() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated public Builder clearVehicleDetour() {
+    @java.lang.Deprecated
+    public Builder clearVehicleDetour() {
       bitField0_ = (bitField0_ & ~0x00004000);
       vehicleDetour_ = null;
       if (vehicleDetourBuilder_ != null) {
@@ -17123,6 +19545,8 @@ private void ensureTravelStepsIsMutable() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -17138,12 +19562,15 @@ private void ensureTravelStepsIsMutable() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated public com.google.protobuf.Duration.Builder getVehicleDetourBuilder() {
+    @java.lang.Deprecated
+    public com.google.protobuf.Duration.Builder getVehicleDetourBuilder() {
       bitField0_ |= 0x00004000;
       onChanged();
       return getVehicleDetourFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -17159,15 +19586,19 @@ private void ensureTravelStepsIsMutable() {
      *
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
-    @java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
+    @java.lang.Deprecated
+    public com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder() {
       if (vehicleDetourBuilder_ != null) {
         return vehicleDetourBuilder_.getMessageOrBuilder();
       } else {
-        return vehicleDetour_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : vehicleDetour_;
+        return vehicleDetour_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : vehicleDetour_;
       }
     }
     /**
+     *
+     *
      * 
      * Deprecated: No longer used.
      * This field will only be populated at the
@@ -17184,14 +19615,17 @@ private void ensureTravelStepsIsMutable() {
      * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getVehicleDetourFieldBuilder() {
       if (vehicleDetourBuilder_ == null) {
-        vehicleDetourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getVehicleDetour(),
-                getParentForChildren(),
-                isClean());
+        vehicleDetourBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getVehicleDetour(), getParentForChildren(), isClean());
         vehicleDetour_ = null;
       }
       return vehicleDetourBuilder_;
@@ -17199,48 +19633,71 @@ private void ensureTravelStepsIsMutable() {
 
     private com.google.cloud.optimization.v1.ShipmentRoute.Delay delayBeforeVehicleEnd_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> delayBeforeVehicleEndBuilder_;
+            com.google.cloud.optimization.v1.ShipmentRoute.Delay,
+            com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder,
+            com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>
+        delayBeforeVehicleEndBuilder_;
     /**
+     *
+     *
      * 
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return Whether the delayBeforeVehicleEnd field is set. */ - @java.lang.Deprecated public boolean hasDelayBeforeVehicleEnd() { + @java.lang.Deprecated + public boolean hasDelayBeforeVehicleEnd() { return ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is + * deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return The delayBeforeVehicleEnd. */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd() { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd() { if (delayBeforeVehicleEndBuilder_ == null) { - return delayBeforeVehicleEnd_ == null ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeVehicleEnd_; + return delayBeforeVehicleEnd_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() + : delayBeforeVehicleEnd_; } else { return delayBeforeVehicleEndBuilder_.getMessage(); } } /** + * + * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDelayBeforeVehicleEnd(com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { + @java.lang.Deprecated + public Builder setDelayBeforeVehicleEnd( + com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { if (delayBeforeVehicleEndBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -17254,14 +19711,19 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setDelayBeforeVehicleEnd( + @java.lang.Deprecated + public Builder setDelayBeforeVehicleEnd( com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder builderForValue) { if (delayBeforeVehicleEndBuilder_ == null) { delayBeforeVehicleEnd_ = builderForValue.build(); @@ -17273,18 +19735,25 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder mergeDelayBeforeVehicleEnd(com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { + @java.lang.Deprecated + public Builder mergeDelayBeforeVehicleEnd( + com.google.cloud.optimization.v1.ShipmentRoute.Delay value) { if (delayBeforeVehicleEndBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - delayBeforeVehicleEnd_ != null && - delayBeforeVehicleEnd_ != com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) + && delayBeforeVehicleEnd_ != null + && delayBeforeVehicleEnd_ + != com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance()) { getDelayBeforeVehicleEndBuilder().mergeFrom(value); } else { delayBeforeVehicleEnd_ = value; @@ -17297,14 +19766,19 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearDelayBeforeVehicleEnd() { + @java.lang.Deprecated + public Builder clearDelayBeforeVehicleEnd() { bitField0_ = (bitField0_ & ~0x00008000); delayBeforeVehicleEnd_ = null; if (delayBeforeVehicleEndBuilder_ != null) { @@ -17315,58 +19789,78 @@ private void ensureTravelStepsIsMutable() { return this; } /** + * + * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder getDelayBeforeVehicleEndBuilder() { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder + getDelayBeforeVehicleEndBuilder() { bitField0_ |= 0x00008000; onChanged(); return getDelayBeforeVehicleEndFieldBuilder().getBuilder(); } /** + * + * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeVehicleEndOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder + getDelayBeforeVehicleEndOrBuilder() { if (delayBeforeVehicleEndBuilder_ != null) { return delayBeforeVehicleEndBuilder_.getMessageOrBuilder(); } else { - return delayBeforeVehicleEnd_ == null ? - com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() : delayBeforeVehicleEnd_; + return delayBeforeVehicleEnd_ == null + ? com.google.cloud.optimization.v1.ShipmentRoute.Delay.getDefaultInstance() + : delayBeforeVehicleEnd_; } } /** + * + * *
      * Deprecated: Delay occurring before the vehicle end. See
      * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
      * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> + com.google.cloud.optimization.v1.ShipmentRoute.Delay, + com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder> getDelayBeforeVehicleEndFieldBuilder() { if (delayBeforeVehicleEndBuilder_ == null) { - delayBeforeVehicleEndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.ShipmentRoute.Delay, com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>( - getDelayBeforeVehicleEnd(), - getParentForChildren(), - isClean()); + delayBeforeVehicleEndBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.ShipmentRoute.Delay, + com.google.cloud.optimization.v1.ShipmentRoute.Delay.Builder, + com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder>( + getDelayBeforeVehicleEnd(), getParentForChildren(), isClean()); delayBeforeVehicleEnd_ = null; } return delayBeforeVehicleEndBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -17376,12 +19870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentRoute) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentRoute) private static final com.google.cloud.optimization.v1.ShipmentRoute DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentRoute(); } @@ -17390,27 +19884,27 @@ public static com.google.cloud.optimization.v1.ShipmentRoute getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShipmentRoute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShipmentRoute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -17425,6 +19919,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentRoute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java similarity index 80% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java index 4d4d2137a95e..90fb3dea9b76 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentRouteOrBuilder.java @@ -1,64 +1,96 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentRouteOrBuilder extends +public interface ShipmentRouteOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentRoute) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Vehicle performing the route, identified by its index in the source
    * `ShipmentModel`.
    * 
* * int32 vehicle_index = 1; + * * @return The vehicleIndex. */ int getVehicleIndex(); /** + * + * *
    * Label of the vehicle performing this route, equal to
    * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
    * 
* * string vehicle_label = 2; + * * @return The vehicleLabel. */ java.lang.String getVehicleLabel(); /** + * + * *
    * Label of the vehicle performing this route, equal to
    * `ShipmentModel.vehicles(vehicle_index).label`, if specified.
    * 
* * string vehicle_label = 2; + * * @return The bytes for vehicleLabel. */ - com.google.protobuf.ByteString - getVehicleLabelBytes(); + com.google.protobuf.ByteString getVehicleLabelBytes(); /** + * + * *
    * Time at which the vehicle starts its route.
    * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; + * * @return Whether the vehicleStartTime field is set. */ boolean hasVehicleStartTime(); /** + * + * *
    * Time at which the vehicle starts its route.
    * 
* * .google.protobuf.Timestamp vehicle_start_time = 5; + * * @return The vehicleStartTime. */ com.google.protobuf.Timestamp getVehicleStartTime(); /** + * + * *
    * Time at which the vehicle starts its route.
    * 
@@ -68,24 +100,32 @@ public interface ShipmentRouteOrBuilder extends com.google.protobuf.TimestampOrBuilder getVehicleStartTimeOrBuilder(); /** + * + * *
    * Time at which the vehicle finishes its route.
    * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; + * * @return Whether the vehicleEndTime field is set. */ boolean hasVehicleEndTime(); /** + * + * *
    * Time at which the vehicle finishes its route.
    * 
* * .google.protobuf.Timestamp vehicle_end_time = 6; + * * @return The vehicleEndTime. */ com.google.protobuf.Timestamp getVehicleEndTime(); /** + * + * *
    * Time at which the vehicle finishes its route.
    * 
@@ -95,6 +135,8 @@ public interface ShipmentRouteOrBuilder extends com.google.protobuf.TimestampOrBuilder getVehicleEndTimeOrBuilder(); /** + * + * *
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -103,9 +145,10 @@ public interface ShipmentRouteOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
    */
-  java.util.List 
-      getVisitsList();
+  java.util.List getVisitsList();
   /**
+   *
+   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -116,6 +159,8 @@ public interface ShipmentRouteOrBuilder extends
    */
   com.google.cloud.optimization.v1.ShipmentRoute.Visit getVisits(int index);
   /**
+   *
+   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -126,6 +171,8 @@ public interface ShipmentRouteOrBuilder extends
    */
   int getVisitsCount();
   /**
+   *
+   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -134,9 +181,11 @@ public interface ShipmentRouteOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
    */
-  java.util.List 
+  java.util.List
       getVisitsOrBuilderList();
   /**
+   *
+   *
    * 
    * Ordered sequence of visits representing a route.
    * visits[i] is the i-th visit in the route.
@@ -145,19 +194,21 @@ public interface ShipmentRouteOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Visit visits = 7;
    */
-  com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Ordered list of transitions for the route.
    * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - java.util.List - getTransitionsList(); + java.util.List getTransitionsList(); /** + * + * *
    * Ordered list of transitions for the route.
    * 
@@ -166,6 +217,8 @@ com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOrBuilder */ com.google.cloud.optimization.v1.ShipmentRoute.Transition getTransitions(int index); /** + * + * *
    * Ordered list of transitions for the route.
    * 
@@ -174,15 +227,19 @@ com.google.cloud.optimization.v1.ShipmentRoute.VisitOrBuilder getVisitsOrBuilder */ int getTransitionsCount(); /** + * + * *
    * Ordered list of transitions for the route.
    * 
* * repeated .google.cloud.optimization.v1.ShipmentRoute.Transition transitions = 8; */ - java.util.List + java.util.List getTransitionsOrBuilderList(); /** + * + * *
    * Ordered list of transitions for the route.
    * 
@@ -193,6 +250,8 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition int index); /** + * + * *
    * When
    * [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic],
@@ -215,11 +274,14 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * 
* * bool has_traffic_infeasibilities = 9; + * * @return The hasTrafficInfeasibilities. */ boolean getHasTrafficInfeasibilities(); /** + * + * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -228,10 +290,13 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; + * * @return Whether the routePolyline field is set. */ boolean hasRoutePolyline(); /** + * + * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -240,10 +305,13 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    * 
* * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10; + * * @return The routePolyline. */ com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline getRoutePolyline(); /** + * + * *
    * The encoded polyline representation of the route.
    * This field is only populated if
@@ -253,9 +321,12 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 10;
    */
-  com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder();
+  com.google.cloud.optimization.v1.ShipmentRoute.EncodedPolylineOrBuilder
+      getRoutePolylineOrBuilder();
 
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -264,9 +335,10 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
    */
-  java.util.List 
-      getBreaksList();
+  java.util.List getBreaksList();
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -277,6 +349,8 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    */
   com.google.cloud.optimization.v1.ShipmentRoute.Break getBreaks(int index);
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -287,6 +361,8 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    */
   int getBreaksCount();
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -295,9 +371,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
    */
-  java.util.List 
+  java.util.List
       getBreaksOrBuilderList();
   /**
+   *
+   *
    * 
    * Breaks scheduled for the vehicle performing this route.
    * The `breaks` sequence represents time intervals, each starting at the
@@ -306,10 +384,11 @@ com.google.cloud.optimization.v1.ShipmentRoute.TransitionOrBuilder getTransition
    *
    * repeated .google.cloud.optimization.v1.ShipmentRoute.Break breaks = 11;
    */
-  com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -321,10 +400,13 @@ com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder
    * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; + * * @return Whether the metrics field is set. */ boolean hasMetrics(); /** + * + * *
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -336,10 +418,13 @@ com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder
    * 
* * .google.cloud.optimization.v1.AggregatedMetrics metrics = 12; + * * @return The metrics. */ com.google.cloud.optimization.v1.AggregatedMetrics getMetrics(); /** + * + * *
    * Duration, distance and load metrics for this route. The fields of
    * [AggregatedMetrics][google.cloud.optimization.v1.AggregatedMetrics] are
@@ -355,6 +440,8 @@ com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder
   com.google.cloud.optimization.v1.AggregatedMetricsOrBuilder getMetricsOrBuilder();
 
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -370,6 +457,8 @@ com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder
    */
   int getRouteCostsCount();
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -383,15 +472,13 @@ com.google.cloud.optimization.v1.ShipmentRoute.BreakOrBuilder getBreaksOrBuilder
    *
    * map<string, double> route_costs = 17;
    */
-  boolean containsRouteCosts(
-      java.lang.String key);
-  /**
-   * Use {@link #getRouteCostsMap()} instead.
-   */
+  boolean containsRouteCosts(java.lang.String key);
+  /** Use {@link #getRouteCostsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getRouteCosts();
+  java.util.Map getRouteCosts();
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -405,9 +492,10 @@ boolean containsRouteCosts(
    *
    * map<string, double> route_costs = 17;
    */
-  java.util.Map
-  getRouteCostsMap();
+  java.util.Map getRouteCostsMap();
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -421,10 +509,10 @@ boolean containsRouteCosts(
    *
    * map<string, double> route_costs = 17;
    */
-  double getRouteCostsOrDefault(
-      java.lang.String key,
-      double defaultValue);
+  double getRouteCostsOrDefault(java.lang.String key, double defaultValue);
   /**
+   *
+   *
    * 
    * Cost of the route, broken down by cost-related request fields.
    * The keys are proto paths, relative to the input OptimizeToursRequest, e.g.
@@ -438,20 +526,24 @@ boolean containsRouteCosts(
    *
    * map<string, double> route_costs = 17;
    */
-  double getRouteCostsOrThrow(
-      java.lang.String key);
+  double getRouteCostsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Total cost of the route. The sum of all costs in the cost map.
    * 
* * double route_total_cost = 18; + * * @return The routeTotalCost. */ double getRouteTotalCost(); /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -463,11 +555,15 @@ boolean containsRouteCosts(
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getEndLoadsList(); + @java.lang.Deprecated + java.util.List getEndLoadsList(); /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -479,10 +575,15 @@ boolean containsRouteCosts(
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantity getEndLoads(int index); /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -494,10 +595,15 @@ boolean containsRouteCosts(
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated int getEndLoadsCount(); + @java.lang.Deprecated + int getEndLoadsCount(); /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -509,11 +615,16 @@ boolean containsRouteCosts(
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getEndLoadsOrBuilderList(); /** + * + * *
    * Deprecated: Use
    * [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
@@ -525,66 +636,94 @@ boolean containsRouteCosts(
    * non-zero demand on the route.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity end_loads = 13 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder( - int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getEndLoadsOrBuilder(int index); /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getTravelStepsList(); + @java.lang.Deprecated + java.util.List getTravelStepsList(); /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.ShipmentRoute.TravelStep getTravelSteps(int index); /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated int getTravelStepsCount(); + @java.lang.Deprecated + int getTravelStepsCount(); /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getTravelStepsOrBuilderList(); /** + * + * *
    * Deprecated: Use
    * [ShipmentRoute.transitions][google.cloud.optimization.v1.ShipmentRoute.transitions]
    * instead. Ordered list of travel steps for the route.
    * 
* - * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.ShipmentRoute.TravelStep travel_steps = 14 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( + @java.lang.Deprecated + com.google.cloud.optimization.v1.ShipmentRoute.TravelStepOrBuilder getTravelStepsOrBuilder( int index); /** + * + * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -599,12 +738,16 @@ boolean containsRouteCosts(
    * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return Whether the vehicleDetour field is set. */ - @java.lang.Deprecated boolean hasVehicleDetour(); + @java.lang.Deprecated + boolean hasVehicleDetour(); /** + * + * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -619,12 +762,16 @@ boolean containsRouteCosts(
    * 
* * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=2215 + * + * @deprecated google.cloud.optimization.v1.ShipmentRoute.vehicle_detour is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=2215 * @return The vehicleDetour. */ - @java.lang.Deprecated com.google.protobuf.Duration getVehicleDetour(); + @java.lang.Deprecated + com.google.protobuf.Duration getVehicleDetour(); /** + * + * *
    * Deprecated: No longer used.
    * This field will only be populated at the
@@ -640,39 +787,57 @@ boolean containsRouteCosts(
    *
    * .google.protobuf.Duration vehicle_detour = 15 [deprecated = true];
    */
-  @java.lang.Deprecated com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder();
+  @java.lang.Deprecated
+  com.google.protobuf.DurationOrBuilder getVehicleDetourOrBuilder();
 
   /**
+   *
+   *
    * 
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return Whether the delayBeforeVehicleEnd field is set. */ - @java.lang.Deprecated boolean hasDelayBeforeVehicleEnd(); + @java.lang.Deprecated + boolean hasDelayBeforeVehicleEnd(); /** + * + * *
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * * @deprecated google.cloud.optimization.v1.ShipmentRoute.delay_before_vehicle_end is deprecated. * See google/cloud/optimization/v1/fleet_routing.proto;l=2219 * @return The delayBeforeVehicleEnd. */ - @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd(); + @java.lang.Deprecated + com.google.cloud.optimization.v1.ShipmentRoute.Delay getDelayBeforeVehicleEnd(); /** + * + * *
    * Deprecated: Delay occurring before the vehicle end. See
    * [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
    * 
* - * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * + * .google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_vehicle_end = 16 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeVehicleEndOrBuilder(); + @java.lang.Deprecated + com.google.cloud.optimization.v1.ShipmentRoute.DelayOrBuilder getDelayBeforeVehicleEndOrBuilder(); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java similarity index 66% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java index 30cabdaf2650..bc062497f910 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibility.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Specifies incompatibilties between shipments depending on their
  * shipment_type. The appearance of incompatible shipments on the same route is
@@ -12,52 +29,57 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.ShipmentTypeIncompatibility}
  */
-public final class ShipmentTypeIncompatibility extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ShipmentTypeIncompatibility extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentTypeIncompatibility)
     ShipmentTypeIncompatibilityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ShipmentTypeIncompatibility.newBuilder() to construct.
   private ShipmentTypeIncompatibility(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ShipmentTypeIncompatibility() {
-    types_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    types_ = com.google.protobuf.LazyStringArrayList.emptyList();
     incompatibilityMode_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ShipmentTypeIncompatibility();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.class, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder.class);
+            com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.class,
+            com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Modes defining how the appearance of incompatible shipments are restricted
    * on the same route.
    * 
* - * Protobuf enum {@code google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode} + * Protobuf enum {@code + * google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode} */ - public enum IncompatibilityMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum IncompatibilityMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified incompatibility mode. This value should never be used.
      * 
@@ -66,6 +88,8 @@ public enum IncompatibilityMode */ INCOMPATIBILITY_MODE_UNSPECIFIED(0), /** + * + * *
      * In this mode, two shipments with incompatible types can never share the
      * same vehicle.
@@ -75,6 +99,8 @@ public enum IncompatibilityMode
      */
     NOT_PERFORMED_BY_SAME_VEHICLE(1),
     /**
+     *
+     *
      * 
      * For two shipments with incompatible types with the
      * `NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY` incompatibility mode:
@@ -93,6 +119,8 @@ public enum IncompatibilityMode
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified incompatibility mode. This value should never be used.
      * 
@@ -101,6 +129,8 @@ public enum IncompatibilityMode */ public static final int INCOMPATIBILITY_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * In this mode, two shipments with incompatible types can never share the
      * same vehicle.
@@ -110,6 +140,8 @@ public enum IncompatibilityMode
      */
     public static final int NOT_PERFORMED_BY_SAME_VEHICLE_VALUE = 1;
     /**
+     *
+     *
      * 
      * For two shipments with incompatible types with the
      * `NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY` incompatibility mode:
@@ -125,7 +157,6 @@ public enum IncompatibilityMode
      */
     public static final int NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -150,10 +181,14 @@ public static IncompatibilityMode valueOf(int value) {
      */
     public static IncompatibilityMode forNumber(int value) {
       switch (value) {
-        case 0: return INCOMPATIBILITY_MODE_UNSPECIFIED;
-        case 1: return NOT_PERFORMED_BY_SAME_VEHICLE;
-        case 2: return NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY;
-        default: return null;
+        case 0:
+          return INCOMPATIBILITY_MODE_UNSPECIFIED;
+        case 1:
+          return NOT_PERFORMED_BY_SAME_VEHICLE;
+        case 2:
+          return NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY;
+        default:
+          return null;
       }
     }
 
@@ -161,29 +196,31 @@ public static IncompatibilityMode forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        IncompatibilityMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public IncompatibilityMode findValueByNumber(int number) {
-              return IncompatibilityMode.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public IncompatibilityMode findValueByNumber(int number) {
+                return IncompatibilityMode.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final IncompatibilityMode[] VALUES = values();
@@ -191,8 +228,7 @@ public IncompatibilityMode findValueByNumber(int number) {
     public static IncompatibilityMode valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -210,41 +246,50 @@ private IncompatibilityMode(int value) {
   }
 
   public static final int TYPES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList types_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; + * * @return A list containing the types. */ - public com.google.protobuf.ProtocolStringList - getTypesList() { + public com.google.protobuf.ProtocolStringList getTypesList() { return types_; } /** + * + * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; + * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** + * + * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; + * * @param index The index of the element to return. * @return The types at the given index. */ @@ -252,47 +297,68 @@ public java.lang.String getTypes(int index) { return types_.get(index); } /** + * + * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - public com.google.protobuf.ByteString - getTypesBytes(int index) { + public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } public static final int INCOMPATIBILITY_MODE_FIELD_NUMBER = 2; private int incompatibilityMode_ = 0; /** + * + * *
    * Mode applied to the incompatibility.
    * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @return The enum numeric value on the wire for incompatibilityMode. */ - @java.lang.Override public int getIncompatibilityModeValue() { + @java.lang.Override + public int getIncompatibilityModeValue() { return incompatibilityMode_; } /** + * + * *
    * Mode applied to the incompatibility.
    * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @return The incompatibilityMode. */ - @java.lang.Override public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode() { - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode result = com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.forNumber(incompatibilityMode_); - return result == null ? com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode + getIncompatibilityMode() { + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode result = + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.forNumber( + incompatibilityMode_); + return result == null + ? com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,12 +370,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < types_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, types_.getRaw(i)); } - if (incompatibilityMode_ != com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.INCOMPATIBILITY_MODE_UNSPECIFIED.getNumber()) { + if (incompatibilityMode_ + != com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode + .INCOMPATIBILITY_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, incompatibilityMode_); } getUnknownFields().writeTo(output); @@ -329,9 +397,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTypesList().size(); } - if (incompatibilityMode_ != com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.INCOMPATIBILITY_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, incompatibilityMode_); + if (incompatibilityMode_ + != com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode + .INCOMPATIBILITY_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, incompatibilityMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -341,15 +411,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentTypeIncompatibility)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility other = (com.google.cloud.optimization.v1.ShipmentTypeIncompatibility) obj; + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility other = + (com.google.cloud.optimization.v1.ShipmentTypeIncompatibility) obj; - if (!getTypesList() - .equals(other.getTypesList())) return false; + if (!getTypesList().equals(other.getTypesList())) return false; if (incompatibilityMode_ != other.incompatibilityMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -374,98 +444,104 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies incompatibilties between shipments depending on their
    * shipment_type. The appearance of incompatible shipments on the same route is
@@ -474,51 +550,50 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentTypeIncompatibility}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentTypeIncompatibility)
       com.google.cloud.optimization.v1.ShipmentTypeIncompatibilityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.class, com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.class,
+              com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      types_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      types_ = com.google.protobuf.LazyStringArrayList.emptyList();
       incompatibilityMode_ = 0;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getDefaultInstanceForType() {
+    public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility
+        getDefaultInstanceForType() {
       return com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance();
     }
 
@@ -533,13 +608,17 @@ public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility buildPartial() {
-      com.google.cloud.optimization.v1.ShipmentTypeIncompatibility result = new com.google.cloud.optimization.v1.ShipmentTypeIncompatibility(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.ShipmentTypeIncompatibility result =
+          new com.google.cloud.optimization.v1.ShipmentTypeIncompatibility(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility result) {
+    private void buildPartial0(
+        com.google.cloud.optimization.v1.ShipmentTypeIncompatibility result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         types_.makeImmutable();
@@ -554,38 +633,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentTypeIncompat
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.ShipmentTypeIncompatibility) {
-        return mergeFrom((com.google.cloud.optimization.v1.ShipmentTypeIncompatibility)other);
+        return mergeFrom((com.google.cloud.optimization.v1.ShipmentTypeIncompatibility) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -593,7 +673,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility other) {
-      if (other == com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.getDefaultInstance())
+        return this;
       if (!other.types_.isEmpty()) {
         if (types_.isEmpty()) {
           types_ = other.types_;
@@ -633,23 +715,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureTypesIsMutable();
-              types_.add(s);
-              break;
-            } // case 10
-            case 16: {
-              incompatibilityMode_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureTypesIsMutable();
+                types_.add(s);
+                break;
+              } // case 10
+            case 16:
+              {
+                incompatibilityMode_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -659,10 +744,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList types_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureTypesIsMutable() {
       if (!types_.isModifiable()) {
         types_ = new com.google.protobuf.LazyStringArrayList(types_);
@@ -670,38 +757,46 @@ private void ensureTypesIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
+     *
+     *
      * 
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @return A list containing the types. */ - public com.google.protobuf.ProtocolStringList - getTypesList() { + public com.google.protobuf.ProtocolStringList getTypesList() { types_.makeImmutable(); return types_; } /** + * + * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** + * + * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @param index The index of the element to return. * @return The types at the given index. */ @@ -709,33 +804,39 @@ public java.lang.String getTypes(int index) { return types_.get(index); } /** + * + * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - public com.google.protobuf.ByteString - getTypesBytes(int index) { + public com.google.protobuf.ByteString getTypesBytes(int index) { return types_.getByteString(index); } /** + * + * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @param index The index to set the value at. * @param value The types to set. * @return This builder for chaining. */ - public Builder setTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTypesIsMutable(); types_.set(index, value); bitField0_ |= 0x00000001; @@ -743,18 +844,22 @@ public Builder setTypes( return this; } /** + * + * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @param value The types to add. * @return This builder for chaining. */ - public Builder addTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTypesIsMutable(); types_.add(value); bitField0_ |= 0x00000001; @@ -762,53 +867,61 @@ public Builder addTypes( return this; } /** + * + * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @param values The types to add. * @return This builder for chaining. */ - public Builder addAllTypes( - java.lang.Iterable values) { + public Builder addAllTypes(java.lang.Iterable values) { ensureTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, types_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @return This builder for chaining. */ public Builder clearTypes() { - types_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + types_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * List of incompatible types. Two shipments having different `shipment_types`
      * among those listed are "incompatible".
      * 
* * repeated string types = 1; + * * @param value The bytes of the types to add. * @return This builder for chaining. */ - public Builder addTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTypesIsMutable(); types_.add(value); @@ -819,22 +932,33 @@ public Builder addTypesBytes( private int incompatibilityMode_ = 0; /** + * + * *
      * Mode applied to the incompatibility.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @return The enum numeric value on the wire for incompatibilityMode. */ - @java.lang.Override public int getIncompatibilityModeValue() { + @java.lang.Override + public int getIncompatibilityModeValue() { return incompatibilityMode_; } /** + * + * *
      * Mode applied to the incompatibility.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @param value The enum numeric value on the wire for incompatibilityMode to set. * @return This builder for chaining. */ @@ -845,28 +969,45 @@ public Builder setIncompatibilityModeValue(int value) { return this; } /** + * + * *
      * Mode applied to the incompatibility.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @return The incompatibilityMode. */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode() { - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode result = com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.forNumber(incompatibilityMode_); - return result == null ? com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode.UNRECOGNIZED : result; + public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode + getIncompatibilityMode() { + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode result = + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode + .forNumber(incompatibilityMode_); + return result == null + ? com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode + .UNRECOGNIZED + : result; } /** + * + * *
      * Mode applied to the incompatibility.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @param value The incompatibilityMode to set. * @return This builder for chaining. */ - public Builder setIncompatibilityMode(com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode value) { + public Builder setIncompatibilityMode( + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode value) { if (value == null) { throw new NullPointerException(); } @@ -876,11 +1017,16 @@ public Builder setIncompatibilityMode(com.google.cloud.optimization.v1.ShipmentT return this; } /** + * + * *
      * Mode applied to the incompatibility.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @return This builder for chaining. */ public Builder clearIncompatibilityMode() { @@ -889,9 +1035,9 @@ public Builder clearIncompatibilityMode() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -901,12 +1047,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentTypeIncompatibility) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentTypeIncompatibility) - private static final com.google.cloud.optimization.v1.ShipmentTypeIncompatibility DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.ShipmentTypeIncompatibility + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentTypeIncompatibility(); } @@ -915,27 +1062,27 @@ public static com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShipmentTypeIncompatibility parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShipmentTypeIncompatibility parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1097,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.optimization.v1.ShipmentTypeIncompatibility getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java similarity index 61% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java index 6a234b277081..3664f0cba42e 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeIncompatibilityOrBuilder.java @@ -1,73 +1,110 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentTypeIncompatibilityOrBuilder extends +public interface ShipmentTypeIncompatibilityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentTypeIncompatibility) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; + * * @return A list containing the types. */ - java.util.List - getTypesList(); + java.util.List getTypesList(); /** + * + * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; + * * @return The count of types. */ int getTypesCount(); /** + * + * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; + * * @param index The index of the element to return. * @return The types at the given index. */ java.lang.String getTypes(int index); /** + * + * *
    * List of incompatible types. Two shipments having different `shipment_types`
    * among those listed are "incompatible".
    * 
* * repeated string types = 1; + * * @param index The index of the value to return. * @return The bytes of the types at the given index. */ - com.google.protobuf.ByteString - getTypesBytes(int index); + com.google.protobuf.ByteString getTypesBytes(int index); /** + * + * *
    * Mode applied to the incompatibility.
    * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @return The enum numeric value on the wire for incompatibilityMode. */ int getIncompatibilityModeValue(); /** + * + * *
    * Mode applied to the incompatibility.
    * 
* - * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * .google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode incompatibility_mode = 2; + * + * * @return The incompatibilityMode. */ - com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode getIncompatibilityMode(); + com.google.cloud.optimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode + getIncompatibilityMode(); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java similarity index 71% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java index 2c438924c054..ff88ac8e9013 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirement.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Specifies requirements between shipments based on their shipment_type.
  * The specifics of the requirement are defined by the requirement mode.
@@ -11,53 +28,56 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.ShipmentTypeRequirement}
  */
-public final class ShipmentTypeRequirement extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ShipmentTypeRequirement extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.ShipmentTypeRequirement)
     ShipmentTypeRequirementOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ShipmentTypeRequirement.newBuilder() to construct.
   private ShipmentTypeRequirement(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ShipmentTypeRequirement() {
-    requiredShipmentTypeAlternatives_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
-    dependentShipmentTypes_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    requiredShipmentTypeAlternatives_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
     requirementMode_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ShipmentTypeRequirement();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.ShipmentTypeRequirement.class, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder.class);
+            com.google.cloud.optimization.v1.ShipmentTypeRequirement.class,
+            com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Modes defining the appearance of dependent shipments on a route.
    * 
* * Protobuf enum {@code google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode} */ - public enum RequirementMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum RequirementMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified requirement mode. This value should never be used.
      * 
@@ -66,6 +86,8 @@ public enum RequirementMode */ REQUIREMENT_MODE_UNSPECIFIED(0), /** + * + * *
      * In this mode, all "dependent" shipments must share the same vehicle as at
      * least one of their "required" shipments.
@@ -75,6 +97,8 @@ public enum RequirementMode
      */
     PERFORMED_BY_SAME_VEHICLE(1),
     /**
+     *
+     *
      * 
      * With the `IN_SAME_VEHICLE_AT_PICKUP_TIME` mode, all "dependent"
      * shipments need to have at least one "required" shipment on their vehicle
@@ -92,6 +116,8 @@ public enum RequirementMode
      */
     IN_SAME_VEHICLE_AT_PICKUP_TIME(2),
     /**
+     *
+     *
      * 
      * Same as before, except the "dependent" shipments need to have a
      * "required" shipment on their vehicle at the time of their *delivery*.
@@ -104,6 +130,8 @@ public enum RequirementMode
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified requirement mode. This value should never be used.
      * 
@@ -112,6 +140,8 @@ public enum RequirementMode */ public static final int REQUIREMENT_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * In this mode, all "dependent" shipments must share the same vehicle as at
      * least one of their "required" shipments.
@@ -121,6 +151,8 @@ public enum RequirementMode
      */
     public static final int PERFORMED_BY_SAME_VEHICLE_VALUE = 1;
     /**
+     *
+     *
      * 
      * With the `IN_SAME_VEHICLE_AT_PICKUP_TIME` mode, all "dependent"
      * shipments need to have at least one "required" shipment on their vehicle
@@ -138,6 +170,8 @@ public enum RequirementMode
      */
     public static final int IN_SAME_VEHICLE_AT_PICKUP_TIME_VALUE = 2;
     /**
+     *
+     *
      * 
      * Same as before, except the "dependent" shipments need to have a
      * "required" shipment on their vehicle at the time of their *delivery*.
@@ -147,7 +181,6 @@ public enum RequirementMode
      */
     public static final int IN_SAME_VEHICLE_AT_DELIVERY_TIME_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -172,41 +205,47 @@ public static RequirementMode valueOf(int value) {
      */
     public static RequirementMode forNumber(int value) {
       switch (value) {
-        case 0: return REQUIREMENT_MODE_UNSPECIFIED;
-        case 1: return PERFORMED_BY_SAME_VEHICLE;
-        case 2: return IN_SAME_VEHICLE_AT_PICKUP_TIME;
-        case 3: return IN_SAME_VEHICLE_AT_DELIVERY_TIME;
-        default: return null;
+        case 0:
+          return REQUIREMENT_MODE_UNSPECIFIED;
+        case 1:
+          return PERFORMED_BY_SAME_VEHICLE;
+        case 2:
+          return IN_SAME_VEHICLE_AT_PICKUP_TIME;
+        case 3:
+          return IN_SAME_VEHICLE_AT_DELIVERY_TIME;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        RequirementMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public RequirementMode findValueByNumber(int number) {
-              return RequirementMode.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public RequirementMode findValueByNumber(int number) {
+                return RequirementMode.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final RequirementMode[] VALUES = values();
@@ -214,8 +253,7 @@ public RequirementMode findValueByNumber(int number) {
     public static RequirementMode valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -233,41 +271,50 @@ private RequirementMode(int value) {
   }
 
   public static final int REQUIRED_SHIPMENT_TYPE_ALTERNATIVES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList requiredShipmentTypeAlternatives_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; + * * @return A list containing the requiredShipmentTypeAlternatives. */ - public com.google.protobuf.ProtocolStringList - getRequiredShipmentTypeAlternativesList() { + public com.google.protobuf.ProtocolStringList getRequiredShipmentTypeAlternativesList() { return requiredShipmentTypeAlternatives_; } /** + * + * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; + * * @return The count of requiredShipmentTypeAlternatives. */ public int getRequiredShipmentTypeAlternativesCount() { return requiredShipmentTypeAlternatives_.size(); } /** + * + * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param index The index of the element to return. * @return The requiredShipmentTypeAlternatives at the given index. */ @@ -275,25 +322,30 @@ public java.lang.String getRequiredShipmentTypeAlternatives(int index) { return requiredShipmentTypeAlternatives_.get(index); } /** + * + * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param index The index of the value to return. * @return The bytes of the requiredShipmentTypeAlternatives at the given index. */ - public com.google.protobuf.ByteString - getRequiredShipmentTypeAlternativesBytes(int index) { + public com.google.protobuf.ByteString getRequiredShipmentTypeAlternativesBytes(int index) { return requiredShipmentTypeAlternatives_.getByteString(index); } public static final int DEPENDENT_SHIPMENT_TYPES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -304,13 +356,15 @@ public java.lang.String getRequiredShipmentTypeAlternatives(int index) {
    * 
* * repeated string dependent_shipment_types = 2; + * * @return A list containing the dependentShipmentTypes. */ - public com.google.protobuf.ProtocolStringList - getDependentShipmentTypesList() { + public com.google.protobuf.ProtocolStringList getDependentShipmentTypesList() { return dependentShipmentTypes_; } /** + * + * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -321,12 +375,15 @@ public java.lang.String getRequiredShipmentTypeAlternatives(int index) {
    * 
* * repeated string dependent_shipment_types = 2; + * * @return The count of dependentShipmentTypes. */ public int getDependentShipmentTypesCount() { return dependentShipmentTypes_.size(); } /** + * + * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -337,6 +394,7 @@ public int getDependentShipmentTypesCount() {
    * 
* * repeated string dependent_shipment_types = 2; + * * @param index The index of the element to return. * @return The dependentShipmentTypes at the given index. */ @@ -344,6 +402,8 @@ public java.lang.String getDependentShipmentTypes(int index) { return dependentShipmentTypes_.get(index); } /** + * + * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -354,41 +414,59 @@ public java.lang.String getDependentShipmentTypes(int index) {
    * 
* * repeated string dependent_shipment_types = 2; + * * @param index The index of the value to return. * @return The bytes of the dependentShipmentTypes at the given index. */ - public com.google.protobuf.ByteString - getDependentShipmentTypesBytes(int index) { + public com.google.protobuf.ByteString getDependentShipmentTypesBytes(int index) { return dependentShipmentTypes_.getByteString(index); } public static final int REQUIREMENT_MODE_FIELD_NUMBER = 3; private int requirementMode_ = 0; /** + * + * *
    * Mode applied to the requirement.
    * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @return The enum numeric value on the wire for requirementMode. */ - @java.lang.Override public int getRequirementModeValue() { + @java.lang.Override + public int getRequirementModeValue() { return requirementMode_; } /** + * + * *
    * Mode applied to the requirement.
    * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @return The requirementMode. */ - @java.lang.Override public com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode getRequirementMode() { - com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode result = com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.forNumber(requirementMode_); - return result == null ? com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode + getRequirementMode() { + com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode result = + com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.forNumber( + requirementMode_); + return result == null + ? com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,15 +478,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < requiredShipmentTypeAlternatives_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requiredShipmentTypeAlternatives_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, requiredShipmentTypeAlternatives_.getRaw(i)); } for (int i = 0; i < dependentShipmentTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dependentShipmentTypes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, dependentShipmentTypes_.getRaw(i)); } - if (requirementMode_ != com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.REQUIREMENT_MODE_UNSPECIFIED.getNumber()) { + if (requirementMode_ + != com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode + .REQUIREMENT_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, requirementMode_); } getUnknownFields().writeTo(output); @@ -436,9 +518,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getDependentShipmentTypesList().size(); } - if (requirementMode_ != com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.REQUIREMENT_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, requirementMode_); + if (requirementMode_ + != com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode + .REQUIREMENT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, requirementMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -448,17 +532,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.ShipmentTypeRequirement)) { return super.equals(obj); } - com.google.cloud.optimization.v1.ShipmentTypeRequirement other = (com.google.cloud.optimization.v1.ShipmentTypeRequirement) obj; + com.google.cloud.optimization.v1.ShipmentTypeRequirement other = + (com.google.cloud.optimization.v1.ShipmentTypeRequirement) obj; if (!getRequiredShipmentTypeAlternativesList() .equals(other.getRequiredShipmentTypeAlternativesList())) return false; - if (!getDependentShipmentTypesList() - .equals(other.getDependentShipmentTypesList())) return false; + if (!getDependentShipmentTypesList().equals(other.getDependentShipmentTypesList())) + return false; if (requirementMode_ != other.requirementMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -487,98 +572,104 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.ShipmentTypeRequirement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.ShipmentTypeRequirement prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.ShipmentTypeRequirement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies requirements between shipments based on their shipment_type.
    * The specifics of the requirement are defined by the requirement mode.
@@ -586,49 +677,46 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.ShipmentTypeRequirement}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.ShipmentTypeRequirement)
       com.google.cloud.optimization.v1.ShipmentTypeRequirementOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.ShipmentTypeRequirement.class, com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder.class);
+              com.google.cloud.optimization.v1.ShipmentTypeRequirement.class,
+              com.google.cloud.optimization.v1.ShipmentTypeRequirement.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.ShipmentTypeRequirement.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
-      requiredShipmentTypeAlternatives_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      dependentShipmentTypes_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      requiredShipmentTypeAlternatives_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList();
       requirementMode_ = 0;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor;
     }
 
     @java.lang.Override
@@ -647,8 +735,11 @@ public com.google.cloud.optimization.v1.ShipmentTypeRequirement build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.ShipmentTypeRequirement buildPartial() {
-      com.google.cloud.optimization.v1.ShipmentTypeRequirement result = new com.google.cloud.optimization.v1.ShipmentTypeRequirement(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.ShipmentTypeRequirement result =
+          new com.google.cloud.optimization.v1.ShipmentTypeRequirement(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -672,38 +763,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.ShipmentTypeRequirem
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.ShipmentTypeRequirement) {
-        return mergeFrom((com.google.cloud.optimization.v1.ShipmentTypeRequirement)other);
+        return mergeFrom((com.google.cloud.optimization.v1.ShipmentTypeRequirement) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -711,7 +803,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.ShipmentTypeRequirement other) {
-      if (other == com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.ShipmentTypeRequirement.getDefaultInstance())
+        return this;
       if (!other.requiredShipmentTypeAlternatives_.isEmpty()) {
         if (requiredShipmentTypeAlternatives_.isEmpty()) {
           requiredShipmentTypeAlternatives_ = other.requiredShipmentTypeAlternatives_;
@@ -761,29 +854,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureRequiredShipmentTypeAlternativesIsMutable();
-              requiredShipmentTypeAlternatives_.add(s);
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureDependentShipmentTypesIsMutable();
-              dependentShipmentTypes_.add(s);
-              break;
-            } // case 18
-            case 24: {
-              requirementMode_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureRequiredShipmentTypeAlternativesIsMutable();
+                requiredShipmentTypeAlternatives_.add(s);
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDependentShipmentTypesIsMutable();
+                dependentShipmentTypes_.add(s);
+                break;
+              } // case 18
+            case 24:
+              {
+                requirementMode_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -793,49 +890,60 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList requiredShipmentTypeAlternatives_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureRequiredShipmentTypeAlternativesIsMutable() {
       if (!requiredShipmentTypeAlternatives_.isModifiable()) {
-        requiredShipmentTypeAlternatives_ = new com.google.protobuf.LazyStringArrayList(requiredShipmentTypeAlternatives_);
+        requiredShipmentTypeAlternatives_ =
+            new com.google.protobuf.LazyStringArrayList(requiredShipmentTypeAlternatives_);
       }
       bitField0_ |= 0x00000001;
     }
     /**
+     *
+     *
      * 
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @return A list containing the requiredShipmentTypeAlternatives. */ - public com.google.protobuf.ProtocolStringList - getRequiredShipmentTypeAlternativesList() { + public com.google.protobuf.ProtocolStringList getRequiredShipmentTypeAlternativesList() { requiredShipmentTypeAlternatives_.makeImmutable(); return requiredShipmentTypeAlternatives_; } /** + * + * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @return The count of requiredShipmentTypeAlternatives. */ public int getRequiredShipmentTypeAlternativesCount() { return requiredShipmentTypeAlternatives_.size(); } /** + * + * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param index The index of the element to return. * @return The requiredShipmentTypeAlternatives at the given index. */ @@ -843,33 +951,39 @@ public java.lang.String getRequiredShipmentTypeAlternatives(int index) { return requiredShipmentTypeAlternatives_.get(index); } /** + * + * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param index The index of the value to return. * @return The bytes of the requiredShipmentTypeAlternatives at the given index. */ - public com.google.protobuf.ByteString - getRequiredShipmentTypeAlternativesBytes(int index) { + public com.google.protobuf.ByteString getRequiredShipmentTypeAlternativesBytes(int index) { return requiredShipmentTypeAlternatives_.getByteString(index); } /** + * + * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param index The index to set the value at. * @param value The requiredShipmentTypeAlternatives to set. * @return This builder for chaining. */ - public Builder setRequiredShipmentTypeAlternatives( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequiredShipmentTypeAlternatives(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureRequiredShipmentTypeAlternativesIsMutable(); requiredShipmentTypeAlternatives_.set(index, value); bitField0_ |= 0x00000001; @@ -877,18 +991,22 @@ public Builder setRequiredShipmentTypeAlternatives( return this; } /** + * + * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param value The requiredShipmentTypeAlternatives to add. * @return This builder for chaining. */ - public Builder addRequiredShipmentTypeAlternatives( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addRequiredShipmentTypeAlternatives(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureRequiredShipmentTypeAlternativesIsMutable(); requiredShipmentTypeAlternatives_.add(value); bitField0_ |= 0x00000001; @@ -896,12 +1014,15 @@ public Builder addRequiredShipmentTypeAlternatives( return this; } /** + * + * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param values The requiredShipmentTypeAlternatives to add. * @return This builder for chaining. */ @@ -915,34 +1036,41 @@ public Builder addAllRequiredShipmentTypeAlternatives( return this; } /** + * + * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @return This builder for chaining. */ public Builder clearRequiredShipmentTypeAlternatives() { - requiredShipmentTypeAlternatives_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + requiredShipmentTypeAlternatives_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * List of alternative shipment types required by the
      * `dependent_shipment_types`.
      * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param value The bytes of the requiredShipmentTypeAlternatives to add. * @return This builder for chaining. */ - public Builder addRequiredShipmentTypeAlternativesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addRequiredShipmentTypeAlternativesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureRequiredShipmentTypeAlternativesIsMutable(); requiredShipmentTypeAlternatives_.add(value); @@ -953,13 +1081,17 @@ public Builder addRequiredShipmentTypeAlternativesBytes( private com.google.protobuf.LazyStringArrayList dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDependentShipmentTypesIsMutable() { if (!dependentShipmentTypes_.isModifiable()) { - dependentShipmentTypes_ = new com.google.protobuf.LazyStringArrayList(dependentShipmentTypes_); + dependentShipmentTypes_ = + new com.google.protobuf.LazyStringArrayList(dependentShipmentTypes_); } bitField0_ |= 0x00000002; } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -970,14 +1102,16 @@ private void ensureDependentShipmentTypesIsMutable() {
      * 
* * repeated string dependent_shipment_types = 2; + * * @return A list containing the dependentShipmentTypes. */ - public com.google.protobuf.ProtocolStringList - getDependentShipmentTypesList() { + public com.google.protobuf.ProtocolStringList getDependentShipmentTypesList() { dependentShipmentTypes_.makeImmutable(); return dependentShipmentTypes_; } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -988,12 +1122,15 @@ private void ensureDependentShipmentTypesIsMutable() {
      * 
* * repeated string dependent_shipment_types = 2; + * * @return The count of dependentShipmentTypes. */ public int getDependentShipmentTypesCount() { return dependentShipmentTypes_.size(); } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1004,6 +1141,7 @@ public int getDependentShipmentTypesCount() {
      * 
* * repeated string dependent_shipment_types = 2; + * * @param index The index of the element to return. * @return The dependentShipmentTypes at the given index. */ @@ -1011,6 +1149,8 @@ public java.lang.String getDependentShipmentTypes(int index) { return dependentShipmentTypes_.get(index); } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1021,14 +1161,16 @@ public java.lang.String getDependentShipmentTypes(int index) {
      * 
* * repeated string dependent_shipment_types = 2; + * * @param index The index of the value to return. * @return The bytes of the dependentShipmentTypes at the given index. */ - public com.google.protobuf.ByteString - getDependentShipmentTypesBytes(int index) { + public com.google.protobuf.ByteString getDependentShipmentTypesBytes(int index) { return dependentShipmentTypes_.getByteString(index); } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1039,13 +1181,15 @@ public java.lang.String getDependentShipmentTypes(int index) {
      * 
* * repeated string dependent_shipment_types = 2; + * * @param index The index to set the value at. * @param value The dependentShipmentTypes to set. * @return This builder for chaining. */ - public Builder setDependentShipmentTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDependentShipmentTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDependentShipmentTypesIsMutable(); dependentShipmentTypes_.set(index, value); bitField0_ |= 0x00000002; @@ -1053,6 +1197,8 @@ public Builder setDependentShipmentTypes( return this; } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1063,12 +1209,14 @@ public Builder setDependentShipmentTypes(
      * 
* * repeated string dependent_shipment_types = 2; + * * @param value The dependentShipmentTypes to add. * @return This builder for chaining. */ - public Builder addDependentShipmentTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDependentShipmentTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDependentShipmentTypesIsMutable(); dependentShipmentTypes_.add(value); bitField0_ |= 0x00000002; @@ -1076,6 +1224,8 @@ public Builder addDependentShipmentTypes( return this; } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1086,19 +1236,20 @@ public Builder addDependentShipmentTypes(
      * 
* * repeated string dependent_shipment_types = 2; + * * @param values The dependentShipmentTypes to add. * @return This builder for chaining. */ - public Builder addAllDependentShipmentTypes( - java.lang.Iterable values) { + public Builder addAllDependentShipmentTypes(java.lang.Iterable values) { ensureDependentShipmentTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dependentShipmentTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependentShipmentTypes_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1109,16 +1260,19 @@ public Builder addAllDependentShipmentTypes(
      * 
* * repeated string dependent_shipment_types = 2; + * * @return This builder for chaining. */ public Builder clearDependentShipmentTypes() { - dependentShipmentTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + dependentShipmentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * All shipments with a type in the `dependent_shipment_types` field require
      * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -1129,12 +1283,14 @@ public Builder clearDependentShipmentTypes() {
      * 
* * repeated string dependent_shipment_types = 2; + * * @param value The bytes of the dependentShipmentTypes to add. * @return This builder for chaining. */ - public Builder addDependentShipmentTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDependentShipmentTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDependentShipmentTypesIsMutable(); dependentShipmentTypes_.add(value); @@ -1145,22 +1301,33 @@ public Builder addDependentShipmentTypesBytes( private int requirementMode_ = 0; /** + * + * *
      * Mode applied to the requirement.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @return The enum numeric value on the wire for requirementMode. */ - @java.lang.Override public int getRequirementModeValue() { + @java.lang.Override + public int getRequirementModeValue() { return requirementMode_; } /** + * + * *
      * Mode applied to the requirement.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @param value The enum numeric value on the wire for requirementMode to set. * @return This builder for chaining. */ @@ -1171,28 +1338,44 @@ public Builder setRequirementModeValue(int value) { return this; } /** + * + * *
      * Mode applied to the requirement.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @return The requirementMode. */ @java.lang.Override - public com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode getRequirementMode() { - com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode result = com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.forNumber(requirementMode_); - return result == null ? com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.UNRECOGNIZED : result; + public com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode + getRequirementMode() { + com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode result = + com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.forNumber( + requirementMode_); + return result == null + ? com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode.UNRECOGNIZED + : result; } /** + * + * *
      * Mode applied to the requirement.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @param value The requirementMode to set. * @return This builder for chaining. */ - public Builder setRequirementMode(com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode value) { + public Builder setRequirementMode( + com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode value) { if (value == null) { throw new NullPointerException(); } @@ -1202,11 +1385,16 @@ public Builder setRequirementMode(com.google.cloud.optimization.v1.ShipmentTypeR return this; } /** + * + * *
      * Mode applied to the requirement.
      * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @return This builder for chaining. */ public Builder clearRequirementMode() { @@ -1215,9 +1403,9 @@ public Builder clearRequirementMode() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1227,12 +1415,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.ShipmentTypeRequirement) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.ShipmentTypeRequirement) private static final com.google.cloud.optimization.v1.ShipmentTypeRequirement DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.ShipmentTypeRequirement(); } @@ -1241,27 +1429,27 @@ public static com.google.cloud.optimization.v1.ShipmentTypeRequirement getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShipmentTypeRequirement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShipmentTypeRequirement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1276,6 +1464,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.ShipmentTypeRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java similarity index 74% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java index b3417d282de2..9ee24164366c 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/ShipmentTypeRequirementOrBuilder.java @@ -1,58 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface ShipmentTypeRequirementOrBuilder extends +public interface ShipmentTypeRequirementOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.ShipmentTypeRequirement) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; + * * @return A list containing the requiredShipmentTypeAlternatives. */ - java.util.List - getRequiredShipmentTypeAlternativesList(); + java.util.List getRequiredShipmentTypeAlternativesList(); /** + * + * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; + * * @return The count of requiredShipmentTypeAlternatives. */ int getRequiredShipmentTypeAlternativesCount(); /** + * + * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param index The index of the element to return. * @return The requiredShipmentTypeAlternatives at the given index. */ java.lang.String getRequiredShipmentTypeAlternatives(int index); /** + * + * *
    * List of alternative shipment types required by the
    * `dependent_shipment_types`.
    * 
* * repeated string required_shipment_type_alternatives = 1; + * * @param index The index of the value to return. * @return The bytes of the requiredShipmentTypeAlternatives at the given index. */ - com.google.protobuf.ByteString - getRequiredShipmentTypeAlternativesBytes(int index); + com.google.protobuf.ByteString getRequiredShipmentTypeAlternativesBytes(int index); /** + * + * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -63,11 +91,13 @@ public interface ShipmentTypeRequirementOrBuilder extends
    * 
* * repeated string dependent_shipment_types = 2; + * * @return A list containing the dependentShipmentTypes. */ - java.util.List - getDependentShipmentTypesList(); + java.util.List getDependentShipmentTypesList(); /** + * + * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -78,10 +108,13 @@ public interface ShipmentTypeRequirementOrBuilder extends
    * 
* * repeated string dependent_shipment_types = 2; + * * @return The count of dependentShipmentTypes. */ int getDependentShipmentTypesCount(); /** + * + * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -92,11 +125,14 @@ public interface ShipmentTypeRequirementOrBuilder extends
    * 
* * repeated string dependent_shipment_types = 2; + * * @param index The index of the element to return. * @return The dependentShipmentTypes at the given index. */ java.lang.String getDependentShipmentTypes(int index); /** + * + * *
    * All shipments with a type in the `dependent_shipment_types` field require
    * at least one shipment of type `required_shipment_type_alternatives` to be
@@ -107,27 +143,37 @@ public interface ShipmentTypeRequirementOrBuilder extends
    * 
* * repeated string dependent_shipment_types = 2; + * * @param index The index of the value to return. * @return The bytes of the dependentShipmentTypes at the given index. */ - com.google.protobuf.ByteString - getDependentShipmentTypesBytes(int index); + com.google.protobuf.ByteString getDependentShipmentTypesBytes(int index); /** + * + * *
    * Mode applied to the requirement.
    * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @return The enum numeric value on the wire for requirementMode. */ int getRequirementModeValue(); /** + * + * *
    * Mode applied to the requirement.
    * 
* - * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * .google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode requirement_mode = 3; + * + * * @return The requirementMode. */ com.google.cloud.optimization.v1.ShipmentTypeRequirement.RequirementMode getRequirementMode(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java similarity index 75% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java index faa2a53b3da9..bda15fa75473 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipment.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Specifies details of unperformed shipments in a solution. For trivial cases
  * and/or if we are able to identify the cause for skipping, we report the
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.SkippedShipment}
  */
-public final class SkippedShipment extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SkippedShipment extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.SkippedShipment)
     SkippedShipmentOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SkippedShipment.newBuilder() to construct.
   private SkippedShipment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SkippedShipment() {
     label_ = "";
     reasons_ = java.util.Collections.emptyList();
@@ -28,91 +46,112 @@ private SkippedShipment() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SkippedShipment();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.SkippedShipment.class, com.google.cloud.optimization.v1.SkippedShipment.Builder.class);
+            com.google.cloud.optimization.v1.SkippedShipment.class,
+            com.google.cloud.optimization.v1.SkippedShipment.Builder.class);
   }
 
-  public interface ReasonOrBuilder extends
+  public interface ReasonOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.SkippedShipment.Reason)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Refer to the comments of Code.
      * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
      * Refer to the comments of Code.
      * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @return The code. */ com.google.cloud.optimization.v1.SkippedShipment.Reason.Code getCode(); /** + * + * *
      * If the reason is related to a shipment-vehicle incompatibility, this
      * field provides the index of one relevant vehicle.
      * 
* * optional int32 example_vehicle_index = 2; + * * @return Whether the exampleVehicleIndex field is set. */ boolean hasExampleVehicleIndex(); /** + * + * *
      * If the reason is related to a shipment-vehicle incompatibility, this
      * field provides the index of one relevant vehicle.
      * 
* * optional int32 example_vehicle_index = 2; + * * @return The exampleVehicleIndex. */ int getExampleVehicleIndex(); /** + * + * *
      * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
      * capacity type that is exceeded.
      * 
* * string example_exceeded_capacity_type = 3; + * * @return The exampleExceededCapacityType. */ java.lang.String getExampleExceededCapacityType(); /** + * + * *
      * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
      * capacity type that is exceeded.
      * 
* * string example_exceeded_capacity_type = 3; + * * @return The bytes for exampleExceededCapacityType. */ - com.google.protobuf.ByteString - getExampleExceededCapacityTypeBytes(); + com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes(); } /** + * + * *
    * If we can explain why the shipment was skipped, reasons will be listed
    * here. If the reason is not the same for all vehicles, `reason` will have
@@ -144,15 +183,16 @@ public interface ReasonOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.SkippedShipment.Reason}
    */
-  public static final class Reason extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Reason extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.SkippedShipment.Reason)
       ReasonOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Reason.newBuilder() to construct.
     private Reason(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Reason() {
       code_ = 0;
       exampleExceededCapacityType_ = "";
@@ -160,25 +200,28 @@ private Reason() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Reason();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.SkippedShipment.Reason.class, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder.class);
+              com.google.cloud.optimization.v1.SkippedShipment.Reason.class,
+              com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder.class);
     }
 
     /**
+     *
+     *
      * 
      * Code identifying the reason type. The order here is meaningless. In
      * particular, it gives no indication of whether a given reason will
@@ -187,9 +230,10 @@ protected java.lang.Object newInstance(
      *
      * Protobuf enum {@code google.cloud.optimization.v1.SkippedShipment.Reason.Code}
      */
-    public enum Code
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Code implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * This should never be used. If we are unable to understand why a
        * shipment was skipped, we simply return an empty set of reasons.
@@ -199,6 +243,8 @@ public enum Code
        */
       CODE_UNSPECIFIED(0),
       /**
+       *
+       *
        * 
        * There is no vehicle in the model making all shipments infeasible.
        * 
@@ -207,6 +253,8 @@ public enum Code */ NO_VEHICLE(1), /** + * + * *
        * The demand of the shipment exceeds a vehicle's capacity for some
        * capacity types, one of which is `example_exceeded_capacity_type`.
@@ -216,6 +264,8 @@ public enum Code
        */
       DEMAND_EXCEEDS_VEHICLE_CAPACITY(2),
       /**
+       *
+       *
        * 
        * The minimum distance necessary to perform this shipment, i.e. from
        * the vehicle's `start_location` to the shipment's pickup and/or delivery
@@ -229,6 +279,8 @@ public enum Code
        */
       CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT(3),
       /**
+       *
+       *
        * 
        * The minimum time necessary to perform this shipment, including travel
        * time, wait time and service time exceeds the vehicle's
@@ -242,6 +294,8 @@ public enum Code
        */
       CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT(4),
       /**
+       *
+       *
        * 
        * Same as above but we only compare minimum travel time and the
        * vehicle's `travel_duration_limit`.
@@ -251,6 +305,8 @@ public enum Code
        */
       CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT(5),
       /**
+       *
+       *
        * 
        * The vehicle cannot perform this shipment in the best-case scenario
        * (see `CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT` for time
@@ -262,6 +318,8 @@ public enum Code
        */
       CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS(6),
       /**
+       *
+       *
        * 
        * The `allowed_vehicle_indices` field of the shipment is not empty and
        * this vehicle does not belong to it.
@@ -274,6 +332,8 @@ public enum Code
       ;
 
       /**
+       *
+       *
        * 
        * This should never be used. If we are unable to understand why a
        * shipment was skipped, we simply return an empty set of reasons.
@@ -283,6 +343,8 @@ public enum Code
        */
       public static final int CODE_UNSPECIFIED_VALUE = 0;
       /**
+       *
+       *
        * 
        * There is no vehicle in the model making all shipments infeasible.
        * 
@@ -291,6 +353,8 @@ public enum Code */ public static final int NO_VEHICLE_VALUE = 1; /** + * + * *
        * The demand of the shipment exceeds a vehicle's capacity for some
        * capacity types, one of which is `example_exceeded_capacity_type`.
@@ -300,6 +364,8 @@ public enum Code
        */
       public static final int DEMAND_EXCEEDS_VEHICLE_CAPACITY_VALUE = 2;
       /**
+       *
+       *
        * 
        * The minimum distance necessary to perform this shipment, i.e. from
        * the vehicle's `start_location` to the shipment's pickup and/or delivery
@@ -313,6 +379,8 @@ public enum Code
        */
       public static final int CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT_VALUE = 3;
       /**
+       *
+       *
        * 
        * The minimum time necessary to perform this shipment, including travel
        * time, wait time and service time exceeds the vehicle's
@@ -326,6 +394,8 @@ public enum Code
        */
       public static final int CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT_VALUE = 4;
       /**
+       *
+       *
        * 
        * Same as above but we only compare minimum travel time and the
        * vehicle's `travel_duration_limit`.
@@ -335,6 +405,8 @@ public enum Code
        */
       public static final int CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT_VALUE = 5;
       /**
+       *
+       *
        * 
        * The vehicle cannot perform this shipment in the best-case scenario
        * (see `CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT` for time
@@ -346,6 +418,8 @@ public enum Code
        */
       public static final int CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS_VALUE = 6;
       /**
+       *
+       *
        * 
        * The `allowed_vehicle_indices` field of the shipment is not empty and
        * this vehicle does not belong to it.
@@ -355,7 +429,6 @@ public enum Code
        */
       public static final int VEHICLE_NOT_ALLOWED_VALUE = 7;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -380,54 +453,61 @@ public static Code valueOf(int value) {
        */
       public static Code forNumber(int value) {
         switch (value) {
-          case 0: return CODE_UNSPECIFIED;
-          case 1: return NO_VEHICLE;
-          case 2: return DEMAND_EXCEEDS_VEHICLE_CAPACITY;
-          case 3: return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT;
-          case 4: return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT;
-          case 5: return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT;
-          case 6: return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS;
-          case 7: return VEHICLE_NOT_ALLOWED;
-          default: return null;
+          case 0:
+            return CODE_UNSPECIFIED;
+          case 1:
+            return NO_VEHICLE;
+          case 2:
+            return DEMAND_EXCEEDS_VEHICLE_CAPACITY;
+          case 3:
+            return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT;
+          case 4:
+            return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT;
+          case 5:
+            return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT;
+          case 6:
+            return CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS;
+          case 7:
+            return VEHICLE_NOT_ALLOWED;
+          default:
+            return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap
-          internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          Code> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public Code findValueByNumber(int number) {
-                return Code.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.SkippedShipment.Reason.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.SkippedShipment.Reason.getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final Code[] VALUES = values();
 
-      public static Code valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -448,38 +528,52 @@ private Code(int value) {
     public static final int CODE_FIELD_NUMBER = 1;
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * Refer to the comments of Code.
      * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Refer to the comments of Code.
      * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.optimization.v1.SkippedShipment.Reason.Code getCode() { - com.google.cloud.optimization.v1.SkippedShipment.Reason.Code result = com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.forNumber(code_); - return result == null ? com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.SkippedShipment.Reason.Code getCode() { + com.google.cloud.optimization.v1.SkippedShipment.Reason.Code result = + com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.forNumber(code_); + return result == null + ? com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.UNRECOGNIZED + : result; } public static final int EXAMPLE_VEHICLE_INDEX_FIELD_NUMBER = 2; private int exampleVehicleIndex_ = 0; /** + * + * *
      * If the reason is related to a shipment-vehicle incompatibility, this
      * field provides the index of one relevant vehicle.
      * 
* * optional int32 example_vehicle_index = 2; + * * @return Whether the exampleVehicleIndex field is set. */ @java.lang.Override @@ -487,12 +581,15 @@ public boolean hasExampleVehicleIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * If the reason is related to a shipment-vehicle incompatibility, this
      * field provides the index of one relevant vehicle.
      * 
* * optional int32 example_vehicle_index = 2; + * * @return The exampleVehicleIndex. */ @java.lang.Override @@ -501,15 +598,19 @@ public int getExampleVehicleIndex() { } public static final int EXAMPLE_EXCEEDED_CAPACITY_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object exampleExceededCapacityType_ = ""; /** + * + * *
      * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
      * capacity type that is exceeded.
      * 
* * string example_exceeded_capacity_type = 3; + * * @return The exampleExceededCapacityType. */ @java.lang.Override @@ -518,30 +619,30 @@ public java.lang.String getExampleExceededCapacityType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exampleExceededCapacityType_ = s; return s; } } /** + * + * *
      * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
      * capacity type that is exceeded.
      * 
* * string example_exceeded_capacity_type = 3; + * * @return The bytes for exampleExceededCapacityType. */ @java.lang.Override - public com.google.protobuf.ByteString - getExampleExceededCapacityTypeBytes() { + public com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes() { java.lang.Object ref = exampleExceededCapacityType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exampleExceededCapacityType_ = b; return b; } else { @@ -550,6 +651,7 @@ public java.lang.String getExampleExceededCapacityType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -561,9 +663,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -581,16 +684,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, exampleVehicleIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, exampleVehicleIndex_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(exampleExceededCapacityType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, exampleExceededCapacityType_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, exampleExceededCapacityType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -600,21 +705,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.SkippedShipment.Reason)) { return super.equals(obj); } - com.google.cloud.optimization.v1.SkippedShipment.Reason other = (com.google.cloud.optimization.v1.SkippedShipment.Reason) obj; + com.google.cloud.optimization.v1.SkippedShipment.Reason other = + (com.google.cloud.optimization.v1.SkippedShipment.Reason) obj; if (code_ != other.code_) return false; if (hasExampleVehicleIndex() != other.hasExampleVehicleIndex()) return false; if (hasExampleVehicleIndex()) { - if (getExampleVehicleIndex() - != other.getExampleVehicleIndex()) return false; + if (getExampleVehicleIndex() != other.getExampleVehicleIndex()) return false; } - if (!getExampleExceededCapacityType() - .equals(other.getExampleExceededCapacityType())) return false; + if (!getExampleExceededCapacityType().equals(other.getExampleExceededCapacityType())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -640,89 +745,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.SkippedShipment.Reason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.SkippedShipment.Reason prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.SkippedShipment.Reason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -732,6 +842,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * If we can explain why the shipment was skipped, reasons will be listed
      * here. If the reason is not the same for all vehicles, `reason` will have
@@ -763,33 +875,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.SkippedShipment.Reason}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.SkippedShipment.Reason)
         com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.SkippedShipment.Reason.class, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder.class);
+                com.google.cloud.optimization.v1.SkippedShipment.Reason.class,
+                com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.SkippedShipment.Reason.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -801,9 +913,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor;
       }
 
       @java.lang.Override
@@ -822,8 +934,11 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.SkippedShipment.Reason buildPartial() {
-        com.google.cloud.optimization.v1.SkippedShipment.Reason result = new com.google.cloud.optimization.v1.SkippedShipment.Reason(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.SkippedShipment.Reason result =
+            new com.google.cloud.optimization.v1.SkippedShipment.Reason(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -848,38 +963,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.SkippedShipment.Reas
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.SkippedShipment.Reason) {
-          return mergeFrom((com.google.cloud.optimization.v1.SkippedShipment.Reason)other);
+          return mergeFrom((com.google.cloud.optimization.v1.SkippedShipment.Reason) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -887,7 +1005,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.SkippedShipment.Reason other) {
-        if (other == com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance())
+          return this;
         if (other.code_ != 0) {
           setCodeValue(other.getCodeValue());
         }
@@ -925,27 +1044,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              case 16: {
-                exampleVehicleIndex_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-              case 26: {
-                exampleExceededCapacityType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  code_ = input.readEnum();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              case 16:
+                {
+                  exampleVehicleIndex_ = input.readInt32();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 16
+              case 26:
+                {
+                  exampleExceededCapacityType_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -955,26 +1078,34 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private int code_ = 0;
       /**
+       *
+       *
        * 
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -985,24 +1116,33 @@ public Builder setCodeValue(int value) { return this; } /** + * + * *
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.optimization.v1.SkippedShipment.Reason.Code getCode() { - com.google.cloud.optimization.v1.SkippedShipment.Reason.Code result = com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.forNumber(code_); - return result == null ? com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.UNRECOGNIZED : result; + com.google.cloud.optimization.v1.SkippedShipment.Reason.Code result = + com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.forNumber(code_); + return result == null + ? com.google.cloud.optimization.v1.SkippedShipment.Reason.Code.UNRECOGNIZED + : result; } /** + * + * *
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -1016,11 +1156,14 @@ public Builder setCode(com.google.cloud.optimization.v1.SkippedShipment.Reason.C return this; } /** + * + * *
        * Refer to the comments of Code.
        * 
* * .google.cloud.optimization.v1.SkippedShipment.Reason.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -1030,14 +1173,17 @@ public Builder clearCode() { return this; } - private int exampleVehicleIndex_ ; + private int exampleVehicleIndex_; /** + * + * *
        * If the reason is related to a shipment-vehicle incompatibility, this
        * field provides the index of one relevant vehicle.
        * 
* * optional int32 example_vehicle_index = 2; + * * @return Whether the exampleVehicleIndex field is set. */ @java.lang.Override @@ -1045,12 +1191,15 @@ public boolean hasExampleVehicleIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * If the reason is related to a shipment-vehicle incompatibility, this
        * field provides the index of one relevant vehicle.
        * 
* * optional int32 example_vehicle_index = 2; + * * @return The exampleVehicleIndex. */ @java.lang.Override @@ -1058,12 +1207,15 @@ public int getExampleVehicleIndex() { return exampleVehicleIndex_; } /** + * + * *
        * If the reason is related to a shipment-vehicle incompatibility, this
        * field provides the index of one relevant vehicle.
        * 
* * optional int32 example_vehicle_index = 2; + * * @param value The exampleVehicleIndex to set. * @return This builder for chaining. */ @@ -1075,12 +1227,15 @@ public Builder setExampleVehicleIndex(int value) { return this; } /** + * + * *
        * If the reason is related to a shipment-vehicle incompatibility, this
        * field provides the index of one relevant vehicle.
        * 
* * optional int32 example_vehicle_index = 2; + * * @return This builder for chaining. */ public Builder clearExampleVehicleIndex() { @@ -1092,19 +1247,21 @@ public Builder clearExampleVehicleIndex() { private java.lang.Object exampleExceededCapacityType_ = ""; /** + * + * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; + * * @return The exampleExceededCapacityType. */ public java.lang.String getExampleExceededCapacityType() { java.lang.Object ref = exampleExceededCapacityType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); exampleExceededCapacityType_ = s; return s; @@ -1113,21 +1270,22 @@ public java.lang.String getExampleExceededCapacityType() { } } /** + * + * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; + * * @return The bytes for exampleExceededCapacityType. */ - public com.google.protobuf.ByteString - getExampleExceededCapacityTypeBytes() { + public com.google.protobuf.ByteString getExampleExceededCapacityTypeBytes() { java.lang.Object ref = exampleExceededCapacityType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); exampleExceededCapacityType_ = b; return b; } else { @@ -1135,30 +1293,37 @@ public java.lang.String getExampleExceededCapacityType() { } } /** + * + * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; + * * @param value The exampleExceededCapacityType to set. * @return This builder for chaining. */ - public Builder setExampleExceededCapacityType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExampleExceededCapacityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } exampleExceededCapacityType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; + * * @return This builder for chaining. */ public Builder clearExampleExceededCapacityType() { @@ -1168,24 +1333,29 @@ public Builder clearExampleExceededCapacityType() { return this; } /** + * + * *
        * If the reason code is `DEMAND_EXCEEDS_VEHICLE_CAPACITY`, documents one
        * capacity type that is exceeded.
        * 
* * string example_exceeded_capacity_type = 3; + * * @param value The bytes for exampleExceededCapacityType to set. * @return This builder for chaining. */ - public Builder setExampleExceededCapacityTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExampleExceededCapacityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); exampleExceededCapacityType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1198,12 +1368,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.SkippedShipment.Reason) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.SkippedShipment.Reason) private static final com.google.cloud.optimization.v1.SkippedShipment.Reason DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.SkippedShipment.Reason(); } @@ -1212,27 +1382,28 @@ public static com.google.cloud.optimization.v1.SkippedShipment.Reason getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1247,18 +1418,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.SkippedShipment.Reason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int INDEX_FIELD_NUMBER = 1; private int index_ = 0; /** + * + * *
    * The index corresponds to the index of the shipment in the source
    * `ShipmentModel`.
    * 
* * int32 index = 1; + * * @return The index. */ @java.lang.Override @@ -1267,9 +1440,12 @@ public int getIndex() { } public static final int LABEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** + * + * *
    * Copy of the corresponding
    * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1277,6 +1453,7 @@ public int getIndex() {
    * 
* * string label = 2; + * * @return The label. */ @java.lang.Override @@ -1285,14 +1462,15 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
    * Copy of the corresponding
    * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1300,16 +1478,15 @@ public java.lang.String getLabel() {
    * 
* * string label = 2; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -1318,9 +1495,12 @@ public java.lang.String getLabel() { } public static final int REASONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List reasons_; /** + * + * *
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1333,6 +1513,8 @@ public java.util.List g
     return reasons_;
   }
   /**
+   *
+   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1341,11 +1523,13 @@ public java.util.List g
    * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getReasonsOrBuilderList() {
     return reasons_;
   }
   /**
+   *
+   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1358,6 +1542,8 @@ public int getReasonsCount() {
     return reasons_.size();
   }
   /**
+   *
+   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1370,6 +1556,8 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason getReasons(int in
     return reasons_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -1384,6 +1572,7 @@ public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReaso
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1395,8 +1584,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (index_ != 0) {
       output.writeInt32(1, index_);
     }
@@ -1416,15 +1604,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (index_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(1, index_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, index_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_);
     }
     for (int i = 0; i < reasons_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, reasons_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, reasons_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1434,19 +1620,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.SkippedShipment)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.SkippedShipment other = (com.google.cloud.optimization.v1.SkippedShipment) obj;
+    com.google.cloud.optimization.v1.SkippedShipment other =
+        (com.google.cloud.optimization.v1.SkippedShipment) obj;
 
-    if (getIndex()
-        != other.getIndex()) return false;
-    if (!getLabel()
-        .equals(other.getLabel())) return false;
-    if (!getReasonsList()
-        .equals(other.getReasonsList())) return false;
+    if (getIndex() != other.getIndex()) return false;
+    if (!getLabel().equals(other.getLabel())) return false;
+    if (!getReasonsList().equals(other.getReasonsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1471,99 +1655,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.SkippedShipment parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.SkippedShipment parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.SkippedShipment parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.SkippedShipment parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.optimization.v1.SkippedShipment prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Specifies details of unperformed shipments in a solution. For trivial cases
    * and/or if we are able to identify the cause for skipping, we report the
@@ -1572,33 +1761,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.SkippedShipment}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.SkippedShipment)
       com.google.cloud.optimization.v1.SkippedShipmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.SkippedShipment.class, com.google.cloud.optimization.v1.SkippedShipment.Builder.class);
+              com.google.cloud.optimization.v1.SkippedShipment.class,
+              com.google.cloud.optimization.v1.SkippedShipment.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.SkippedShipment.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1616,9 +1804,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor;
     }
 
     @java.lang.Override
@@ -1637,14 +1825,18 @@ public com.google.cloud.optimization.v1.SkippedShipment build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.SkippedShipment buildPartial() {
-      com.google.cloud.optimization.v1.SkippedShipment result = new com.google.cloud.optimization.v1.SkippedShipment(this);
+      com.google.cloud.optimization.v1.SkippedShipment result =
+          new com.google.cloud.optimization.v1.SkippedShipment(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.optimization.v1.SkippedShipment result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.optimization.v1.SkippedShipment result) {
       if (reasonsBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           reasons_ = java.util.Collections.unmodifiableList(reasons_);
@@ -1670,38 +1862,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.SkippedShipment resu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.SkippedShipment) {
-        return mergeFrom((com.google.cloud.optimization.v1.SkippedShipment)other);
+        return mergeFrom((com.google.cloud.optimization.v1.SkippedShipment) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1709,7 +1902,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.SkippedShipment other) {
-      if (other == com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.SkippedShipment.getDefaultInstance())
+        return this;
       if (other.getIndex() != 0) {
         setIndex(other.getIndex());
       }
@@ -1736,9 +1930,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.SkippedShipment other)
             reasonsBuilder_ = null;
             reasons_ = other.reasons_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            reasonsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReasonsFieldBuilder() : null;
+            reasonsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReasonsFieldBuilder()
+                    : null;
           } else {
             reasonsBuilder_.addAllMessages(other.reasons_);
           }
@@ -1770,35 +1965,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              index_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              label_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.optimization.v1.SkippedShipment.Reason m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.SkippedShipment.Reason.parser(),
-                      extensionRegistry);
-              if (reasonsBuilder_ == null) {
-                ensureReasonsIsMutable();
-                reasons_.add(m);
-              } else {
-                reasonsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                index_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                label_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.optimization.v1.SkippedShipment.Reason m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.SkippedShipment.Reason.parser(),
+                        extensionRegistry);
+                if (reasonsBuilder_ == null) {
+                  ensureReasonsIsMutable();
+                  reasons_.add(m);
+                } else {
+                  reasonsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1808,16 +2007,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int index_ ;
+    private int index_;
     /**
+     *
+     *
      * 
      * The index corresponds to the index of the shipment in the source
      * `ShipmentModel`.
      * 
* * int32 index = 1; + * * @return The index. */ @java.lang.Override @@ -1825,12 +2028,15 @@ public int getIndex() { return index_; } /** + * + * *
      * The index corresponds to the index of the shipment in the source
      * `ShipmentModel`.
      * 
* * int32 index = 1; + * * @param value The index to set. * @return This builder for chaining. */ @@ -1842,12 +2048,15 @@ public Builder setIndex(int value) { return this; } /** + * + * *
      * The index corresponds to the index of the shipment in the source
      * `ShipmentModel`.
      * 
* * int32 index = 1; + * * @return This builder for chaining. */ public Builder clearIndex() { @@ -1859,6 +2068,8 @@ public Builder clearIndex() { private java.lang.Object label_ = ""; /** + * + * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1866,13 +2077,13 @@ public Builder clearIndex() {
      * 
* * string label = 2; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -1881,6 +2092,8 @@ public java.lang.String getLabel() { } } /** + * + * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1888,15 +2101,14 @@ public java.lang.String getLabel() {
      * 
* * string label = 2; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -1904,6 +2116,8 @@ public java.lang.String getLabel() { } } /** + * + * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1911,18 +2125,22 @@ public java.lang.String getLabel() {
      * 
* * string label = 2; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } label_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1930,6 +2148,7 @@ public Builder setLabel(
      * 
* * string label = 2; + * * @return This builder for chaining. */ public Builder clearLabel() { @@ -1939,6 +2158,8 @@ public Builder clearLabel() { return this; } /** + * + * *
      * Copy of the corresponding
      * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -1946,12 +2167,14 @@ public Builder clearLabel() {
      * 
* * string label = 2; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000002; @@ -1960,18 +2183,26 @@ public Builder setLabelBytes( } private java.util.List reasons_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureReasonsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - reasons_ = new java.util.ArrayList(reasons_); + reasons_ = + new java.util.ArrayList( + reasons_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.SkippedShipment.Reason, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder, com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder> reasonsBuilder_; + com.google.cloud.optimization.v1.SkippedShipment.Reason, + com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder, + com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder> + reasonsBuilder_; /** + * + * *
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -1979,7 +2210,8 @@ private void ensureReasonsIsMutable() {
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
-    public java.util.List getReasonsList() {
+    public java.util.List
+        getReasonsList() {
       if (reasonsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(reasons_);
       } else {
@@ -1987,6 +2219,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2002,6 +2236,8 @@ public int getReasonsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2017,6 +2253,8 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason getReasons(int in
       }
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2039,6 +2277,8 @@ public Builder setReasons(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2047,7 +2287,8 @@ public Builder setReasons(
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
     public Builder setReasons(
-        int index, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder builderForValue) {
+        int index,
+        com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder builderForValue) {
       if (reasonsBuilder_ == null) {
         ensureReasonsIsMutable();
         reasons_.set(index, builderForValue.build());
@@ -2058,6 +2299,8 @@ public Builder setReasons(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2079,6 +2322,8 @@ public Builder addReasons(com.google.cloud.optimization.v1.SkippedShipment.Reaso
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2101,6 +2346,8 @@ public Builder addReasons(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2120,6 +2367,8 @@ public Builder addReasons(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2128,7 +2377,8 @@ public Builder addReasons(
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
     public Builder addReasons(
-        int index, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder builderForValue) {
+        int index,
+        com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder builderForValue) {
       if (reasonsBuilder_ == null) {
         ensureReasonsIsMutable();
         reasons_.add(index, builderForValue.build());
@@ -2139,6 +2389,8 @@ public Builder addReasons(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2147,11 +2399,11 @@ public Builder addReasons(
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
     public Builder addAllReasons(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (reasonsBuilder_ == null) {
         ensureReasonsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, reasons_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reasons_);
         onChanged();
       } else {
         reasonsBuilder_.addAllMessages(values);
@@ -2159,6 +2411,8 @@ public Builder addAllReasons(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2177,6 +2431,8 @@ public Builder clearReasons() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2195,6 +2451,8 @@ public Builder removeReasons(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2207,6 +2465,8 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder getReason
       return getReasonsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2217,11 +2477,14 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder getReason
     public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReasonsOrBuilder(
         int index) {
       if (reasonsBuilder_ == null) {
-        return reasons_.get(index);  } else {
+        return reasons_.get(index);
+      } else {
         return reasonsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2229,8 +2492,9 @@ public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReaso
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
-    public java.util.List 
-         getReasonsOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>
+        getReasonsOrBuilderList() {
       if (reasonsBuilder_ != null) {
         return reasonsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2238,6 +2502,8 @@ public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReaso
       }
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2246,10 +2512,12 @@ public com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReaso
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
     public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder addReasonsBuilder() {
-      return getReasonsFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance());
+      return getReasonsFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2259,10 +2527,13 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder addReason
      */
     public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder addReasonsBuilder(
         int index) {
-      return getReasonsFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance());
+      return getReasonsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.optimization.v1.SkippedShipment.Reason.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of reasons that explain why the shipment was skipped. See comment
      * above `Reason`.
@@ -2270,27 +2541,30 @@ public com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder addReason
      *
      * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
      */
-    public java.util.List 
-         getReasonsBuilderList() {
+    public java.util.List
+        getReasonsBuilderList() {
       return getReasonsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.SkippedShipment.Reason, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder, com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder> 
+            com.google.cloud.optimization.v1.SkippedShipment.Reason,
+            com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder,
+            com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>
         getReasonsFieldBuilder() {
       if (reasonsBuilder_ == null) {
-        reasonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.SkippedShipment.Reason, com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder, com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>(
-                reasons_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        reasonsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.SkippedShipment.Reason,
+                com.google.cloud.optimization.v1.SkippedShipment.Reason.Builder,
+                com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder>(
+                reasons_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         reasons_ = null;
       }
       return reasonsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2300,12 +2574,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.SkippedShipment)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.SkippedShipment)
   private static final com.google.cloud.optimization.v1.SkippedShipment DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.SkippedShipment();
   }
@@ -2314,27 +2588,27 @@ public static com.google.cloud.optimization.v1.SkippedShipment getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SkippedShipment parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SkippedShipment parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2349,6 +2623,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.optimization.v1.SkippedShipment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
similarity index 73%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
index 8f67c3824cfc..592face1616c 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/SkippedShipmentOrBuilder.java
@@ -1,24 +1,45 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
-public interface SkippedShipmentOrBuilder extends
+public interface SkippedShipmentOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.SkippedShipment)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The index corresponds to the index of the shipment in the source
    * `ShipmentModel`.
    * 
* * int32 index = 1; + * * @return The index. */ int getIndex(); /** + * + * *
    * Copy of the corresponding
    * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -26,10 +47,13 @@ public interface SkippedShipmentOrBuilder extends
    * 
* * string label = 2; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
    * Copy of the corresponding
    * [Shipment.label][google.cloud.optimization.v1.Shipment.label], if specified
@@ -37,12 +61,14 @@ public interface SkippedShipmentOrBuilder extends
    * 
* * string label = 2; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -50,9 +76,10 @@ public interface SkippedShipmentOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
    */
-  java.util.List 
-      getReasonsList();
+  java.util.List getReasonsList();
   /**
+   *
+   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -62,6 +89,8 @@ public interface SkippedShipmentOrBuilder extends
    */
   com.google.cloud.optimization.v1.SkippedShipment.Reason getReasons(int index);
   /**
+   *
+   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -71,6 +100,8 @@ public interface SkippedShipmentOrBuilder extends
    */
   int getReasonsCount();
   /**
+   *
+   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -78,9 +109,11 @@ public interface SkippedShipmentOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
    */
-  java.util.List 
+  java.util.List
       getReasonsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of reasons that explain why the shipment was skipped. See comment
    * above `Reason`.
@@ -88,6 +121,5 @@ public interface SkippedShipmentOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.SkippedShipment.Reason reasons = 3;
    */
-  com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReasonsOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.SkippedShipment.ReasonOrBuilder getReasonsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
similarity index 76%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
index 2e7a712ec357..88ba96975e10 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindow.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
+ *
+ *
  * 
  * Time windows constrain the time of an event, such as the arrival time at a
  * visit, or the start and end time of a vehicle.
@@ -30,48 +47,52 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.TimeWindow}
  */
-public final class TimeWindow extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.TimeWindow)
     TimeWindowOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TimeWindow.newBuilder() to construct.
   private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private TimeWindow() {
-  }
+
+  private TimeWindow() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TimeWindow();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.TimeWindow.class, com.google.cloud.optimization.v1.TimeWindow.Builder.class);
+            com.google.cloud.optimization.v1.TimeWindow.class,
+            com.google.cloud.optimization.v1.TimeWindow.Builder.class);
   }
 
   private int bitField0_;
   public static final int START_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp startTime_;
   /**
+   *
+   *
    * 
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -79,12 +100,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -92,6 +116,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
@@ -107,12 +133,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp endTime_;
   /**
+   *
+   *
    * 
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -120,12 +149,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -133,6 +165,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
@@ -148,11 +182,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int SOFT_START_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp softStartTime_;
   /**
+   *
+   *
    * 
    * The soft start time of the time window.
    * 
* * .google.protobuf.Timestamp soft_start_time = 3; + * * @return Whether the softStartTime field is set. */ @java.lang.Override @@ -160,18 +197,25 @@ public boolean hasSoftStartTime() { return softStartTime_ != null; } /** + * + * *
    * The soft start time of the time window.
    * 
* * .google.protobuf.Timestamp soft_start_time = 3; + * * @return The softStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSoftStartTime() { - return softStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softStartTime_; + return softStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softStartTime_; } /** + * + * *
    * The soft start time of the time window.
    * 
@@ -180,17 +224,22 @@ public com.google.protobuf.Timestamp getSoftStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder() { - return softStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softStartTime_; + return softStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softStartTime_; } public static final int SOFT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp softEndTime_; /** + * + * *
    * The soft end time of the time window.
    * 
* * .google.protobuf.Timestamp soft_end_time = 4; + * * @return Whether the softEndTime field is set. */ @java.lang.Override @@ -198,11 +247,14 @@ public boolean hasSoftEndTime() { return softEndTime_ != null; } /** + * + * *
    * The soft end time of the time window.
    * 
* * .google.protobuf.Timestamp soft_end_time = 4; + * * @return The softEndTime. */ @java.lang.Override @@ -210,6 +262,8 @@ public com.google.protobuf.Timestamp getSoftEndTime() { return softEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softEndTime_; } /** + * + * *
    * The soft end time of the time window.
    * 
@@ -224,6 +278,8 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() { public static final int COST_PER_HOUR_BEFORE_SOFT_START_TIME_FIELD_NUMBER = 5; private double costPerHourBeforeSoftStartTime_ = 0D; /** + * + * *
    * A cost per hour added to other costs in the model if the event occurs
    * before soft_start_time, computed as:
@@ -239,6 +295,7 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() {
    * 
* * optional double cost_per_hour_before_soft_start_time = 5; + * * @return Whether the costPerHourBeforeSoftStartTime field is set. */ @java.lang.Override @@ -246,6 +303,8 @@ public boolean hasCostPerHourBeforeSoftStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * A cost per hour added to other costs in the model if the event occurs
    * before soft_start_time, computed as:
@@ -261,6 +320,7 @@ public boolean hasCostPerHourBeforeSoftStartTime() {
    * 
* * optional double cost_per_hour_before_soft_start_time = 5; + * * @return The costPerHourBeforeSoftStartTime. */ @java.lang.Override @@ -271,6 +331,8 @@ public double getCostPerHourBeforeSoftStartTime() { public static final int COST_PER_HOUR_AFTER_SOFT_END_TIME_FIELD_NUMBER = 6; private double costPerHourAfterSoftEndTime_ = 0D; /** + * + * *
    * A cost per hour added to other costs in the model if the event occurs after
    * `soft_end_time`, computed as:
@@ -286,6 +348,7 @@ public double getCostPerHourBeforeSoftStartTime() {
    * 
* * optional double cost_per_hour_after_soft_end_time = 6; + * * @return Whether the costPerHourAfterSoftEndTime field is set. */ @java.lang.Override @@ -293,6 +356,8 @@ public boolean hasCostPerHourAfterSoftEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * A cost per hour added to other costs in the model if the event occurs after
    * `soft_end_time`, computed as:
@@ -308,6 +373,7 @@ public boolean hasCostPerHourAfterSoftEndTime() {
    * 
* * optional double cost_per_hour_after_soft_end_time = 6; + * * @return The costPerHourAfterSoftEndTime. */ @java.lang.Override @@ -316,6 +382,7 @@ public double getCostPerHourAfterSoftEndTime() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +394,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -357,28 +423,25 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (softStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSoftStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSoftStartTime()); } if (softEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSoftEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSoftEndTime()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, costPerHourBeforeSoftStartTime_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 5, costPerHourBeforeSoftStartTime_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(6, costPerHourAfterSoftEndTime_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(6, costPerHourAfterSoftEndTime_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -388,44 +451,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.TimeWindow)) { return super.equals(obj); } - com.google.cloud.optimization.v1.TimeWindow other = (com.google.cloud.optimization.v1.TimeWindow) obj; + com.google.cloud.optimization.v1.TimeWindow other = + (com.google.cloud.optimization.v1.TimeWindow) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (hasSoftStartTime() != other.hasSoftStartTime()) return false; if (hasSoftStartTime()) { - if (!getSoftStartTime() - .equals(other.getSoftStartTime())) return false; + if (!getSoftStartTime().equals(other.getSoftStartTime())) return false; } if (hasSoftEndTime() != other.hasSoftEndTime()) return false; if (hasSoftEndTime()) { - if (!getSoftEndTime() - .equals(other.getSoftEndTime())) return false; + if (!getSoftEndTime().equals(other.getSoftEndTime())) return false; } - if (hasCostPerHourBeforeSoftStartTime() != other.hasCostPerHourBeforeSoftStartTime()) return false; + if (hasCostPerHourBeforeSoftStartTime() != other.hasCostPerHourBeforeSoftStartTime()) + return false; if (hasCostPerHourBeforeSoftStartTime()) { if (java.lang.Double.doubleToLongBits(getCostPerHourBeforeSoftStartTime()) - != java.lang.Double.doubleToLongBits( - other.getCostPerHourBeforeSoftStartTime())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerHourBeforeSoftStartTime())) + return false; } if (hasCostPerHourAfterSoftEndTime() != other.hasCostPerHourAfterSoftEndTime()) return false; if (hasCostPerHourAfterSoftEndTime()) { if (java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftEndTime()) - != java.lang.Double.doubleToLongBits( - other.getCostPerHourAfterSoftEndTime())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerHourAfterSoftEndTime())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -456,112 +517,121 @@ public int hashCode() { } if (hasCostPerHourBeforeSoftStartTime()) { hash = (37 * hash) + COST_PER_HOUR_BEFORE_SOFT_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerHourBeforeSoftStartTime())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerHourBeforeSoftStartTime())); } if (hasCostPerHourAfterSoftEndTime()) { hash = (37 * hash) + COST_PER_HOUR_AFTER_SOFT_END_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftEndTime())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftEndTime())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.TimeWindow parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.TimeWindow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.TimeWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.TimeWindow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.TimeWindow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.TimeWindow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Time windows constrain the time of an event, such as the arrival time at a
    * visit, or the start and end time of a vehicle.
@@ -588,33 +658,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.TimeWindow}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.TimeWindow)
       com.google.cloud.optimization.v1.TimeWindowOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.TimeWindow.class, com.google.cloud.optimization.v1.TimeWindow.Builder.class);
+              com.google.cloud.optimization.v1.TimeWindow.class,
+              com.google.cloud.optimization.v1.TimeWindow.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.TimeWindow.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -645,9 +714,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_TimeWindow_descriptor;
     }
 
     @java.lang.Override
@@ -666,8 +735,11 @@ public com.google.cloud.optimization.v1.TimeWindow build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.TimeWindow buildPartial() {
-      com.google.cloud.optimization.v1.TimeWindow result = new com.google.cloud.optimization.v1.TimeWindow(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.TimeWindow result =
+          new com.google.cloud.optimization.v1.TimeWindow(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -675,24 +747,18 @@ public com.google.cloud.optimization.v1.TimeWindow buildPartial() {
     private void buildPartial0(com.google.cloud.optimization.v1.TimeWindow result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.softStartTime_ = softStartTimeBuilder_ == null
-            ? softStartTime_
-            : softStartTimeBuilder_.build();
+        result.softStartTime_ =
+            softStartTimeBuilder_ == null ? softStartTime_ : softStartTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.softEndTime_ = softEndTimeBuilder_ == null
-            ? softEndTime_
-            : softEndTimeBuilder_.build();
+        result.softEndTime_ =
+            softEndTimeBuilder_ == null ? softEndTime_ : softEndTimeBuilder_.build();
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000010) != 0)) {
@@ -710,38 +776,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.TimeWindow result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.TimeWindow) {
-        return mergeFrom((com.google.cloud.optimization.v1.TimeWindow)other);
+        return mergeFrom((com.google.cloud.optimization.v1.TimeWindow) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -794,50 +861,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getSoftStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getSoftEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 41: {
-              costPerHourBeforeSoftStartTime_ = input.readDouble();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 41
-            case 49: {
-              costPerHourAfterSoftEndTime_ = input.readDouble();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 49
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getSoftStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getSoftEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 41:
+              {
+                costPerHourBeforeSoftStartTime_ = input.readDouble();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 41
+            case 49:
+              {
+                costPerHourAfterSoftEndTime_ = input.readDouble();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 49
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -847,30 +913,40 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        startTimeBuilder_;
     /**
+     *
+     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -881,6 +957,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -902,6 +980,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -909,8 +989,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
       } else {
@@ -921,6 +1000,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -930,9 +1011,9 @@ public Builder setStartTime(
      */
     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          startTime_ != null &&
-          startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && startTime_ != null
+            && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -945,6 +1026,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -963,6 +1046,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -976,6 +1061,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -987,11 +1074,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The hard time window start time. If unspecified it will be set to
      * `ShipmentModel.global_start_time`.
@@ -1000,14 +1088,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -1015,26 +1106,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        endTimeBuilder_;
     /**
+     *
+     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1045,6 +1145,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1066,6 +1168,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1073,8 +1177,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1085,6 +1188,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1094,9 +1199,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1109,6 +1214,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1127,6 +1234,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1140,6 +1249,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1151,11 +1262,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The hard time window end time. If unspecified it will be set to
      * `ShipmentModel.global_end_time`.
@@ -1164,14 +1276,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1179,34 +1294,47 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp softStartTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> softStartTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        softStartTimeBuilder_;
     /**
+     *
+     *
      * 
      * The soft start time of the time window.
      * 
* * .google.protobuf.Timestamp soft_start_time = 3; + * * @return Whether the softStartTime field is set. */ public boolean hasSoftStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The soft start time of the time window.
      * 
* * .google.protobuf.Timestamp soft_start_time = 3; + * * @return The softStartTime. */ public com.google.protobuf.Timestamp getSoftStartTime() { if (softStartTimeBuilder_ == null) { - return softStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softStartTime_; + return softStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softStartTime_; } else { return softStartTimeBuilder_.getMessage(); } } /** + * + * *
      * The soft start time of the time window.
      * 
@@ -1227,14 +1355,15 @@ public Builder setSoftStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The soft start time of the time window.
      * 
* * .google.protobuf.Timestamp soft_start_time = 3; */ - public Builder setSoftStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSoftStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (softStartTimeBuilder_ == null) { softStartTime_ = builderForValue.build(); } else { @@ -1245,6 +1374,8 @@ public Builder setSoftStartTime( return this; } /** + * + * *
      * The soft start time of the time window.
      * 
@@ -1253,9 +1384,9 @@ public Builder setSoftStartTime( */ public Builder mergeSoftStartTime(com.google.protobuf.Timestamp value) { if (softStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - softStartTime_ != null && - softStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && softStartTime_ != null + && softStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSoftStartTimeBuilder().mergeFrom(value); } else { softStartTime_ = value; @@ -1268,6 +1399,8 @@ public Builder mergeSoftStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The soft start time of the time window.
      * 
@@ -1285,6 +1418,8 @@ public Builder clearSoftStartTime() { return this; } /** + * + * *
      * The soft start time of the time window.
      * 
@@ -1297,6 +1432,8 @@ public com.google.protobuf.Timestamp.Builder getSoftStartTimeBuilder() { return getSoftStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The soft start time of the time window.
      * 
@@ -1307,11 +1444,14 @@ public com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder() { if (softStartTimeBuilder_ != null) { return softStartTimeBuilder_.getMessageOrBuilder(); } else { - return softStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : softStartTime_; + return softStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softStartTime_; } } /** + * + * *
      * The soft start time of the time window.
      * 
@@ -1319,14 +1459,17 @@ public com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder() { * .google.protobuf.Timestamp soft_start_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSoftStartTimeFieldBuilder() { if (softStartTimeBuilder_ == null) { - softStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSoftStartTime(), - getParentForChildren(), - isClean()); + softStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSoftStartTime(), getParentForChildren(), isClean()); softStartTime_ = null; } return softStartTimeBuilder_; @@ -1334,34 +1477,47 @@ public com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder() { private com.google.protobuf.Timestamp softEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> softEndTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + softEndTimeBuilder_; /** + * + * *
      * The soft end time of the time window.
      * 
* * .google.protobuf.Timestamp soft_end_time = 4; + * * @return Whether the softEndTime field is set. */ public boolean hasSoftEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The soft end time of the time window.
      * 
* * .google.protobuf.Timestamp soft_end_time = 4; + * * @return The softEndTime. */ public com.google.protobuf.Timestamp getSoftEndTime() { if (softEndTimeBuilder_ == null) { - return softEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softEndTime_; + return softEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softEndTime_; } else { return softEndTimeBuilder_.getMessage(); } } /** + * + * *
      * The soft end time of the time window.
      * 
@@ -1382,14 +1538,15 @@ public Builder setSoftEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The soft end time of the time window.
      * 
* * .google.protobuf.Timestamp soft_end_time = 4; */ - public Builder setSoftEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSoftEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (softEndTimeBuilder_ == null) { softEndTime_ = builderForValue.build(); } else { @@ -1400,6 +1557,8 @@ public Builder setSoftEndTime( return this; } /** + * + * *
      * The soft end time of the time window.
      * 
@@ -1408,9 +1567,9 @@ public Builder setSoftEndTime( */ public Builder mergeSoftEndTime(com.google.protobuf.Timestamp value) { if (softEndTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - softEndTime_ != null && - softEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && softEndTime_ != null + && softEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSoftEndTimeBuilder().mergeFrom(value); } else { softEndTime_ = value; @@ -1423,6 +1582,8 @@ public Builder mergeSoftEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The soft end time of the time window.
      * 
@@ -1440,6 +1601,8 @@ public Builder clearSoftEndTime() { return this; } /** + * + * *
      * The soft end time of the time window.
      * 
@@ -1452,6 +1615,8 @@ public com.google.protobuf.Timestamp.Builder getSoftEndTimeBuilder() { return getSoftEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The soft end time of the time window.
      * 
@@ -1462,11 +1627,14 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() { if (softEndTimeBuilder_ != null) { return softEndTimeBuilder_.getMessageOrBuilder(); } else { - return softEndTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : softEndTime_; + return softEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softEndTime_; } } /** + * + * *
      * The soft end time of the time window.
      * 
@@ -1474,21 +1642,26 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() { * .google.protobuf.Timestamp soft_end_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSoftEndTimeFieldBuilder() { if (softEndTimeBuilder_ == null) { - softEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSoftEndTime(), - getParentForChildren(), - isClean()); + softEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSoftEndTime(), getParentForChildren(), isClean()); softEndTime_ = null; } return softEndTimeBuilder_; } - private double costPerHourBeforeSoftStartTime_ ; + private double costPerHourBeforeSoftStartTime_; /** + * + * *
      * A cost per hour added to other costs in the model if the event occurs
      * before soft_start_time, computed as:
@@ -1504,6 +1677,7 @@ public com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder() {
      * 
* * optional double cost_per_hour_before_soft_start_time = 5; + * * @return Whether the costPerHourBeforeSoftStartTime field is set. */ @java.lang.Override @@ -1511,6 +1685,8 @@ public boolean hasCostPerHourBeforeSoftStartTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * A cost per hour added to other costs in the model if the event occurs
      * before soft_start_time, computed as:
@@ -1526,6 +1702,7 @@ public boolean hasCostPerHourBeforeSoftStartTime() {
      * 
* * optional double cost_per_hour_before_soft_start_time = 5; + * * @return The costPerHourBeforeSoftStartTime. */ @java.lang.Override @@ -1533,6 +1710,8 @@ public double getCostPerHourBeforeSoftStartTime() { return costPerHourBeforeSoftStartTime_; } /** + * + * *
      * A cost per hour added to other costs in the model if the event occurs
      * before soft_start_time, computed as:
@@ -1548,6 +1727,7 @@ public double getCostPerHourBeforeSoftStartTime() {
      * 
* * optional double cost_per_hour_before_soft_start_time = 5; + * * @param value The costPerHourBeforeSoftStartTime to set. * @return This builder for chaining. */ @@ -1559,6 +1739,8 @@ public Builder setCostPerHourBeforeSoftStartTime(double value) { return this; } /** + * + * *
      * A cost per hour added to other costs in the model if the event occurs
      * before soft_start_time, computed as:
@@ -1574,6 +1756,7 @@ public Builder setCostPerHourBeforeSoftStartTime(double value) {
      * 
* * optional double cost_per_hour_before_soft_start_time = 5; + * * @return This builder for chaining. */ public Builder clearCostPerHourBeforeSoftStartTime() { @@ -1583,8 +1766,10 @@ public Builder clearCostPerHourBeforeSoftStartTime() { return this; } - private double costPerHourAfterSoftEndTime_ ; + private double costPerHourAfterSoftEndTime_; /** + * + * *
      * A cost per hour added to other costs in the model if the event occurs after
      * `soft_end_time`, computed as:
@@ -1600,6 +1785,7 @@ public Builder clearCostPerHourBeforeSoftStartTime() {
      * 
* * optional double cost_per_hour_after_soft_end_time = 6; + * * @return Whether the costPerHourAfterSoftEndTime field is set. */ @java.lang.Override @@ -1607,6 +1793,8 @@ public boolean hasCostPerHourAfterSoftEndTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * A cost per hour added to other costs in the model if the event occurs after
      * `soft_end_time`, computed as:
@@ -1622,6 +1810,7 @@ public boolean hasCostPerHourAfterSoftEndTime() {
      * 
* * optional double cost_per_hour_after_soft_end_time = 6; + * * @return The costPerHourAfterSoftEndTime. */ @java.lang.Override @@ -1629,6 +1818,8 @@ public double getCostPerHourAfterSoftEndTime() { return costPerHourAfterSoftEndTime_; } /** + * + * *
      * A cost per hour added to other costs in the model if the event occurs after
      * `soft_end_time`, computed as:
@@ -1644,6 +1835,7 @@ public double getCostPerHourAfterSoftEndTime() {
      * 
* * optional double cost_per_hour_after_soft_end_time = 6; + * * @param value The costPerHourAfterSoftEndTime to set. * @return This builder for chaining. */ @@ -1655,6 +1847,8 @@ public Builder setCostPerHourAfterSoftEndTime(double value) { return this; } /** + * + * *
      * A cost per hour added to other costs in the model if the event occurs after
      * `soft_end_time`, computed as:
@@ -1670,6 +1864,7 @@ public Builder setCostPerHourAfterSoftEndTime(double value) {
      * 
* * optional double cost_per_hour_after_soft_end_time = 6; + * * @return This builder for chaining. */ public Builder clearCostPerHourAfterSoftEndTime() { @@ -1678,9 +1873,9 @@ public Builder clearCostPerHourAfterSoftEndTime() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1690,12 +1885,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.TimeWindow) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.TimeWindow) private static final com.google.cloud.optimization.v1.TimeWindow DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.TimeWindow(); } @@ -1704,27 +1899,27 @@ public static com.google.cloud.optimization.v1.TimeWindow getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1739,6 +1934,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.TimeWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java similarity index 87% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java index 90917b1d9b8c..ef3fd1cfb377 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TimeWindowOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface TimeWindowOrBuilder extends +public interface TimeWindowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.TimeWindow) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The hard time window start time. If unspecified it will be set to
    * `ShipmentModel.global_start_time`.
@@ -38,26 +62,34 @@ public interface TimeWindowOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The hard time window end time. If unspecified it will be set to
    * `ShipmentModel.global_end_time`.
@@ -68,24 +100,32 @@ public interface TimeWindowOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The soft start time of the time window.
    * 
* * .google.protobuf.Timestamp soft_start_time = 3; + * * @return Whether the softStartTime field is set. */ boolean hasSoftStartTime(); /** + * + * *
    * The soft start time of the time window.
    * 
* * .google.protobuf.Timestamp soft_start_time = 3; + * * @return The softStartTime. */ com.google.protobuf.Timestamp getSoftStartTime(); /** + * + * *
    * The soft start time of the time window.
    * 
@@ -95,24 +135,32 @@ public interface TimeWindowOrBuilder extends com.google.protobuf.TimestampOrBuilder getSoftStartTimeOrBuilder(); /** + * + * *
    * The soft end time of the time window.
    * 
* * .google.protobuf.Timestamp soft_end_time = 4; + * * @return Whether the softEndTime field is set. */ boolean hasSoftEndTime(); /** + * + * *
    * The soft end time of the time window.
    * 
* * .google.protobuf.Timestamp soft_end_time = 4; + * * @return The softEndTime. */ com.google.protobuf.Timestamp getSoftEndTime(); /** + * + * *
    * The soft end time of the time window.
    * 
@@ -122,6 +170,8 @@ public interface TimeWindowOrBuilder extends com.google.protobuf.TimestampOrBuilder getSoftEndTimeOrBuilder(); /** + * + * *
    * A cost per hour added to other costs in the model if the event occurs
    * before soft_start_time, computed as:
@@ -137,10 +187,13 @@ public interface TimeWindowOrBuilder extends
    * 
* * optional double cost_per_hour_before_soft_start_time = 5; + * * @return Whether the costPerHourBeforeSoftStartTime field is set. */ boolean hasCostPerHourBeforeSoftStartTime(); /** + * + * *
    * A cost per hour added to other costs in the model if the event occurs
    * before soft_start_time, computed as:
@@ -156,11 +209,14 @@ public interface TimeWindowOrBuilder extends
    * 
* * optional double cost_per_hour_before_soft_start_time = 5; + * * @return The costPerHourBeforeSoftStartTime. */ double getCostPerHourBeforeSoftStartTime(); /** + * + * *
    * A cost per hour added to other costs in the model if the event occurs after
    * `soft_end_time`, computed as:
@@ -176,10 +232,13 @@ public interface TimeWindowOrBuilder extends
    * 
* * optional double cost_per_hour_after_soft_end_time = 6; + * * @return Whether the costPerHourAfterSoftEndTime field is set. */ boolean hasCostPerHourAfterSoftEndTime(); /** + * + * *
    * A cost per hour added to other costs in the model if the event occurs after
    * `soft_end_time`, computed as:
@@ -195,6 +254,7 @@ public interface TimeWindowOrBuilder extends
    * 
* * optional double cost_per_hour_after_soft_end_time = 6; + * * @return The costPerHourAfterSoftEndTime. */ double getCostPerHourAfterSoftEndTime(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java similarity index 75% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java index 2e50ba4ca0e3..e926ebe3dc10 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributes.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Specifies attributes of transitions between two consecutive visits on a
  * route. Several `TransitionAttributes` may apply to the same transition: in
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.TransitionAttributes}
  */
-public final class TransitionAttributes extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TransitionAttributes extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.TransitionAttributes)
     TransitionAttributesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TransitionAttributes.newBuilder() to construct.
   private TransitionAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TransitionAttributes() {
     srcTag_ = "";
     excludedSrcTag_ = "";
@@ -31,28 +49,32 @@ private TransitionAttributes() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TransitionAttributes();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.TransitionAttributes.class, com.google.cloud.optimization.v1.TransitionAttributes.Builder.class);
+            com.google.cloud.optimization.v1.TransitionAttributes.class,
+            com.google.cloud.optimization.v1.TransitionAttributes.Builder.class);
   }
 
   public static final int SRC_TAG_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object srcTag_ = "";
   /**
+   *
+   *
    * 
    * Tags defining the set of (src->dst) transitions these attributes apply to.
    *
@@ -64,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string src_tag = 1; + * * @return The srcTag. */ @java.lang.Override @@ -72,14 +95,15 @@ public java.lang.String getSrcTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcTag_ = s; return s; } } /** + * + * *
    * Tags defining the set of (src->dst) transitions these attributes apply to.
    *
@@ -91,16 +115,15 @@ public java.lang.String getSrcTag() {
    * 
* * string src_tag = 1; + * * @return The bytes for srcTag. */ @java.lang.Override - public com.google.protobuf.ByteString - getSrcTagBytes() { + public com.google.protobuf.ByteString getSrcTagBytes() { java.lang.Object ref = srcTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); srcTag_ = b; return b; } else { @@ -109,15 +132,19 @@ public java.lang.String getSrcTag() { } public static final int EXCLUDED_SRC_TAG_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object excludedSrcTag_ = ""; /** + * + * *
    * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
    * non-empty.
    * 
* * string excluded_src_tag = 2; + * * @return The excludedSrcTag. */ @java.lang.Override @@ -126,30 +153,30 @@ public java.lang.String getExcludedSrcTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excludedSrcTag_ = s; return s; } } /** + * + * *
    * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
    * non-empty.
    * 
* * string excluded_src_tag = 2; + * * @return The bytes for excludedSrcTag. */ @java.lang.Override - public com.google.protobuf.ByteString - getExcludedSrcTagBytes() { + public com.google.protobuf.ByteString getExcludedSrcTagBytes() { java.lang.Object ref = excludedSrcTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); excludedSrcTag_ = b; return b; } else { @@ -158,9 +185,12 @@ public java.lang.String getExcludedSrcTag() { } public static final int DST_TAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object dstTag_ = ""; /** + * + * *
    * A destination visit or vehicle end matches iff its
    * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -170,6 +200,7 @@ public java.lang.String getExcludedSrcTag() {
    * 
* * string dst_tag = 3; + * * @return The dstTag. */ @java.lang.Override @@ -178,14 +209,15 @@ public java.lang.String getDstTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dstTag_ = s; return s; } } /** + * + * *
    * A destination visit or vehicle end matches iff its
    * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -195,16 +227,15 @@ public java.lang.String getDstTag() {
    * 
* * string dst_tag = 3; + * * @return The bytes for dstTag. */ @java.lang.Override - public com.google.protobuf.ByteString - getDstTagBytes() { + public com.google.protobuf.ByteString getDstTagBytes() { java.lang.Object ref = dstTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dstTag_ = b; return b; } else { @@ -213,15 +244,19 @@ public java.lang.String getDstTag() { } public static final int EXCLUDED_DST_TAG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object excludedDstTag_ = ""; /** + * + * *
    * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
    * non-empty.
    * 
* * string excluded_dst_tag = 4; + * * @return The excludedDstTag. */ @java.lang.Override @@ -230,30 +265,30 @@ public java.lang.String getExcludedDstTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excludedDstTag_ = s; return s; } } /** + * + * *
    * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
    * non-empty.
    * 
* * string excluded_dst_tag = 4; + * * @return The bytes for excludedDstTag. */ @java.lang.Override - public com.google.protobuf.ByteString - getExcludedDstTagBytes() { + public com.google.protobuf.ByteString getExcludedDstTagBytes() { java.lang.Object ref = excludedDstTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); excludedDstTag_ = b; return b; } else { @@ -264,6 +299,8 @@ public java.lang.String getExcludedDstTag() { public static final int COST_FIELD_NUMBER = 5; private double cost_ = 0D; /** + * + * *
    * Specifies a cost for performing this transition. This is in the same unit
    * as all other costs in the model and must not be negative. It is applied on
@@ -271,6 +308,7 @@ public java.lang.String getExcludedDstTag() {
    * 
* * double cost = 5; + * * @return The cost. */ @java.lang.Override @@ -281,6 +319,8 @@ public double getCost() { public static final int COST_PER_KILOMETER_FIELD_NUMBER = 6; private double costPerKilometer_ = 0D; /** + * + * *
    * Specifies a cost per kilometer applied to the distance traveled while
    * performing this transition. It adds up to any
@@ -289,6 +329,7 @@ public double getCost() {
    * 
* * double cost_per_kilometer = 6; + * * @return The costPerKilometer. */ @java.lang.Override @@ -299,6 +340,8 @@ public double getCostPerKilometer() { public static final int DISTANCE_LIMIT_FIELD_NUMBER = 7; private com.google.cloud.optimization.v1.DistanceLimit distanceLimit_; /** + * + * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -307,6 +350,7 @@ public double getCostPerKilometer() {
    * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; + * * @return Whether the distanceLimit field is set. */ @java.lang.Override @@ -314,6 +358,8 @@ public boolean hasDistanceLimit() { return distanceLimit_ != null; } /** + * + * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -322,13 +368,18 @@ public boolean hasDistanceLimit() {
    * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; + * * @return The distanceLimit. */ @java.lang.Override public com.google.cloud.optimization.v1.DistanceLimit getDistanceLimit() { - return distanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : distanceLimit_; + return distanceLimit_ == null + ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() + : distanceLimit_; } /** + * + * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -340,12 +391,16 @@ public com.google.cloud.optimization.v1.DistanceLimit getDistanceLimit() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitOrBuilder() {
-    return distanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : distanceLimit_;
+    return distanceLimit_ == null
+        ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()
+        : distanceLimit_;
   }
 
   public static final int DELAY_FIELD_NUMBER = 8;
   private com.google.protobuf.Duration delay_;
   /**
+   *
+   *
    * 
    * Specifies a delay incurred when performing this transition.
    *
@@ -354,6 +409,7 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
    * 
* * .google.protobuf.Duration delay = 8; + * * @return Whether the delay field is set. */ @java.lang.Override @@ -361,6 +417,8 @@ public boolean hasDelay() { return delay_ != null; } /** + * + * *
    * Specifies a delay incurred when performing this transition.
    *
@@ -369,6 +427,7 @@ public boolean hasDelay() {
    * 
* * .google.protobuf.Duration delay = 8; + * * @return The delay. */ @java.lang.Override @@ -376,6 +435,8 @@ public com.google.protobuf.Duration getDelay() { return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_; } /** + * + * *
    * Specifies a delay incurred when performing this transition.
    *
@@ -391,6 +452,7 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -402,8 +464,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcTag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, srcTag_);
     }
@@ -450,20 +511,16 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, excludedDstTag_);
     }
     if (java.lang.Double.doubleToRawLongBits(cost_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(5, cost_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, cost_);
     }
     if (java.lang.Double.doubleToRawLongBits(costPerKilometer_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(6, costPerKilometer_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, costPerKilometer_);
     }
     if (distanceLimit_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getDistanceLimit());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDistanceLimit());
     }
     if (delay_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getDelay());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDelay());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -473,36 +530,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.optimization.v1.TransitionAttributes)) {
       return super.equals(obj);
     }
-    com.google.cloud.optimization.v1.TransitionAttributes other = (com.google.cloud.optimization.v1.TransitionAttributes) obj;
+    com.google.cloud.optimization.v1.TransitionAttributes other =
+        (com.google.cloud.optimization.v1.TransitionAttributes) obj;
 
-    if (!getSrcTag()
-        .equals(other.getSrcTag())) return false;
-    if (!getExcludedSrcTag()
-        .equals(other.getExcludedSrcTag())) return false;
-    if (!getDstTag()
-        .equals(other.getDstTag())) return false;
-    if (!getExcludedDstTag()
-        .equals(other.getExcludedDstTag())) return false;
+    if (!getSrcTag().equals(other.getSrcTag())) return false;
+    if (!getExcludedSrcTag().equals(other.getExcludedSrcTag())) return false;
+    if (!getDstTag().equals(other.getDstTag())) return false;
+    if (!getExcludedDstTag().equals(other.getExcludedDstTag())) return false;
     if (java.lang.Double.doubleToLongBits(getCost())
-        != java.lang.Double.doubleToLongBits(
-            other.getCost())) return false;
+        != java.lang.Double.doubleToLongBits(other.getCost())) return false;
     if (java.lang.Double.doubleToLongBits(getCostPerKilometer())
-        != java.lang.Double.doubleToLongBits(
-            other.getCostPerKilometer())) return false;
+        != java.lang.Double.doubleToLongBits(other.getCostPerKilometer())) return false;
     if (hasDistanceLimit() != other.hasDistanceLimit()) return false;
     if (hasDistanceLimit()) {
-      if (!getDistanceLimit()
-          .equals(other.getDistanceLimit())) return false;
+      if (!getDistanceLimit().equals(other.getDistanceLimit())) return false;
     }
     if (hasDelay() != other.hasDelay()) return false;
     if (hasDelay()) {
-      if (!getDelay()
-          .equals(other.getDelay())) return false;
+      if (!getDelay().equals(other.getDelay())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -524,11 +574,14 @@ public int hashCode() {
     hash = (37 * hash) + EXCLUDED_DST_TAG_FIELD_NUMBER;
     hash = (53 * hash) + getExcludedDstTag().hashCode();
     hash = (37 * hash) + COST_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        java.lang.Double.doubleToLongBits(getCost()));
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getCost()));
     hash = (37 * hash) + COST_PER_KILOMETER_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        java.lang.Double.doubleToLongBits(getCostPerKilometer()));
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashLong(
+                java.lang.Double.doubleToLongBits(getCostPerKilometer()));
     if (hasDistanceLimit()) {
       hash = (37 * hash) + DISTANCE_LIMIT_FIELD_NUMBER;
       hash = (53 * hash) + getDistanceLimit().hashCode();
@@ -543,98 +596,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.optimization.v1.TransitionAttributes parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.optimization.v1.TransitionAttributes parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.optimization.v1.TransitionAttributes parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.optimization.v1.TransitionAttributes parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.optimization.v1.TransitionAttributes prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.optimization.v1.TransitionAttributes prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Specifies attributes of transitions between two consecutive visits on a
    * route. Several `TransitionAttributes` may apply to the same transition: in
@@ -644,33 +703,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.TransitionAttributes}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.TransitionAttributes)
       com.google.cloud.optimization.v1.TransitionAttributesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.TransitionAttributes.class, com.google.cloud.optimization.v1.TransitionAttributes.Builder.class);
+              com.google.cloud.optimization.v1.TransitionAttributes.class,
+              com.google.cloud.optimization.v1.TransitionAttributes.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.TransitionAttributes.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -695,9 +753,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor;
     }
 
     @java.lang.Override
@@ -716,8 +774,11 @@ public com.google.cloud.optimization.v1.TransitionAttributes build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.TransitionAttributes buildPartial() {
-      com.google.cloud.optimization.v1.TransitionAttributes result = new com.google.cloud.optimization.v1.TransitionAttributes(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.TransitionAttributes result =
+          new com.google.cloud.optimization.v1.TransitionAttributes(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -743,14 +804,11 @@ private void buildPartial0(com.google.cloud.optimization.v1.TransitionAttributes
         result.costPerKilometer_ = costPerKilometer_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.distanceLimit_ = distanceLimitBuilder_ == null
-            ? distanceLimit_
-            : distanceLimitBuilder_.build();
+        result.distanceLimit_ =
+            distanceLimitBuilder_ == null ? distanceLimit_ : distanceLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.delay_ = delayBuilder_ == null
-            ? delay_
-            : delayBuilder_.build();
+        result.delay_ = delayBuilder_ == null ? delay_ : delayBuilder_.build();
       }
     }
 
@@ -758,38 +816,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.TransitionAttributes
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.TransitionAttributes) {
-        return mergeFrom((com.google.cloud.optimization.v1.TransitionAttributes)other);
+        return mergeFrom((com.google.cloud.optimization.v1.TransitionAttributes) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -797,7 +856,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.optimization.v1.TransitionAttributes other) {
-      if (other == com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance()) return this;
+      if (other == com.google.cloud.optimization.v1.TransitionAttributes.getDefaultInstance())
+        return this;
       if (!other.getSrcTag().isEmpty()) {
         srcTag_ = other.srcTag_;
         bitField0_ |= 0x00000001;
@@ -856,56 +916,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              srcTag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              excludedSrcTag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              dstTag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              excludedDstTag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 41: {
-              cost_ = input.readDouble();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 41
-            case 49: {
-              costPerKilometer_ = input.readDouble();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 49
-            case 58: {
-              input.readMessage(
-                  getDistanceLimitFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDelayFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                srcTag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                excludedSrcTag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                dstTag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                excludedDstTag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 41:
+              {
+                cost_ = input.readDouble();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 41
+            case 49:
+              {
+                costPerKilometer_ = input.readDouble();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 49
+            case 58:
+              {
+                input.readMessage(getDistanceLimitFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDelayFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -915,10 +980,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object srcTag_ = "";
     /**
+     *
+     *
      * 
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -930,13 +998,13 @@ public Builder mergeFrom(
      * 
* * string src_tag = 1; + * * @return The srcTag. */ public java.lang.String getSrcTag() { java.lang.Object ref = srcTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcTag_ = s; return s; @@ -945,6 +1013,8 @@ public java.lang.String getSrcTag() { } } /** + * + * *
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -956,15 +1026,14 @@ public java.lang.String getSrcTag() {
      * 
* * string src_tag = 1; + * * @return The bytes for srcTag. */ - public com.google.protobuf.ByteString - getSrcTagBytes() { + public com.google.protobuf.ByteString getSrcTagBytes() { java.lang.Object ref = srcTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); srcTag_ = b; return b; } else { @@ -972,6 +1041,8 @@ public java.lang.String getSrcTag() { } } /** + * + * *
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -983,18 +1054,22 @@ public java.lang.String getSrcTag() {
      * 
* * string src_tag = 1; + * * @param value The srcTag to set. * @return This builder for chaining. */ - public Builder setSrcTag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSrcTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } srcTag_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -1006,6 +1081,7 @@ public Builder setSrcTag(
      * 
* * string src_tag = 1; + * * @return This builder for chaining. */ public Builder clearSrcTag() { @@ -1015,6 +1091,8 @@ public Builder clearSrcTag() { return this; } /** + * + * *
      * Tags defining the set of (src->dst) transitions these attributes apply to.
      *
@@ -1026,12 +1104,14 @@ public Builder clearSrcTag() {
      * 
* * string src_tag = 1; + * * @param value The bytes for srcTag to set. * @return This builder for chaining. */ - public Builder setSrcTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSrcTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); srcTag_ = value; bitField0_ |= 0x00000001; @@ -1041,19 +1121,21 @@ public Builder setSrcTagBytes( private java.lang.Object excludedSrcTag_ = ""; /** + * + * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; + * * @return The excludedSrcTag. */ public java.lang.String getExcludedSrcTag() { java.lang.Object ref = excludedSrcTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excludedSrcTag_ = s; return s; @@ -1062,21 +1144,22 @@ public java.lang.String getExcludedSrcTag() { } } /** + * + * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; + * * @return The bytes for excludedSrcTag. */ - public com.google.protobuf.ByteString - getExcludedSrcTagBytes() { + public com.google.protobuf.ByteString getExcludedSrcTagBytes() { java.lang.Object ref = excludedSrcTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); excludedSrcTag_ = b; return b; } else { @@ -1084,30 +1167,37 @@ public java.lang.String getExcludedSrcTag() { } } /** + * + * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; + * * @param value The excludedSrcTag to set. * @return This builder for chaining. */ - public Builder setExcludedSrcTag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExcludedSrcTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } excludedSrcTag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; + * * @return This builder for chaining. */ public Builder clearExcludedSrcTag() { @@ -1117,18 +1207,22 @@ public Builder clearExcludedSrcTag() { return this; } /** + * + * *
      * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
      * non-empty.
      * 
* * string excluded_src_tag = 2; + * * @param value The bytes for excludedSrcTag to set. * @return This builder for chaining. */ - public Builder setExcludedSrcTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExcludedSrcTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); excludedSrcTag_ = value; bitField0_ |= 0x00000002; @@ -1138,6 +1232,8 @@ public Builder setExcludedSrcTagBytes( private java.lang.Object dstTag_ = ""; /** + * + * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1147,13 +1243,13 @@ public Builder setExcludedSrcTagBytes(
      * 
* * string dst_tag = 3; + * * @return The dstTag. */ public java.lang.String getDstTag() { java.lang.Object ref = dstTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dstTag_ = s; return s; @@ -1162,6 +1258,8 @@ public java.lang.String getDstTag() { } } /** + * + * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1171,15 +1269,14 @@ public java.lang.String getDstTag() {
      * 
* * string dst_tag = 3; + * * @return The bytes for dstTag. */ - public com.google.protobuf.ByteString - getDstTagBytes() { + public com.google.protobuf.ByteString getDstTagBytes() { java.lang.Object ref = dstTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dstTag_ = b; return b; } else { @@ -1187,6 +1284,8 @@ public java.lang.String getDstTag() { } } /** + * + * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1196,18 +1295,22 @@ public java.lang.String getDstTag() {
      * 
* * string dst_tag = 3; + * * @param value The dstTag to set. * @return This builder for chaining. */ - public Builder setDstTag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDstTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } dstTag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1217,6 +1320,7 @@ public Builder setDstTag(
      * 
* * string dst_tag = 3; + * * @return This builder for chaining. */ public Builder clearDstTag() { @@ -1226,6 +1330,8 @@ public Builder clearDstTag() { return this; } /** + * + * *
      * A destination visit or vehicle end matches iff its
      * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -1235,12 +1341,14 @@ public Builder clearDstTag() {
      * 
* * string dst_tag = 3; + * * @param value The bytes for dstTag to set. * @return This builder for chaining. */ - public Builder setDstTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDstTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); dstTag_ = value; bitField0_ |= 0x00000004; @@ -1250,19 +1358,21 @@ public Builder setDstTagBytes( private java.lang.Object excludedDstTag_ = ""; /** + * + * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; + * * @return The excludedDstTag. */ public java.lang.String getExcludedDstTag() { java.lang.Object ref = excludedDstTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); excludedDstTag_ = s; return s; @@ -1271,21 +1381,22 @@ public java.lang.String getExcludedDstTag() { } } /** + * + * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; + * * @return The bytes for excludedDstTag. */ - public com.google.protobuf.ByteString - getExcludedDstTagBytes() { + public com.google.protobuf.ByteString getExcludedDstTagBytes() { java.lang.Object ref = excludedDstTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); excludedDstTag_ = b; return b; } else { @@ -1293,30 +1404,37 @@ public java.lang.String getExcludedDstTag() { } } /** + * + * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; + * * @param value The excludedDstTag to set. * @return This builder for chaining. */ - public Builder setExcludedDstTag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExcludedDstTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } excludedDstTag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; + * * @return This builder for chaining. */ public Builder clearExcludedDstTag() { @@ -1326,18 +1444,22 @@ public Builder clearExcludedDstTag() { return this; } /** + * + * *
      * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
      * non-empty.
      * 
* * string excluded_dst_tag = 4; + * * @param value The bytes for excludedDstTag to set. * @return This builder for chaining. */ - public Builder setExcludedDstTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setExcludedDstTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); excludedDstTag_ = value; bitField0_ |= 0x00000008; @@ -1345,8 +1467,10 @@ public Builder setExcludedDstTagBytes( return this; } - private double cost_ ; + private double cost_; /** + * + * *
      * Specifies a cost for performing this transition. This is in the same unit
      * as all other costs in the model and must not be negative. It is applied on
@@ -1354,6 +1478,7 @@ public Builder setExcludedDstTagBytes(
      * 
* * double cost = 5; + * * @return The cost. */ @java.lang.Override @@ -1361,6 +1486,8 @@ public double getCost() { return cost_; } /** + * + * *
      * Specifies a cost for performing this transition. This is in the same unit
      * as all other costs in the model and must not be negative. It is applied on
@@ -1368,6 +1495,7 @@ public double getCost() {
      * 
* * double cost = 5; + * * @param value The cost to set. * @return This builder for chaining. */ @@ -1379,6 +1507,8 @@ public Builder setCost(double value) { return this; } /** + * + * *
      * Specifies a cost for performing this transition. This is in the same unit
      * as all other costs in the model and must not be negative. It is applied on
@@ -1386,6 +1516,7 @@ public Builder setCost(double value) {
      * 
* * double cost = 5; + * * @return This builder for chaining. */ public Builder clearCost() { @@ -1395,8 +1526,10 @@ public Builder clearCost() { return this; } - private double costPerKilometer_ ; + private double costPerKilometer_; /** + * + * *
      * Specifies a cost per kilometer applied to the distance traveled while
      * performing this transition. It adds up to any
@@ -1405,6 +1538,7 @@ public Builder clearCost() {
      * 
* * double cost_per_kilometer = 6; + * * @return The costPerKilometer. */ @java.lang.Override @@ -1412,6 +1546,8 @@ public double getCostPerKilometer() { return costPerKilometer_; } /** + * + * *
      * Specifies a cost per kilometer applied to the distance traveled while
      * performing this transition. It adds up to any
@@ -1420,6 +1556,7 @@ public double getCostPerKilometer() {
      * 
* * double cost_per_kilometer = 6; + * * @param value The costPerKilometer to set. * @return This builder for chaining. */ @@ -1431,6 +1568,8 @@ public Builder setCostPerKilometer(double value) { return this; } /** + * + * *
      * Specifies a cost per kilometer applied to the distance traveled while
      * performing this transition. It adds up to any
@@ -1439,6 +1578,7 @@ public Builder setCostPerKilometer(double value) {
      * 
* * double cost_per_kilometer = 6; + * * @return This builder for chaining. */ public Builder clearCostPerKilometer() { @@ -1450,8 +1590,13 @@ public Builder clearCostPerKilometer() { private com.google.cloud.optimization.v1.DistanceLimit distanceLimit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder> distanceLimitBuilder_; + com.google.cloud.optimization.v1.DistanceLimit, + com.google.cloud.optimization.v1.DistanceLimit.Builder, + com.google.cloud.optimization.v1.DistanceLimitOrBuilder> + distanceLimitBuilder_; /** + * + * *
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1460,12 +1605,15 @@ public Builder clearCostPerKilometer() {
      * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; + * * @return Whether the distanceLimit field is set. */ public boolean hasDistanceLimit() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1474,16 +1622,21 @@ public boolean hasDistanceLimit() {
      * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; + * * @return The distanceLimit. */ public com.google.cloud.optimization.v1.DistanceLimit getDistanceLimit() { if (distanceLimitBuilder_ == null) { - return distanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : distanceLimit_; + return distanceLimit_ == null + ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() + : distanceLimit_; } else { return distanceLimitBuilder_.getMessage(); } } /** + * + * *
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1507,6 +1660,8 @@ public Builder setDistanceLimit(com.google.cloud.optimization.v1.DistanceLimit v
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1528,6 +1683,8 @@ public Builder setDistanceLimit(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1539,9 +1696,10 @@ public Builder setDistanceLimit(
      */
     public Builder mergeDistanceLimit(com.google.cloud.optimization.v1.DistanceLimit value) {
       if (distanceLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
-          distanceLimit_ != null &&
-          distanceLimit_ != com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0)
+            && distanceLimit_ != null
+            && distanceLimit_
+                != com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()) {
           getDistanceLimitBuilder().mergeFrom(value);
         } else {
           distanceLimit_ = value;
@@ -1554,6 +1712,8 @@ public Builder mergeDistanceLimit(com.google.cloud.optimization.v1.DistanceLimit
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1574,6 +1734,8 @@ public Builder clearDistanceLimit() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1589,6 +1751,8 @@ public com.google.cloud.optimization.v1.DistanceLimit.Builder getDistanceLimitBu
       return getDistanceLimitFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1602,11 +1766,14 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
       if (distanceLimitBuilder_ != null) {
         return distanceLimitBuilder_.getMessageOrBuilder();
       } else {
-        return distanceLimit_ == null ?
-            com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : distanceLimit_;
+        return distanceLimit_ == null
+            ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()
+            : distanceLimit_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies a limit on the distance traveled while performing this
      * transition.
@@ -1617,14 +1784,17 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
      * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder> 
+            com.google.cloud.optimization.v1.DistanceLimit,
+            com.google.cloud.optimization.v1.DistanceLimit.Builder,
+            com.google.cloud.optimization.v1.DistanceLimitOrBuilder>
         getDistanceLimitFieldBuilder() {
       if (distanceLimitBuilder_ == null) {
-        distanceLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder>(
-                getDistanceLimit(),
-                getParentForChildren(),
-                isClean());
+        distanceLimitBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.DistanceLimit,
+                com.google.cloud.optimization.v1.DistanceLimit.Builder,
+                com.google.cloud.optimization.v1.DistanceLimitOrBuilder>(
+                getDistanceLimit(), getParentForChildren(), isClean());
         distanceLimit_ = null;
       }
       return distanceLimitBuilder_;
@@ -1632,8 +1802,13 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
 
     private com.google.protobuf.Duration delay_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> delayBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        delayBuilder_;
     /**
+     *
+     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1642,12 +1817,15 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitO
      * 
* * .google.protobuf.Duration delay = 8; + * * @return Whether the delay field is set. */ public boolean hasDelay() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Specifies a delay incurred when performing this transition.
      *
@@ -1656,6 +1834,7 @@ public boolean hasDelay() {
      * 
* * .google.protobuf.Duration delay = 8; + * * @return The delay. */ public com.google.protobuf.Duration getDelay() { @@ -1666,6 +1845,8 @@ public com.google.protobuf.Duration getDelay() { } } /** + * + * *
      * Specifies a delay incurred when performing this transition.
      *
@@ -1689,6 +1870,8 @@ public Builder setDelay(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1698,8 +1881,7 @@ public Builder setDelay(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration delay = 8;
      */
-    public Builder setDelay(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setDelay(com.google.protobuf.Duration.Builder builderForValue) {
       if (delayBuilder_ == null) {
         delay_ = builderForValue.build();
       } else {
@@ -1710,6 +1892,8 @@ public Builder setDelay(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1721,9 +1905,9 @@ public Builder setDelay(
      */
     public Builder mergeDelay(com.google.protobuf.Duration value) {
       if (delayBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          delay_ != null &&
-          delay_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && delay_ != null
+            && delay_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getDelayBuilder().mergeFrom(value);
         } else {
           delay_ = value;
@@ -1736,6 +1920,8 @@ public Builder mergeDelay(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1756,6 +1942,8 @@ public Builder clearDelay() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1771,6 +1959,8 @@ public com.google.protobuf.Duration.Builder getDelayBuilder() {
       return getDelayFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1784,11 +1974,12 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
       if (delayBuilder_ != null) {
         return delayBuilder_.getMessageOrBuilder();
       } else {
-        return delay_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : delay_;
+        return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies a delay incurred when performing this transition.
      *
@@ -1799,21 +1990,24 @@ public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
      * .google.protobuf.Duration delay = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getDelayFieldBuilder() {
       if (delayBuilder_ == null) {
-        delayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getDelay(),
-                getParentForChildren(),
-                isClean());
+        delayBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getDelay(), getParentForChildren(), isClean());
         delay_ = null;
       }
       return delayBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1823,12 +2017,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.TransitionAttributes)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.TransitionAttributes)
   private static final com.google.cloud.optimization.v1.TransitionAttributes DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.TransitionAttributes();
   }
@@ -1837,27 +2031,27 @@ public static com.google.cloud.optimization.v1.TransitionAttributes getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TransitionAttributes parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TransitionAttributes parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1872,6 +2066,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.optimization.v1.TransitionAttributes getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
similarity index 84%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
index de86c910b200..7fda8f7070f2 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/TransitionAttributesOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
-public interface TransitionAttributesOrBuilder extends
+public interface TransitionAttributesOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.TransitionAttributes)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Tags defining the set of (src->dst) transitions these attributes apply to.
    *
@@ -19,10 +37,13 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * string src_tag = 1; + * * @return The srcTag. */ java.lang.String getSrcTag(); /** + * + * *
    * Tags defining the set of (src->dst) transitions these attributes apply to.
    *
@@ -34,34 +55,41 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * string src_tag = 1; + * * @return The bytes for srcTag. */ - com.google.protobuf.ByteString - getSrcTagBytes(); + com.google.protobuf.ByteString getSrcTagBytes(); /** + * + * *
    * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
    * non-empty.
    * 
* * string excluded_src_tag = 2; + * * @return The excludedSrcTag. */ java.lang.String getExcludedSrcTag(); /** + * + * *
    * See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be
    * non-empty.
    * 
* * string excluded_src_tag = 2; + * * @return The bytes for excludedSrcTag. */ - com.google.protobuf.ByteString - getExcludedSrcTagBytes(); + com.google.protobuf.ByteString getExcludedSrcTagBytes(); /** + * + * *
    * A destination visit or vehicle end matches iff its
    * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -71,10 +99,13 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * string dst_tag = 3; + * * @return The dstTag. */ java.lang.String getDstTag(); /** + * + * *
    * A destination visit or vehicle end matches iff its
    * [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags]
@@ -84,34 +115,41 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * string dst_tag = 3; + * * @return The bytes for dstTag. */ - com.google.protobuf.ByteString - getDstTagBytes(); + com.google.protobuf.ByteString getDstTagBytes(); /** + * + * *
    * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
    * non-empty.
    * 
* * string excluded_dst_tag = 4; + * * @return The excludedDstTag. */ java.lang.String getExcludedDstTag(); /** + * + * *
    * See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be
    * non-empty.
    * 
* * string excluded_dst_tag = 4; + * * @return The bytes for excludedDstTag. */ - com.google.protobuf.ByteString - getExcludedDstTagBytes(); + com.google.protobuf.ByteString getExcludedDstTagBytes(); /** + * + * *
    * Specifies a cost for performing this transition. This is in the same unit
    * as all other costs in the model and must not be negative. It is applied on
@@ -119,11 +157,14 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * double cost = 5; + * * @return The cost. */ double getCost(); /** + * + * *
    * Specifies a cost per kilometer applied to the distance traveled while
    * performing this transition. It adds up to any
@@ -132,11 +173,14 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * double cost_per_kilometer = 6; + * * @return The costPerKilometer. */ double getCostPerKilometer(); /** + * + * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -145,10 +189,13 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; + * * @return Whether the distanceLimit field is set. */ boolean hasDistanceLimit(); /** + * + * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -157,10 +204,13 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * .google.cloud.optimization.v1.DistanceLimit distance_limit = 7; + * * @return The distanceLimit. */ com.google.cloud.optimization.v1.DistanceLimit getDistanceLimit(); /** + * + * *
    * Specifies a limit on the distance traveled while performing this
    * transition.
@@ -173,6 +223,8 @@ public interface TransitionAttributesOrBuilder extends
   com.google.cloud.optimization.v1.DistanceLimitOrBuilder getDistanceLimitOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies a delay incurred when performing this transition.
    *
@@ -181,10 +233,13 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * .google.protobuf.Duration delay = 8; + * * @return Whether the delay field is set. */ boolean hasDelay(); /** + * + * *
    * Specifies a delay incurred when performing this transition.
    *
@@ -193,10 +248,13 @@ public interface TransitionAttributesOrBuilder extends
    * 
* * .google.protobuf.Duration delay = 8; + * * @return The delay. */ com.google.protobuf.Duration getDelay(); /** + * + * *
    * Specifies a delay incurred when performing this transition.
    *
diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
similarity index 76%
rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
index 2a99d0e75f10..3dd2904dcd36 100644
--- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
+++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Vehicle.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/optimization/v1/fleet_routing.proto
 
 package com.google.cloud.optimization.v1;
 
 /**
+ *
+ *
  * 
  * Models a vehicle in a shipment problem. Solving a shipment problem will
  * build a route starting from `start_location` and ending at `end_location`
@@ -12,21 +29,20 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.Vehicle}
  */
-public final class Vehicle extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Vehicle extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Vehicle)
     VehicleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Vehicle.newBuilder() to construct.
   private Vehicle(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Vehicle() {
     travelMode_ = 0;
-    startTags_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
-    endTags_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    startTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    endTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
     startTimeWindows_ = java.util.Collections.emptyList();
     endTimeWindows_ = java.util.Collections.emptyList();
     unloadingPolicy_ = 0;
@@ -39,39 +55,41 @@ private Vehicle() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Vehicle();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 30:
         return internalGetLoadLimits();
       case 24:
         return internalGetExtraVisitDurationForVisitType();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.Vehicle.class, com.google.cloud.optimization.v1.Vehicle.Builder.class);
+            com.google.cloud.optimization.v1.Vehicle.class,
+            com.google.cloud.optimization.v1.Vehicle.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Travel modes which can be used by vehicles.
    *
@@ -82,9 +100,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.optimization.v1.Vehicle.TravelMode}
    */
-  public enum TravelMode
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum TravelMode implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified travel mode, equivalent to `DRIVING`.
      * 
@@ -93,6 +112,8 @@ public enum TravelMode */ TRAVEL_MODE_UNSPECIFIED(0), /** + * + * *
      * Travel mode corresponding to driving directions (car, ...).
      * 
@@ -101,6 +122,8 @@ public enum TravelMode */ DRIVING(1), /** + * + * *
      * Travel mode corresponding to walking directions.
      * 
@@ -112,6 +135,8 @@ public enum TravelMode ; /** + * + * *
      * Unspecified travel mode, equivalent to `DRIVING`.
      * 
@@ -120,6 +145,8 @@ public enum TravelMode */ public static final int TRAVEL_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Travel mode corresponding to driving directions (car, ...).
      * 
@@ -128,6 +155,8 @@ public enum TravelMode */ public static final int DRIVING_VALUE = 1; /** + * + * *
      * Travel mode corresponding to walking directions.
      * 
@@ -136,7 +165,6 @@ public enum TravelMode */ public static final int WALKING_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -161,49 +189,49 @@ public static TravelMode valueOf(int value) { */ public static TravelMode forNumber(int value) { switch (value) { - case 0: return TRAVEL_MODE_UNSPECIFIED; - case 1: return DRIVING; - case 2: return WALKING; - default: return null; + case 0: + return TRAVEL_MODE_UNSPECIFIED; + case 1: + return DRIVING; + case 2: + return WALKING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TravelMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TravelMode findValueByNumber(int number) { - return TravelMode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TravelMode findValueByNumber(int number) { + return TravelMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.optimization.v1.Vehicle.getDescriptor().getEnumTypes().get(0); } private static final TravelMode[] VALUES = values(); - public static TravelMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TravelMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -221,6 +249,8 @@ private TravelMode(int value) { } /** + * + * *
    * Policy on how a vehicle can be unloaded. Applies only to shipments having
    * both a pickup and a delivery.
@@ -231,9 +261,10 @@ private TravelMode(int value) {
    *
    * Protobuf enum {@code google.cloud.optimization.v1.Vehicle.UnloadingPolicy}
    */
-  public enum UnloadingPolicy
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum UnloadingPolicy implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified unloading policy; deliveries must just occur after their
      * corresponding pickups.
@@ -243,6 +274,8 @@ public enum UnloadingPolicy
      */
     UNLOADING_POLICY_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Deliveries must occur in reverse order of pickups
      * 
@@ -251,6 +284,8 @@ public enum UnloadingPolicy */ LAST_IN_FIRST_OUT(1), /** + * + * *
      * Deliveries must occur in the same order as pickups
      * 
@@ -262,6 +297,8 @@ public enum UnloadingPolicy ; /** + * + * *
      * Unspecified unloading policy; deliveries must just occur after their
      * corresponding pickups.
@@ -271,6 +308,8 @@ public enum UnloadingPolicy
      */
     public static final int UNLOADING_POLICY_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Deliveries must occur in reverse order of pickups
      * 
@@ -279,6 +318,8 @@ public enum UnloadingPolicy */ public static final int LAST_IN_FIRST_OUT_VALUE = 1; /** + * + * *
      * Deliveries must occur in the same order as pickups
      * 
@@ -287,7 +328,6 @@ public enum UnloadingPolicy */ public static final int FIRST_IN_FIRST_OUT_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -312,39 +352,42 @@ public static UnloadingPolicy valueOf(int value) { */ public static UnloadingPolicy forNumber(int value) { switch (value) { - case 0: return UNLOADING_POLICY_UNSPECIFIED; - case 1: return LAST_IN_FIRST_OUT; - case 2: return FIRST_IN_FIRST_OUT; - default: return null; + case 0: + return UNLOADING_POLICY_UNSPECIFIED; + case 1: + return LAST_IN_FIRST_OUT; + case 2: + return FIRST_IN_FIRST_OUT; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - UnloadingPolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UnloadingPolicy findValueByNumber(int number) { - return UnloadingPolicy.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UnloadingPolicy findValueByNumber(int number) { + return UnloadingPolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.optimization.v1.Vehicle.getDescriptor().getEnumTypes().get(1); } @@ -353,8 +396,7 @@ public UnloadingPolicy findValueByNumber(int number) { public static UnloadingPolicy valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -371,41 +413,53 @@ private UnloadingPolicy(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.optimization.v1.Vehicle.UnloadingPolicy) } - public interface LoadLimitOrBuilder extends + public interface LoadLimitOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Vehicle.LoadLimit) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The maximum acceptable amount of load.
      * 
* * optional int64 max_load = 1; + * * @return Whether the maxLoad field is set. */ boolean hasMaxLoad(); /** + * + * *
      * The maximum acceptable amount of load.
      * 
* * optional int64 max_load = 1; + * * @return The maxLoad. */ long getMaxLoad(); /** + * + * *
      * A soft limit of the load. See
      * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
      * 
* * int64 soft_max_load = 2; + * * @return The softMaxLoad. */ long getSoftMaxLoad(); /** + * + * *
      * If the load ever exceeds
      * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -418,65 +472,89 @@ public interface LoadLimitOrBuilder extends
      * 
* * double cost_per_unit_above_soft_max = 3; + * * @return The costPerUnitAboveSoftMax. */ double getCostPerUnitAboveSoftMax(); /** + * + * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * + * * @return Whether the startLoadInterval field is set. */ boolean hasStartLoadInterval(); /** + * + * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * + * * @return The startLoadInterval. */ com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getStartLoadInterval(); /** + * + * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getStartLoadIntervalOrBuilder(); + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder + getStartLoadIntervalOrBuilder(); /** + * + * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * * @return Whether the endLoadInterval field is set. */ boolean hasEndLoadInterval(); /** + * + * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * * @return The endLoadInterval. */ com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getEndLoadInterval(); /** + * + * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getEndLoadIntervalOrBuilder(); + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder + getEndLoadIntervalOrBuilder(); } /** + * + * *
    * Defines a load limit applying to a vehicle, e.g. "this truck may only
    * carry up to 3500 kg". See
@@ -485,43 +563,47 @@ public interface LoadLimitOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.Vehicle.LoadLimit}
    */
-  public static final class LoadLimit extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class LoadLimit extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Vehicle.LoadLimit)
       LoadLimitOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use LoadLimit.newBuilder() to construct.
     private LoadLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private LoadLimit() {
-    }
+
+    private LoadLimit() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new LoadLimit();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Vehicle.LoadLimit.class, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Builder.class);
+              com.google.cloud.optimization.v1.Vehicle.LoadLimit.class,
+              com.google.cloud.optimization.v1.Vehicle.LoadLimit.Builder.class);
     }
 
-    public interface IntervalOrBuilder extends
+    public interface IntervalOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * A minimum acceptable load. Must be ≥ 0.
        * If they're both specified,
@@ -531,11 +613,14 @@ public interface IntervalOrBuilder extends
        * 
* * int64 min = 1; + * * @return The min. */ long getMin(); /** + * + * *
        * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
        * load is unrestricted by this message.
@@ -546,10 +631,13 @@ public interface IntervalOrBuilder extends
        * 
* * optional int64 max = 2; + * * @return Whether the max field is set. */ boolean hasMax(); /** + * + * *
        * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
        * load is unrestricted by this message.
@@ -560,53 +648,59 @@ public interface IntervalOrBuilder extends
        * 
* * optional int64 max = 2; + * * @return The max. */ long getMax(); } /** + * + * *
      * Interval of acceptable load amounts.
      * 
* * Protobuf type {@code google.cloud.optimization.v1.Vehicle.LoadLimit.Interval} */ - public static final class Interval extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Interval extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) IntervalOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Interval.newBuilder() to construct. private Interval(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Interval() { - } + + private Interval() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Interval(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.class, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder.class); + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.class, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder.class); } private int bitField0_; public static final int MIN_FIELD_NUMBER = 1; private long min_ = 0L; /** + * + * *
        * A minimum acceptable load. Must be ≥ 0.
        * If they're both specified,
@@ -616,6 +710,7 @@ protected java.lang.Object newInstance(
        * 
* * int64 min = 1; + * * @return The min. */ @java.lang.Override @@ -626,6 +721,8 @@ public long getMin() { public static final int MAX_FIELD_NUMBER = 2; private long max_ = 0L; /** + * + * *
        * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
        * load is unrestricted by this message.
@@ -636,6 +733,7 @@ public long getMin() {
        * 
* * optional int64 max = 2; + * * @return Whether the max field is set. */ @java.lang.Override @@ -643,6 +741,8 @@ public boolean hasMax() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
        * load is unrestricted by this message.
@@ -653,6 +753,7 @@ public boolean hasMax() {
        * 
* * optional int64 max = 2; + * * @return The max. */ @java.lang.Override @@ -661,6 +762,7 @@ public long getMax() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -672,8 +774,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (min_ != 0L) { output.writeInt64(1, min_); } @@ -690,12 +791,10 @@ public int getSerializedSize() { size = 0; if (min_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, min_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, min_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, max_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, max_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -705,19 +804,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval other = (com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) obj; + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval other = + (com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) obj; - if (getMin() - != other.getMin()) return false; + if (getMin() != other.getMin()) return false; if (hasMax() != other.hasMax()) return false; if (hasMax()) { - if (getMax() - != other.getMax()) return false; + if (getMax() != other.getMax()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -731,12 +829,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMin()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMin()); if (hasMax()) { hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMax()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMax()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -744,89 +840,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -836,39 +937,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Interval of acceptable load amounts.
        * 
* * Protobuf type {@code google.cloud.optimization.v1.Vehicle.LoadLimit.Interval} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.class, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder.class); + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.class, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder.class); } // Construct using com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -879,13 +982,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; } @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval + getDefaultInstanceForType() { return com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance(); } @@ -900,13 +1004,17 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval build() { @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval buildPartial() { - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval result = new com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval result = + new com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval result) { + private void buildPartial0( + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.min_ = min_; @@ -923,46 +1031,52 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.LoadLimit.In public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) { - return mergeFrom((com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval)other); + return mergeFrom((com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval other) { - if (other == com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval other) { + if (other + == com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance()) + return this; if (other.getMin() != 0L) { setMin(other.getMin()); } @@ -995,22 +1109,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - min_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - max_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + min_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + max_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1020,10 +1137,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long min_ ; + private long min_; /** + * + * *
          * A minimum acceptable load. Must be ≥ 0.
          * If they're both specified,
@@ -1033,6 +1153,7 @@ public Builder mergeFrom(
          * 
* * int64 min = 1; + * * @return The min. */ @java.lang.Override @@ -1040,6 +1161,8 @@ public long getMin() { return min_; } /** + * + * *
          * A minimum acceptable load. Must be ≥ 0.
          * If they're both specified,
@@ -1049,6 +1172,7 @@ public long getMin() {
          * 
* * int64 min = 1; + * * @param value The min to set. * @return This builder for chaining. */ @@ -1060,6 +1184,8 @@ public Builder setMin(long value) { return this; } /** + * + * *
          * A minimum acceptable load. Must be ≥ 0.
          * If they're both specified,
@@ -1069,6 +1195,7 @@ public Builder setMin(long value) {
          * 
* * int64 min = 1; + * * @return This builder for chaining. */ public Builder clearMin() { @@ -1078,8 +1205,10 @@ public Builder clearMin() { return this; } - private long max_ ; + private long max_; /** + * + * *
          * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
          * load is unrestricted by this message.
@@ -1090,6 +1219,7 @@ public Builder clearMin() {
          * 
* * optional int64 max = 2; + * * @return Whether the max field is set. */ @java.lang.Override @@ -1097,6 +1227,8 @@ public boolean hasMax() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
          * load is unrestricted by this message.
@@ -1107,6 +1239,7 @@ public boolean hasMax() {
          * 
* * optional int64 max = 2; + * * @return The max. */ @java.lang.Override @@ -1114,6 +1247,8 @@ public long getMax() { return max_; } /** + * + * *
          * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
          * load is unrestricted by this message.
@@ -1124,6 +1259,7 @@ public long getMax() {
          * 
* * optional int64 max = 2; + * * @param value The max to set. * @return This builder for chaining. */ @@ -1135,6 +1271,8 @@ public Builder setMax(long value) { return this; } /** + * + * *
          * A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
          * load is unrestricted by this message.
@@ -1145,6 +1283,7 @@ public Builder setMax(long value) {
          * 
* * optional int64 max = 2; + * * @return This builder for chaining. */ public Builder clearMax() { @@ -1153,6 +1292,7 @@ public Builder clearMax() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1165,41 +1305,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Vehicle.LoadLimit.Interval) - private static final com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval DEFAULT_INSTANCE; + private static final com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval(); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getDefaultInstance() { + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Interval parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Interval parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1211,21 +1354,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getDefaultInstanceForType() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int MAX_LOAD_FIELD_NUMBER = 1; private long maxLoad_ = 0L; /** + * + * *
      * The maximum acceptable amount of load.
      * 
* * optional int64 max_load = 1; + * * @return Whether the maxLoad field is set. */ @java.lang.Override @@ -1233,11 +1379,14 @@ public boolean hasMaxLoad() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The maximum acceptable amount of load.
      * 
* * optional int64 max_load = 1; + * * @return The maxLoad. */ @java.lang.Override @@ -1248,12 +1397,15 @@ public long getMaxLoad() { public static final int SOFT_MAX_LOAD_FIELD_NUMBER = 2; private long softMaxLoad_ = 0L; /** + * + * *
      * A soft limit of the load. See
      * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
      * 
* * int64 soft_max_load = 2; + * * @return The softMaxLoad. */ @java.lang.Override @@ -1264,6 +1416,8 @@ public long getSoftMaxLoad() { public static final int COST_PER_UNIT_ABOVE_SOFT_MAX_FIELD_NUMBER = 3; private double costPerUnitAboveSoftMax_ = 0D; /** + * + * *
      * If the load ever exceeds
      * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -1276,6 +1430,7 @@ public long getSoftMaxLoad() {
      * 
* * double cost_per_unit_above_soft_max = 3; + * * @return The costPerUnitAboveSoftMax. */ @java.lang.Override @@ -1286,11 +1441,15 @@ public double getCostPerUnitAboveSoftMax() { public static final int START_LOAD_INTERVAL_FIELD_NUMBER = 4; private com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval startLoadInterval_; /** + * + * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * + * * @return Whether the startLoadInterval field is set. */ @java.lang.Override @@ -1298,37 +1457,52 @@ public boolean hasStartLoadInterval() { return startLoadInterval_ != null; } /** + * + * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * + * * @return The startLoadInterval. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getStartLoadInterval() { - return startLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : startLoadInterval_; + return startLoadInterval_ == null + ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() + : startLoadInterval_; } /** + * + * *
      * The acceptable load interval of the vehicle at the start of the route.
      * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getStartLoadIntervalOrBuilder() { - return startLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : startLoadInterval_; + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder + getStartLoadIntervalOrBuilder() { + return startLoadInterval_ == null + ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() + : startLoadInterval_; } public static final int END_LOAD_INTERVAL_FIELD_NUMBER = 5; private com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval endLoadInterval_; /** + * + * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * * @return Whether the endLoadInterval field is set. */ @java.lang.Override @@ -1336,18 +1510,25 @@ public boolean hasEndLoadInterval() { return endLoadInterval_ != null; } /** + * + * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
* * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * * @return The endLoadInterval. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getEndLoadInterval() { - return endLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : endLoadInterval_; + return endLoadInterval_ == null + ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() + : endLoadInterval_; } /** + * + * *
      * The acceptable load interval of the vehicle at the end of the route.
      * 
@@ -1355,11 +1536,15 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getEndLoadInt * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; */ @java.lang.Override - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getEndLoadIntervalOrBuilder() { - return endLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : endLoadInterval_; + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder + getEndLoadIntervalOrBuilder() { + return endLoadInterval_ == null + ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() + : endLoadInterval_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1371,8 +1556,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, maxLoad_); } @@ -1398,24 +1582,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, maxLoad_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxLoad_); } if (softMaxLoad_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, softMaxLoad_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, softMaxLoad_); } if (java.lang.Double.doubleToRawLongBits(costPerUnitAboveSoftMax_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, costPerUnitAboveSoftMax_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(3, costPerUnitAboveSoftMax_); } if (startLoadInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartLoadInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartLoadInterval()); } if (endLoadInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEndLoadInterval()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndLoadInterval()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1425,32 +1605,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Vehicle.LoadLimit)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Vehicle.LoadLimit other = (com.google.cloud.optimization.v1.Vehicle.LoadLimit) obj; + com.google.cloud.optimization.v1.Vehicle.LoadLimit other = + (com.google.cloud.optimization.v1.Vehicle.LoadLimit) obj; if (hasMaxLoad() != other.hasMaxLoad()) return false; if (hasMaxLoad()) { - if (getMaxLoad() - != other.getMaxLoad()) return false; + if (getMaxLoad() != other.getMaxLoad()) return false; } - if (getSoftMaxLoad() - != other.getSoftMaxLoad()) return false; + if (getSoftMaxLoad() != other.getSoftMaxLoad()) return false; if (java.lang.Double.doubleToLongBits(getCostPerUnitAboveSoftMax()) - != java.lang.Double.doubleToLongBits( - other.getCostPerUnitAboveSoftMax())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerUnitAboveSoftMax())) return false; if (hasStartLoadInterval() != other.hasStartLoadInterval()) return false; if (hasStartLoadInterval()) { - if (!getStartLoadInterval() - .equals(other.getStartLoadInterval())) return false; + if (!getStartLoadInterval().equals(other.getStartLoadInterval())) return false; } if (hasEndLoadInterval() != other.hasEndLoadInterval()) return false; if (hasEndLoadInterval()) { - if (!getEndLoadInterval() - .equals(other.getEndLoadInterval())) return false; + if (!getEndLoadInterval().equals(other.getEndLoadInterval())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1465,15 +1641,15 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasMaxLoad()) { hash = (37 * hash) + MAX_LOAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxLoad()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxLoad()); } hash = (37 * hash) + SOFT_MAX_LOAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSoftMaxLoad()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSoftMaxLoad()); hash = (37 * hash) + COST_PER_UNIT_ABOVE_SOFT_MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerUnitAboveSoftMax())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerUnitAboveSoftMax())); if (hasStartLoadInterval()) { hash = (37 * hash) + START_LOAD_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getStartLoadInterval().hashCode(); @@ -1488,89 +1664,93 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Vehicle.LoadLimit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.Vehicle.LoadLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1580,6 +1760,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Defines a load limit applying to a vehicle, e.g. "this truck may only
      * carry up to 3500 kg". See
@@ -1588,33 +1770,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.Vehicle.LoadLimit}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Vehicle.LoadLimit)
         com.google.cloud.optimization.v1.Vehicle.LoadLimitOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.Vehicle.LoadLimit.class, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Builder.class);
+                com.google.cloud.optimization.v1.Vehicle.LoadLimit.class,
+                com.google.cloud.optimization.v1.Vehicle.LoadLimit.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.Vehicle.LoadLimit.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1636,9 +1818,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor;
       }
 
       @java.lang.Override
@@ -1657,8 +1839,11 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.Vehicle.LoadLimit buildPartial() {
-        com.google.cloud.optimization.v1.Vehicle.LoadLimit result = new com.google.cloud.optimization.v1.Vehicle.LoadLimit(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.Vehicle.LoadLimit result =
+            new com.google.cloud.optimization.v1.Vehicle.LoadLimit(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -1677,14 +1862,14 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.LoadLimit re
           result.costPerUnitAboveSoftMax_ = costPerUnitAboveSoftMax_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.startLoadInterval_ = startLoadIntervalBuilder_ == null
-              ? startLoadInterval_
-              : startLoadIntervalBuilder_.build();
+          result.startLoadInterval_ =
+              startLoadIntervalBuilder_ == null
+                  ? startLoadInterval_
+                  : startLoadIntervalBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.endLoadInterval_ = endLoadIntervalBuilder_ == null
-              ? endLoadInterval_
-              : endLoadIntervalBuilder_.build();
+          result.endLoadInterval_ =
+              endLoadIntervalBuilder_ == null ? endLoadInterval_ : endLoadIntervalBuilder_.build();
         }
         result.bitField0_ |= to_bitField0_;
       }
@@ -1693,38 +1878,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.LoadLimit re
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.Vehicle.LoadLimit) {
-          return mergeFrom((com.google.cloud.optimization.v1.Vehicle.LoadLimit)other);
+          return mergeFrom((com.google.cloud.optimization.v1.Vehicle.LoadLimit) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1732,7 +1920,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle.LoadLimit other) {
-        if (other == com.google.cloud.optimization.v1.Vehicle.LoadLimit.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.Vehicle.LoadLimit.getDefaultInstance())
+          return this;
         if (other.hasMaxLoad()) {
           setMaxLoad(other.getMaxLoad());
         }
@@ -1774,41 +1963,45 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                maxLoad_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              case 16: {
-                softMaxLoad_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-              case 25: {
-                costPerUnitAboveSoftMax_ = input.readDouble();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 25
-              case 34: {
-                input.readMessage(
-                    getStartLoadIntervalFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              case 42: {
-                input.readMessage(
-                    getEndLoadIntervalFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  maxLoad_ = input.readInt64();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              case 16:
+                {
+                  softMaxLoad_ = input.readInt64();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 16
+              case 25:
+                {
+                  costPerUnitAboveSoftMax_ = input.readDouble();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 25
+              case 34:
+                {
+                  input.readMessage(
+                      getStartLoadIntervalFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              case 42:
+                {
+                  input.readMessage(
+                      getEndLoadIntervalFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 42
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1818,15 +2011,19 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private long maxLoad_ ;
+      private long maxLoad_;
       /**
+       *
+       *
        * 
        * The maximum acceptable amount of load.
        * 
* * optional int64 max_load = 1; + * * @return Whether the maxLoad field is set. */ @java.lang.Override @@ -1834,11 +2031,14 @@ public boolean hasMaxLoad() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The maximum acceptable amount of load.
        * 
* * optional int64 max_load = 1; + * * @return The maxLoad. */ @java.lang.Override @@ -1846,11 +2046,14 @@ public long getMaxLoad() { return maxLoad_; } /** + * + * *
        * The maximum acceptable amount of load.
        * 
* * optional int64 max_load = 1; + * * @param value The maxLoad to set. * @return This builder for chaining. */ @@ -1862,11 +2065,14 @@ public Builder setMaxLoad(long value) { return this; } /** + * + * *
        * The maximum acceptable amount of load.
        * 
* * optional int64 max_load = 1; + * * @return This builder for chaining. */ public Builder clearMaxLoad() { @@ -1876,14 +2082,17 @@ public Builder clearMaxLoad() { return this; } - private long softMaxLoad_ ; + private long softMaxLoad_; /** + * + * *
        * A soft limit of the load. See
        * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
        * 
* * int64 soft_max_load = 2; + * * @return The softMaxLoad. */ @java.lang.Override @@ -1891,12 +2100,15 @@ public long getSoftMaxLoad() { return softMaxLoad_; } /** + * + * *
        * A soft limit of the load. See
        * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
        * 
* * int64 soft_max_load = 2; + * * @param value The softMaxLoad to set. * @return This builder for chaining. */ @@ -1908,12 +2120,15 @@ public Builder setSoftMaxLoad(long value) { return this; } /** + * + * *
        * A soft limit of the load. See
        * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
        * 
* * int64 soft_max_load = 2; + * * @return This builder for chaining. */ public Builder clearSoftMaxLoad() { @@ -1923,8 +2138,10 @@ public Builder clearSoftMaxLoad() { return this; } - private double costPerUnitAboveSoftMax_ ; + private double costPerUnitAboveSoftMax_; /** + * + * *
        * If the load ever exceeds
        * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -1937,6 +2154,7 @@ public Builder clearSoftMaxLoad() {
        * 
* * double cost_per_unit_above_soft_max = 3; + * * @return The costPerUnitAboveSoftMax. */ @java.lang.Override @@ -1944,6 +2162,8 @@ public double getCostPerUnitAboveSoftMax() { return costPerUnitAboveSoftMax_; } /** + * + * *
        * If the load ever exceeds
        * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -1956,6 +2176,7 @@ public double getCostPerUnitAboveSoftMax() {
        * 
* * double cost_per_unit_above_soft_max = 3; + * * @param value The costPerUnitAboveSoftMax to set. * @return This builder for chaining. */ @@ -1967,6 +2188,8 @@ public Builder setCostPerUnitAboveSoftMax(double value) { return this; } /** + * + * *
        * If the load ever exceeds
        * [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
@@ -1979,6 +2202,7 @@ public Builder setCostPerUnitAboveSoftMax(double value) {
        * 
* * double cost_per_unit_above_soft_max = 3; + * * @return This builder for chaining. */ public Builder clearCostPerUnitAboveSoftMax() { @@ -1990,41 +2214,58 @@ public Builder clearCostPerUnitAboveSoftMax() { private com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval startLoadInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> startLoadIntervalBuilder_; + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> + startLoadIntervalBuilder_; /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * + * * @return Whether the startLoadInterval field is set. */ public boolean hasStartLoadInterval() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * + * * @return The startLoadInterval. */ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getStartLoadInterval() { if (startLoadIntervalBuilder_ == null) { - return startLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : startLoadInterval_; + return startLoadInterval_ == null + ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() + : startLoadInterval_; } else { return startLoadIntervalBuilder_.getMessage(); } } /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ - public Builder setStartLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { + public Builder setStartLoadInterval( + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { if (startLoadIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2038,11 +2279,14 @@ public Builder setStartLoadInterval(com.google.cloud.optimization.v1.Vehicle.Loa return this; } /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ public Builder setStartLoadInterval( com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder builderForValue) { @@ -2056,17 +2300,23 @@ public Builder setStartLoadInterval( return this; } /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ - public Builder mergeStartLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { + public Builder mergeStartLoadInterval( + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { if (startLoadIntervalBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - startLoadInterval_ != null && - startLoadInterval_ != com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && startLoadInterval_ != null + && startLoadInterval_ + != com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval + .getDefaultInstance()) { getStartLoadIntervalBuilder().mergeFrom(value); } else { startLoadInterval_ = value; @@ -2079,11 +2329,14 @@ public Builder mergeStartLoadInterval(com.google.cloud.optimization.v1.Vehicle.L return this; } /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ public Builder clearStartLoadInterval() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2096,48 +2349,63 @@ public Builder clearStartLoadInterval() { return this; } /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder getStartLoadIntervalBuilder() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder + getStartLoadIntervalBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStartLoadIntervalFieldBuilder().getBuilder(); } /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getStartLoadIntervalOrBuilder() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder + getStartLoadIntervalOrBuilder() { if (startLoadIntervalBuilder_ != null) { return startLoadIntervalBuilder_.getMessageOrBuilder(); } else { - return startLoadInterval_ == null ? - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : startLoadInterval_; + return startLoadInterval_ == null + ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() + : startLoadInterval_; } } /** + * + * *
        * The acceptable load interval of the vehicle at the start of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> getStartLoadIntervalFieldBuilder() { if (startLoadIntervalBuilder_ == null) { - startLoadIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder>( - getStartLoadInterval(), - getParentForChildren(), - isClean()); + startLoadIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder>( + getStartLoadInterval(), getParentForChildren(), isClean()); startLoadInterval_ = null; } return startLoadIntervalBuilder_; @@ -2145,41 +2413,58 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getS private com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval endLoadInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> endLoadIntervalBuilder_; + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> + endLoadIntervalBuilder_; /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * + * * @return Whether the endLoadInterval field is set. */ public boolean hasEndLoadInterval() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * + * * @return The endLoadInterval. */ public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval getEndLoadInterval() { if (endLoadIntervalBuilder_ == null) { - return endLoadInterval_ == null ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : endLoadInterval_; + return endLoadInterval_ == null + ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() + : endLoadInterval_; } else { return endLoadIntervalBuilder_.getMessage(); } } /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * */ - public Builder setEndLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { + public Builder setEndLoadInterval( + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { if (endLoadIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2193,11 +2478,14 @@ public Builder setEndLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadL return this; } /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * */ public Builder setEndLoadInterval( com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder builderForValue) { @@ -2211,17 +2499,23 @@ public Builder setEndLoadInterval( return this; } /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * */ - public Builder mergeEndLoadInterval(com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { + public Builder mergeEndLoadInterval( + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval value) { if (endLoadIntervalBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - endLoadInterval_ != null && - endLoadInterval_ != com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && endLoadInterval_ != null + && endLoadInterval_ + != com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval + .getDefaultInstance()) { getEndLoadIntervalBuilder().mergeFrom(value); } else { endLoadInterval_ = value; @@ -2234,11 +2528,14 @@ public Builder mergeEndLoadInterval(com.google.cloud.optimization.v1.Vehicle.Loa return this; } /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * */ public Builder clearEndLoadInterval() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2251,52 +2548,68 @@ public Builder clearEndLoadInterval() { return this; } /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * */ - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder getEndLoadIntervalBuilder() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder + getEndLoadIntervalBuilder() { bitField0_ |= 0x00000010; onChanged(); return getEndLoadIntervalFieldBuilder().getBuilder(); } /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * */ - public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder getEndLoadIntervalOrBuilder() { + public com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder + getEndLoadIntervalOrBuilder() { if (endLoadIntervalBuilder_ != null) { return endLoadIntervalBuilder_.getMessageOrBuilder(); } else { - return endLoadInterval_ == null ? - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() : endLoadInterval_; + return endLoadInterval_ == null + ? com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.getDefaultInstance() + : endLoadInterval_; } } /** + * + * *
        * The acceptable load interval of the vehicle at the end of the route.
        * 
* - * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder> getEndLoadIntervalFieldBuilder() { if (endLoadIntervalBuilder_ == null) { - endLoadIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder>( - getEndLoadInterval(), - getParentForChildren(), - isClean()); + endLoadIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.Builder, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.IntervalOrBuilder>( + getEndLoadInterval(), getParentForChildren(), isClean()); endLoadInterval_ = null; } return endLoadIntervalBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2309,12 +2622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Vehicle.LoadLimit) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Vehicle.LoadLimit) private static final com.google.cloud.optimization.v1.Vehicle.LoadLimit DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Vehicle.LoadLimit(); } @@ -2323,27 +2636,28 @@ public static com.google.cloud.optimization.v1.Vehicle.LoadLimit getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoadLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2358,32 +2672,40 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Vehicle.LoadLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DurationLimitOrBuilder extends + public interface DurationLimitOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Vehicle.DurationLimit) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
* * .google.protobuf.Duration max_duration = 1; + * * @return Whether the maxDuration field is set. */ boolean hasMaxDuration(); /** + * + * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
* * .google.protobuf.Duration max_duration = 1; + * * @return The maxDuration. */ com.google.protobuf.Duration getMaxDuration(); /** + * + * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
@@ -2393,6 +2715,8 @@ public interface DurationLimitOrBuilder extends com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder(); /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2403,10 +2727,13 @@ public interface DurationLimitOrBuilder extends
      * 
* * .google.protobuf.Duration soft_max_duration = 2; + * * @return Whether the softMaxDuration field is set. */ boolean hasSoftMaxDuration(); /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2417,10 +2744,13 @@ public interface DurationLimitOrBuilder extends
      * 
* * .google.protobuf.Duration soft_max_duration = 2; + * * @return The softMaxDuration. */ com.google.protobuf.Duration getSoftMaxDuration(); /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2435,6 +2765,8 @@ public interface DurationLimitOrBuilder extends
     com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Cost per hour incurred if the `soft_max_duration` threshold is violated.
      * The additional cost is 0 if the duration is under the threshold,
@@ -2446,10 +2778,13 @@ public interface DurationLimitOrBuilder extends
      * 
* * optional double cost_per_hour_after_soft_max = 3; + * * @return Whether the costPerHourAfterSoftMax field is set. */ boolean hasCostPerHourAfterSoftMax(); /** + * + * *
      * Cost per hour incurred if the `soft_max_duration` threshold is violated.
      * The additional cost is 0 if the duration is under the threshold,
@@ -2461,11 +2796,14 @@ public interface DurationLimitOrBuilder extends
      * 
* * optional double cost_per_hour_after_soft_max = 3; + * * @return The costPerHourAfterSoftMax. */ double getCostPerHourAfterSoftMax(); /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2480,10 +2818,13 @@ public interface DurationLimitOrBuilder extends
      * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; + * * @return Whether the quadraticSoftMaxDuration field is set. */ boolean hasQuadraticSoftMaxDuration(); /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2498,10 +2839,13 @@ public interface DurationLimitOrBuilder extends
      * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; + * * @return The quadraticSoftMaxDuration. */ com.google.protobuf.Duration getQuadraticSoftMaxDuration(); /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2520,6 +2864,8 @@ public interface DurationLimitOrBuilder extends
     com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Cost per square hour incurred if the
      * `quadratic_soft_max_duration` threshold is violated.
@@ -2536,10 +2882,13 @@ public interface DurationLimitOrBuilder extends
      * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; + * * @return Whether the costPerSquareHourAfterQuadraticSoftMax field is set. */ boolean hasCostPerSquareHourAfterQuadraticSoftMax(); /** + * + * *
      * Cost per square hour incurred if the
      * `quadratic_soft_max_duration` threshold is violated.
@@ -2556,11 +2905,14 @@ public interface DurationLimitOrBuilder extends
      * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; + * * @return The costPerSquareHourAfterQuadraticSoftMax. */ double getCostPerSquareHourAfterQuadraticSoftMax(); } /** + * + * *
    * A limit defining a maximum duration of the route of a vehicle. It can be
    * either hard or soft.
@@ -2571,47 +2923,51 @@ public interface DurationLimitOrBuilder extends
    *
    * Protobuf type {@code google.cloud.optimization.v1.Vehicle.DurationLimit}
    */
-  public static final class DurationLimit extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class DurationLimit extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Vehicle.DurationLimit)
       DurationLimitOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use DurationLimit.newBuilder() to construct.
     private DurationLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private DurationLimit() {
-    }
+
+    private DurationLimit() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new DurationLimit();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Vehicle.DurationLimit.class, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder.class);
+              com.google.cloud.optimization.v1.Vehicle.DurationLimit.class,
+              com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder.class);
     }
 
     private int bitField0_;
     public static final int MAX_DURATION_FIELD_NUMBER = 1;
     private com.google.protobuf.Duration maxDuration_;
     /**
+     *
+     *
      * 
      * A hard limit constraining the duration to be at most max_duration.
      * 
* * .google.protobuf.Duration max_duration = 1; + * * @return Whether the maxDuration field is set. */ @java.lang.Override @@ -2619,18 +2975,25 @@ public boolean hasMaxDuration() { return maxDuration_ != null; } /** + * + * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
* * .google.protobuf.Duration max_duration = 1; + * * @return The maxDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxDuration() { - return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; + return maxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxDuration_; } /** + * + * *
      * A hard limit constraining the duration to be at most max_duration.
      * 
@@ -2639,12 +3002,16 @@ public com.google.protobuf.Duration getMaxDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { - return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; + return maxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxDuration_; } public static final int SOFT_MAX_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration softMaxDuration_; /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2655,6 +3022,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() {
      * 
* * .google.protobuf.Duration soft_max_duration = 2; + * * @return Whether the softMaxDuration field is set. */ @java.lang.Override @@ -2662,6 +3030,8 @@ public boolean hasSoftMaxDuration() { return softMaxDuration_ != null; } /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2672,13 +3042,18 @@ public boolean hasSoftMaxDuration() {
      * 
* * .google.protobuf.Duration soft_max_duration = 2; + * * @return The softMaxDuration. */ @java.lang.Override public com.google.protobuf.Duration getSoftMaxDuration() { - return softMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : softMaxDuration_; + return softMaxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : softMaxDuration_; } /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost. This cost adds up to other costs defined in
@@ -2692,12 +3067,16 @@ public com.google.protobuf.Duration getSoftMaxDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
-      return softMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : softMaxDuration_;
+      return softMaxDuration_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : softMaxDuration_;
     }
 
     public static final int COST_PER_HOUR_AFTER_SOFT_MAX_FIELD_NUMBER = 3;
     private double costPerHourAfterSoftMax_ = 0D;
     /**
+     *
+     *
      * 
      * Cost per hour incurred if the `soft_max_duration` threshold is violated.
      * The additional cost is 0 if the duration is under the threshold,
@@ -2709,6 +3088,7 @@ public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
      * 
* * optional double cost_per_hour_after_soft_max = 3; + * * @return Whether the costPerHourAfterSoftMax field is set. */ @java.lang.Override @@ -2716,6 +3096,8 @@ public boolean hasCostPerHourAfterSoftMax() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Cost per hour incurred if the `soft_max_duration` threshold is violated.
      * The additional cost is 0 if the duration is under the threshold,
@@ -2727,6 +3109,7 @@ public boolean hasCostPerHourAfterSoftMax() {
      * 
* * optional double cost_per_hour_after_soft_max = 3; + * * @return The costPerHourAfterSoftMax. */ @java.lang.Override @@ -2737,6 +3120,8 @@ public double getCostPerHourAfterSoftMax() { public static final int QUADRATIC_SOFT_MAX_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration quadraticSoftMaxDuration_; /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2751,6 +3136,7 @@ public double getCostPerHourAfterSoftMax() {
      * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; + * * @return Whether the quadraticSoftMaxDuration field is set. */ @java.lang.Override @@ -2758,6 +3144,8 @@ public boolean hasQuadraticSoftMaxDuration() { return quadraticSoftMaxDuration_ != null; } /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2772,13 +3160,18 @@ public boolean hasQuadraticSoftMaxDuration() {
      * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; + * * @return The quadraticSoftMaxDuration. */ @java.lang.Override public com.google.protobuf.Duration getQuadraticSoftMaxDuration() { - return quadraticSoftMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : quadraticSoftMaxDuration_; + return quadraticSoftMaxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : quadraticSoftMaxDuration_; } /** + * + * *
      * A soft limit not enforcing a maximum duration limit, but when violated
      * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -2796,12 +3189,16 @@ public com.google.protobuf.Duration getQuadraticSoftMaxDuration() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilder() {
-      return quadraticSoftMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : quadraticSoftMaxDuration_;
+      return quadraticSoftMaxDuration_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : quadraticSoftMaxDuration_;
     }
 
     public static final int COST_PER_SQUARE_HOUR_AFTER_QUADRATIC_SOFT_MAX_FIELD_NUMBER = 5;
     private double costPerSquareHourAfterQuadraticSoftMax_ = 0D;
     /**
+     *
+     *
      * 
      * Cost per square hour incurred if the
      * `quadratic_soft_max_duration` threshold is violated.
@@ -2818,6 +3215,7 @@ public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilde
      * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; + * * @return Whether the costPerSquareHourAfterQuadraticSoftMax field is set. */ @java.lang.Override @@ -2825,6 +3223,8 @@ public boolean hasCostPerSquareHourAfterQuadraticSoftMax() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Cost per square hour incurred if the
      * `quadratic_soft_max_duration` threshold is violated.
@@ -2841,6 +3241,7 @@ public boolean hasCostPerSquareHourAfterQuadraticSoftMax() {
      * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; + * * @return The costPerSquareHourAfterQuadraticSoftMax. */ @java.lang.Override @@ -2849,6 +3250,7 @@ public double getCostPerSquareHourAfterQuadraticSoftMax() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2860,8 +3262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (maxDuration_ != null) { output.writeMessage(1, getMaxDuration()); } @@ -2887,24 +3288,24 @@ public int getSerializedSize() { size = 0; if (maxDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMaxDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMaxDuration()); } if (softMaxDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSoftMaxDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSoftMaxDuration()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, costPerHourAfterSoftMax_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(3, costPerHourAfterSoftMax_); } if (quadraticSoftMaxDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getQuadraticSoftMaxDuration()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getQuadraticSoftMaxDuration()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, costPerSquareHourAfterQuadraticSoftMax_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 5, costPerSquareHourAfterQuadraticSoftMax_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2914,39 +3315,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Vehicle.DurationLimit)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Vehicle.DurationLimit other = (com.google.cloud.optimization.v1.Vehicle.DurationLimit) obj; + com.google.cloud.optimization.v1.Vehicle.DurationLimit other = + (com.google.cloud.optimization.v1.Vehicle.DurationLimit) obj; if (hasMaxDuration() != other.hasMaxDuration()) return false; if (hasMaxDuration()) { - if (!getMaxDuration() - .equals(other.getMaxDuration())) return false; + if (!getMaxDuration().equals(other.getMaxDuration())) return false; } if (hasSoftMaxDuration() != other.hasSoftMaxDuration()) return false; if (hasSoftMaxDuration()) { - if (!getSoftMaxDuration() - .equals(other.getSoftMaxDuration())) return false; + if (!getSoftMaxDuration().equals(other.getSoftMaxDuration())) return false; } if (hasCostPerHourAfterSoftMax() != other.hasCostPerHourAfterSoftMax()) return false; if (hasCostPerHourAfterSoftMax()) { if (java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftMax()) - != java.lang.Double.doubleToLongBits( - other.getCostPerHourAfterSoftMax())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerHourAfterSoftMax())) return false; } if (hasQuadraticSoftMaxDuration() != other.hasQuadraticSoftMaxDuration()) return false; if (hasQuadraticSoftMaxDuration()) { - if (!getQuadraticSoftMaxDuration() - .equals(other.getQuadraticSoftMaxDuration())) return false; + if (!getQuadraticSoftMaxDuration().equals(other.getQuadraticSoftMaxDuration())) + return false; } - if (hasCostPerSquareHourAfterQuadraticSoftMax() != other.hasCostPerSquareHourAfterQuadraticSoftMax()) return false; + if (hasCostPerSquareHourAfterQuadraticSoftMax() + != other.hasCostPerSquareHourAfterQuadraticSoftMax()) return false; if (hasCostPerSquareHourAfterQuadraticSoftMax()) { if (java.lang.Double.doubleToLongBits(getCostPerSquareHourAfterQuadraticSoftMax()) - != java.lang.Double.doubleToLongBits( - other.getCostPerSquareHourAfterQuadraticSoftMax())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerSquareHourAfterQuadraticSoftMax())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2969,8 +3369,10 @@ public int hashCode() { } if (hasCostPerHourAfterSoftMax()) { hash = (37 * hash) + COST_PER_HOUR_AFTER_SOFT_MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftMax())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerHourAfterSoftMax())); } if (hasQuadraticSoftMaxDuration()) { hash = (37 * hash) + QUADRATIC_SOFT_MAX_DURATION_FIELD_NUMBER; @@ -2978,8 +3380,10 @@ public int hashCode() { } if (hasCostPerSquareHourAfterQuadraticSoftMax()) { hash = (37 * hash) + COST_PER_SQUARE_HOUR_AFTER_QUADRATIC_SOFT_MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerSquareHourAfterQuadraticSoftMax())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerSquareHourAfterQuadraticSoftMax())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -2987,89 +3391,94 @@ public int hashCode() { } public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Vehicle.DurationLimit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.optimization.v1.Vehicle.DurationLimit prototype) { + + public static Builder newBuilder( + com.google.cloud.optimization.v1.Vehicle.DurationLimit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3079,6 +3488,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A limit defining a maximum duration of the route of a vehicle. It can be
      * either hard or soft.
@@ -3089,33 +3500,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.optimization.v1.Vehicle.DurationLimit}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Vehicle.DurationLimit)
         com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.optimization.v1.Vehicle.DurationLimit.class, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder.class);
+                com.google.cloud.optimization.v1.Vehicle.DurationLimit.class,
+                com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder.class);
       }
 
       // Construct using com.google.cloud.optimization.v1.Vehicle.DurationLimit.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3141,9 +3552,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.optimization.v1.FleetRoutingProto
+            .internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor;
       }
 
       @java.lang.Override
@@ -3162,8 +3573,11 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit build() {
 
       @java.lang.Override
       public com.google.cloud.optimization.v1.Vehicle.DurationLimit buildPartial() {
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit result = new com.google.cloud.optimization.v1.Vehicle.DurationLimit(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit result =
+            new com.google.cloud.optimization.v1.Vehicle.DurationLimit(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -3171,14 +3585,12 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit buildPartial() {
       private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.DurationLimit result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.maxDuration_ = maxDurationBuilder_ == null
-              ? maxDuration_
-              : maxDurationBuilder_.build();
+          result.maxDuration_ =
+              maxDurationBuilder_ == null ? maxDuration_ : maxDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.softMaxDuration_ = softMaxDurationBuilder_ == null
-              ? softMaxDuration_
-              : softMaxDurationBuilder_.build();
+          result.softMaxDuration_ =
+              softMaxDurationBuilder_ == null ? softMaxDuration_ : softMaxDurationBuilder_.build();
         }
         int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000004) != 0)) {
@@ -3186,9 +3598,10 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.DurationLimi
           to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.quadraticSoftMaxDuration_ = quadraticSoftMaxDurationBuilder_ == null
-              ? quadraticSoftMaxDuration_
-              : quadraticSoftMaxDurationBuilder_.build();
+          result.quadraticSoftMaxDuration_ =
+              quadraticSoftMaxDurationBuilder_ == null
+                  ? quadraticSoftMaxDuration_
+                  : quadraticSoftMaxDurationBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
           result.costPerSquareHourAfterQuadraticSoftMax_ = costPerSquareHourAfterQuadraticSoftMax_;
@@ -3201,38 +3614,41 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle.DurationLimi
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.optimization.v1.Vehicle.DurationLimit) {
-          return mergeFrom((com.google.cloud.optimization.v1.Vehicle.DurationLimit)other);
+          return mergeFrom((com.google.cloud.optimization.v1.Vehicle.DurationLimit) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3240,7 +3656,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle.DurationLimit other) {
-        if (other == com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) return this;
+        if (other == com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance())
+          return this;
         if (other.hasMaxDuration()) {
           mergeMaxDuration(other.getMaxDuration());
         }
@@ -3254,7 +3671,8 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle.DurationLimit
           mergeQuadraticSoftMaxDuration(other.getQuadraticSoftMaxDuration());
         }
         if (other.hasCostPerSquareHourAfterQuadraticSoftMax()) {
-          setCostPerSquareHourAfterQuadraticSoftMax(other.getCostPerSquareHourAfterQuadraticSoftMax());
+          setCostPerSquareHourAfterQuadraticSoftMax(
+              other.getCostPerSquareHourAfterQuadraticSoftMax());
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -3282,43 +3700,45 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getMaxDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getSoftMaxDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 25: {
-                costPerHourAfterSoftMax_ = input.readDouble();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 25
-              case 34: {
-                input.readMessage(
-                    getQuadraticSoftMaxDurationFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-              case 41: {
-                costPerSquareHourAfterQuadraticSoftMax_ = input.readDouble();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 41
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(getMaxDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getSoftMaxDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 25:
+                {
+                  costPerHourAfterSoftMax_ = input.readDouble();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 25
+              case 34:
+                {
+                  input.readMessage(
+                      getQuadraticSoftMaxDurationFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 34
+              case 41:
+                {
+                  costPerSquareHourAfterQuadraticSoftMax_ = input.readDouble();
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 41
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3328,38 +3748,52 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.Duration maxDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxDurationBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          maxDurationBuilder_;
       /**
+       *
+       *
        * 
        * A hard limit constraining the duration to be at most max_duration.
        * 
* * .google.protobuf.Duration max_duration = 1; + * * @return Whether the maxDuration field is set. */ public boolean hasMaxDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
* * .google.protobuf.Duration max_duration = 1; + * * @return The maxDuration. */ public com.google.protobuf.Duration getMaxDuration() { if (maxDurationBuilder_ == null) { - return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; + return maxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxDuration_; } else { return maxDurationBuilder_.getMessage(); } } /** + * + * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3380,14 +3814,15 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
* * .google.protobuf.Duration max_duration = 1; */ - public Builder setMaxDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForValue) { if (maxDurationBuilder_ == null) { maxDuration_ = builderForValue.build(); } else { @@ -3398,6 +3833,8 @@ public Builder setMaxDuration( return this; } /** + * + * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3406,9 +3843,9 @@ public Builder setMaxDuration( */ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - maxDuration_ != null && - maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && maxDuration_ != null + && maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxDurationBuilder().mergeFrom(value); } else { maxDuration_ = value; @@ -3421,6 +3858,8 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3438,6 +3877,8 @@ public Builder clearMaxDuration() { return this; } /** + * + * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3450,6 +3891,8 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { return getMaxDurationFieldBuilder().getBuilder(); } /** + * + * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3460,11 +3903,14 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { if (maxDurationBuilder_ != null) { return maxDurationBuilder_.getMessageOrBuilder(); } else { - return maxDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; + return maxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxDuration_; } } /** + * + * *
        * A hard limit constraining the duration to be at most max_duration.
        * 
@@ -3472,14 +3918,17 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * .google.protobuf.Duration max_duration = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMaxDurationFieldBuilder() { if (maxDurationBuilder_ == null) { - maxDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxDuration(), - getParentForChildren(), - isClean()); + maxDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxDuration(), getParentForChildren(), isClean()); maxDuration_ = null; } return maxDurationBuilder_; @@ -3487,8 +3936,13 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { private com.google.protobuf.Duration softMaxDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> softMaxDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + softMaxDurationBuilder_; /** + * + * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3499,12 +3953,15 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() {
        * 
* * .google.protobuf.Duration soft_max_duration = 2; + * * @return Whether the softMaxDuration field is set. */ public boolean hasSoftMaxDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3515,16 +3972,21 @@ public boolean hasSoftMaxDuration() {
        * 
* * .google.protobuf.Duration soft_max_duration = 2; + * * @return The softMaxDuration. */ public com.google.protobuf.Duration getSoftMaxDuration() { if (softMaxDurationBuilder_ == null) { - return softMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : softMaxDuration_; + return softMaxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : softMaxDuration_; } else { return softMaxDurationBuilder_.getMessage(); } } /** + * + * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3550,6 +4012,8 @@ public Builder setSoftMaxDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3561,8 +4025,7 @@ public Builder setSoftMaxDuration(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration soft_max_duration = 2;
        */
-      public Builder setSoftMaxDuration(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSoftMaxDuration(com.google.protobuf.Duration.Builder builderForValue) {
         if (softMaxDurationBuilder_ == null) {
           softMaxDuration_ = builderForValue.build();
         } else {
@@ -3573,6 +4036,8 @@ public Builder setSoftMaxDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3586,9 +4051,9 @@ public Builder setSoftMaxDuration(
        */
       public Builder mergeSoftMaxDuration(com.google.protobuf.Duration value) {
         if (softMaxDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            softMaxDuration_ != null &&
-            softMaxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && softMaxDuration_ != null
+              && softMaxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSoftMaxDurationBuilder().mergeFrom(value);
           } else {
             softMaxDuration_ = value;
@@ -3601,6 +4066,8 @@ public Builder mergeSoftMaxDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3623,6 +4090,8 @@ public Builder clearSoftMaxDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3640,6 +4109,8 @@ public com.google.protobuf.Duration.Builder getSoftMaxDurationBuilder() {
         return getSoftMaxDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3655,11 +4126,14 @@ public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
         if (softMaxDurationBuilder_ != null) {
           return softMaxDurationBuilder_.getMessageOrBuilder();
         } else {
-          return softMaxDuration_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : softMaxDuration_;
+          return softMaxDuration_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : softMaxDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost. This cost adds up to other costs defined in
@@ -3672,21 +4146,26 @@ public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
        * .google.protobuf.Duration soft_max_duration = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getSoftMaxDurationFieldBuilder() {
         if (softMaxDurationBuilder_ == null) {
-          softMaxDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getSoftMaxDuration(),
-                  getParentForChildren(),
-                  isClean());
+          softMaxDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getSoftMaxDuration(), getParentForChildren(), isClean());
           softMaxDuration_ = null;
         }
         return softMaxDurationBuilder_;
       }
 
-      private double costPerHourAfterSoftMax_ ;
+      private double costPerHourAfterSoftMax_;
       /**
+       *
+       *
        * 
        * Cost per hour incurred if the `soft_max_duration` threshold is violated.
        * The additional cost is 0 if the duration is under the threshold,
@@ -3698,6 +4177,7 @@ public com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder() {
        * 
* * optional double cost_per_hour_after_soft_max = 3; + * * @return Whether the costPerHourAfterSoftMax field is set. */ @java.lang.Override @@ -3705,6 +4185,8 @@ public boolean hasCostPerHourAfterSoftMax() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Cost per hour incurred if the `soft_max_duration` threshold is violated.
        * The additional cost is 0 if the duration is under the threshold,
@@ -3716,6 +4198,7 @@ public boolean hasCostPerHourAfterSoftMax() {
        * 
* * optional double cost_per_hour_after_soft_max = 3; + * * @return The costPerHourAfterSoftMax. */ @java.lang.Override @@ -3723,6 +4206,8 @@ public double getCostPerHourAfterSoftMax() { return costPerHourAfterSoftMax_; } /** + * + * *
        * Cost per hour incurred if the `soft_max_duration` threshold is violated.
        * The additional cost is 0 if the duration is under the threshold,
@@ -3734,6 +4219,7 @@ public double getCostPerHourAfterSoftMax() {
        * 
* * optional double cost_per_hour_after_soft_max = 3; + * * @param value The costPerHourAfterSoftMax to set. * @return This builder for chaining. */ @@ -3745,6 +4231,8 @@ public Builder setCostPerHourAfterSoftMax(double value) { return this; } /** + * + * *
        * Cost per hour incurred if the `soft_max_duration` threshold is violated.
        * The additional cost is 0 if the duration is under the threshold,
@@ -3756,6 +4244,7 @@ public Builder setCostPerHourAfterSoftMax(double value) {
        * 
* * optional double cost_per_hour_after_soft_max = 3; + * * @return This builder for chaining. */ public Builder clearCostPerHourAfterSoftMax() { @@ -3767,8 +4256,13 @@ public Builder clearCostPerHourAfterSoftMax() { private com.google.protobuf.Duration quadraticSoftMaxDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> quadraticSoftMaxDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + quadraticSoftMaxDurationBuilder_; /** + * + * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3783,12 +4277,15 @@ public Builder clearCostPerHourAfterSoftMax() {
        * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; + * * @return Whether the quadraticSoftMaxDuration field is set. */ public boolean hasQuadraticSoftMaxDuration() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3803,16 +4300,21 @@ public boolean hasQuadraticSoftMaxDuration() {
        * 
* * .google.protobuf.Duration quadratic_soft_max_duration = 4; + * * @return The quadraticSoftMaxDuration. */ public com.google.protobuf.Duration getQuadraticSoftMaxDuration() { if (quadraticSoftMaxDurationBuilder_ == null) { - return quadraticSoftMaxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : quadraticSoftMaxDuration_; + return quadraticSoftMaxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : quadraticSoftMaxDuration_; } else { return quadraticSoftMaxDurationBuilder_.getMessage(); } } /** + * + * *
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3842,6 +4344,8 @@ public Builder setQuadraticSoftMaxDuration(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3869,6 +4373,8 @@ public Builder setQuadraticSoftMaxDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3886,9 +4392,9 @@ public Builder setQuadraticSoftMaxDuration(
        */
       public Builder mergeQuadraticSoftMaxDuration(com.google.protobuf.Duration value) {
         if (quadraticSoftMaxDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000008) != 0) &&
-            quadraticSoftMaxDuration_ != null &&
-            quadraticSoftMaxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000008) != 0)
+              && quadraticSoftMaxDuration_ != null
+              && quadraticSoftMaxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getQuadraticSoftMaxDurationBuilder().mergeFrom(value);
           } else {
             quadraticSoftMaxDuration_ = value;
@@ -3901,6 +4407,8 @@ public Builder mergeQuadraticSoftMaxDuration(com.google.protobuf.Duration value)
         return this;
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3927,6 +4435,8 @@ public Builder clearQuadraticSoftMaxDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3948,6 +4458,8 @@ public com.google.protobuf.Duration.Builder getQuadraticSoftMaxDurationBuilder()
         return getQuadraticSoftMaxDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3967,11 +4479,14 @@ public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilde
         if (quadraticSoftMaxDurationBuilder_ != null) {
           return quadraticSoftMaxDurationBuilder_.getMessageOrBuilder();
         } else {
-          return quadraticSoftMaxDuration_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : quadraticSoftMaxDuration_;
+          return quadraticSoftMaxDuration_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : quadraticSoftMaxDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * A soft limit not enforcing a maximum duration limit, but when violated
        * makes the route incur a cost, quadratic in the duration. This cost adds
@@ -3988,21 +4503,26 @@ public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilde
        * .google.protobuf.Duration quadratic_soft_max_duration = 4;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
           getQuadraticSoftMaxDurationFieldBuilder() {
         if (quadraticSoftMaxDurationBuilder_ == null) {
-          quadraticSoftMaxDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getQuadraticSoftMaxDuration(),
-                  getParentForChildren(),
-                  isClean());
+          quadraticSoftMaxDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getQuadraticSoftMaxDuration(), getParentForChildren(), isClean());
           quadraticSoftMaxDuration_ = null;
         }
         return quadraticSoftMaxDurationBuilder_;
       }
 
-      private double costPerSquareHourAfterQuadraticSoftMax_ ;
+      private double costPerSquareHourAfterQuadraticSoftMax_;
       /**
+       *
+       *
        * 
        * Cost per square hour incurred if the
        * `quadratic_soft_max_duration` threshold is violated.
@@ -4019,6 +4539,7 @@ public com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilde
        * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; + * * @return Whether the costPerSquareHourAfterQuadraticSoftMax field is set. */ @java.lang.Override @@ -4026,6 +4547,8 @@ public boolean hasCostPerSquareHourAfterQuadraticSoftMax() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * Cost per square hour incurred if the
        * `quadratic_soft_max_duration` threshold is violated.
@@ -4042,6 +4565,7 @@ public boolean hasCostPerSquareHourAfterQuadraticSoftMax() {
        * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; + * * @return The costPerSquareHourAfterQuadraticSoftMax. */ @java.lang.Override @@ -4049,6 +4573,8 @@ public double getCostPerSquareHourAfterQuadraticSoftMax() { return costPerSquareHourAfterQuadraticSoftMax_; } /** + * + * *
        * Cost per square hour incurred if the
        * `quadratic_soft_max_duration` threshold is violated.
@@ -4065,6 +4591,7 @@ public double getCostPerSquareHourAfterQuadraticSoftMax() {
        * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; + * * @param value The costPerSquareHourAfterQuadraticSoftMax to set. * @return This builder for chaining. */ @@ -4076,6 +4603,8 @@ public Builder setCostPerSquareHourAfterQuadraticSoftMax(double value) { return this; } /** + * + * *
        * Cost per square hour incurred if the
        * `quadratic_soft_max_duration` threshold is violated.
@@ -4092,6 +4621,7 @@ public Builder setCostPerSquareHourAfterQuadraticSoftMax(double value) {
        * 
* * optional double cost_per_square_hour_after_quadratic_soft_max = 5; + * * @return This builder for chaining. */ public Builder clearCostPerSquareHourAfterQuadraticSoftMax() { @@ -4100,6 +4630,7 @@ public Builder clearCostPerSquareHourAfterQuadraticSoftMax() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4112,12 +4643,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Vehicle.DurationLimit) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Vehicle.DurationLimit) private static final com.google.cloud.optimization.v1.Vehicle.DurationLimit DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Vehicle.DurationLimit(); } @@ -4126,27 +4657,28 @@ public static com.google.cloud.optimization.v1.Vehicle.DurationLimit getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DurationLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4161,47 +4693,62 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Vehicle.DurationLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int TRAVEL_MODE_FIELD_NUMBER = 1; private int travelMode_ = 0; /** + * + * *
    * The travel mode which affects the roads usable by the vehicle and its
    * speed. See also `travel_duration_multiple`.
    * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override public int getTravelModeValue() { + @java.lang.Override + public int getTravelModeValue() { return travelMode_; } /** + * + * *
    * The travel mode which affects the roads usable by the vehicle and its
    * speed. See also `travel_duration_multiple`.
    * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @return The travelMode. */ - @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode() { - com.google.cloud.optimization.v1.Vehicle.TravelMode result = com.google.cloud.optimization.v1.Vehicle.TravelMode.forNumber(travelMode_); - return result == null ? com.google.cloud.optimization.v1.Vehicle.TravelMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode() { + com.google.cloud.optimization.v1.Vehicle.TravelMode result = + com.google.cloud.optimization.v1.Vehicle.TravelMode.forNumber(travelMode_); + return result == null + ? com.google.cloud.optimization.v1.Vehicle.TravelMode.UNRECOGNIZED + : result; } public static final int ROUTE_MODIFIERS_FIELD_NUMBER = 2; private com.google.cloud.optimization.v1.RouteModifiers routeModifiers_; /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated for the given vehicle.
    * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the routeModifiers field is set. */ @java.lang.Override @@ -4209,34 +4756,49 @@ public boolean hasRouteModifiers() { return routeModifiers_ != null; } /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated for the given vehicle.
    * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ @java.lang.Override public com.google.cloud.optimization.v1.RouteModifiers getRouteModifiers() { - return routeModifiers_ == null ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() + : routeModifiers_; } /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated for the given vehicle.
    * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { - return routeModifiers_ == null ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() + : routeModifiers_; } public static final int START_LOCATION_FIELD_NUMBER = 3; private com.google.type.LatLng startLocation_; /** + * + * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -4245,6 +4807,7 @@ public com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifier
    * 
* * .google.type.LatLng start_location = 3; + * * @return Whether the startLocation field is set. */ @java.lang.Override @@ -4252,6 +4815,8 @@ public boolean hasStartLocation() { return startLocation_ != null; } /** + * + * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -4260,6 +4825,7 @@ public boolean hasStartLocation() {
    * 
* * .google.type.LatLng start_location = 3; + * * @return The startLocation. */ @java.lang.Override @@ -4267,6 +4833,8 @@ public com.google.type.LatLng getStartLocation() { return startLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : startLocation_; } /** + * + * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -4284,6 +4852,8 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
   public static final int START_WAYPOINT_FIELD_NUMBER = 4;
   private com.google.cloud.optimization.v1.Waypoint startWaypoint_;
   /**
+   *
+   *
    * 
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -4293,6 +4863,7 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
    * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; + * * @return Whether the startWaypoint field is set. */ @java.lang.Override @@ -4300,6 +4871,8 @@ public boolean hasStartWaypoint() { return startWaypoint_ != null; } /** + * + * *
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -4309,13 +4882,18 @@ public boolean hasStartWaypoint() {
    * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; + * * @return The startWaypoint. */ @java.lang.Override public com.google.cloud.optimization.v1.Waypoint getStartWaypoint() { - return startWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : startWaypoint_; + return startWaypoint_ == null + ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() + : startWaypoint_; } /** + * + * *
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -4328,12 +4906,16 @@ public com.google.cloud.optimization.v1.Waypoint getStartWaypoint() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuilder() {
-    return startWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : startWaypoint_;
+    return startWaypoint_ == null
+        ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
+        : startWaypoint_;
   }
 
   public static final int END_LOCATION_FIELD_NUMBER = 5;
   private com.google.type.LatLng endLocation_;
   /**
+   *
+   *
    * 
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -4343,6 +4925,7 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
    * 
* * .google.type.LatLng end_location = 5; + * * @return Whether the endLocation field is set. */ @java.lang.Override @@ -4350,6 +4933,8 @@ public boolean hasEndLocation() { return endLocation_ != null; } /** + * + * *
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -4359,6 +4944,7 @@ public boolean hasEndLocation() {
    * 
* * .google.type.LatLng end_location = 5; + * * @return The endLocation. */ @java.lang.Override @@ -4366,6 +4952,8 @@ public com.google.type.LatLng getEndLocation() { return endLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : endLocation_; } /** + * + * *
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -4384,6 +4972,8 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
   public static final int END_WAYPOINT_FIELD_NUMBER = 6;
   private com.google.cloud.optimization.v1.Waypoint endWaypoint_;
   /**
+   *
+   *
    * 
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -4394,6 +4984,7 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
    * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; + * * @return Whether the endWaypoint field is set. */ @java.lang.Override @@ -4401,6 +4992,8 @@ public boolean hasEndWaypoint() { return endWaypoint_ != null; } /** + * + * *
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -4411,13 +5004,18 @@ public boolean hasEndWaypoint() {
    * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; + * * @return The endWaypoint. */ @java.lang.Override public com.google.cloud.optimization.v1.Waypoint getEndWaypoint() { - return endWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : endWaypoint_; + return endWaypoint_ == null + ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() + : endWaypoint_; } /** + * + * *
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -4431,14 +5029,19 @@ public com.google.cloud.optimization.v1.Waypoint getEndWaypoint() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilder() {
-    return endWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : endWaypoint_;
+    return endWaypoint_ == null
+        ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
+        : endWaypoint_;
   }
 
   public static final int START_TAGS_FIELD_NUMBER = 7;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList startTags_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -4446,13 +5049,15 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
    * 
* * repeated string start_tags = 7; + * * @return A list containing the startTags. */ - public com.google.protobuf.ProtocolStringList - getStartTagsList() { + public com.google.protobuf.ProtocolStringList getStartTagsList() { return startTags_; } /** + * + * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -4460,12 +5065,15 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
    * 
* * repeated string start_tags = 7; + * * @return The count of startTags. */ public int getStartTagsCount() { return startTags_.size(); } /** + * + * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -4473,6 +5081,7 @@ public int getStartTagsCount() {
    * 
* * repeated string start_tags = 7; + * * @param index The index of the element to return. * @return The startTags at the given index. */ @@ -4480,6 +5089,8 @@ public java.lang.String getStartTags(int index) { return startTags_.get(index); } /** + * + * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -4487,19 +5098,22 @@ public java.lang.String getStartTags(int index) {
    * 
* * repeated string start_tags = 7; + * * @param index The index of the value to return. * @return The bytes of the startTags at the given index. */ - public com.google.protobuf.ByteString - getStartTagsBytes(int index) { + public com.google.protobuf.ByteString getStartTagsBytes(int index) { return startTags_.getByteString(index); } public static final int END_TAGS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList endTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -4507,13 +5121,15 @@ public java.lang.String getStartTags(int index) {
    * 
* * repeated string end_tags = 8; + * * @return A list containing the endTags. */ - public com.google.protobuf.ProtocolStringList - getEndTagsList() { + public com.google.protobuf.ProtocolStringList getEndTagsList() { return endTags_; } /** + * + * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -4521,12 +5137,15 @@ public java.lang.String getStartTags(int index) {
    * 
* * repeated string end_tags = 8; + * * @return The count of endTags. */ public int getEndTagsCount() { return endTags_.size(); } /** + * + * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -4534,6 +5153,7 @@ public int getEndTagsCount() {
    * 
* * repeated string end_tags = 8; + * * @param index The index of the element to return. * @return The endTags at the given index. */ @@ -4541,6 +5161,8 @@ public java.lang.String getEndTags(int index) { return endTags_.get(index); } /** + * + * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -4548,18 +5170,21 @@ public java.lang.String getEndTags(int index) {
    * 
* * repeated string end_tags = 8; + * * @param index The index of the value to return. * @return The bytes of the endTags at the given index. */ - public com.google.protobuf.ByteString - getEndTagsBytes(int index) { + public com.google.protobuf.ByteString getEndTagsBytes(int index) { return endTags_.getByteString(index); } public static final int START_TIME_WINDOWS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List startTimeWindows_; /** + * + * *
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -4582,6 +5207,8 @@ public java.util.List getStartTimeW
     return startTimeWindows_;
   }
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -4600,11 +5227,13 @@ public java.util.List getStartTimeW
    * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getStartTimeWindowsOrBuilderList() {
     return startTimeWindows_;
   }
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -4627,6 +5256,8 @@ public int getStartTimeWindowsCount() {
     return startTimeWindows_.size();
   }
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -4649,6 +5280,8 @@ public com.google.cloud.optimization.v1.TimeWindow getStartTimeWindows(int index
     return startTimeWindows_.get(index);
   }
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -4673,9 +5306,12 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsO
   }
 
   public static final int END_TIME_WINDOWS_FIELD_NUMBER = 10;
+
   @SuppressWarnings("serial")
   private java.util.List endTimeWindows_;
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -4698,6 +5334,8 @@ public java.util.List getEndTimeWin
     return endTimeWindows_;
   }
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -4716,11 +5354,13 @@ public java.util.List getEndTimeWin
    * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getEndTimeWindowsOrBuilderList() {
     return endTimeWindows_;
   }
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -4743,6 +5383,8 @@ public int getEndTimeWindowsCount() {
     return endTimeWindows_.size();
   }
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -4765,6 +5407,8 @@ public com.google.cloud.optimization.v1.TimeWindow getEndTimeWindows(int index)
     return endTimeWindows_.get(index);
   }
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -4791,6 +5435,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
   public static final int TRAVEL_DURATION_MULTIPLE_FIELD_NUMBER = 11;
   private double travelDurationMultiple_ = 0D;
   /**
+   *
+   *
    * 
    * Specifies a multiplicative factor that can be used to increase or decrease
    * travel times of this vehicle. For example, setting this to 2.0 means
@@ -4808,6 +5454,7 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
    * 
* * optional double travel_duration_multiple = 11; + * * @return Whether the travelDurationMultiple field is set. */ @java.lang.Override @@ -4815,6 +5462,8 @@ public boolean hasTravelDurationMultiple() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Specifies a multiplicative factor that can be used to increase or decrease
    * travel times of this vehicle. For example, setting this to 2.0 means
@@ -4832,6 +5481,7 @@ public boolean hasTravelDurationMultiple() {
    * 
* * optional double travel_duration_multiple = 11; + * * @return The travelDurationMultiple. */ @java.lang.Override @@ -4842,56 +5492,77 @@ public double getTravelDurationMultiple() { public static final int UNLOADING_POLICY_FIELD_NUMBER = 12; private int unloadingPolicy_ = 0; /** + * + * *
    * Unloading policy enforced on the vehicle.
    * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @return The enum numeric value on the wire for unloadingPolicy. */ - @java.lang.Override public int getUnloadingPolicyValue() { + @java.lang.Override + public int getUnloadingPolicyValue() { return unloadingPolicy_; } /** + * + * *
    * Unloading policy enforced on the vehicle.
    * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @return The unloadingPolicy. */ - @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy getUnloadingPolicy() { - com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy result = com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.forNumber(unloadingPolicy_); - return result == null ? com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy getUnloadingPolicy() { + com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy result = + com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.forNumber(unloadingPolicy_); + return result == null + ? com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNRECOGNIZED + : result; } public static final int LOAD_LIMITS_FIELD_NUMBER = 30; + private static final class LoadLimitsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> defaultEntry = + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.optimization.v1.Vehicle.LoadLimit.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.optimization.v1.FleetRoutingProto + .internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.optimization.v1.Vehicle.LoadLimit.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> loadLimits_; - private com.google.protobuf.MapField - internalGetLoadLimits() { + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> + loadLimits_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> + internalGetLoadLimits() { if (loadLimits_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LoadLimitsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LoadLimitsDefaultEntryHolder.defaultEntry); } return loadLimits_; } + public int getLoadLimitsCount() { return internalGetLoadLimits().getMap().size(); } /** + * + * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -4901,23 +5572,26 @@ public int getLoadLimitsCount() {
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ @java.lang.Override - public boolean containsLoadLimits( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLoadLimits(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLoadLimits().getMap().containsKey(key); } - /** - * Use {@link #getLoadLimitsMap()} instead. - */ + /** Use {@link #getLoadLimitsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getLoadLimits() { + public java.util.Map + getLoadLimits() { return getLoadLimitsMap(); } /** + * + * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -4927,13 +5601,17 @@ public java.util.Map
    *
-   * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
+   * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
+   * 
    */
   @java.lang.Override
-  public java.util.Map getLoadLimitsMap() {
+  public java.util.Map
+      getLoadLimitsMap() {
     return internalGetLoadLimits().getMap();
   }
   /**
+   *
+   *
    * 
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -4943,20 +5621,24 @@ public java.util.Map
    *
-   * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
+   * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
+   * 
    */
   @java.lang.Override
-  public /* nullable */
-com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
+  public /* nullable */ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetLoadLimits().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -4966,12 +5648,15 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLoadLimits().getMap(); if (!map.containsKey(key)) { @@ -4983,6 +5668,8 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( public static final int COST_PER_HOUR_FIELD_NUMBER = 16; private double costPerHour_ = 0D; /** + * + * *
    * Vehicle costs: all costs add up and must be in the same unit as
    * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -4994,6 +5681,7 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * double cost_per_hour = 16; + * * @return The costPerHour. */ @java.lang.Override @@ -5004,6 +5692,8 @@ public double getCostPerHour() { public static final int COST_PER_TRAVELED_HOUR_FIELD_NUMBER = 17; private double costPerTraveledHour_ = 0D; /** + * + * *
    * Cost per traveled hour of the vehicle route. This cost is applied only to
    * travel time taken by the route (i.e., that reported in
@@ -5012,6 +5702,7 @@ public double getCostPerHour() {
    * 
* * double cost_per_traveled_hour = 17; + * * @return The costPerTraveledHour. */ @java.lang.Override @@ -5022,6 +5713,8 @@ public double getCostPerTraveledHour() { public static final int COST_PER_KILOMETER_FIELD_NUMBER = 18; private double costPerKilometer_ = 0D; /** + * + * *
    * Cost per kilometer of the vehicle route. This cost is applied to the
    * distance reported in the
@@ -5031,6 +5724,7 @@ public double getCostPerTraveledHour() {
    * 
* * double cost_per_kilometer = 18; + * * @return The costPerKilometer. */ @java.lang.Override @@ -5041,11 +5735,14 @@ public double getCostPerKilometer() { public static final int FIXED_COST_FIELD_NUMBER = 19; private double fixedCost_ = 0D; /** + * + * *
    * Fixed cost applied if this vehicle is used to handle a shipment.
    * 
* * double fixed_cost = 19; + * * @return The fixedCost. */ @java.lang.Override @@ -5056,6 +5753,8 @@ public double getFixedCost() { public static final int USED_IF_ROUTE_IS_EMPTY_FIELD_NUMBER = 20; private boolean usedIfRouteIsEmpty_ = false; /** + * + * *
    * This field only applies to vehicles when their route does not serve any
    * shipments. It indicates if the vehicle should be considered as used or not
@@ -5072,6 +5771,7 @@ public double getFixedCost() {
    * 
* * bool used_if_route_is_empty = 20; + * * @return The usedIfRouteIsEmpty. */ @java.lang.Override @@ -5082,6 +5782,8 @@ public boolean getUsedIfRouteIsEmpty() { public static final int ROUTE_DURATION_LIMIT_FIELD_NUMBER = 21; private com.google.cloud.optimization.v1.Vehicle.DurationLimit routeDurationLimit_; /** + * + * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -5089,6 +5791,7 @@ public boolean getUsedIfRouteIsEmpty() {
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; + * * @return Whether the routeDurationLimit field is set. */ @java.lang.Override @@ -5096,6 +5799,8 @@ public boolean hasRouteDurationLimit() { return routeDurationLimit_ != null; } /** + * + * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -5103,13 +5808,18 @@ public boolean hasRouteDurationLimit() {
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; + * * @return The routeDurationLimit. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLimit() { - return routeDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : routeDurationLimit_; + return routeDurationLimit_ == null + ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() + : routeDurationLimit_; } /** + * + * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -5119,13 +5829,18 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLi
    * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteDurationLimitOrBuilder() {
-    return routeDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : routeDurationLimit_;
+  public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder
+      getRouteDurationLimitOrBuilder() {
+    return routeDurationLimit_ == null
+        ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()
+        : routeDurationLimit_;
   }
 
   public static final int TRAVEL_DURATION_LIMIT_FIELD_NUMBER = 22;
   private com.google.cloud.optimization.v1.Vehicle.DurationLimit travelDurationLimit_;
   /**
+   *
+   *
    * 
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -5133,6 +5848,7 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteD
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; + * * @return Whether the travelDurationLimit field is set. */ @java.lang.Override @@ -5140,6 +5856,8 @@ public boolean hasTravelDurationLimit() { return travelDurationLimit_ != null; } /** + * + * *
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -5147,13 +5865,18 @@ public boolean hasTravelDurationLimit() {
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; + * * @return The travelDurationLimit. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationLimit() { - return travelDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : travelDurationLimit_; + return travelDurationLimit_ == null + ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() + : travelDurationLimit_; } /** + * + * *
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -5163,13 +5886,18 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationL
    * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
    */
   @java.lang.Override
-  public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravelDurationLimitOrBuilder() {
-    return travelDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : travelDurationLimit_;
+  public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder
+      getTravelDurationLimitOrBuilder() {
+    return travelDurationLimit_ == null
+        ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()
+        : travelDurationLimit_;
   }
 
   public static final int ROUTE_DISTANCE_LIMIT_FIELD_NUMBER = 23;
   private com.google.cloud.optimization.v1.DistanceLimit routeDistanceLimit_;
   /**
+   *
+   *
    * 
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -5177,6 +5905,7 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravel
    * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; + * * @return Whether the routeDistanceLimit field is set. */ @java.lang.Override @@ -5184,6 +5913,8 @@ public boolean hasRouteDistanceLimit() { return routeDistanceLimit_ != null; } /** + * + * *
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -5191,13 +5922,18 @@ public boolean hasRouteDistanceLimit() {
    * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; + * * @return The routeDistanceLimit. */ @java.lang.Override public com.google.cloud.optimization.v1.DistanceLimit getRouteDistanceLimit() { - return routeDistanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : routeDistanceLimit_; + return routeDistanceLimit_ == null + ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() + : routeDistanceLimit_; } /** + * + * *
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -5208,36 +5944,45 @@ public com.google.cloud.optimization.v1.DistanceLimit getRouteDistanceLimit() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceLimitOrBuilder() {
-    return routeDistanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : routeDistanceLimit_;
+    return routeDistanceLimit_ == null
+        ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()
+        : routeDistanceLimit_;
   }
 
   public static final int EXTRA_VISIT_DURATION_FOR_VISIT_TYPE_FIELD_NUMBER = 24;
+
   private static final class ExtraVisitDurationForVisitTypeDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.protobuf.Duration> defaultEntry =
+    static final com.google.protobuf.MapEntry
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.protobuf.Duration.getDefaultInstance());
+                .newDefaultInstance(
+                    com.google.cloud.optimization.v1.FleetRoutingProto
+                        .internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor,
+                    com.google.protobuf.WireFormat.FieldType.STRING,
+                    "",
+                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                    com.google.protobuf.Duration.getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, com.google.protobuf.Duration> extraVisitDurationForVisitType_;
   private com.google.protobuf.MapField
-  internalGetExtraVisitDurationForVisitType() {
+      extraVisitDurationForVisitType_;
+
+  private com.google.protobuf.MapField
+      internalGetExtraVisitDurationForVisitType() {
     if (extraVisitDurationForVisitType_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry);
     }
     return extraVisitDurationForVisitType_;
   }
+
   public int getExtraVisitDurationForVisitTypeCount() {
     return internalGetExtraVisitDurationForVisitType().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -5250,23 +5995,26 @@ public int getExtraVisitDurationForVisitTypeCount() {
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ @java.lang.Override - public boolean containsExtraVisitDurationForVisitType( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsExtraVisitDurationForVisitType(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetExtraVisitDurationForVisitType().getMap().containsKey(key); } - /** - * Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. - */ + /** Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getExtraVisitDurationForVisitType() { + public java.util.Map + getExtraVisitDurationForVisitType() { return getExtraVisitDurationForVisitTypeMap(); } /** + * + * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -5279,13 +6027,17 @@ public java.util.Map getExtraVis
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ @java.lang.Override - public java.util.Map getExtraVisitDurationForVisitTypeMap() { + public java.util.Map + getExtraVisitDurationForVisitTypeMap() { return internalGetExtraVisitDurationForVisitType().getMap(); } /** + * + * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -5298,20 +6050,24 @@ public java.util.Map getExtraVis
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( + public /* nullable */ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.Duration defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.Duration defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetExtraVisitDurationForVisitType().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -5324,12 +6080,15 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ @java.lang.Override public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetExtraVisitDurationForVisitType().getMap(); if (!map.containsKey(key)) { @@ -5341,12 +6100,15 @@ public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( public static final int BREAK_RULE_FIELD_NUMBER = 25; private com.google.cloud.optimization.v1.BreakRule breakRule_; /** + * + * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
    * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; + * * @return Whether the breakRule field is set. */ @java.lang.Override @@ -5354,19 +6116,26 @@ public boolean hasBreakRule() { return breakRule_ != null; } /** + * + * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
    * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; + * * @return The breakRule. */ @java.lang.Override public com.google.cloud.optimization.v1.BreakRule getBreakRule() { - return breakRule_ == null ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() : breakRule_; + return breakRule_ == null + ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() + : breakRule_; } /** + * + * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
@@ -5376,13 +6145,18 @@ public com.google.cloud.optimization.v1.BreakRule getBreakRule() {
    */
   @java.lang.Override
   public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder() {
-    return breakRule_ == null ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() : breakRule_;
+    return breakRule_ == null
+        ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance()
+        : breakRule_;
   }
 
   public static final int LABEL_FIELD_NUMBER = 27;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object label_ = "";
   /**
+   *
+   *
    * 
    * Specifies a label for this vehicle. This label is reported in the response
    * as the `vehicle_label` of the corresponding
@@ -5390,6 +6164,7 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
    * 
* * string label = 27; + * * @return The label. */ @java.lang.Override @@ -5398,14 +6173,15 @@ public java.lang.String getLabel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** + * + * *
    * Specifies a label for this vehicle. This label is reported in the response
    * as the `vehicle_label` of the corresponding
@@ -5413,16 +6189,15 @@ public java.lang.String getLabel() {
    * 
* * string label = 27; + * * @return The bytes for label. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -5433,6 +6208,8 @@ public java.lang.String getLabel() { public static final int IGNORE_FIELD_NUMBER = 28; private boolean ignore_ = false; /** + * + * *
    * If true, `used_if_route_is_empty` must be false, and this vehicle will
    * remain unused.
@@ -5450,6 +6227,7 @@ public java.lang.String getLabel() {
    * 
* * bool ignore = 28; + * * @return The ignore. */ @java.lang.Override @@ -5458,9 +6236,12 @@ public boolean getIgnore() { } public static final int BREAK_RULE_INDICES_FIELD_NUMBER = 29; + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList breakRuleIndices_; /** + * + * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -5471,16 +6252,19 @@ public boolean getIgnore() {
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return A list containing the breakRuleIndices. */ @java.lang.Override - @java.lang.Deprecated public java.util.List - getBreakRuleIndicesList() { + @java.lang.Deprecated + public java.util.List getBreakRuleIndicesList() { return breakRuleIndices_; } /** + * + * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -5491,14 +6275,18 @@ public boolean getIgnore() {
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return The count of breakRuleIndices. */ - @java.lang.Deprecated public int getBreakRuleIndicesCount() { + @java.lang.Deprecated + public int getBreakRuleIndicesCount() { return breakRuleIndices_.size(); } /** + * + * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -5509,230 +6297,319 @@ public boolean getIgnore() {
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param index The index of the element to return. * @return The breakRuleIndices at the given index. */ - @java.lang.Deprecated public int getBreakRuleIndices(int index) { + @java.lang.Deprecated + public int getBreakRuleIndices(int index) { return breakRuleIndices_.getInt(index); } + private int breakRuleIndicesMemoizedSerializedSize = -1; public static final int CAPACITIES_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private java.util.List capacities_; /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getCapacitiesList() { + @java.lang.Deprecated + public java.util.List getCapacitiesList() { return capacities_; } /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List getCapacitiesOrBuilderList() { return capacities_; } /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getCapacitiesCount() { + @java.lang.Deprecated + public int getCapacitiesCount() { return capacities_.size(); } /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index) { return capacities_.get(index); } /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( int index) { return capacities_.get(index); } public static final int START_LOAD_INTERVALS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") - private java.util.List startLoadIntervals_; + private java.util.List + startLoadIntervals_; /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getStartLoadIntervalsList() { + @java.lang.Deprecated + public java.util.List + getStartLoadIntervalsList() { return startLoadIntervals_; } /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List< + ? extends com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> getStartLoadIntervalsOrBuilderList() { return startLoadIntervals_; } /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getStartLoadIntervalsCount() { + @java.lang.Deprecated + public int getStartLoadIntervalsCount() { return startLoadIntervals_.size(); } /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals( + int index) { return startLoadIntervals_.get(index); } /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder + getStartLoadIntervalsOrBuilder(int index) { return startLoadIntervals_.get(index); } public static final int END_LOAD_INTERVALS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") - private java.util.List endLoadIntervals_; + private java.util.List + endLoadIntervals_; /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List getEndLoadIntervalsList() { + @java.lang.Deprecated + public java.util.List + getEndLoadIntervalsList() { return endLoadIntervals_; } /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public java.util.List + @java.lang.Deprecated + public java.util.List< + ? extends com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> getEndLoadIntervalsOrBuilderList() { return endLoadIntervals_; } /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public int getEndLoadIntervalsCount() { + @java.lang.Deprecated + public int getEndLoadIntervalsCount() { return endLoadIntervals_.size(); } /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index) { return endLoadIntervals_.get(index); } /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder + getEndLoadIntervalsOrBuilder(int index) { return endLoadIntervals_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5744,10 +6621,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (travelMode_ != com.google.cloud.optimization.v1.Vehicle.TravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + if (travelMode_ + != com.google.cloud.optimization.v1.Vehicle.TravelMode.TRAVEL_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, travelMode_); } if (routeModifiers_ != null) { @@ -5780,7 +6658,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(11, travelDurationMultiple_); } - if (unloadingPolicy_ != com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNLOADING_POLICY_UNSPECIFIED.getNumber()) { + if (unloadingPolicy_ + != com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNLOADING_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(12, unloadingPolicy_); } for (int i = 0; i < capacities_.size(); i++) { @@ -5816,8 +6696,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (routeDistanceLimit_ != null) { output.writeMessage(23, getRouteDistanceLimit()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetExtraVisitDurationForVisitType(), ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry, @@ -5838,12 +6717,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < breakRuleIndices_.size(); i++) { output.writeInt32NoTag(breakRuleIndices_.getInt(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLoadLimits(), - LoadLimitsDefaultEntryHolder.defaultEntry, - 30); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLoadLimits(), LoadLimitsDefaultEntryHolder.defaultEntry, 30); getUnknownFields().writeTo(output); } @@ -5853,29 +6728,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (travelMode_ != com.google.cloud.optimization.v1.Vehicle.TravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, travelMode_); + if (travelMode_ + != com.google.cloud.optimization.v1.Vehicle.TravelMode.TRAVEL_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, travelMode_); } if (routeModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRouteModifiers()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRouteModifiers()); } if (startLocation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartLocation()); } if (startWaypoint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartWaypoint()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartWaypoint()); } if (endLocation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEndLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndLocation()); } if (endWaypoint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getEndWaypoint()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndWaypoint()); } { int dataSize = 0; @@ -5894,109 +6765,102 @@ public int getSerializedSize() { size += 1 * getEndTagsList().size(); } for (int i = 0; i < startTimeWindows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, startTimeWindows_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, startTimeWindows_.get(i)); } for (int i = 0; i < endTimeWindows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, endTimeWindows_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, endTimeWindows_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(11, travelDurationMultiple_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, travelDurationMultiple_); } - if (unloadingPolicy_ != com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNLOADING_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, unloadingPolicy_); + if (unloadingPolicy_ + != com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNLOADING_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, unloadingPolicy_); } for (int i = 0; i < capacities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, capacities_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, capacities_.get(i)); } for (int i = 0; i < startLoadIntervals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, startLoadIntervals_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, startLoadIntervals_.get(i)); } for (int i = 0; i < endLoadIntervals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, endLoadIntervals_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, endLoadIntervals_.get(i)); } if (java.lang.Double.doubleToRawLongBits(costPerHour_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(16, costPerHour_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(16, costPerHour_); } if (java.lang.Double.doubleToRawLongBits(costPerTraveledHour_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(17, costPerTraveledHour_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(17, costPerTraveledHour_); } if (java.lang.Double.doubleToRawLongBits(costPerKilometer_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(18, costPerKilometer_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(18, costPerKilometer_); } if (java.lang.Double.doubleToRawLongBits(fixedCost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(19, fixedCost_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(19, fixedCost_); } if (usedIfRouteIsEmpty_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(20, usedIfRouteIsEmpty_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, usedIfRouteIsEmpty_); } if (routeDurationLimit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getRouteDurationLimit()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRouteDurationLimit()); } if (travelDurationLimit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getTravelDurationLimit()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(22, getTravelDurationLimit()); } if (routeDistanceLimit_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getRouteDistanceLimit()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getRouteDistanceLimit()); } - for (java.util.Map.Entry entry - : internalGetExtraVisitDurationForVisitType().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetExtraVisitDurationForVisitType().getMap().entrySet()) { com.google.protobuf.MapEntry - extraVisitDurationForVisitType__ = ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, extraVisitDurationForVisitType__); + extraVisitDurationForVisitType__ = + ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, extraVisitDurationForVisitType__); } if (breakRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getBreakRule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getBreakRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, label_); } if (ignore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(28, ignore_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, ignore_); } { int dataSize = 0; for (int i = 0; i < breakRuleIndices_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(breakRuleIndices_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + breakRuleIndices_.getInt(i)); } size += dataSize; if (!getBreakRuleIndicesList().isEmpty()) { size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } breakRuleIndicesMemoizedSerializedSize = dataSize; } - for (java.util.Map.Entry entry - : internalGetLoadLimits().getMap().entrySet()) { - com.google.protobuf.MapEntry - loadLimits__ = LoadLimitsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, loadLimits__); + for (java.util.Map.Entry + entry : internalGetLoadLimits().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> + loadLimits__ = + LoadLimitsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, loadLimits__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6006,7 +6870,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Vehicle)) { return super.equals(obj); @@ -6016,94 +6880,68 @@ public boolean equals(final java.lang.Object obj) { if (travelMode_ != other.travelMode_) return false; if (hasRouteModifiers() != other.hasRouteModifiers()) return false; if (hasRouteModifiers()) { - if (!getRouteModifiers() - .equals(other.getRouteModifiers())) return false; + if (!getRouteModifiers().equals(other.getRouteModifiers())) return false; } if (hasStartLocation() != other.hasStartLocation()) return false; if (hasStartLocation()) { - if (!getStartLocation() - .equals(other.getStartLocation())) return false; + if (!getStartLocation().equals(other.getStartLocation())) return false; } if (hasStartWaypoint() != other.hasStartWaypoint()) return false; if (hasStartWaypoint()) { - if (!getStartWaypoint() - .equals(other.getStartWaypoint())) return false; + if (!getStartWaypoint().equals(other.getStartWaypoint())) return false; } if (hasEndLocation() != other.hasEndLocation()) return false; if (hasEndLocation()) { - if (!getEndLocation() - .equals(other.getEndLocation())) return false; + if (!getEndLocation().equals(other.getEndLocation())) return false; } if (hasEndWaypoint() != other.hasEndWaypoint()) return false; if (hasEndWaypoint()) { - if (!getEndWaypoint() - .equals(other.getEndWaypoint())) return false; - } - if (!getStartTagsList() - .equals(other.getStartTagsList())) return false; - if (!getEndTagsList() - .equals(other.getEndTagsList())) return false; - if (!getStartTimeWindowsList() - .equals(other.getStartTimeWindowsList())) return false; - if (!getEndTimeWindowsList() - .equals(other.getEndTimeWindowsList())) return false; + if (!getEndWaypoint().equals(other.getEndWaypoint())) return false; + } + if (!getStartTagsList().equals(other.getStartTagsList())) return false; + if (!getEndTagsList().equals(other.getEndTagsList())) return false; + if (!getStartTimeWindowsList().equals(other.getStartTimeWindowsList())) return false; + if (!getEndTimeWindowsList().equals(other.getEndTimeWindowsList())) return false; if (hasTravelDurationMultiple() != other.hasTravelDurationMultiple()) return false; if (hasTravelDurationMultiple()) { if (java.lang.Double.doubleToLongBits(getTravelDurationMultiple()) - != java.lang.Double.doubleToLongBits( - other.getTravelDurationMultiple())) return false; + != java.lang.Double.doubleToLongBits(other.getTravelDurationMultiple())) return false; } if (unloadingPolicy_ != other.unloadingPolicy_) return false; - if (!internalGetLoadLimits().equals( - other.internalGetLoadLimits())) return false; + if (!internalGetLoadLimits().equals(other.internalGetLoadLimits())) return false; if (java.lang.Double.doubleToLongBits(getCostPerHour()) - != java.lang.Double.doubleToLongBits( - other.getCostPerHour())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerHour())) return false; if (java.lang.Double.doubleToLongBits(getCostPerTraveledHour()) - != java.lang.Double.doubleToLongBits( - other.getCostPerTraveledHour())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerTraveledHour())) return false; if (java.lang.Double.doubleToLongBits(getCostPerKilometer()) - != java.lang.Double.doubleToLongBits( - other.getCostPerKilometer())) return false; + != java.lang.Double.doubleToLongBits(other.getCostPerKilometer())) return false; if (java.lang.Double.doubleToLongBits(getFixedCost()) - != java.lang.Double.doubleToLongBits( - other.getFixedCost())) return false; - if (getUsedIfRouteIsEmpty() - != other.getUsedIfRouteIsEmpty()) return false; + != java.lang.Double.doubleToLongBits(other.getFixedCost())) return false; + if (getUsedIfRouteIsEmpty() != other.getUsedIfRouteIsEmpty()) return false; if (hasRouteDurationLimit() != other.hasRouteDurationLimit()) return false; if (hasRouteDurationLimit()) { - if (!getRouteDurationLimit() - .equals(other.getRouteDurationLimit())) return false; + if (!getRouteDurationLimit().equals(other.getRouteDurationLimit())) return false; } if (hasTravelDurationLimit() != other.hasTravelDurationLimit()) return false; if (hasTravelDurationLimit()) { - if (!getTravelDurationLimit() - .equals(other.getTravelDurationLimit())) return false; + if (!getTravelDurationLimit().equals(other.getTravelDurationLimit())) return false; } if (hasRouteDistanceLimit() != other.hasRouteDistanceLimit()) return false; if (hasRouteDistanceLimit()) { - if (!getRouteDistanceLimit() - .equals(other.getRouteDistanceLimit())) return false; + if (!getRouteDistanceLimit().equals(other.getRouteDistanceLimit())) return false; } - if (!internalGetExtraVisitDurationForVisitType().equals( - other.internalGetExtraVisitDurationForVisitType())) return false; + if (!internalGetExtraVisitDurationForVisitType() + .equals(other.internalGetExtraVisitDurationForVisitType())) return false; if (hasBreakRule() != other.hasBreakRule()) return false; if (hasBreakRule()) { - if (!getBreakRule() - .equals(other.getBreakRule())) return false; - } - if (!getLabel() - .equals(other.getLabel())) return false; - if (getIgnore() - != other.getIgnore()) return false; - if (!getBreakRuleIndicesList() - .equals(other.getBreakRuleIndicesList())) return false; - if (!getCapacitiesList() - .equals(other.getCapacitiesList())) return false; - if (!getStartLoadIntervalsList() - .equals(other.getStartLoadIntervalsList())) return false; - if (!getEndLoadIntervalsList() - .equals(other.getEndLoadIntervalsList())) return false; + if (!getBreakRule().equals(other.getBreakRule())) return false; + } + if (!getLabel().equals(other.getLabel())) return false; + if (getIgnore() != other.getIgnore()) return false; + if (!getBreakRuleIndicesList().equals(other.getBreakRuleIndicesList())) return false; + if (!getCapacitiesList().equals(other.getCapacitiesList())) return false; + if (!getStartLoadIntervalsList().equals(other.getStartLoadIntervalsList())) return false; + if (!getEndLoadIntervalsList().equals(other.getEndLoadIntervalsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6155,8 +6993,10 @@ public int hashCode() { } if (hasTravelDurationMultiple()) { hash = (37 * hash) + TRAVEL_DURATION_MULTIPLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTravelDurationMultiple())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTravelDurationMultiple())); } hash = (37 * hash) + UNLOADING_POLICY_FIELD_NUMBER; hash = (53 * hash) + unloadingPolicy_; @@ -6165,20 +7005,27 @@ public int hashCode() { hash = (53 * hash) + internalGetLoadLimits().hashCode(); } hash = (37 * hash) + COST_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerHour())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerHour())); hash = (37 * hash) + COST_PER_TRAVELED_HOUR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerTraveledHour())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerTraveledHour())); hash = (37 * hash) + COST_PER_KILOMETER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCostPerKilometer())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCostPerKilometer())); hash = (37 * hash) + FIXED_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFixedCost())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFixedCost())); hash = (37 * hash) + USED_IF_ROUTE_IS_EMPTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUsedIfRouteIsEmpty()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsedIfRouteIsEmpty()); if (hasRouteDurationLimit()) { hash = (37 * hash) + ROUTE_DURATION_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getRouteDurationLimit().hashCode(); @@ -6202,8 +7049,7 @@ public int hashCode() { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + IGNORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIgnore()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnore()); if (getBreakRuleIndicesCount() > 0) { hash = (37 * hash) + BREAK_RULE_INDICES_FIELD_NUMBER; hash = (53 * hash) + getBreakRuleIndicesList().hashCode(); @@ -6225,99 +7071,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.Vehicle parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Vehicle parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Vehicle parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Vehicle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Vehicle parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Vehicle parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.Vehicle prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Models a vehicle in a shipment problem. Solving a shipment problem will
    * build a route starting from `start_location` and ending at `end_location`
@@ -6326,59 +7177,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.Vehicle}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Vehicle)
       com.google.cloud.optimization.v1.VehicleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 30:
           return internalGetLoadLimits();
         case 24:
           return internalGetExtraVisitDurationForVisitType();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 30:
           return internalGetMutableLoadLimits();
         case 24:
           return internalGetMutableExtraVisitDurationForVisitType();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Vehicle.class, com.google.cloud.optimization.v1.Vehicle.Builder.class);
+              com.google.cloud.optimization.v1.Vehicle.class,
+              com.google.cloud.optimization.v1.Vehicle.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.Vehicle.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -6409,10 +7257,8 @@ public Builder clear() {
         endWaypointBuilder_.dispose();
         endWaypointBuilder_ = null;
       }
-      startTags_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      endTags_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      startTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      endTags_ = com.google.protobuf.LazyStringArrayList.emptyList();
       if (startTimeWindowsBuilder_ == null) {
         startTimeWindows_ = java.util.Collections.emptyList();
       } else {
@@ -6484,9 +7330,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Vehicle_descriptor;
     }
 
     @java.lang.Override
@@ -6505,9 +7351,12 @@ public com.google.cloud.optimization.v1.Vehicle build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.Vehicle buildPartial() {
-      com.google.cloud.optimization.v1.Vehicle result = new com.google.cloud.optimization.v1.Vehicle(this);
+      com.google.cloud.optimization.v1.Vehicle result =
+          new com.google.cloud.optimization.v1.Vehicle(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -6571,29 +7420,24 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle result) {
         result.travelMode_ = travelMode_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.routeModifiers_ = routeModifiersBuilder_ == null
-            ? routeModifiers_
-            : routeModifiersBuilder_.build();
+        result.routeModifiers_ =
+            routeModifiersBuilder_ == null ? routeModifiers_ : routeModifiersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.startLocation_ = startLocationBuilder_ == null
-            ? startLocation_
-            : startLocationBuilder_.build();
+        result.startLocation_ =
+            startLocationBuilder_ == null ? startLocation_ : startLocationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.startWaypoint_ = startWaypointBuilder_ == null
-            ? startWaypoint_
-            : startWaypointBuilder_.build();
+        result.startWaypoint_ =
+            startWaypointBuilder_ == null ? startWaypoint_ : startWaypointBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endLocation_ = endLocationBuilder_ == null
-            ? endLocation_
-            : endLocationBuilder_.build();
+        result.endLocation_ =
+            endLocationBuilder_ == null ? endLocation_ : endLocationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.endWaypoint_ = endWaypointBuilder_ == null
-            ? endWaypoint_
-            : endWaypointBuilder_.build();
+        result.endWaypoint_ =
+            endWaypointBuilder_ == null ? endWaypoint_ : endWaypointBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         startTags_.makeImmutable();
@@ -6631,28 +7475,29 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle result) {
         result.usedIfRouteIsEmpty_ = usedIfRouteIsEmpty_;
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
-        result.routeDurationLimit_ = routeDurationLimitBuilder_ == null
-            ? routeDurationLimit_
-            : routeDurationLimitBuilder_.build();
+        result.routeDurationLimit_ =
+            routeDurationLimitBuilder_ == null
+                ? routeDurationLimit_
+                : routeDurationLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00080000) != 0)) {
-        result.travelDurationLimit_ = travelDurationLimitBuilder_ == null
-            ? travelDurationLimit_
-            : travelDurationLimitBuilder_.build();
+        result.travelDurationLimit_ =
+            travelDurationLimitBuilder_ == null
+                ? travelDurationLimit_
+                : travelDurationLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00100000) != 0)) {
-        result.routeDistanceLimit_ = routeDistanceLimitBuilder_ == null
-            ? routeDistanceLimit_
-            : routeDistanceLimitBuilder_.build();
+        result.routeDistanceLimit_ =
+            routeDistanceLimitBuilder_ == null
+                ? routeDistanceLimit_
+                : routeDistanceLimitBuilder_.build();
       }
       if (((from_bitField0_ & 0x00200000) != 0)) {
         result.extraVisitDurationForVisitType_ = internalGetExtraVisitDurationForVisitType();
         result.extraVisitDurationForVisitType_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00400000) != 0)) {
-        result.breakRule_ = breakRuleBuilder_ == null
-            ? breakRule_
-            : breakRuleBuilder_.build();
+        result.breakRule_ = breakRuleBuilder_ == null ? breakRule_ : breakRuleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00800000) != 0)) {
         result.label_ = label_;
@@ -6667,38 +7512,39 @@ private void buildPartial0(com.google.cloud.optimization.v1.Vehicle result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.Vehicle) {
-        return mergeFrom((com.google.cloud.optimization.v1.Vehicle)other);
+        return mergeFrom((com.google.cloud.optimization.v1.Vehicle) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -6763,9 +7609,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             startTimeWindowsBuilder_ = null;
             startTimeWindows_ = other.startTimeWindows_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            startTimeWindowsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getStartTimeWindowsFieldBuilder() : null;
+            startTimeWindowsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getStartTimeWindowsFieldBuilder()
+                    : null;
           } else {
             startTimeWindowsBuilder_.addAllMessages(other.startTimeWindows_);
           }
@@ -6789,9 +7636,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             endTimeWindowsBuilder_ = null;
             endTimeWindows_ = other.endTimeWindows_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            endTimeWindowsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEndTimeWindowsFieldBuilder() : null;
+            endTimeWindowsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEndTimeWindowsFieldBuilder()
+                    : null;
           } else {
             endTimeWindowsBuilder_.addAllMessages(other.endTimeWindows_);
           }
@@ -6803,8 +7651,7 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
       if (other.unloadingPolicy_ != 0) {
         setUnloadingPolicyValue(other.getUnloadingPolicyValue());
       }
-      internalGetMutableLoadLimits().mergeFrom(
-          other.internalGetLoadLimits());
+      internalGetMutableLoadLimits().mergeFrom(other.internalGetLoadLimits());
       bitField0_ |= 0x00001000;
       if (other.getCostPerHour() != 0D) {
         setCostPerHour(other.getCostPerHour());
@@ -6830,8 +7677,8 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
       if (other.hasRouteDistanceLimit()) {
         mergeRouteDistanceLimit(other.getRouteDistanceLimit());
       }
-      internalGetMutableExtraVisitDurationForVisitType().mergeFrom(
-          other.internalGetExtraVisitDurationForVisitType());
+      internalGetMutableExtraVisitDurationForVisitType()
+          .mergeFrom(other.internalGetExtraVisitDurationForVisitType());
       bitField0_ |= 0x00200000;
       if (other.hasBreakRule()) {
         mergeBreakRule(other.getBreakRule());
@@ -6872,9 +7719,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             capacitiesBuilder_ = null;
             capacities_ = other.capacities_;
             bitField0_ = (bitField0_ & ~0x04000000);
-            capacitiesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCapacitiesFieldBuilder() : null;
+            capacitiesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCapacitiesFieldBuilder()
+                    : null;
           } else {
             capacitiesBuilder_.addAllMessages(other.capacities_);
           }
@@ -6898,9 +7746,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             startLoadIntervalsBuilder_ = null;
             startLoadIntervals_ = other.startLoadIntervals_;
             bitField0_ = (bitField0_ & ~0x08000000);
-            startLoadIntervalsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getStartLoadIntervalsFieldBuilder() : null;
+            startLoadIntervalsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getStartLoadIntervalsFieldBuilder()
+                    : null;
           } else {
             startLoadIntervalsBuilder_.addAllMessages(other.startLoadIntervals_);
           }
@@ -6924,9 +7773,10 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Vehicle other) {
             endLoadIntervalsBuilder_ = null;
             endLoadIntervals_ = other.endLoadIntervals_;
             bitField0_ = (bitField0_ & ~0x10000000);
-            endLoadIntervalsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEndLoadIntervalsFieldBuilder() : null;
+            endLoadIntervalsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEndLoadIntervalsFieldBuilder()
+                    : null;
           } else {
             endLoadIntervalsBuilder_.addAllMessages(other.endLoadIntervals_);
           }
@@ -6958,236 +7808,260 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              travelMode_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getRouteModifiersFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getStartLocationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getStartWaypointFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getEndLocationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getEndWaypointFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureStartTagsIsMutable();
-              startTags_.add(s);
-              break;
-            } // case 58
-            case 66: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureEndTagsIsMutable();
-              endTags_.add(s);
-              break;
-            } // case 66
-            case 74: {
-              com.google.cloud.optimization.v1.TimeWindow m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.TimeWindow.parser(),
-                      extensionRegistry);
-              if (startTimeWindowsBuilder_ == null) {
-                ensureStartTimeWindowsIsMutable();
-                startTimeWindows_.add(m);
-              } else {
-                startTimeWindowsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 74
-            case 82: {
-              com.google.cloud.optimization.v1.TimeWindow m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.TimeWindow.parser(),
-                      extensionRegistry);
-              if (endTimeWindowsBuilder_ == null) {
-                ensureEndTimeWindowsIsMutable();
-                endTimeWindows_.add(m);
-              } else {
-                endTimeWindowsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 82
-            case 89: {
-              travelDurationMultiple_ = input.readDouble();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 89
-            case 96: {
-              unloadingPolicy_ = input.readEnum();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 96
-            case 106: {
-              com.google.cloud.optimization.v1.CapacityQuantity m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.CapacityQuantity.parser(),
-                      extensionRegistry);
-              if (capacitiesBuilder_ == null) {
-                ensureCapacitiesIsMutable();
-                capacities_.add(m);
-              } else {
-                capacitiesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 106
-            case 114: {
-              com.google.cloud.optimization.v1.CapacityQuantityInterval m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.CapacityQuantityInterval.parser(),
-                      extensionRegistry);
-              if (startLoadIntervalsBuilder_ == null) {
-                ensureStartLoadIntervalsIsMutable();
-                startLoadIntervals_.add(m);
-              } else {
-                startLoadIntervalsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 122: {
-              com.google.cloud.optimization.v1.CapacityQuantityInterval m =
-                  input.readMessage(
-                      com.google.cloud.optimization.v1.CapacityQuantityInterval.parser(),
-                      extensionRegistry);
-              if (endLoadIntervalsBuilder_ == null) {
-                ensureEndLoadIntervalsIsMutable();
-                endLoadIntervals_.add(m);
-              } else {
-                endLoadIntervalsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 122
-            case 129: {
-              costPerHour_ = input.readDouble();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 129
-            case 137: {
-              costPerTraveledHour_ = input.readDouble();
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 137
-            case 145: {
-              costPerKilometer_ = input.readDouble();
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 145
-            case 153: {
-              fixedCost_ = input.readDouble();
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 153
-            case 160: {
-              usedIfRouteIsEmpty_ = input.readBool();
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 160
-            case 170: {
-              input.readMessage(
-                  getRouteDurationLimitFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00040000;
-              break;
-            } // case 170
-            case 178: {
-              input.readMessage(
-                  getTravelDurationLimitFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00080000;
-              break;
-            } // case 178
-            case 186: {
-              input.readMessage(
-                  getRouteDistanceLimitFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00100000;
-              break;
-            } // case 186
-            case 194: {
-              com.google.protobuf.MapEntry
-              extraVisitDurationForVisitType__ = input.readMessage(
-                  ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableExtraVisitDurationForVisitType().getMutableMap().put(
-                  extraVisitDurationForVisitType__.getKey(), extraVisitDurationForVisitType__.getValue());
-              bitField0_ |= 0x00200000;
-              break;
-            } // case 194
-            case 202: {
-              input.readMessage(
-                  getBreakRuleFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00400000;
-              break;
-            } // case 202
-            case 218: {
-              label_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00800000;
-              break;
-            } // case 218
-            case 224: {
-              ignore_ = input.readBool();
-              bitField0_ |= 0x01000000;
-              break;
-            } // case 224
-            case 232: {
-              int v = input.readInt32();
-              ensureBreakRuleIndicesIsMutable();
-              breakRuleIndices_.addInt(v);
-              break;
-            } // case 232
-            case 234: {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              ensureBreakRuleIndicesIsMutable();
-              while (input.getBytesUntilLimit() > 0) {
-                breakRuleIndices_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
-            } // case 234
-            case 242: {
-              com.google.protobuf.MapEntry
-              loadLimits__ = input.readMessage(
-                  LoadLimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLoadLimits().getMutableMap().put(
-                  loadLimits__.getKey(), loadLimits__.getValue());
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 242
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                travelMode_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getRouteModifiersFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getStartLocationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getStartWaypointFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getEndLocationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getEndWaypointFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureStartTagsIsMutable();
+                startTags_.add(s);
+                break;
+              } // case 58
+            case 66:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureEndTagsIsMutable();
+                endTags_.add(s);
+                break;
+              } // case 66
+            case 74:
+              {
+                com.google.cloud.optimization.v1.TimeWindow m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.TimeWindow.parser(), extensionRegistry);
+                if (startTimeWindowsBuilder_ == null) {
+                  ensureStartTimeWindowsIsMutable();
+                  startTimeWindows_.add(m);
+                } else {
+                  startTimeWindowsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 74
+            case 82:
+              {
+                com.google.cloud.optimization.v1.TimeWindow m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.TimeWindow.parser(), extensionRegistry);
+                if (endTimeWindowsBuilder_ == null) {
+                  ensureEndTimeWindowsIsMutable();
+                  endTimeWindows_.add(m);
+                } else {
+                  endTimeWindowsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 82
+            case 89:
+              {
+                travelDurationMultiple_ = input.readDouble();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 89
+            case 96:
+              {
+                unloadingPolicy_ = input.readEnum();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 96
+            case 106:
+              {
+                com.google.cloud.optimization.v1.CapacityQuantity m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantity.parser(),
+                        extensionRegistry);
+                if (capacitiesBuilder_ == null) {
+                  ensureCapacitiesIsMutable();
+                  capacities_.add(m);
+                } else {
+                  capacitiesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 106
+            case 114:
+              {
+                com.google.cloud.optimization.v1.CapacityQuantityInterval m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantityInterval.parser(),
+                        extensionRegistry);
+                if (startLoadIntervalsBuilder_ == null) {
+                  ensureStartLoadIntervalsIsMutable();
+                  startLoadIntervals_.add(m);
+                } else {
+                  startLoadIntervalsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 122:
+              {
+                com.google.cloud.optimization.v1.CapacityQuantityInterval m =
+                    input.readMessage(
+                        com.google.cloud.optimization.v1.CapacityQuantityInterval.parser(),
+                        extensionRegistry);
+                if (endLoadIntervalsBuilder_ == null) {
+                  ensureEndLoadIntervalsIsMutable();
+                  endLoadIntervals_.add(m);
+                } else {
+                  endLoadIntervalsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 122
+            case 129:
+              {
+                costPerHour_ = input.readDouble();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 129
+            case 137:
+              {
+                costPerTraveledHour_ = input.readDouble();
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 137
+            case 145:
+              {
+                costPerKilometer_ = input.readDouble();
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 145
+            case 153:
+              {
+                fixedCost_ = input.readDouble();
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 153
+            case 160:
+              {
+                usedIfRouteIsEmpty_ = input.readBool();
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 160
+            case 170:
+              {
+                input.readMessage(
+                    getRouteDurationLimitFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00040000;
+                break;
+              } // case 170
+            case 178:
+              {
+                input.readMessage(
+                    getTravelDurationLimitFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00080000;
+                break;
+              } // case 178
+            case 186:
+              {
+                input.readMessage(
+                    getRouteDistanceLimitFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00100000;
+                break;
+              } // case 186
+            case 194:
+              {
+                com.google.protobuf.MapEntry
+                    extraVisitDurationForVisitType__ =
+                        input.readMessage(
+                            ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry
+                                .getParserForType(),
+                            extensionRegistry);
+                internalGetMutableExtraVisitDurationForVisitType()
+                    .getMutableMap()
+                    .put(
+                        extraVisitDurationForVisitType__.getKey(),
+                        extraVisitDurationForVisitType__.getValue());
+                bitField0_ |= 0x00200000;
+                break;
+              } // case 194
+            case 202:
+              {
+                input.readMessage(getBreakRuleFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00400000;
+                break;
+              } // case 202
+            case 218:
+              {
+                label_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00800000;
+                break;
+              } // case 218
+            case 224:
+              {
+                ignore_ = input.readBool();
+                bitField0_ |= 0x01000000;
+                break;
+              } // case 224
+            case 232:
+              {
+                int v = input.readInt32();
+                ensureBreakRuleIndicesIsMutable();
+                breakRuleIndices_.addInt(v);
+                break;
+              } // case 232
+            case 234:
+              {
+                int length = input.readRawVarint32();
+                int limit = input.pushLimit(length);
+                ensureBreakRuleIndicesIsMutable();
+                while (input.getBytesUntilLimit() > 0) {
+                  breakRuleIndices_.addInt(input.readInt32());
+                }
+                input.popLimit(limit);
+                break;
+              } // case 234
+            case 242:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit>
+                    loadLimits__ =
+                        input.readMessage(
+                            LoadLimitsDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableLoadLimits()
+                    .getMutableMap()
+                    .put(loadLimits__.getKey(), loadLimits__.getValue());
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 242
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7197,28 +8071,36 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int travelMode_ = 0;
     /**
+     *
+     *
      * 
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override public int getTravelModeValue() { + @java.lang.Override + public int getTravelModeValue() { return travelMode_; } /** + * + * *
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @param value The enum numeric value on the wire for travelMode to set. * @return This builder for chaining. */ @@ -7229,26 +8111,35 @@ public Builder setTravelModeValue(int value) { return this; } /** + * + * *
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @return The travelMode. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode() { - com.google.cloud.optimization.v1.Vehicle.TravelMode result = com.google.cloud.optimization.v1.Vehicle.TravelMode.forNumber(travelMode_); - return result == null ? com.google.cloud.optimization.v1.Vehicle.TravelMode.UNRECOGNIZED : result; + com.google.cloud.optimization.v1.Vehicle.TravelMode result = + com.google.cloud.optimization.v1.Vehicle.TravelMode.forNumber(travelMode_); + return result == null + ? com.google.cloud.optimization.v1.Vehicle.TravelMode.UNRECOGNIZED + : result; } /** + * + * *
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @param value The travelMode to set. * @return This builder for chaining. */ @@ -7262,12 +8153,15 @@ public Builder setTravelMode(com.google.cloud.optimization.v1.Vehicle.TravelMode return this; } /** + * + * *
      * The travel mode which affects the roads usable by the vehicle and its
      * speed. See also `travel_duration_multiple`.
      * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @return This builder for chaining. */ public Builder clearTravelMode() { @@ -7279,42 +8173,61 @@ public Builder clearTravelMode() { private com.google.cloud.optimization.v1.RouteModifiers routeModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.RouteModifiers, com.google.cloud.optimization.v1.RouteModifiers.Builder, com.google.cloud.optimization.v1.RouteModifiersOrBuilder> routeModifiersBuilder_; + com.google.cloud.optimization.v1.RouteModifiers, + com.google.cloud.optimization.v1.RouteModifiers.Builder, + com.google.cloud.optimization.v1.RouteModifiersOrBuilder> + routeModifiersBuilder_; /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the routeModifiers field is set. */ public boolean hasRouteModifiers() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ public com.google.cloud.optimization.v1.RouteModifiers getRouteModifiers() { if (routeModifiersBuilder_ == null) { - return routeModifiers_ == null ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() + : routeModifiers_; } else { return routeModifiersBuilder_.getMessage(); } } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRouteModifiers(com.google.cloud.optimization.v1.RouteModifiers value) { if (routeModifiersBuilder_ == null) { @@ -7330,12 +8243,16 @@ public Builder setRouteModifiers(com.google.cloud.optimization.v1.RouteModifiers return this; } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRouteModifiers( com.google.cloud.optimization.v1.RouteModifiers.Builder builderForValue) { @@ -7349,18 +8266,23 @@ public Builder setRouteModifiers( return this; } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRouteModifiers(com.google.cloud.optimization.v1.RouteModifiers value) { if (routeModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - routeModifiers_ != null && - routeModifiers_ != com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && routeModifiers_ != null + && routeModifiers_ + != com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance()) { getRouteModifiersBuilder().mergeFrom(value); } else { routeModifiers_ = value; @@ -7373,12 +8295,16 @@ public Builder mergeRouteModifiers(com.google.cloud.optimization.v1.RouteModifie return this; } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRouteModifiers() { bitField0_ = (bitField0_ & ~0x00000002); @@ -7391,12 +8317,16 @@ public Builder clearRouteModifiers() { return this; } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.optimization.v1.RouteModifiers.Builder getRouteModifiersBuilder() { bitField0_ |= 0x00000002; @@ -7404,38 +8334,50 @@ public com.google.cloud.optimization.v1.RouteModifiers.Builder getRouteModifiers return getRouteModifiersFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { if (routeModifiersBuilder_ != null) { return routeModifiersBuilder_.getMessageOrBuilder(); } else { - return routeModifiers_ == null ? - com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.cloud.optimization.v1.RouteModifiers.getDefaultInstance() + : routeModifiers_; } } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated for the given vehicle.
      * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.RouteModifiers, com.google.cloud.optimization.v1.RouteModifiers.Builder, com.google.cloud.optimization.v1.RouteModifiersOrBuilder> + com.google.cloud.optimization.v1.RouteModifiers, + com.google.cloud.optimization.v1.RouteModifiers.Builder, + com.google.cloud.optimization.v1.RouteModifiersOrBuilder> getRouteModifiersFieldBuilder() { if (routeModifiersBuilder_ == null) { - routeModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.RouteModifiers, com.google.cloud.optimization.v1.RouteModifiers.Builder, com.google.cloud.optimization.v1.RouteModifiersOrBuilder>( - getRouteModifiers(), - getParentForChildren(), - isClean()); + routeModifiersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.optimization.v1.RouteModifiers, + com.google.cloud.optimization.v1.RouteModifiers.Builder, + com.google.cloud.optimization.v1.RouteModifiersOrBuilder>( + getRouteModifiers(), getParentForChildren(), isClean()); routeModifiers_ = null; } return routeModifiersBuilder_; @@ -7443,8 +8385,11 @@ public com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifier private com.google.type.LatLng startLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> startLocationBuilder_; + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + startLocationBuilder_; /** + * + * *
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7453,12 +8398,15 @@ public com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifier
      * 
* * .google.type.LatLng start_location = 3; + * * @return Whether the startLocation field is set. */ public boolean hasStartLocation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7467,16 +8415,21 @@ public boolean hasStartLocation() {
      * 
* * .google.type.LatLng start_location = 3; + * * @return The startLocation. */ public com.google.type.LatLng getStartLocation() { if (startLocationBuilder_ == null) { - return startLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : startLocation_; + return startLocation_ == null + ? com.google.type.LatLng.getDefaultInstance() + : startLocation_; } else { return startLocationBuilder_.getMessage(); } } /** + * + * *
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7500,6 +8453,8 @@ public Builder setStartLocation(com.google.type.LatLng value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7509,8 +8464,7 @@ public Builder setStartLocation(com.google.type.LatLng value) {
      *
      * .google.type.LatLng start_location = 3;
      */
-    public Builder setStartLocation(
-        com.google.type.LatLng.Builder builderForValue) {
+    public Builder setStartLocation(com.google.type.LatLng.Builder builderForValue) {
       if (startLocationBuilder_ == null) {
         startLocation_ = builderForValue.build();
       } else {
@@ -7521,6 +8475,8 @@ public Builder setStartLocation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7532,9 +8488,9 @@ public Builder setStartLocation(
      */
     public Builder mergeStartLocation(com.google.type.LatLng value) {
       if (startLocationBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          startLocation_ != null &&
-          startLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && startLocation_ != null
+            && startLocation_ != com.google.type.LatLng.getDefaultInstance()) {
           getStartLocationBuilder().mergeFrom(value);
         } else {
           startLocation_ = value;
@@ -7547,6 +8503,8 @@ public Builder mergeStartLocation(com.google.type.LatLng value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7567,6 +8525,8 @@ public Builder clearStartLocation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7582,6 +8542,8 @@ public com.google.type.LatLng.Builder getStartLocationBuilder() {
       return getStartLocationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7595,11 +8557,14 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
       if (startLocationBuilder_ != null) {
         return startLocationBuilder_.getMessageOrBuilder();
       } else {
-        return startLocation_ == null ?
-            com.google.type.LatLng.getDefaultInstance() : startLocation_;
+        return startLocation_ == null
+            ? com.google.type.LatLng.getDefaultInstance()
+            : startLocation_;
       }
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle starts before picking up any
      * shipments. If not specified, the vehicle starts at its first pickup.
@@ -7610,14 +8575,15 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
      * .google.type.LatLng start_location = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> 
+            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>
         getStartLocationFieldBuilder() {
       if (startLocationBuilder_ == null) {
-        startLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
-                getStartLocation(),
-                getParentForChildren(),
-                isClean());
+        startLocationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.LatLng,
+                com.google.type.LatLng.Builder,
+                com.google.type.LatLngOrBuilder>(
+                getStartLocation(), getParentForChildren(), isClean());
         startLocation_ = null;
       }
       return startLocationBuilder_;
@@ -7625,8 +8591,13 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
 
     private com.google.cloud.optimization.v1.Waypoint startWaypoint_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> startWaypointBuilder_;
+            com.google.cloud.optimization.v1.Waypoint,
+            com.google.cloud.optimization.v1.Waypoint.Builder,
+            com.google.cloud.optimization.v1.WaypointOrBuilder>
+        startWaypointBuilder_;
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7636,12 +8607,15 @@ public com.google.type.LatLngOrBuilder getStartLocationOrBuilder() {
      * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; + * * @return Whether the startWaypoint field is set. */ public boolean hasStartWaypoint() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7651,16 +8625,21 @@ public boolean hasStartWaypoint() {
      * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; + * * @return The startWaypoint. */ public com.google.cloud.optimization.v1.Waypoint getStartWaypoint() { if (startWaypointBuilder_ == null) { - return startWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : startWaypoint_; + return startWaypoint_ == null + ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() + : startWaypoint_; } else { return startWaypointBuilder_.getMessage(); } } /** + * + * *
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7685,6 +8664,8 @@ public Builder setStartWaypoint(com.google.cloud.optimization.v1.Waypoint value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7707,6 +8688,8 @@ public Builder setStartWaypoint(
       return this;
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7719,9 +8702,9 @@ public Builder setStartWaypoint(
      */
     public Builder mergeStartWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
       if (startWaypointBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          startWaypoint_ != null &&
-          startWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && startWaypoint_ != null
+            && startWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
           getStartWaypointBuilder().mergeFrom(value);
         } else {
           startWaypoint_ = value;
@@ -7734,6 +8717,8 @@ public Builder mergeStartWaypoint(com.google.cloud.optimization.v1.Waypoint valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7755,6 +8740,8 @@ public Builder clearStartWaypoint() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7771,6 +8758,8 @@ public com.google.cloud.optimization.v1.Waypoint.Builder getStartWaypointBuilder
       return getStartWaypointFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7785,11 +8774,14 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
       if (startWaypointBuilder_ != null) {
         return startWaypointBuilder_.getMessageOrBuilder();
       } else {
-        return startWaypoint_ == null ?
-            com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : startWaypoint_;
+        return startWaypoint_ == null
+            ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
+            : startWaypoint_;
       }
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle starts before
      * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -7801,14 +8793,17 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
      * .google.cloud.optimization.v1.Waypoint start_waypoint = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> 
+            com.google.cloud.optimization.v1.Waypoint,
+            com.google.cloud.optimization.v1.Waypoint.Builder,
+            com.google.cloud.optimization.v1.WaypointOrBuilder>
         getStartWaypointFieldBuilder() {
       if (startWaypointBuilder_ == null) {
-        startWaypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder>(
-                getStartWaypoint(),
-                getParentForChildren(),
-                isClean());
+        startWaypointBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.Waypoint,
+                com.google.cloud.optimization.v1.Waypoint.Builder,
+                com.google.cloud.optimization.v1.WaypointOrBuilder>(
+                getStartWaypoint(), getParentForChildren(), isClean());
         startWaypoint_ = null;
       }
       return startWaypointBuilder_;
@@ -7816,8 +8811,11 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
 
     private com.google.type.LatLng endLocation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> endLocationBuilder_;
+            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>
+        endLocationBuilder_;
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7827,12 +8825,15 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuil
      * 
* * .google.type.LatLng end_location = 5; + * * @return Whether the endLocation field is set. */ public boolean hasEndLocation() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7842,6 +8843,7 @@ public boolean hasEndLocation() {
      * 
* * .google.type.LatLng end_location = 5; + * * @return The endLocation. */ public com.google.type.LatLng getEndLocation() { @@ -7852,6 +8854,8 @@ public com.google.type.LatLng getEndLocation() { } } /** + * + * *
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7876,6 +8880,8 @@ public Builder setEndLocation(com.google.type.LatLng value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7886,8 +8892,7 @@ public Builder setEndLocation(com.google.type.LatLng value) {
      *
      * .google.type.LatLng end_location = 5;
      */
-    public Builder setEndLocation(
-        com.google.type.LatLng.Builder builderForValue) {
+    public Builder setEndLocation(com.google.type.LatLng.Builder builderForValue) {
       if (endLocationBuilder_ == null) {
         endLocation_ = builderForValue.build();
       } else {
@@ -7898,6 +8903,8 @@ public Builder setEndLocation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7910,9 +8917,9 @@ public Builder setEndLocation(
      */
     public Builder mergeEndLocation(com.google.type.LatLng value) {
       if (endLocationBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          endLocation_ != null &&
-          endLocation_ != com.google.type.LatLng.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && endLocation_ != null
+            && endLocation_ != com.google.type.LatLng.getDefaultInstance()) {
           getEndLocationBuilder().mergeFrom(value);
         } else {
           endLocation_ = value;
@@ -7925,6 +8932,8 @@ public Builder mergeEndLocation(com.google.type.LatLng value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7946,6 +8955,8 @@ public Builder clearEndLocation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7962,6 +8973,8 @@ public com.google.type.LatLng.Builder getEndLocationBuilder() {
       return getEndLocationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7976,11 +8989,12 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
       if (endLocationBuilder_ != null) {
         return endLocationBuilder_.getMessageOrBuilder();
       } else {
-        return endLocation_ == null ?
-            com.google.type.LatLng.getDefaultInstance() : endLocation_;
+        return endLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : endLocation_;
       }
     }
     /**
+     *
+     *
      * 
      * Geographic location where the vehicle ends after it has completed its last
      * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -7992,14 +9006,15 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
      * .google.type.LatLng end_location = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> 
+            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>
         getEndLocationFieldBuilder() {
       if (endLocationBuilder_ == null) {
-        endLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
-                getEndLocation(),
-                getParentForChildren(),
-                isClean());
+        endLocationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.LatLng,
+                com.google.type.LatLng.Builder,
+                com.google.type.LatLngOrBuilder>(
+                getEndLocation(), getParentForChildren(), isClean());
         endLocation_ = null;
       }
       return endLocationBuilder_;
@@ -8007,8 +9022,13 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
 
     private com.google.cloud.optimization.v1.Waypoint endWaypoint_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> endWaypointBuilder_;
+            com.google.cloud.optimization.v1.Waypoint,
+            com.google.cloud.optimization.v1.Waypoint.Builder,
+            com.google.cloud.optimization.v1.WaypointOrBuilder>
+        endWaypointBuilder_;
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8019,12 +9039,15 @@ public com.google.type.LatLngOrBuilder getEndLocationOrBuilder() {
      * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; + * * @return Whether the endWaypoint field is set. */ public boolean hasEndWaypoint() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8035,16 +9058,21 @@ public boolean hasEndWaypoint() {
      * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; + * * @return The endWaypoint. */ public com.google.cloud.optimization.v1.Waypoint getEndWaypoint() { if (endWaypointBuilder_ == null) { - return endWaypoint_ == null ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : endWaypoint_; + return endWaypoint_ == null + ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() + : endWaypoint_; } else { return endWaypointBuilder_.getMessage(); } } /** + * + * *
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8070,6 +9098,8 @@ public Builder setEndWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8093,6 +9123,8 @@ public Builder setEndWaypoint(
       return this;
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8106,9 +9138,9 @@ public Builder setEndWaypoint(
      */
     public Builder mergeEndWaypoint(com.google.cloud.optimization.v1.Waypoint value) {
       if (endWaypointBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          endWaypoint_ != null &&
-          endWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && endWaypoint_ != null
+            && endWaypoint_ != com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()) {
           getEndWaypointBuilder().mergeFrom(value);
         } else {
           endWaypoint_ = value;
@@ -8121,6 +9153,8 @@ public Builder mergeEndWaypoint(com.google.cloud.optimization.v1.Waypoint value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8143,6 +9177,8 @@ public Builder clearEndWaypoint() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8160,6 +9196,8 @@ public com.google.cloud.optimization.v1.Waypoint.Builder getEndWaypointBuilder()
       return getEndWaypointFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8175,11 +9213,14 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
       if (endWaypointBuilder_ != null) {
         return endWaypointBuilder_.getMessageOrBuilder();
       } else {
-        return endWaypoint_ == null ?
-            com.google.cloud.optimization.v1.Waypoint.getDefaultInstance() : endWaypoint_;
+        return endWaypoint_ == null
+            ? com.google.cloud.optimization.v1.Waypoint.getDefaultInstance()
+            : endWaypoint_;
       }
     }
     /**
+     *
+     *
      * 
      * Waypoint representing a geographic location where the vehicle ends after
      * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -8192,14 +9233,17 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
      * .google.cloud.optimization.v1.Waypoint end_waypoint = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder> 
+            com.google.cloud.optimization.v1.Waypoint,
+            com.google.cloud.optimization.v1.Waypoint.Builder,
+            com.google.cloud.optimization.v1.WaypointOrBuilder>
         getEndWaypointFieldBuilder() {
       if (endWaypointBuilder_ == null) {
-        endWaypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Waypoint, com.google.cloud.optimization.v1.Waypoint.Builder, com.google.cloud.optimization.v1.WaypointOrBuilder>(
-                getEndWaypoint(),
-                getParentForChildren(),
-                isClean());
+        endWaypointBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.Waypoint,
+                com.google.cloud.optimization.v1.Waypoint.Builder,
+                com.google.cloud.optimization.v1.WaypointOrBuilder>(
+                getEndWaypoint(), getParentForChildren(), isClean());
         endWaypoint_ = null;
       }
       return endWaypointBuilder_;
@@ -8207,6 +9251,7 @@ public com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilde
 
     private com.google.protobuf.LazyStringArrayList startTags_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureStartTagsIsMutable() {
       if (!startTags_.isModifiable()) {
         startTags_ = new com.google.protobuf.LazyStringArrayList(startTags_);
@@ -8214,6 +9259,8 @@ private void ensureStartTagsIsMutable() {
       bitField0_ |= 0x00000040;
     }
     /**
+     *
+     *
      * 
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8221,14 +9268,16 @@ private void ensureStartTagsIsMutable() {
      * 
* * repeated string start_tags = 7; + * * @return A list containing the startTags. */ - public com.google.protobuf.ProtocolStringList - getStartTagsList() { + public com.google.protobuf.ProtocolStringList getStartTagsList() { startTags_.makeImmutable(); return startTags_; } /** + * + * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8236,12 +9285,15 @@ private void ensureStartTagsIsMutable() {
      * 
* * repeated string start_tags = 7; + * * @return The count of startTags. */ public int getStartTagsCount() { return startTags_.size(); } /** + * + * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8249,6 +9301,7 @@ public int getStartTagsCount() {
      * 
* * repeated string start_tags = 7; + * * @param index The index of the element to return. * @return The startTags at the given index. */ @@ -8256,6 +9309,8 @@ public java.lang.String getStartTags(int index) { return startTags_.get(index); } /** + * + * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8263,14 +9318,16 @@ public java.lang.String getStartTags(int index) {
      * 
* * repeated string start_tags = 7; + * * @param index The index of the value to return. * @return The bytes of the startTags at the given index. */ - public com.google.protobuf.ByteString - getStartTagsBytes(int index) { + public com.google.protobuf.ByteString getStartTagsBytes(int index) { return startTags_.getByteString(index); } /** + * + * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8278,13 +9335,15 @@ public java.lang.String getStartTags(int index) {
      * 
* * repeated string start_tags = 7; + * * @param index The index to set the value at. * @param value The startTags to set. * @return This builder for chaining. */ - public Builder setStartTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStartTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStartTagsIsMutable(); startTags_.set(index, value); bitField0_ |= 0x00000040; @@ -8292,6 +9351,8 @@ public Builder setStartTags( return this; } /** + * + * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8299,12 +9360,14 @@ public Builder setStartTags(
      * 
* * repeated string start_tags = 7; + * * @param value The startTags to add. * @return This builder for chaining. */ - public Builder addStartTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addStartTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStartTagsIsMutable(); startTags_.add(value); bitField0_ |= 0x00000040; @@ -8312,6 +9375,8 @@ public Builder addStartTags( return this; } /** + * + * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8319,19 +9384,20 @@ public Builder addStartTags(
      * 
* * repeated string start_tags = 7; + * * @param values The startTags to add. * @return This builder for chaining. */ - public Builder addAllStartTags( - java.lang.Iterable values) { + public Builder addAllStartTags(java.lang.Iterable values) { ensureStartTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, startTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startTags_); bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8339,16 +9405,19 @@ public Builder addAllStartTags(
      * 
* * repeated string start_tags = 7; + * * @return This builder for chaining. */ public Builder clearStartTags() { - startTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040);; + startTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; onChanged(); return this; } /** + * + * *
      * Specifies tags attached to the start of the vehicle's route.
      *
@@ -8356,12 +9425,14 @@ public Builder clearStartTags() {
      * 
* * repeated string start_tags = 7; + * * @param value The bytes of the startTags to add. * @return This builder for chaining. */ - public Builder addStartTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addStartTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStartTagsIsMutable(); startTags_.add(value); @@ -8372,6 +9443,7 @@ public Builder addStartTagsBytes( private com.google.protobuf.LazyStringArrayList endTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureEndTagsIsMutable() { if (!endTags_.isModifiable()) { endTags_ = new com.google.protobuf.LazyStringArrayList(endTags_); @@ -8379,6 +9451,8 @@ private void ensureEndTagsIsMutable() { bitField0_ |= 0x00000080; } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8386,14 +9460,16 @@ private void ensureEndTagsIsMutable() {
      * 
* * repeated string end_tags = 8; + * * @return A list containing the endTags. */ - public com.google.protobuf.ProtocolStringList - getEndTagsList() { + public com.google.protobuf.ProtocolStringList getEndTagsList() { endTags_.makeImmutable(); return endTags_; } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8401,12 +9477,15 @@ private void ensureEndTagsIsMutable() {
      * 
* * repeated string end_tags = 8; + * * @return The count of endTags. */ public int getEndTagsCount() { return endTags_.size(); } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8414,6 +9493,7 @@ public int getEndTagsCount() {
      * 
* * repeated string end_tags = 8; + * * @param index The index of the element to return. * @return The endTags at the given index. */ @@ -8421,6 +9501,8 @@ public java.lang.String getEndTags(int index) { return endTags_.get(index); } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8428,14 +9510,16 @@ public java.lang.String getEndTags(int index) {
      * 
* * repeated string end_tags = 8; + * * @param index The index of the value to return. * @return The bytes of the endTags at the given index. */ - public com.google.protobuf.ByteString - getEndTagsBytes(int index) { + public com.google.protobuf.ByteString getEndTagsBytes(int index) { return endTags_.getByteString(index); } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8443,13 +9527,15 @@ public java.lang.String getEndTags(int index) {
      * 
* * repeated string end_tags = 8; + * * @param index The index to set the value at. * @param value The endTags to set. * @return This builder for chaining. */ - public Builder setEndTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEndTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureEndTagsIsMutable(); endTags_.set(index, value); bitField0_ |= 0x00000080; @@ -8457,6 +9543,8 @@ public Builder setEndTags( return this; } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8464,12 +9552,14 @@ public Builder setEndTags(
      * 
* * repeated string end_tags = 8; + * * @param value The endTags to add. * @return This builder for chaining. */ - public Builder addEndTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addEndTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureEndTagsIsMutable(); endTags_.add(value); bitField0_ |= 0x00000080; @@ -8477,6 +9567,8 @@ public Builder addEndTags( return this; } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8484,19 +9576,20 @@ public Builder addEndTags(
      * 
* * repeated string end_tags = 8; + * * @param values The endTags to add. * @return This builder for chaining. */ - public Builder addAllEndTags( - java.lang.Iterable values) { + public Builder addAllEndTags(java.lang.Iterable values) { ensureEndTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, endTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endTags_); bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8504,16 +9597,19 @@ public Builder addAllEndTags(
      * 
* * repeated string end_tags = 8; + * * @return This builder for chaining. */ public Builder clearEndTags() { - endTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080);; + endTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; onChanged(); return this; } /** + * + * *
      * Specifies tags attached to the end of the vehicle's route.
      *
@@ -8521,12 +9617,14 @@ public Builder clearEndTags() {
      * 
* * repeated string end_tags = 8; + * * @param value The bytes of the endTags to add. * @return This builder for chaining. */ - public Builder addEndTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addEndTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureEndTagsIsMutable(); endTags_.add(value); @@ -8536,18 +9634,25 @@ public Builder addEndTagsBytes( } private java.util.List startTimeWindows_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStartTimeWindowsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - startTimeWindows_ = new java.util.ArrayList(startTimeWindows_); + startTimeWindows_ = + new java.util.ArrayList(startTimeWindows_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> startTimeWindowsBuilder_; + com.google.cloud.optimization.v1.TimeWindow, + com.google.cloud.optimization.v1.TimeWindow.Builder, + com.google.cloud.optimization.v1.TimeWindowOrBuilder> + startTimeWindowsBuilder_; /** + * + * *
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8573,6 +9678,8 @@ public java.util.List getStartTimeW
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8598,6 +9705,8 @@ public int getStartTimeWindowsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8623,6 +9732,8 @@ public com.google.cloud.optimization.v1.TimeWindow getStartTimeWindows(int index
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8655,6 +9766,8 @@ public Builder setStartTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8684,6 +9797,8 @@ public Builder setStartTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8715,6 +9830,8 @@ public Builder addStartTimeWindows(com.google.cloud.optimization.v1.TimeWindow v
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8747,6 +9864,8 @@ public Builder addStartTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8776,6 +9895,8 @@ public Builder addStartTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8805,6 +9926,8 @@ public Builder addStartTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8826,8 +9949,7 @@ public Builder addAllStartTimeWindows(
         java.lang.Iterable values) {
       if (startTimeWindowsBuilder_ == null) {
         ensureStartTimeWindowsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, startTimeWindows_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startTimeWindows_);
         onChanged();
       } else {
         startTimeWindowsBuilder_.addAllMessages(values);
@@ -8835,6 +9957,8 @@ public Builder addAllStartTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8863,6 +9987,8 @@ public Builder clearStartTimeWindows() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8891,6 +10017,8 @@ public Builder removeStartTimeWindows(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8913,6 +10041,8 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder getStartTimeWindowsBu
       return getStartTimeWindowsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8933,11 +10063,14 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder getStartTimeWindowsBu
     public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilder(
         int index) {
       if (startTimeWindowsBuilder_ == null) {
-        return startTimeWindows_.get(index);  } else {
+        return startTimeWindows_.get(index);
+      } else {
         return startTimeWindowsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8955,8 +10088,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsO
      *
      * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
      */
-    public java.util.List 
-         getStartTimeWindowsOrBuilderList() {
+    public java.util.List
+        getStartTimeWindowsOrBuilderList() {
       if (startTimeWindowsBuilder_ != null) {
         return startTimeWindowsBuilder_.getMessageOrBuilderList();
       } else {
@@ -8964,6 +10097,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsO
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -8982,10 +10117,12 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsO
      * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
      */
     public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBuilder() {
-      return getStartTimeWindowsFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+      return getStartTimeWindowsFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9005,10 +10142,12 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBu
      */
     public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBuilder(
         int index) {
-      return getStartTimeWindowsFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+      return getStartTimeWindowsFieldBuilder()
+          .addBuilder(index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may depart its start location.
      * They must be within the global time limits (see
@@ -9026,16 +10165,22 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBu
      *
      * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
      */
-    public java.util.List 
-         getStartTimeWindowsBuilderList() {
+    public java.util.List
+        getStartTimeWindowsBuilderList() {
       return getStartTimeWindowsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> 
+            com.google.cloud.optimization.v1.TimeWindow,
+            com.google.cloud.optimization.v1.TimeWindow.Builder,
+            com.google.cloud.optimization.v1.TimeWindowOrBuilder>
         getStartTimeWindowsFieldBuilder() {
       if (startTimeWindowsBuilder_ == null) {
-        startTimeWindowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
+        startTimeWindowsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.TimeWindow,
+                com.google.cloud.optimization.v1.TimeWindow.Builder,
+                com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
                 startTimeWindows_,
                 ((bitField0_ & 0x00000100) != 0),
                 getParentForChildren(),
@@ -9046,18 +10191,25 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addStartTimeWindowsBu
     }
 
     private java.util.List endTimeWindows_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureEndTimeWindowsIsMutable() {
       if (!((bitField0_ & 0x00000200) != 0)) {
-        endTimeWindows_ = new java.util.ArrayList(endTimeWindows_);
+        endTimeWindows_ =
+            new java.util.ArrayList(endTimeWindows_);
         bitField0_ |= 0x00000200;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> endTimeWindowsBuilder_;
+            com.google.cloud.optimization.v1.TimeWindow,
+            com.google.cloud.optimization.v1.TimeWindow.Builder,
+            com.google.cloud.optimization.v1.TimeWindowOrBuilder>
+        endTimeWindowsBuilder_;
 
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9083,6 +10235,8 @@ public java.util.List getEndTimeWin
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9108,6 +10262,8 @@ public int getEndTimeWindowsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9133,6 +10289,8 @@ public com.google.cloud.optimization.v1.TimeWindow getEndTimeWindows(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9150,8 +10308,7 @@ public com.google.cloud.optimization.v1.TimeWindow getEndTimeWindows(int index)
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public Builder setEndTimeWindows(
-        int index, com.google.cloud.optimization.v1.TimeWindow value) {
+    public Builder setEndTimeWindows(int index, com.google.cloud.optimization.v1.TimeWindow value) {
       if (endTimeWindowsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -9165,6 +10322,8 @@ public Builder setEndTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9194,6 +10353,8 @@ public Builder setEndTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9225,6 +10386,8 @@ public Builder addEndTimeWindows(com.google.cloud.optimization.v1.TimeWindow val
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9242,8 +10405,7 @@ public Builder addEndTimeWindows(com.google.cloud.optimization.v1.TimeWindow val
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public Builder addEndTimeWindows(
-        int index, com.google.cloud.optimization.v1.TimeWindow value) {
+    public Builder addEndTimeWindows(int index, com.google.cloud.optimization.v1.TimeWindow value) {
       if (endTimeWindowsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -9257,6 +10419,8 @@ public Builder addEndTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9286,6 +10450,8 @@ public Builder addEndTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9315,6 +10481,8 @@ public Builder addEndTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9336,8 +10504,7 @@ public Builder addAllEndTimeWindows(
         java.lang.Iterable values) {
       if (endTimeWindowsBuilder_ == null) {
         ensureEndTimeWindowsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, endTimeWindows_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endTimeWindows_);
         onChanged();
       } else {
         endTimeWindowsBuilder_.addAllMessages(values);
@@ -9345,6 +10512,8 @@ public Builder addAllEndTimeWindows(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9373,6 +10542,8 @@ public Builder clearEndTimeWindows() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9401,6 +10572,8 @@ public Builder removeEndTimeWindows(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9418,11 +10591,12 @@ public Builder removeEndTimeWindows(int index) {
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public com.google.cloud.optimization.v1.TimeWindow.Builder getEndTimeWindowsBuilder(
-        int index) {
+    public com.google.cloud.optimization.v1.TimeWindow.Builder getEndTimeWindowsBuilder(int index) {
       return getEndTimeWindowsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9443,11 +10617,14 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder getEndTimeWindowsBuil
     public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(
         int index) {
       if (endTimeWindowsBuilder_ == null) {
-        return endTimeWindows_.get(index);  } else {
+        return endTimeWindows_.get(index);
+      } else {
         return endTimeWindowsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9465,8 +10642,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public java.util.List 
-         getEndTimeWindowsOrBuilderList() {
+    public java.util.List
+        getEndTimeWindowsOrBuilderList() {
       if (endTimeWindowsBuilder_ != null) {
         return endTimeWindowsBuilder_.getMessageOrBuilderList();
       } else {
@@ -9474,6 +10651,8 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9492,10 +10671,12 @@ public com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrB
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
     public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuilder() {
-      return getEndTimeWindowsFieldBuilder().addBuilder(
-          com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+      return getEndTimeWindowsFieldBuilder()
+          .addBuilder(com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9513,12 +10694,13 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuil
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuilder(
-        int index) {
-      return getEndTimeWindowsFieldBuilder().addBuilder(
-          index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
+    public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuilder(int index) {
+      return getEndTimeWindowsFieldBuilder()
+          .addBuilder(index, com.google.cloud.optimization.v1.TimeWindow.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Time windows during which the vehicle may arrive at its end location.
      * They must be within the global time limits (see
@@ -9536,16 +10718,22 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuil
      *
      * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
      */
-    public java.util.List 
-         getEndTimeWindowsBuilderList() {
+    public java.util.List
+        getEndTimeWindowsBuilderList() {
       return getEndTimeWindowsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder> 
+            com.google.cloud.optimization.v1.TimeWindow,
+            com.google.cloud.optimization.v1.TimeWindow.Builder,
+            com.google.cloud.optimization.v1.TimeWindowOrBuilder>
         getEndTimeWindowsFieldBuilder() {
       if (endTimeWindowsBuilder_ == null) {
-        endTimeWindowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.optimization.v1.TimeWindow, com.google.cloud.optimization.v1.TimeWindow.Builder, com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
+        endTimeWindowsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.optimization.v1.TimeWindow,
+                com.google.cloud.optimization.v1.TimeWindow.Builder,
+                com.google.cloud.optimization.v1.TimeWindowOrBuilder>(
                 endTimeWindows_,
                 ((bitField0_ & 0x00000200) != 0),
                 getParentForChildren(),
@@ -9555,8 +10743,10 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuil
       return endTimeWindowsBuilder_;
     }
 
-    private double travelDurationMultiple_ ;
+    private double travelDurationMultiple_;
     /**
+     *
+     *
      * 
      * Specifies a multiplicative factor that can be used to increase or decrease
      * travel times of this vehicle. For example, setting this to 2.0 means
@@ -9574,6 +10764,7 @@ public com.google.cloud.optimization.v1.TimeWindow.Builder addEndTimeWindowsBuil
      * 
* * optional double travel_duration_multiple = 11; + * * @return Whether the travelDurationMultiple field is set. */ @java.lang.Override @@ -9581,6 +10772,8 @@ public boolean hasTravelDurationMultiple() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Specifies a multiplicative factor that can be used to increase or decrease
      * travel times of this vehicle. For example, setting this to 2.0 means
@@ -9598,6 +10791,7 @@ public boolean hasTravelDurationMultiple() {
      * 
* * optional double travel_duration_multiple = 11; + * * @return The travelDurationMultiple. */ @java.lang.Override @@ -9605,6 +10799,8 @@ public double getTravelDurationMultiple() { return travelDurationMultiple_; } /** + * + * *
      * Specifies a multiplicative factor that can be used to increase or decrease
      * travel times of this vehicle. For example, setting this to 2.0 means
@@ -9622,6 +10818,7 @@ public double getTravelDurationMultiple() {
      * 
* * optional double travel_duration_multiple = 11; + * * @param value The travelDurationMultiple to set. * @return This builder for chaining. */ @@ -9633,6 +10830,8 @@ public Builder setTravelDurationMultiple(double value) { return this; } /** + * + * *
      * Specifies a multiplicative factor that can be used to increase or decrease
      * travel times of this vehicle. For example, setting this to 2.0 means
@@ -9650,6 +10849,7 @@ public Builder setTravelDurationMultiple(double value) {
      * 
* * optional double travel_duration_multiple = 11; + * * @return This builder for chaining. */ public Builder clearTravelDurationMultiple() { @@ -9661,22 +10861,29 @@ public Builder clearTravelDurationMultiple() { private int unloadingPolicy_ = 0; /** + * + * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @return The enum numeric value on the wire for unloadingPolicy. */ - @java.lang.Override public int getUnloadingPolicyValue() { + @java.lang.Override + public int getUnloadingPolicyValue() { return unloadingPolicy_; } /** + * + * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @param value The enum numeric value on the wire for unloadingPolicy to set. * @return This builder for chaining. */ @@ -9687,28 +10894,38 @@ public Builder setUnloadingPolicyValue(int value) { return this; } /** + * + * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @return The unloadingPolicy. */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy getUnloadingPolicy() { - com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy result = com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.forNumber(unloadingPolicy_); - return result == null ? com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNRECOGNIZED : result; + com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy result = + com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.forNumber(unloadingPolicy_); + return result == null + ? com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy.UNRECOGNIZED + : result; } /** + * + * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @param value The unloadingPolicy to set. * @return This builder for chaining. */ - public Builder setUnloadingPolicy(com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy value) { + public Builder setUnloadingPolicy( + com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy value) { if (value == null) { throw new NullPointerException(); } @@ -9718,11 +10935,14 @@ public Builder setUnloadingPolicy(com.google.cloud.optimization.v1.Vehicle.Unloa return this; } /** + * + * *
      * Unloading policy enforced on the vehicle.
      * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @return This builder for chaining. */ public Builder clearUnloadingPolicy() { @@ -9733,8 +10953,11 @@ public Builder clearUnloadingPolicy() { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> loadLimits_; - private com.google.protobuf.MapField + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> + loadLimits_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> internalGetLoadLimits() { if (loadLimits_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -9742,11 +10965,13 @@ public Builder clearUnloadingPolicy() { } return loadLimits_; } - private com.google.protobuf.MapField + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.optimization.v1.Vehicle.LoadLimit> internalGetMutableLoadLimits() { if (loadLimits_ == null) { - loadLimits_ = com.google.protobuf.MapField.newMapField( - LoadLimitsDefaultEntryHolder.defaultEntry); + loadLimits_ = + com.google.protobuf.MapField.newMapField(LoadLimitsDefaultEntryHolder.defaultEntry); } if (!loadLimits_.isMutable()) { loadLimits_ = loadLimits_.copy(); @@ -9755,10 +10980,13 @@ public Builder clearUnloadingPolicy() { onChanged(); return loadLimits_; } + public int getLoadLimitsCount() { return internalGetLoadLimits().getMap().size(); } /** + * + * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -9768,23 +10996,26 @@ public int getLoadLimitsCount() {
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ @java.lang.Override - public boolean containsLoadLimits( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLoadLimits(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLoadLimits().getMap().containsKey(key); } - /** - * Use {@link #getLoadLimitsMap()} instead. - */ + /** Use {@link #getLoadLimitsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getLoadLimits() { + public java.util.Map + getLoadLimits() { return getLoadLimitsMap(); } /** + * + * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -9794,13 +11025,17 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
+     * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
+     * 
      */
     @java.lang.Override
-    public java.util.Map getLoadLimitsMap() {
+    public java.util.Map
+        getLoadLimitsMap() {
       return internalGetLoadLimits().getMap();
     }
     /**
+     *
+     *
      * 
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -9810,20 +11045,24 @@ public java.util.Map
      *
-     * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
+     * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
+     * 
      */
     @java.lang.Override
-    public /* nullable */
-com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
+    public /* nullable */ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
         java.lang.String key,
         /* nullable */
-com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetLoadLimits().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -9833,12 +11072,15 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ @java.lang.Override public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetLoadLimits().getMap(); if (!map.containsKey(key)) { @@ -9846,13 +11088,15 @@ public com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( } return map.get(key); } + public Builder clearLoadLimits() { bitField0_ = (bitField0_ & ~0x00001000); - internalGetMutableLoadLimits().getMutableMap() - .clear(); + internalGetMutableLoadLimits().getMutableMap().clear(); return this; } /** + * + * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -9862,18 +11106,17 @@ public Builder clearLoadLimits() {
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ - public Builder removeLoadLimits( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLoadLimits().getMutableMap() - .remove(key); + public Builder removeLoadLimits(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLoadLimits().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLoadLimits() { @@ -9881,6 +11124,8 @@ public Builder removeLoadLimits( return internalGetMutableLoadLimits().getMutableMap(); } /** + * + * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -9890,19 +11135,24 @@ public Builder removeLoadLimits(
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ public Builder putLoadLimits( - java.lang.String key, - com.google.cloud.optimization.v1.Vehicle.LoadLimit value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLoadLimits().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.optimization.v1.Vehicle.LoadLimit value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLoadLimits().getMutableMap().put(key, value); bitField0_ |= 0x00001000; return this; } /** + * + * *
      * Capacities of the vehicle (weight, volume, # of pallets for example).
      * The keys in the map are the identifiers of the type of load, consistent
@@ -9912,18 +11162,21 @@ public Builder putLoadLimits(
      * is considered to be limitless.
      * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ public Builder putAllLoadLimits( - java.util.Map values) { - internalGetMutableLoadLimits().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableLoadLimits().getMutableMap().putAll(values); bitField0_ |= 0x00001000; return this; } - private double costPerHour_ ; + private double costPerHour_; /** + * + * *
      * Vehicle costs: all costs add up and must be in the same unit as
      * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -9935,6 +11188,7 @@ public Builder putAllLoadLimits(
      * 
* * double cost_per_hour = 16; + * * @return The costPerHour. */ @java.lang.Override @@ -9942,6 +11196,8 @@ public double getCostPerHour() { return costPerHour_; } /** + * + * *
      * Vehicle costs: all costs add up and must be in the same unit as
      * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -9953,6 +11209,7 @@ public double getCostPerHour() {
      * 
* * double cost_per_hour = 16; + * * @param value The costPerHour to set. * @return This builder for chaining. */ @@ -9964,6 +11221,8 @@ public Builder setCostPerHour(double value) { return this; } /** + * + * *
      * Vehicle costs: all costs add up and must be in the same unit as
      * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -9975,6 +11234,7 @@ public Builder setCostPerHour(double value) {
      * 
* * double cost_per_hour = 16; + * * @return This builder for chaining. */ public Builder clearCostPerHour() { @@ -9984,8 +11244,10 @@ public Builder clearCostPerHour() { return this; } - private double costPerTraveledHour_ ; + private double costPerTraveledHour_; /** + * + * *
      * Cost per traveled hour of the vehicle route. This cost is applied only to
      * travel time taken by the route (i.e., that reported in
@@ -9994,6 +11256,7 @@ public Builder clearCostPerHour() {
      * 
* * double cost_per_traveled_hour = 17; + * * @return The costPerTraveledHour. */ @java.lang.Override @@ -10001,6 +11264,8 @@ public double getCostPerTraveledHour() { return costPerTraveledHour_; } /** + * + * *
      * Cost per traveled hour of the vehicle route. This cost is applied only to
      * travel time taken by the route (i.e., that reported in
@@ -10009,6 +11274,7 @@ public double getCostPerTraveledHour() {
      * 
* * double cost_per_traveled_hour = 17; + * * @param value The costPerTraveledHour to set. * @return This builder for chaining. */ @@ -10020,6 +11286,8 @@ public Builder setCostPerTraveledHour(double value) { return this; } /** + * + * *
      * Cost per traveled hour of the vehicle route. This cost is applied only to
      * travel time taken by the route (i.e., that reported in
@@ -10028,6 +11296,7 @@ public Builder setCostPerTraveledHour(double value) {
      * 
* * double cost_per_traveled_hour = 17; + * * @return This builder for chaining. */ public Builder clearCostPerTraveledHour() { @@ -10037,8 +11306,10 @@ public Builder clearCostPerTraveledHour() { return this; } - private double costPerKilometer_ ; + private double costPerKilometer_; /** + * + * *
      * Cost per kilometer of the vehicle route. This cost is applied to the
      * distance reported in the
@@ -10048,6 +11319,7 @@ public Builder clearCostPerTraveledHour() {
      * 
* * double cost_per_kilometer = 18; + * * @return The costPerKilometer. */ @java.lang.Override @@ -10055,6 +11327,8 @@ public double getCostPerKilometer() { return costPerKilometer_; } /** + * + * *
      * Cost per kilometer of the vehicle route. This cost is applied to the
      * distance reported in the
@@ -10064,6 +11338,7 @@ public double getCostPerKilometer() {
      * 
* * double cost_per_kilometer = 18; + * * @param value The costPerKilometer to set. * @return This builder for chaining. */ @@ -10075,6 +11350,8 @@ public Builder setCostPerKilometer(double value) { return this; } /** + * + * *
      * Cost per kilometer of the vehicle route. This cost is applied to the
      * distance reported in the
@@ -10084,6 +11361,7 @@ public Builder setCostPerKilometer(double value) {
      * 
* * double cost_per_kilometer = 18; + * * @return This builder for chaining. */ public Builder clearCostPerKilometer() { @@ -10093,13 +11371,16 @@ public Builder clearCostPerKilometer() { return this; } - private double fixedCost_ ; + private double fixedCost_; /** + * + * *
      * Fixed cost applied if this vehicle is used to handle a shipment.
      * 
* * double fixed_cost = 19; + * * @return The fixedCost. */ @java.lang.Override @@ -10107,11 +11388,14 @@ public double getFixedCost() { return fixedCost_; } /** + * + * *
      * Fixed cost applied if this vehicle is used to handle a shipment.
      * 
* * double fixed_cost = 19; + * * @param value The fixedCost to set. * @return This builder for chaining. */ @@ -10123,11 +11407,14 @@ public Builder setFixedCost(double value) { return this; } /** + * + * *
      * Fixed cost applied if this vehicle is used to handle a shipment.
      * 
* * double fixed_cost = 19; + * * @return This builder for chaining. */ public Builder clearFixedCost() { @@ -10137,8 +11424,10 @@ public Builder clearFixedCost() { return this; } - private boolean usedIfRouteIsEmpty_ ; + private boolean usedIfRouteIsEmpty_; /** + * + * *
      * This field only applies to vehicles when their route does not serve any
      * shipments. It indicates if the vehicle should be considered as used or not
@@ -10155,6 +11444,7 @@ public Builder clearFixedCost() {
      * 
* * bool used_if_route_is_empty = 20; + * * @return The usedIfRouteIsEmpty. */ @java.lang.Override @@ -10162,6 +11452,8 @@ public boolean getUsedIfRouteIsEmpty() { return usedIfRouteIsEmpty_; } /** + * + * *
      * This field only applies to vehicles when their route does not serve any
      * shipments. It indicates if the vehicle should be considered as used or not
@@ -10178,6 +11470,7 @@ public boolean getUsedIfRouteIsEmpty() {
      * 
* * bool used_if_route_is_empty = 20; + * * @param value The usedIfRouteIsEmpty to set. * @return This builder for chaining. */ @@ -10189,6 +11482,8 @@ public Builder setUsedIfRouteIsEmpty(boolean value) { return this; } /** + * + * *
      * This field only applies to vehicles when their route does not serve any
      * shipments. It indicates if the vehicle should be considered as used or not
@@ -10205,6 +11500,7 @@ public Builder setUsedIfRouteIsEmpty(boolean value) {
      * 
* * bool used_if_route_is_empty = 20; + * * @return This builder for chaining. */ public Builder clearUsedIfRouteIsEmpty() { @@ -10216,8 +11512,13 @@ public Builder clearUsedIfRouteIsEmpty() { private com.google.cloud.optimization.v1.Vehicle.DurationLimit routeDurationLimit_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> routeDurationLimitBuilder_; + com.google.cloud.optimization.v1.Vehicle.DurationLimit, + com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, + com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> + routeDurationLimitBuilder_; /** + * + * *
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10225,12 +11526,15 @@ public Builder clearUsedIfRouteIsEmpty() {
      * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; + * * @return Whether the routeDurationLimit field is set. */ public boolean hasRouteDurationLimit() { return ((bitField0_ & 0x00040000) != 0); } /** + * + * *
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10238,16 +11542,21 @@ public boolean hasRouteDurationLimit() {
      * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; + * * @return The routeDurationLimit. */ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLimit() { if (routeDurationLimitBuilder_ == null) { - return routeDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : routeDurationLimit_; + return routeDurationLimit_ == null + ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() + : routeDurationLimit_; } else { return routeDurationLimitBuilder_.getMessage(); } } /** + * + * *
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10256,7 +11565,8 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLi
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
-    public Builder setRouteDurationLimit(com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
+    public Builder setRouteDurationLimit(
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
       if (routeDurationLimitBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -10270,6 +11580,8 @@ public Builder setRouteDurationLimit(com.google.cloud.optimization.v1.Vehicle.Du
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10290,6 +11602,8 @@ public Builder setRouteDurationLimit(
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10298,11 +11612,13 @@ public Builder setRouteDurationLimit(
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
-    public Builder mergeRouteDurationLimit(com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
+    public Builder mergeRouteDurationLimit(
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
       if (routeDurationLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00040000) != 0) &&
-          routeDurationLimit_ != null &&
-          routeDurationLimit_ != com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) {
+        if (((bitField0_ & 0x00040000) != 0)
+            && routeDurationLimit_ != null
+            && routeDurationLimit_
+                != com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) {
           getRouteDurationLimitBuilder().mergeFrom(value);
         } else {
           routeDurationLimit_ = value;
@@ -10315,6 +11631,8 @@ public Builder mergeRouteDurationLimit(com.google.cloud.optimization.v1.Vehicle.
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10334,6 +11652,8 @@ public Builder clearRouteDurationLimit() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10342,12 +11662,15 @@ public Builder clearRouteDurationLimit() {
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
-    public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder getRouteDurationLimitBuilder() {
+    public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder
+        getRouteDurationLimitBuilder() {
       bitField0_ |= 0x00040000;
       onChanged();
       return getRouteDurationLimitFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10356,15 +11679,19 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder getRouteDu
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
-    public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteDurationLimitOrBuilder() {
+    public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder
+        getRouteDurationLimitOrBuilder() {
       if (routeDurationLimitBuilder_ != null) {
         return routeDurationLimitBuilder_.getMessageOrBuilder();
       } else {
-        return routeDurationLimit_ == null ?
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : routeDurationLimit_;
+        return routeDurationLimit_ == null
+            ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()
+            : routeDurationLimit_;
       }
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -10374,14 +11701,17 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteD
      * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> 
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit,
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
+            com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>
         getRouteDurationLimitFieldBuilder() {
       if (routeDurationLimitBuilder_ == null) {
-        routeDurationLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>(
-                getRouteDurationLimit(),
-                getParentForChildren(),
-                isClean());
+        routeDurationLimitBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.Vehicle.DurationLimit,
+                com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
+                com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>(
+                getRouteDurationLimit(), getParentForChildren(), isClean());
         routeDurationLimit_ = null;
       }
       return routeDurationLimitBuilder_;
@@ -10389,8 +11719,13 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteD
 
     private com.google.cloud.optimization.v1.Vehicle.DurationLimit travelDurationLimit_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> travelDurationLimitBuilder_;
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit,
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
+            com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>
+        travelDurationLimitBuilder_;
     /**
+     *
+     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10398,12 +11733,15 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteD
      * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; + * * @return Whether the travelDurationLimit field is set. */ public boolean hasTravelDurationLimit() { return ((bitField0_ & 0x00080000) != 0); } /** + * + * *
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10411,16 +11749,21 @@ public boolean hasTravelDurationLimit() {
      * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; + * * @return The travelDurationLimit. */ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationLimit() { if (travelDurationLimitBuilder_ == null) { - return travelDurationLimit_ == null ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : travelDurationLimit_; + return travelDurationLimit_ == null + ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() + : travelDurationLimit_; } else { return travelDurationLimitBuilder_.getMessage(); } } /** + * + * *
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10429,7 +11772,8 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationL
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
-    public Builder setTravelDurationLimit(com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
+    public Builder setTravelDurationLimit(
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
       if (travelDurationLimitBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -10443,6 +11787,8 @@ public Builder setTravelDurationLimit(com.google.cloud.optimization.v1.Vehicle.D
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10463,6 +11809,8 @@ public Builder setTravelDurationLimit(
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10471,11 +11819,13 @@ public Builder setTravelDurationLimit(
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
-    public Builder mergeTravelDurationLimit(com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
+    public Builder mergeTravelDurationLimit(
+        com.google.cloud.optimization.v1.Vehicle.DurationLimit value) {
       if (travelDurationLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00080000) != 0) &&
-          travelDurationLimit_ != null &&
-          travelDurationLimit_ != com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) {
+        if (((bitField0_ & 0x00080000) != 0)
+            && travelDurationLimit_ != null
+            && travelDurationLimit_
+                != com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()) {
           getTravelDurationLimitBuilder().mergeFrom(value);
         } else {
           travelDurationLimit_ = value;
@@ -10488,6 +11838,8 @@ public Builder mergeTravelDurationLimit(com.google.cloud.optimization.v1.Vehicle
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10507,6 +11859,8 @@ public Builder clearTravelDurationLimit() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10515,12 +11869,15 @@ public Builder clearTravelDurationLimit() {
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
-    public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder getTravelDurationLimitBuilder() {
+    public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder
+        getTravelDurationLimitBuilder() {
       bitField0_ |= 0x00080000;
       onChanged();
       return getTravelDurationLimitFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10529,15 +11886,19 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder getTravelD
      *
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
-    public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravelDurationLimitOrBuilder() {
+    public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder
+        getTravelDurationLimitOrBuilder() {
       if (travelDurationLimitBuilder_ != null) {
         return travelDurationLimitBuilder_.getMessageOrBuilder();
       } else {
-        return travelDurationLimit_ == null ?
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance() : travelDurationLimit_;
+        return travelDurationLimit_ == null
+            ? com.google.cloud.optimization.v1.Vehicle.DurationLimit.getDefaultInstance()
+            : travelDurationLimit_;
       }
     }
     /**
+     *
+     *
      * 
      * Limit applied to the travel duration of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -10547,14 +11908,17 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravel
      * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder> 
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit,
+            com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
+            com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>
         getTravelDurationLimitFieldBuilder() {
       if (travelDurationLimitBuilder_ == null) {
-        travelDurationLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Vehicle.DurationLimit, com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder, com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>(
-                getTravelDurationLimit(),
-                getParentForChildren(),
-                isClean());
+        travelDurationLimitBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.Vehicle.DurationLimit,
+                com.google.cloud.optimization.v1.Vehicle.DurationLimit.Builder,
+                com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder>(
+                getTravelDurationLimit(), getParentForChildren(), isClean());
         travelDurationLimit_ = null;
       }
       return travelDurationLimitBuilder_;
@@ -10562,8 +11926,13 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravel
 
     private com.google.cloud.optimization.v1.DistanceLimit routeDistanceLimit_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder> routeDistanceLimitBuilder_;
+            com.google.cloud.optimization.v1.DistanceLimit,
+            com.google.cloud.optimization.v1.DistanceLimit.Builder,
+            com.google.cloud.optimization.v1.DistanceLimitOrBuilder>
+        routeDistanceLimitBuilder_;
     /**
+     *
+     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -10571,29 +11940,37 @@ public com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravel
      * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; + * * @return Whether the routeDistanceLimit field is set. */ public boolean hasRouteDistanceLimit() { return ((bitField0_ & 0x00100000) != 0); } /** - *
+     *
+     *
+     * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
      * [transitions.travel_distance_meters][google.cloud.optimization.v1.ShipmentRoute.Transition.travel_distance_meters].
      * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; + * * @return The routeDistanceLimit. */ public com.google.cloud.optimization.v1.DistanceLimit getRouteDistanceLimit() { if (routeDistanceLimitBuilder_ == null) { - return routeDistanceLimit_ == null ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : routeDistanceLimit_; + return routeDistanceLimit_ == null + ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() + : routeDistanceLimit_; } else { return routeDistanceLimitBuilder_.getMessage(); } } /** + * + * *
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -10616,6 +11993,8 @@ public Builder setRouteDistanceLimit(com.google.cloud.optimization.v1.DistanceLi
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -10636,6 +12015,8 @@ public Builder setRouteDistanceLimit(
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -10646,9 +12027,10 @@ public Builder setRouteDistanceLimit(
      */
     public Builder mergeRouteDistanceLimit(com.google.cloud.optimization.v1.DistanceLimit value) {
       if (routeDistanceLimitBuilder_ == null) {
-        if (((bitField0_ & 0x00100000) != 0) &&
-          routeDistanceLimit_ != null &&
-          routeDistanceLimit_ != com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()) {
+        if (((bitField0_ & 0x00100000) != 0)
+            && routeDistanceLimit_ != null
+            && routeDistanceLimit_
+                != com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()) {
           getRouteDistanceLimitBuilder().mergeFrom(value);
         } else {
           routeDistanceLimit_ = value;
@@ -10661,6 +12043,8 @@ public Builder mergeRouteDistanceLimit(com.google.cloud.optimization.v1.Distance
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -10680,6 +12064,8 @@ public Builder clearRouteDistanceLimit() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -10694,6 +12080,8 @@ public com.google.cloud.optimization.v1.DistanceLimit.Builder getRouteDistanceLi
       return getRouteDistanceLimitFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -10702,15 +12090,19 @@ public com.google.cloud.optimization.v1.DistanceLimit.Builder getRouteDistanceLi
      *
      * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
      */
-    public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceLimitOrBuilder() {
+    public com.google.cloud.optimization.v1.DistanceLimitOrBuilder
+        getRouteDistanceLimitOrBuilder() {
       if (routeDistanceLimitBuilder_ != null) {
         return routeDistanceLimitBuilder_.getMessageOrBuilder();
       } else {
-        return routeDistanceLimit_ == null ?
-            com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance() : routeDistanceLimit_;
+        return routeDistanceLimit_ == null
+            ? com.google.cloud.optimization.v1.DistanceLimit.getDefaultInstance()
+            : routeDistanceLimit_;
       }
     }
     /**
+     *
+     *
      * 
      * Limit applied to the total distance of the vehicle's route. In a given
      * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -10720,21 +12112,25 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceL
      * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder> 
+            com.google.cloud.optimization.v1.DistanceLimit,
+            com.google.cloud.optimization.v1.DistanceLimit.Builder,
+            com.google.cloud.optimization.v1.DistanceLimitOrBuilder>
         getRouteDistanceLimitFieldBuilder() {
       if (routeDistanceLimitBuilder_ == null) {
-        routeDistanceLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.DistanceLimit, com.google.cloud.optimization.v1.DistanceLimit.Builder, com.google.cloud.optimization.v1.DistanceLimitOrBuilder>(
-                getRouteDistanceLimit(),
-                getParentForChildren(),
-                isClean());
+        routeDistanceLimitBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.DistanceLimit,
+                com.google.cloud.optimization.v1.DistanceLimit.Builder,
+                com.google.cloud.optimization.v1.DistanceLimitOrBuilder>(
+                getRouteDistanceLimit(), getParentForChildren(), isClean());
         routeDistanceLimit_ = null;
       }
       return routeDistanceLimitBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, com.google.protobuf.Duration> extraVisitDurationForVisitType_;
+    private com.google.protobuf.MapField
+        extraVisitDurationForVisitType_;
+
     private com.google.protobuf.MapField
         internalGetExtraVisitDurationForVisitType() {
       if (extraVisitDurationForVisitType_ == null) {
@@ -10743,11 +12139,13 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceL
       }
       return extraVisitDurationForVisitType_;
     }
+
     private com.google.protobuf.MapField
         internalGetMutableExtraVisitDurationForVisitType() {
       if (extraVisitDurationForVisitType_ == null) {
-        extraVisitDurationForVisitType_ = com.google.protobuf.MapField.newMapField(
-            ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry);
+        extraVisitDurationForVisitType_ =
+            com.google.protobuf.MapField.newMapField(
+                ExtraVisitDurationForVisitTypeDefaultEntryHolder.defaultEntry);
       }
       if (!extraVisitDurationForVisitType_.isMutable()) {
         extraVisitDurationForVisitType_ = extraVisitDurationForVisitType_.copy();
@@ -10756,10 +12154,13 @@ public com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceL
       onChanged();
       return extraVisitDurationForVisitType_;
     }
+
     public int getExtraVisitDurationForVisitTypeCount() {
       return internalGetExtraVisitDurationForVisitType().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -10772,23 +12173,26 @@ public int getExtraVisitDurationForVisitTypeCount() {
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ @java.lang.Override - public boolean containsExtraVisitDurationForVisitType( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsExtraVisitDurationForVisitType(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetExtraVisitDurationForVisitType().getMap().containsKey(key); } - /** - * Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. - */ + /** Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getExtraVisitDurationForVisitType() { + public java.util.Map + getExtraVisitDurationForVisitType() { return getExtraVisitDurationForVisitTypeMap(); } /** + * + * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -10801,13 +12205,17 @@ public java.util.Map getExtraVis
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ @java.lang.Override - public java.util.Map getExtraVisitDurationForVisitTypeMap() { + public java.util.Map + getExtraVisitDurationForVisitTypeMap() { return internalGetExtraVisitDurationForVisitType().getMap(); } /** + * + * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -10820,20 +12228,24 @@ public java.util.Map getExtraVis
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ @java.lang.Override - public /* nullable */ -com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( + public /* nullable */ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.Duration defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.protobuf.Duration defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetExtraVisitDurationForVisitType().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -10846,12 +12258,15 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ @java.lang.Override public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetExtraVisitDurationForVisitType().getMap(); if (!map.containsKey(key)) { @@ -10859,13 +12274,15 @@ public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( } return map.get(key); } + public Builder clearExtraVisitDurationForVisitType() { bitField0_ = (bitField0_ & ~0x00200000); - internalGetMutableExtraVisitDurationForVisitType().getMutableMap() - .clear(); + internalGetMutableExtraVisitDurationForVisitType().getMutableMap().clear(); return this; } /** + * + * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -10878,18 +12295,17 @@ public Builder clearExtraVisitDurationForVisitType() {
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ - public Builder removeExtraVisitDurationForVisitType( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableExtraVisitDurationForVisitType().getMutableMap() - .remove(key); + public Builder removeExtraVisitDurationForVisitType(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableExtraVisitDurationForVisitType().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtraVisitDurationForVisitType() { @@ -10897,6 +12313,8 @@ public Builder removeExtraVisitDurationForVisitType( return internalGetMutableExtraVisitDurationForVisitType().getMutableMap(); } /** + * + * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -10909,19 +12327,24 @@ public Builder removeExtraVisitDurationForVisitType(
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ public Builder putExtraVisitDurationForVisitType( - java.lang.String key, - com.google.protobuf.Duration value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableExtraVisitDurationForVisitType().getMutableMap() - .put(key, value); + java.lang.String key, com.google.protobuf.Duration value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableExtraVisitDurationForVisitType().getMutableMap().put(key, value); bitField0_ |= 0x00200000; return this; } /** + * + * *
      * Specifies a map from visit_types strings to durations. The duration is time
      * in addition to
@@ -10934,48 +12357,61 @@ public Builder putExtraVisitDurationForVisitType(
      * type in the map.
      * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ public Builder putAllExtraVisitDurationForVisitType( java.util.Map values) { - internalGetMutableExtraVisitDurationForVisitType().getMutableMap() - .putAll(values); + internalGetMutableExtraVisitDurationForVisitType().getMutableMap().putAll(values); bitField0_ |= 0x00200000; return this; } private com.google.cloud.optimization.v1.BreakRule breakRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.optimization.v1.BreakRule, com.google.cloud.optimization.v1.BreakRule.Builder, com.google.cloud.optimization.v1.BreakRuleOrBuilder> breakRuleBuilder_; + com.google.cloud.optimization.v1.BreakRule, + com.google.cloud.optimization.v1.BreakRule.Builder, + com.google.cloud.optimization.v1.BreakRuleOrBuilder> + breakRuleBuilder_; /** + * + * *
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
      * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; + * * @return Whether the breakRule field is set. */ public boolean hasBreakRule() { return ((bitField0_ & 0x00400000) != 0); } /** + * + * *
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
      * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; + * * @return The breakRule. */ public com.google.cloud.optimization.v1.BreakRule getBreakRule() { if (breakRuleBuilder_ == null) { - return breakRule_ == null ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() : breakRule_; + return breakRule_ == null + ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() + : breakRule_; } else { return breakRuleBuilder_.getMessage(); } } /** + * + * *
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -10997,6 +12433,8 @@ public Builder setBreakRule(com.google.cloud.optimization.v1.BreakRule value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -11016,6 +12454,8 @@ public Builder setBreakRule(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -11025,9 +12465,9 @@ public Builder setBreakRule(
      */
     public Builder mergeBreakRule(com.google.cloud.optimization.v1.BreakRule value) {
       if (breakRuleBuilder_ == null) {
-        if (((bitField0_ & 0x00400000) != 0) &&
-          breakRule_ != null &&
-          breakRule_ != com.google.cloud.optimization.v1.BreakRule.getDefaultInstance()) {
+        if (((bitField0_ & 0x00400000) != 0)
+            && breakRule_ != null
+            && breakRule_ != com.google.cloud.optimization.v1.BreakRule.getDefaultInstance()) {
           getBreakRuleBuilder().mergeFrom(value);
         } else {
           breakRule_ = value;
@@ -11040,6 +12480,8 @@ public Builder mergeBreakRule(com.google.cloud.optimization.v1.BreakRule value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -11058,6 +12500,8 @@ public Builder clearBreakRule() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -11071,6 +12515,8 @@ public com.google.cloud.optimization.v1.BreakRule.Builder getBreakRuleBuilder()
       return getBreakRuleFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -11082,11 +12528,14 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
       if (breakRuleBuilder_ != null) {
         return breakRuleBuilder_.getMessageOrBuilder();
       } else {
-        return breakRule_ == null ?
-            com.google.cloud.optimization.v1.BreakRule.getDefaultInstance() : breakRule_;
+        return breakRule_ == null
+            ? com.google.cloud.optimization.v1.BreakRule.getDefaultInstance()
+            : breakRule_;
       }
     }
     /**
+     *
+     *
      * 
      * Describes the break schedule to be enforced on this vehicle.
      * If empty, no breaks will be scheduled for this vehicle.
@@ -11095,14 +12544,17 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
      * .google.cloud.optimization.v1.BreakRule break_rule = 25;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.BreakRule, com.google.cloud.optimization.v1.BreakRule.Builder, com.google.cloud.optimization.v1.BreakRuleOrBuilder> 
+            com.google.cloud.optimization.v1.BreakRule,
+            com.google.cloud.optimization.v1.BreakRule.Builder,
+            com.google.cloud.optimization.v1.BreakRuleOrBuilder>
         getBreakRuleFieldBuilder() {
       if (breakRuleBuilder_ == null) {
-        breakRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.BreakRule, com.google.cloud.optimization.v1.BreakRule.Builder, com.google.cloud.optimization.v1.BreakRuleOrBuilder>(
-                getBreakRule(),
-                getParentForChildren(),
-                isClean());
+        breakRuleBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.BreakRule,
+                com.google.cloud.optimization.v1.BreakRule.Builder,
+                com.google.cloud.optimization.v1.BreakRuleOrBuilder>(
+                getBreakRule(), getParentForChildren(), isClean());
         breakRule_ = null;
       }
       return breakRuleBuilder_;
@@ -11110,6 +12562,8 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
 
     private java.lang.Object label_ = "";
     /**
+     *
+     *
      * 
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -11117,13 +12571,13 @@ public com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder
      * 
* * string label = 27; + * * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; @@ -11132,6 +12586,8 @@ public java.lang.String getLabel() { } } /** + * + * *
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -11139,15 +12595,14 @@ public java.lang.String getLabel() {
      * 
* * string label = 27; + * * @return The bytes for label. */ - public com.google.protobuf.ByteString - getLabelBytes() { + public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); label_ = b; return b; } else { @@ -11155,6 +12610,8 @@ public java.lang.String getLabel() { } } /** + * + * *
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -11162,18 +12619,22 @@ public java.lang.String getLabel() {
      * 
* * string label = 27; + * * @param value The label to set. * @return This builder for chaining. */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } label_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } /** + * + * *
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -11181,6 +12642,7 @@ public Builder setLabel(
      * 
* * string label = 27; + * * @return This builder for chaining. */ public Builder clearLabel() { @@ -11190,6 +12652,8 @@ public Builder clearLabel() { return this; } /** + * + * *
      * Specifies a label for this vehicle. This label is reported in the response
      * as the `vehicle_label` of the corresponding
@@ -11197,12 +12661,14 @@ public Builder clearLabel() {
      * 
* * string label = 27; + * * @param value The bytes for label to set. * @return This builder for chaining. */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00800000; @@ -11210,8 +12676,10 @@ public Builder setLabelBytes( return this; } - private boolean ignore_ ; + private boolean ignore_; /** + * + * *
      * If true, `used_if_route_is_empty` must be false, and this vehicle will
      * remain unused.
@@ -11229,6 +12697,7 @@ public Builder setLabelBytes(
      * 
* * bool ignore = 28; + * * @return The ignore. */ @java.lang.Override @@ -11236,6 +12705,8 @@ public boolean getIgnore() { return ignore_; } /** + * + * *
      * If true, `used_if_route_is_empty` must be false, and this vehicle will
      * remain unused.
@@ -11253,6 +12724,7 @@ public boolean getIgnore() {
      * 
* * bool ignore = 28; + * * @param value The ignore to set. * @return This builder for chaining. */ @@ -11264,6 +12736,8 @@ public Builder setIgnore(boolean value) { return this; } /** + * + * *
      * If true, `used_if_route_is_empty` must be false, and this vehicle will
      * remain unused.
@@ -11281,6 +12755,7 @@ public Builder setIgnore(boolean value) {
      * 
* * bool ignore = 28; + * * @return This builder for chaining. */ public Builder clearIgnore() { @@ -11291,6 +12766,7 @@ public Builder clearIgnore() { } private com.google.protobuf.Internal.IntList breakRuleIndices_ = emptyIntList(); + private void ensureBreakRuleIndicesIsMutable() { if (!((bitField0_ & 0x02000000) != 0)) { breakRuleIndices_ = mutableCopy(breakRuleIndices_); @@ -11298,6 +12774,8 @@ private void ensureBreakRuleIndicesIsMutable() { } } /** + * + * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -11308,16 +12786,20 @@ private void ensureBreakRuleIndicesIsMutable() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return A list containing the breakRuleIndices. */ - @java.lang.Deprecated public java.util.List - getBreakRuleIndicesList() { - return ((bitField0_ & 0x02000000) != 0) ? - java.util.Collections.unmodifiableList(breakRuleIndices_) : breakRuleIndices_; + @java.lang.Deprecated + public java.util.List getBreakRuleIndicesList() { + return ((bitField0_ & 0x02000000) != 0) + ? java.util.Collections.unmodifiableList(breakRuleIndices_) + : breakRuleIndices_; } /** + * + * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -11328,14 +12810,18 @@ private void ensureBreakRuleIndicesIsMutable() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return The count of breakRuleIndices. */ - @java.lang.Deprecated public int getBreakRuleIndicesCount() { + @java.lang.Deprecated + public int getBreakRuleIndicesCount() { return breakRuleIndices_.size(); } /** + * + * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -11346,15 +12832,19 @@ private void ensureBreakRuleIndicesIsMutable() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param index The index of the element to return. * @return The breakRuleIndices at the given index. */ - @java.lang.Deprecated public int getBreakRuleIndices(int index) { + @java.lang.Deprecated + public int getBreakRuleIndices(int index) { return breakRuleIndices_.getInt(index); } /** + * + * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -11365,14 +12855,15 @@ private void ensureBreakRuleIndicesIsMutable() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param index The index to set the value at. * @param value The breakRuleIndices to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setBreakRuleIndices( - int index, int value) { + @java.lang.Deprecated + public Builder setBreakRuleIndices(int index, int value) { ensureBreakRuleIndicesIsMutable(); breakRuleIndices_.setInt(index, value); @@ -11380,6 +12871,8 @@ private void ensureBreakRuleIndicesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -11390,12 +12883,14 @@ private void ensureBreakRuleIndicesIsMutable() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param value The breakRuleIndices to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addBreakRuleIndices(int value) { + @java.lang.Deprecated + public Builder addBreakRuleIndices(int value) { ensureBreakRuleIndicesIsMutable(); breakRuleIndices_.addInt(value); @@ -11403,6 +12898,8 @@ private void ensureBreakRuleIndicesIsMutable() { return this; } /** + * + * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -11413,20 +12910,22 @@ private void ensureBreakRuleIndicesIsMutable() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param values The breakRuleIndices to add. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addAllBreakRuleIndices( - java.lang.Iterable values) { + @java.lang.Deprecated + public Builder addAllBreakRuleIndices(java.lang.Iterable values) { ensureBreakRuleIndicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, breakRuleIndices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, breakRuleIndices_); onChanged(); return this; } /** + * + * *
      * Deprecated: No longer used.
      * Indices in the `break_rule` field in the source
@@ -11437,11 +12936,13 @@ private void ensureBreakRuleIndicesIsMutable() {
      * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearBreakRuleIndices() { + @java.lang.Deprecated + public Builder clearBreakRuleIndices() { breakRuleIndices_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x02000000); onChanged(); @@ -11449,27 +12950,37 @@ private void ensureBreakRuleIndicesIsMutable() { } private java.util.List capacities_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCapacitiesIsMutable() { if (!((bitField0_ & 0x04000000) != 0)) { - capacities_ = new java.util.ArrayList(capacities_); + capacities_ = + new java.util.ArrayList(capacities_); bitField0_ |= 0x04000000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> capacitiesBuilder_; + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + capacitiesBuilder_; /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getCapacitiesList() { + @java.lang.Deprecated + public java.util.List getCapacitiesList() { if (capacitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(capacities_); } else { @@ -11477,15 +12988,20 @@ private void ensureCapacitiesIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public int getCapacitiesCount() { + @java.lang.Deprecated + public int getCapacitiesCount() { if (capacitiesBuilder_ == null) { return capacities_.size(); } else { @@ -11493,15 +13009,20 @@ private void ensureCapacitiesIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index) { if (capacitiesBuilder_ == null) { return capacities_.get(index); } else { @@ -11509,15 +13030,20 @@ private void ensureCapacitiesIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setCapacities( + @java.lang.Deprecated + public Builder setCapacities( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (capacitiesBuilder_ == null) { if (value == null) { @@ -11532,15 +13058,20 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setCapacities( + @java.lang.Deprecated + public Builder setCapacities( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); @@ -11552,15 +13083,20 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addCapacities(com.google.cloud.optimization.v1.CapacityQuantity value) { + @java.lang.Deprecated + public Builder addCapacities(com.google.cloud.optimization.v1.CapacityQuantity value) { if (capacitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11574,15 +13110,20 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addCapacities( + @java.lang.Deprecated + public Builder addCapacities( int index, com.google.cloud.optimization.v1.CapacityQuantity value) { if (capacitiesBuilder_ == null) { if (value == null) { @@ -11597,15 +13138,20 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addCapacities( + @java.lang.Deprecated + public Builder addCapacities( com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); @@ -11617,15 +13163,20 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addCapacities( + @java.lang.Deprecated + public Builder addCapacities( int index, com.google.cloud.optimization.v1.CapacityQuantity.Builder builderForValue) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); @@ -11637,20 +13188,24 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllCapacities( + @java.lang.Deprecated + public Builder addAllCapacities( java.lang.Iterable values) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, capacities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, capacities_); onChanged(); } else { capacitiesBuilder_.addAllMessages(values); @@ -11658,15 +13213,20 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearCapacities() { + @java.lang.Deprecated + public Builder clearCapacities() { if (capacitiesBuilder_ == null) { capacities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x04000000); @@ -11677,15 +13237,20 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeCapacities(int index) { + @java.lang.Deprecated + public Builder removeCapacities(int index) { if (capacitiesBuilder_ == null) { ensureCapacitiesIsMutable(); capacities_.remove(index); @@ -11696,45 +13261,61 @@ private void ensureCapacitiesIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder getCapacitiesBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder getCapacitiesBuilder( int index) { return getCapacitiesFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( int index) { if (capacitiesBuilder_ == null) { - return capacities_.get(index); } else { + return capacities_.get(index); + } else { return capacitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getCapacitiesOrBuilderList() { + @java.lang.Deprecated + public java.util.List + getCapacitiesOrBuilderList() { if (capacitiesBuilder_ != null) { return capacitiesBuilder_.getMessageOrBuilderList(); } else { @@ -11742,82 +13323,113 @@ private void ensureCapacitiesIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addCapacitiesBuilder() { - return getCapacitiesFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addCapacitiesBuilder() { + return getCapacitiesFieldBuilder() + .addBuilder(com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantity.Builder addCapacitiesBuilder( + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantity.Builder addCapacitiesBuilder( int index) { - return getCapacitiesFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); + return getCapacitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.optimization.v1.CapacityQuantity.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getCapacitiesBuilderList() { + @java.lang.Deprecated + public java.util.List + getCapacitiesBuilderList() { return getCapacitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> getCapacitiesFieldBuilder() { if (capacitiesBuilder_ == null) { - capacitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantity, com.google.cloud.optimization.v1.CapacityQuantity.Builder, com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( - capacities_, - ((bitField0_ & 0x04000000) != 0), - getParentForChildren(), - isClean()); + capacitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantity, + com.google.cloud.optimization.v1.CapacityQuantity.Builder, + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder>( + capacities_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); capacities_ = null; } return capacitiesBuilder_; } - private java.util.List startLoadIntervals_ = - java.util.Collections.emptyList(); + private java.util.List + startLoadIntervals_ = java.util.Collections.emptyList(); + private void ensureStartLoadIntervalsIsMutable() { if (!((bitField0_ & 0x08000000) != 0)) { - startLoadIntervals_ = new java.util.ArrayList(startLoadIntervals_); + startLoadIntervals_ = + new java.util.ArrayList( + startLoadIntervals_); bitField0_ |= 0x08000000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> startLoadIntervalsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantityInterval, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, + com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + startLoadIntervalsBuilder_; /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getStartLoadIntervalsList() { + @java.lang.Deprecated + public java.util.List + getStartLoadIntervalsList() { if (startLoadIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(startLoadIntervals_); } else { @@ -11825,15 +13437,20 @@ private void ensureStartLoadIntervalsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public int getStartLoadIntervalsCount() { + @java.lang.Deprecated + public int getStartLoadIntervalsCount() { if (startLoadIntervalsBuilder_ == null) { return startLoadIntervals_.size(); } else { @@ -11841,15 +13458,21 @@ private void ensureStartLoadIntervalsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals( + int index) { if (startLoadIntervalsBuilder_ == null) { return startLoadIntervals_.get(index); } else { @@ -11857,15 +13480,20 @@ private void ensureStartLoadIntervalsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setStartLoadIntervals( + @java.lang.Deprecated + public Builder setStartLoadIntervals( int index, com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (startLoadIntervalsBuilder_ == null) { if (value == null) { @@ -11880,16 +13508,22 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setStartLoadIntervals( - int index, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { + @java.lang.Deprecated + public Builder setStartLoadIntervals( + int index, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); startLoadIntervals_.set(index, builderForValue.build()); @@ -11900,15 +13534,21 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addStartLoadIntervals(com.google.cloud.optimization.v1.CapacityQuantityInterval value) { + @java.lang.Deprecated + public Builder addStartLoadIntervals( + com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (startLoadIntervalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11922,15 +13562,20 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addStartLoadIntervals( + @java.lang.Deprecated + public Builder addStartLoadIntervals( int index, com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (startLoadIntervalsBuilder_ == null) { if (value == null) { @@ -11945,15 +13590,20 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addStartLoadIntervals( + @java.lang.Deprecated + public Builder addStartLoadIntervals( com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); @@ -11965,16 +13615,22 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addStartLoadIntervals( - int index, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { + @java.lang.Deprecated + public Builder addStartLoadIntervals( + int index, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); startLoadIntervals_.add(index, builderForValue.build()); @@ -11985,20 +13641,25 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllStartLoadIntervals( - java.lang.Iterable values) { + @java.lang.Deprecated + public Builder addAllStartLoadIntervals( + java.lang.Iterable + values) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, startLoadIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startLoadIntervals_); onChanged(); } else { startLoadIntervalsBuilder_.addAllMessages(values); @@ -12006,15 +13667,20 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearStartLoadIntervals() { + @java.lang.Deprecated + public Builder clearStartLoadIntervals() { if (startLoadIntervalsBuilder_ == null) { startLoadIntervals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x08000000); @@ -12025,15 +13691,20 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeStartLoadIntervals(int index) { + @java.lang.Deprecated + public Builder removeStartLoadIntervals(int index) { if (startLoadIntervalsBuilder_ == null) { ensureStartLoadIntervalsIsMutable(); startLoadIntervals_.remove(index); @@ -12044,45 +13715,62 @@ private void ensureStartLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder getStartLoadIntervalsBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder + getStartLoadIntervalsBuilder(int index) { return getStartLoadIntervalsFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder + getStartLoadIntervalsOrBuilder(int index) { if (startLoadIntervalsBuilder_ == null) { - return startLoadIntervals_.get(index); } else { + return startLoadIntervals_.get(index); + } else { return startLoadIntervalsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getStartLoadIntervalsOrBuilderList() { + @java.lang.Deprecated + public java.util.List< + ? extends com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + getStartLoadIntervalsOrBuilderList() { if (startLoadIntervalsBuilder_ != null) { return startLoadIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -12090,51 +13778,76 @@ private void ensureStartLoadIntervalsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder addStartLoadIntervalsBuilder() { - return getStartLoadIntervalsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder + addStartLoadIntervalsBuilder() { + return getStartLoadIntervalsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder addStartLoadIntervalsBuilder( - int index) { - return getStartLoadIntervalsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder + addStartLoadIntervalsBuilder(int index) { + return getStartLoadIntervalsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getStartLoadIntervalsBuilderList() { + @java.lang.Deprecated + public java.util.List + getStartLoadIntervalsBuilderList() { return getStartLoadIntervalsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantityInterval, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, + com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> getStartLoadIntervalsFieldBuilder() { if (startLoadIntervalsBuilder_ == null) { - startLoadIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder>( + startLoadIntervalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantityInterval, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, + com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder>( startLoadIntervals_, ((bitField0_ & 0x08000000) != 0), getParentForChildren(), @@ -12144,28 +13857,40 @@ private void ensureStartLoadIntervalsIsMutable() { return startLoadIntervalsBuilder_; } - private java.util.List endLoadIntervals_ = - java.util.Collections.emptyList(); + private java.util.List + endLoadIntervals_ = java.util.Collections.emptyList(); + private void ensureEndLoadIntervalsIsMutable() { if (!((bitField0_ & 0x10000000) != 0)) { - endLoadIntervals_ = new java.util.ArrayList(endLoadIntervals_); + endLoadIntervals_ = + new java.util.ArrayList( + endLoadIntervals_); bitField0_ |= 0x10000000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> endLoadIntervalsBuilder_; + com.google.cloud.optimization.v1.CapacityQuantityInterval, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, + com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + endLoadIntervalsBuilder_; /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List getEndLoadIntervalsList() { + @java.lang.Deprecated + public java.util.List + getEndLoadIntervalsList() { if (endLoadIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(endLoadIntervals_); } else { @@ -12173,15 +13898,20 @@ private void ensureEndLoadIntervalsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public int getEndLoadIntervalsCount() { + @java.lang.Deprecated + public int getEndLoadIntervalsCount() { if (endLoadIntervalsBuilder_ == null) { return endLoadIntervals_.size(); } else { @@ -12189,15 +13919,21 @@ private void ensureEndLoadIntervalsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals( + int index) { if (endLoadIntervalsBuilder_ == null) { return endLoadIntervals_.get(index); } else { @@ -12205,15 +13941,20 @@ private void ensureEndLoadIntervalsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setEndLoadIntervals( + @java.lang.Deprecated + public Builder setEndLoadIntervals( int index, com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (endLoadIntervalsBuilder_ == null) { if (value == null) { @@ -12228,16 +13969,22 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setEndLoadIntervals( - int index, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { + @java.lang.Deprecated + public Builder setEndLoadIntervals( + int index, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); endLoadIntervals_.set(index, builderForValue.build()); @@ -12248,15 +13995,21 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addEndLoadIntervals(com.google.cloud.optimization.v1.CapacityQuantityInterval value) { + @java.lang.Deprecated + public Builder addEndLoadIntervals( + com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (endLoadIntervalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12270,15 +14023,20 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addEndLoadIntervals( + @java.lang.Deprecated + public Builder addEndLoadIntervals( int index, com.google.cloud.optimization.v1.CapacityQuantityInterval value) { if (endLoadIntervalsBuilder_ == null) { if (value == null) { @@ -12293,15 +14051,20 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addEndLoadIntervals( + @java.lang.Deprecated + public Builder addEndLoadIntervals( com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); @@ -12313,16 +14076,22 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addEndLoadIntervals( - int index, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { + @java.lang.Deprecated + public Builder addEndLoadIntervals( + int index, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder builderForValue) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); endLoadIntervals_.add(index, builderForValue.build()); @@ -12333,20 +14102,25 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder addAllEndLoadIntervals( - java.lang.Iterable values) { + @java.lang.Deprecated + public Builder addAllEndLoadIntervals( + java.lang.Iterable + values) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, endLoadIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endLoadIntervals_); onChanged(); } else { endLoadIntervalsBuilder_.addAllMessages(values); @@ -12354,15 +14128,20 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearEndLoadIntervals() { + @java.lang.Deprecated + public Builder clearEndLoadIntervals() { if (endLoadIntervalsBuilder_ == null) { endLoadIntervals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x10000000); @@ -12373,15 +14152,20 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder removeEndLoadIntervals(int index) { + @java.lang.Deprecated + public Builder removeEndLoadIntervals(int index) { if (endLoadIntervalsBuilder_ == null) { ensureEndLoadIntervalsIsMutable(); endLoadIntervals_.remove(index); @@ -12392,45 +14176,62 @@ private void ensureEndLoadIntervalsIsMutable() { return this; } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder getEndLoadIntervalsBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder + getEndLoadIntervalsBuilder(int index) { return getEndLoadIntervalsFieldBuilder().getBuilder(index); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder( - int index) { + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder + getEndLoadIntervalsOrBuilder(int index) { if (endLoadIntervalsBuilder_ == null) { - return endLoadIntervals_.get(index); } else { + return endLoadIntervals_.get(index); + } else { return endLoadIntervalsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getEndLoadIntervalsOrBuilderList() { + @java.lang.Deprecated + public java.util.List< + ? extends com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + getEndLoadIntervalsOrBuilderList() { if (endLoadIntervalsBuilder_ != null) { return endLoadIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -12438,51 +14239,76 @@ private void ensureEndLoadIntervalsIsMutable() { } } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder addEndLoadIntervalsBuilder() { - return getEndLoadIntervalsFieldBuilder().addBuilder( - com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder + addEndLoadIntervalsBuilder() { + return getEndLoadIntervalsFieldBuilder() + .addBuilder( + com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder addEndLoadIntervalsBuilder( - int index) { - return getEndLoadIntervalsFieldBuilder().addBuilder( - index, com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); + @java.lang.Deprecated + public com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder + addEndLoadIntervalsBuilder(int index) { + return getEndLoadIntervalsFieldBuilder() + .addBuilder( + index, + com.google.cloud.optimization.v1.CapacityQuantityInterval.getDefaultInstance()); } /** + * + * *
      * Deprecated: Use
      * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
      * instead.
      * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated public java.util.List - getEndLoadIntervalsBuilderList() { + @java.lang.Deprecated + public java.util.List + getEndLoadIntervalsBuilderList() { return getEndLoadIntervalsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> + com.google.cloud.optimization.v1.CapacityQuantityInterval, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, + com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder> getEndLoadIntervalsFieldBuilder() { if (endLoadIntervalsBuilder_ == null) { - endLoadIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.optimization.v1.CapacityQuantityInterval, com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder>( + endLoadIntervalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.optimization.v1.CapacityQuantityInterval, + com.google.cloud.optimization.v1.CapacityQuantityInterval.Builder, + com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder>( endLoadIntervals_, ((bitField0_ & 0x10000000) != 0), getParentForChildren(), @@ -12491,9 +14317,9 @@ private void ensureEndLoadIntervalsIsMutable() { } return endLoadIntervalsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -12503,12 +14329,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Vehicle) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Vehicle) private static final com.google.cloud.optimization.v1.Vehicle DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Vehicle(); } @@ -12517,27 +14343,27 @@ public static com.google.cloud.optimization.v1.Vehicle getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vehicle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vehicle parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12552,6 +14378,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Vehicle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java similarity index 83% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java index 422333c02f33..ffd3b51866d3 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/VehicleOrBuilder.java @@ -1,64 +1,102 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface VehicleOrBuilder extends +public interface VehicleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Vehicle) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The travel mode which affects the roads usable by the vehicle and its
    * speed. See also `travel_duration_multiple`.
    * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @return The enum numeric value on the wire for travelMode. */ int getTravelModeValue(); /** + * + * *
    * The travel mode which affects the roads usable by the vehicle and its
    * speed. See also `travel_duration_multiple`.
    * 
* * .google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1; + * * @return The travelMode. */ com.google.cloud.optimization.v1.Vehicle.TravelMode getTravelMode(); /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated for the given vehicle.
    * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the routeModifiers field is set. */ boolean hasRouteModifiers(); /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated for the given vehicle.
    * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ com.google.cloud.optimization.v1.RouteModifiers getRouteModifiers(); /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated for the given vehicle.
    * 
* - * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.optimization.v1.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.optimization.v1.RouteModifiersOrBuilder getRouteModifiersOrBuilder(); /** + * + * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -67,10 +105,13 @@ public interface VehicleOrBuilder extends
    * 
* * .google.type.LatLng start_location = 3; + * * @return Whether the startLocation field is set. */ boolean hasStartLocation(); /** + * + * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -79,10 +120,13 @@ public interface VehicleOrBuilder extends
    * 
* * .google.type.LatLng start_location = 3; + * * @return The startLocation. */ com.google.type.LatLng getStartLocation(); /** + * + * *
    * Geographic location where the vehicle starts before picking up any
    * shipments. If not specified, the vehicle starts at its first pickup.
@@ -95,6 +139,8 @@ public interface VehicleOrBuilder extends
   com.google.type.LatLngOrBuilder getStartLocationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -104,10 +150,13 @@ public interface VehicleOrBuilder extends
    * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; + * * @return Whether the startWaypoint field is set. */ boolean hasStartWaypoint(); /** + * + * *
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -117,10 +166,13 @@ public interface VehicleOrBuilder extends
    * 
* * .google.cloud.optimization.v1.Waypoint start_waypoint = 4; + * * @return The startWaypoint. */ com.google.cloud.optimization.v1.Waypoint getStartWaypoint(); /** + * + * *
    * Waypoint representing a geographic location where the vehicle starts before
    * picking up any shipments. If neither `start_waypoint` nor `start_location`
@@ -134,6 +186,8 @@ public interface VehicleOrBuilder extends
   com.google.cloud.optimization.v1.WaypointOrBuilder getStartWaypointOrBuilder();
 
   /**
+   *
+   *
    * 
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -143,10 +197,13 @@ public interface VehicleOrBuilder extends
    * 
* * .google.type.LatLng end_location = 5; + * * @return Whether the endLocation field is set. */ boolean hasEndLocation(); /** + * + * *
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -156,10 +213,13 @@ public interface VehicleOrBuilder extends
    * 
* * .google.type.LatLng end_location = 5; + * * @return The endLocation. */ com.google.type.LatLng getEndLocation(); /** + * + * *
    * Geographic location where the vehicle ends after it has completed its last
    * `VisitRequest`. If not specified the vehicle's `ShipmentRoute` ends
@@ -173,6 +233,8 @@ public interface VehicleOrBuilder extends
   com.google.type.LatLngOrBuilder getEndLocationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -183,10 +245,13 @@ public interface VehicleOrBuilder extends
    * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; + * * @return Whether the endWaypoint field is set. */ boolean hasEndWaypoint(); /** + * + * *
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -197,10 +262,13 @@ public interface VehicleOrBuilder extends
    * 
* * .google.cloud.optimization.v1.Waypoint end_waypoint = 6; + * * @return The endWaypoint. */ com.google.cloud.optimization.v1.Waypoint getEndWaypoint(); /** + * + * *
    * Waypoint representing a geographic location where the vehicle ends after
    * it has completed its last `VisitRequest`. If neither `end_waypoint` nor
@@ -215,6 +283,8 @@ public interface VehicleOrBuilder extends
   com.google.cloud.optimization.v1.WaypointOrBuilder getEndWaypointOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -222,11 +292,13 @@ public interface VehicleOrBuilder extends
    * 
* * repeated string start_tags = 7; + * * @return A list containing the startTags. */ - java.util.List - getStartTagsList(); + java.util.List getStartTagsList(); /** + * + * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -234,10 +306,13 @@ public interface VehicleOrBuilder extends
    * 
* * repeated string start_tags = 7; + * * @return The count of startTags. */ int getStartTagsCount(); /** + * + * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -245,11 +320,14 @@ public interface VehicleOrBuilder extends
    * 
* * repeated string start_tags = 7; + * * @param index The index of the element to return. * @return The startTags at the given index. */ java.lang.String getStartTags(int index); /** + * + * *
    * Specifies tags attached to the start of the vehicle's route.
    *
@@ -257,13 +335,15 @@ public interface VehicleOrBuilder extends
    * 
* * repeated string start_tags = 7; + * * @param index The index of the value to return. * @return The bytes of the startTags at the given index. */ - com.google.protobuf.ByteString - getStartTagsBytes(int index); + com.google.protobuf.ByteString getStartTagsBytes(int index); /** + * + * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -271,11 +351,13 @@ public interface VehicleOrBuilder extends
    * 
* * repeated string end_tags = 8; + * * @return A list containing the endTags. */ - java.util.List - getEndTagsList(); + java.util.List getEndTagsList(); /** + * + * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -283,10 +365,13 @@ public interface VehicleOrBuilder extends
    * 
* * repeated string end_tags = 8; + * * @return The count of endTags. */ int getEndTagsCount(); /** + * + * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -294,11 +379,14 @@ public interface VehicleOrBuilder extends
    * 
* * repeated string end_tags = 8; + * * @param index The index of the element to return. * @return The endTags at the given index. */ java.lang.String getEndTags(int index); /** + * + * *
    * Specifies tags attached to the end of the vehicle's route.
    *
@@ -306,13 +394,15 @@ public interface VehicleOrBuilder extends
    * 
* * repeated string end_tags = 8; + * * @param index The index of the value to return. * @return The bytes of the endTags at the given index. */ - com.google.protobuf.ByteString - getEndTagsBytes(int index); + com.google.protobuf.ByteString getEndTagsBytes(int index); /** + * + * *
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -330,9 +420,10 @@ public interface VehicleOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
    */
-  java.util.List 
-      getStartTimeWindowsList();
+  java.util.List getStartTimeWindowsList();
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -352,6 +443,8 @@ public interface VehicleOrBuilder extends
    */
   com.google.cloud.optimization.v1.TimeWindow getStartTimeWindows(int index);
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -371,6 +464,8 @@ public interface VehicleOrBuilder extends
    */
   int getStartTimeWindowsCount();
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -388,9 +483,11 @@ public interface VehicleOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
    */
-  java.util.List 
+  java.util.List
       getStartTimeWindowsOrBuilderList();
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may depart its start location.
    * They must be within the global time limits (see
@@ -408,10 +505,11 @@ public interface VehicleOrBuilder extends
    *
    * repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
    */
-  com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -429,9 +527,10 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilde
    *
    * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
    */
-  java.util.List 
-      getEndTimeWindowsList();
+  java.util.List getEndTimeWindowsList();
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -451,6 +550,8 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilde
    */
   com.google.cloud.optimization.v1.TimeWindow getEndTimeWindows(int index);
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -470,6 +571,8 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilde
    */
   int getEndTimeWindowsCount();
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -487,9 +590,11 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilde
    *
    * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
    */
-  java.util.List 
+  java.util.List
       getEndTimeWindowsOrBuilderList();
   /**
+   *
+   *
    * 
    * Time windows during which the vehicle may arrive at its end location.
    * They must be within the global time limits (see
@@ -507,10 +612,11 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getStartTimeWindowsOrBuilde
    *
    * repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
    */
-  com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(
-      int index);
+  com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Specifies a multiplicative factor that can be used to increase or decrease
    * travel times of this vehicle. For example, setting this to 2.0 means
@@ -528,10 +634,13 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(
    * 
* * optional double travel_duration_multiple = 11; + * * @return Whether the travelDurationMultiple field is set. */ boolean hasTravelDurationMultiple(); /** + * + * *
    * Specifies a multiplicative factor that can be used to increase or decrease
    * travel times of this vehicle. For example, setting this to 2.0 means
@@ -549,30 +658,39 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(
    * 
* * optional double travel_duration_multiple = 11; + * * @return The travelDurationMultiple. */ double getTravelDurationMultiple(); /** + * + * *
    * Unloading policy enforced on the vehicle.
    * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @return The enum numeric value on the wire for unloadingPolicy. */ int getUnloadingPolicyValue(); /** + * + * *
    * Unloading policy enforced on the vehicle.
    * 
* * .google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12; + * * @return The unloadingPolicy. */ com.google.cloud.optimization.v1.Vehicle.UnloadingPolicy getUnloadingPolicy(); /** + * + * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -582,10 +700,13 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ int getLoadLimitsCount(); /** + * + * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -595,17 +716,17 @@ com.google.cloud.optimization.v1.TimeWindowOrBuilder getEndTimeWindowsOrBuilder(
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; - */ - boolean containsLoadLimits( - java.lang.String key); - /** - * Use {@link #getLoadLimitsMap()} instead. + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ + boolean containsLoadLimits(java.lang.String key); + /** Use {@link #getLoadLimitsMap()} instead. */ @java.lang.Deprecated java.util.Map - getLoadLimits(); + getLoadLimits(); /** + * + * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -615,11 +736,14 @@ boolean containsLoadLimits(
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ java.util.Map - getLoadLimitsMap(); + getLoadLimitsMap(); /** + * + * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -629,14 +753,17 @@ boolean containsLoadLimits(
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ /* nullable */ -com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault( + com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue); + com.google.cloud.optimization.v1.Vehicle.LoadLimit defaultValue); /** + * + * *
    * Capacities of the vehicle (weight, volume, # of pallets for example).
    * The keys in the map are the identifiers of the type of load, consistent
@@ -646,12 +773,14 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrDefault(
    * is considered to be limitless.
    * 
* - * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30; + * */ - com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow( - java.lang.String key); + com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(java.lang.String key); /** + * + * *
    * Vehicle costs: all costs add up and must be in the same unit as
    * [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
@@ -663,11 +792,14 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * double cost_per_hour = 16; + * * @return The costPerHour. */ double getCostPerHour(); /** + * + * *
    * Cost per traveled hour of the vehicle route. This cost is applied only to
    * travel time taken by the route (i.e., that reported in
@@ -676,11 +808,14 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * double cost_per_traveled_hour = 17; + * * @return The costPerTraveledHour. */ double getCostPerTraveledHour(); /** + * + * *
    * Cost per kilometer of the vehicle route. This cost is applied to the
    * distance reported in the
@@ -690,21 +825,27 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * double cost_per_kilometer = 18; + * * @return The costPerKilometer. */ double getCostPerKilometer(); /** + * + * *
    * Fixed cost applied if this vehicle is used to handle a shipment.
    * 
* * double fixed_cost = 19; + * * @return The fixedCost. */ double getFixedCost(); /** + * + * *
    * This field only applies to vehicles when their route does not serve any
    * shipments. It indicates if the vehicle should be considered as used or not
@@ -721,11 +862,14 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * bool used_if_route_is_empty = 20; + * * @return The usedIfRouteIsEmpty. */ boolean getUsedIfRouteIsEmpty(); /** + * + * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -733,10 +877,13 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; + * * @return Whether the routeDurationLimit field is set. */ boolean hasRouteDurationLimit(); /** + * + * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -744,10 +891,13 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21; + * * @return The routeDurationLimit. */ com.google.cloud.optimization.v1.Vehicle.DurationLimit getRouteDurationLimit(); /** + * + * *
    * Limit applied to the total duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route duration of a vehicle is the
@@ -759,6 +909,8 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
   com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getRouteDurationLimitOrBuilder();
 
   /**
+   *
+   *
    * 
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -766,10 +918,13 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; + * * @return Whether the travelDurationLimit field is set. */ boolean hasTravelDurationLimit(); /** + * + * *
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -777,10 +932,13 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * .google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22; + * * @return The travelDurationLimit. */ com.google.cloud.optimization.v1.Vehicle.DurationLimit getTravelDurationLimit(); /** + * + * *
    * Limit applied to the travel duration of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route travel duration is the sum of all its
@@ -792,6 +950,8 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
   com.google.cloud.optimization.v1.Vehicle.DurationLimitOrBuilder getTravelDurationLimitOrBuilder();
 
   /**
+   *
+   *
    * 
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -799,10 +959,13 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; + * * @return Whether the routeDistanceLimit field is set. */ boolean hasRouteDistanceLimit(); /** + * + * *
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -810,10 +973,13 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * 
* * .google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23; + * * @return The routeDistanceLimit. */ com.google.cloud.optimization.v1.DistanceLimit getRouteDistanceLimit(); /** + * + * *
    * Limit applied to the total distance of the vehicle's route. In a given
    * `OptimizeToursResponse`, the route distance is the sum of all its
@@ -825,6 +991,8 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
   com.google.cloud.optimization.v1.DistanceLimitOrBuilder getRouteDistanceLimitOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -837,10 +1005,13 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ int getExtraVisitDurationForVisitTypeCount(); /** + * + * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -853,17 +1024,16 @@ com.google.cloud.optimization.v1.Vehicle.LoadLimit getLoadLimitsOrThrow(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; - */ - boolean containsExtraVisitDurationForVisitType( - java.lang.String key); - /** - * Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ + boolean containsExtraVisitDurationForVisitType(java.lang.String key); + /** Use {@link #getExtraVisitDurationForVisitTypeMap()} instead. */ @java.lang.Deprecated - java.util.Map - getExtraVisitDurationForVisitType(); + java.util.Map getExtraVisitDurationForVisitType(); /** + * + * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -876,11 +1046,14 @@ boolean containsExtraVisitDurationForVisitType(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ java.util.Map - getExtraVisitDurationForVisitTypeMap(); + getExtraVisitDurationForVisitTypeMap(); /** + * + * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -893,14 +1066,17 @@ boolean containsExtraVisitDurationForVisitType(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ /* nullable */ -com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( + com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.Duration defaultValue); + com.google.protobuf.Duration defaultValue); /** + * + * *
    * Specifies a map from visit_types strings to durations. The duration is time
    * in addition to
@@ -913,32 +1089,40 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(
    * type in the map.
    * 
* - * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24; + * */ - com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow( - java.lang.String key); + com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(java.lang.String key); /** + * + * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
    * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; + * * @return Whether the breakRule field is set. */ boolean hasBreakRule(); /** + * + * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
    * 
* * .google.cloud.optimization.v1.BreakRule break_rule = 25; + * * @return The breakRule. */ com.google.cloud.optimization.v1.BreakRule getBreakRule(); /** + * + * *
    * Describes the break schedule to be enforced on this vehicle.
    * If empty, no breaks will be scheduled for this vehicle.
@@ -949,6 +1133,8 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(
   com.google.cloud.optimization.v1.BreakRuleOrBuilder getBreakRuleOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specifies a label for this vehicle. This label is reported in the response
    * as the `vehicle_label` of the corresponding
@@ -956,10 +1142,13 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(
    * 
* * string label = 27; + * * @return The label. */ java.lang.String getLabel(); /** + * + * *
    * Specifies a label for this vehicle. This label is reported in the response
    * as the `vehicle_label` of the corresponding
@@ -967,12 +1156,14 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(
    * 
* * string label = 27; + * * @return The bytes for label. */ - com.google.protobuf.ByteString - getLabelBytes(); + com.google.protobuf.ByteString getLabelBytes(); /** + * + * *
    * If true, `used_if_route_is_empty` must be false, and this vehicle will
    * remain unused.
@@ -990,11 +1181,14 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(
    * 
* * bool ignore = 28; + * * @return The ignore. */ boolean getIgnore(); /** + * + * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -1005,12 +1199,16 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return A list containing the breakRuleIndices. */ - @java.lang.Deprecated java.util.List getBreakRuleIndicesList(); + @java.lang.Deprecated + java.util.List getBreakRuleIndicesList(); /** + * + * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -1021,12 +1219,16 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @return The count of breakRuleIndices. */ - @java.lang.Deprecated int getBreakRuleIndicesCount(); + @java.lang.Deprecated + int getBreakRuleIndicesCount(); /** + * + * *
    * Deprecated: No longer used.
    * Indices in the `break_rule` field in the source
@@ -1037,172 +1239,247 @@ com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(
    * 
* * repeated int32 break_rule_indices = 29 [deprecated = true]; - * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. - * See google/cloud/optimization/v1/fleet_routing.proto;l=1484 + * + * @deprecated google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See + * google/cloud/optimization/v1/fleet_routing.proto;l=1484 * @param index The index of the element to return. * @return The breakRuleIndices at the given index. */ - @java.lang.Deprecated int getBreakRuleIndices(int index); + @java.lang.Deprecated + int getBreakRuleIndices(int index); /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List - getCapacitiesList(); + @java.lang.Deprecated + java.util.List getCapacitiesList(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantity getCapacities(int index); /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated int getCapacitiesCount(); + @java.lang.Deprecated + int getCapacitiesCount(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getCapacitiesOrBuilderList(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder( - int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityOrBuilder getCapacitiesOrBuilder(int index); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getStartLoadIntervalsList(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityInterval getStartLoadIntervals(int index); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated int getStartLoadIntervalsCount(); + @java.lang.Deprecated + int getStartLoadIntervalsCount(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getStartLoadIntervalsOrBuilderList(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder( + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder( int index); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getEndLoadIntervalsList(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index); + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityInterval getEndLoadIntervals(int index); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated int getEndLoadIntervalsCount(); + @java.lang.Deprecated + int getEndLoadIntervalsCount(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated java.util.List + @java.lang.Deprecated + java.util.List getEndLoadIntervalsOrBuilderList(); /** + * + * *
    * Deprecated: Use
    * [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval]
    * instead.
    * 
* - * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * + * repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder( + @java.lang.Deprecated + com.google.cloud.optimization.v1.CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder( int index); } diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java similarity index 71% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java index 1794dabe5b7f..369357c6b68a 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/Waypoint.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; /** + * + * *
  * Encapsulates a waypoint. Waypoints mark arrival and departure locations of
  * VisitRequests, and start and end locations of Vehicles.
@@ -11,48 +28,53 @@
  *
  * Protobuf type {@code google.cloud.optimization.v1.Waypoint}
  */
-public final class Waypoint extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Waypoint extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.optimization.v1.Waypoint)
     WaypointOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Waypoint.newBuilder() to construct.
   private Waypoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Waypoint() {
-  }
+
+  private Waypoint() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Waypoint();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable
+    return com.google.cloud.optimization.v1.FleetRoutingProto
+        .internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.optimization.v1.Waypoint.class, com.google.cloud.optimization.v1.Waypoint.Builder.class);
+            com.google.cloud.optimization.v1.Waypoint.class,
+            com.google.cloud.optimization.v1.Waypoint.Builder.class);
   }
 
   private int locationTypeCase_ = 0;
+
   @SuppressWarnings("serial")
   private java.lang.Object locationType_;
+
   public enum LocationTypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     LOCATION(1),
     PLACE_ID(2),
     LOCATIONTYPE_NOT_SET(0);
     private final int value;
+
     private LocationTypeCase(int value) {
       this.value = value;
     }
@@ -68,31 +90,37 @@ public static LocationTypeCase valueOf(int value) {
 
     public static LocationTypeCase forNumber(int value) {
       switch (value) {
-        case 1: return LOCATION;
-        case 2: return PLACE_ID;
-        case 0: return LOCATIONTYPE_NOT_SET;
-        default: return null;
+        case 1:
+          return LOCATION;
+        case 2:
+          return PLACE_ID;
+        case 0:
+          return LOCATIONTYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public LocationTypeCase
-  getLocationTypeCase() {
-    return LocationTypeCase.forNumber(
-        locationTypeCase_);
+  public LocationTypeCase getLocationTypeCase() {
+    return LocationTypeCase.forNumber(locationTypeCase_);
   }
 
   public static final int LOCATION_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.cloud.optimization.v1.Location location = 1; + * * @return Whether the location field is set. */ @java.lang.Override @@ -100,22 +128,27 @@ public boolean hasLocation() { return locationTypeCase_ == 1; } /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.cloud.optimization.v1.Location location = 1; + * * @return The location. */ @java.lang.Override public com.google.cloud.optimization.v1.Location getLocation() { if (locationTypeCase_ == 1) { - return (com.google.cloud.optimization.v1.Location) locationType_; + return (com.google.cloud.optimization.v1.Location) locationType_; } return com.google.cloud.optimization.v1.Location.getDefaultInstance(); } /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
@@ -126,29 +159,35 @@ public com.google.cloud.optimization.v1.Location getLocation() {
   @java.lang.Override
   public com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder() {
     if (locationTypeCase_ == 1) {
-       return (com.google.cloud.optimization.v1.Location) locationType_;
+      return (com.google.cloud.optimization.v1.Location) locationType_;
     }
     return com.google.cloud.optimization.v1.Location.getDefaultInstance();
   }
 
   public static final int PLACE_ID_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; + * * @return Whether the placeId field is set. */ public boolean hasPlaceId() { return locationTypeCase_ == 2; } /** + * + * *
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; + * * @return The placeId. */ public java.lang.String getPlaceId() { @@ -159,8 +198,7 @@ public java.lang.String getPlaceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (locationTypeCase_ == 2) { locationType_ = s; @@ -169,23 +207,24 @@ public java.lang.String getPlaceId() { } } /** + * + * *
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; + * * @return The bytes for placeId. */ - public com.google.protobuf.ByteString - getPlaceIdBytes() { + public com.google.protobuf.ByteString getPlaceIdBytes() { java.lang.Object ref = ""; if (locationTypeCase_ == 2) { ref = locationType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (locationTypeCase_ == 2) { locationType_ = b; } @@ -198,6 +237,8 @@ public java.lang.String getPlaceId() { public static final int SIDE_OF_ROAD_FIELD_NUMBER = 3; private boolean sideOfRoad_ = false; /** + * + * *
    * Indicates that the location of this waypoint is meant to have a preference
    * for the vehicle to stop at a particular side of road. When you set this
@@ -208,6 +249,7 @@ public java.lang.String getPlaceId() {
    * 
* * bool side_of_road = 3; + * * @return The sideOfRoad. */ @java.lang.Override @@ -216,6 +258,7 @@ public boolean getSideOfRoad() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (locationTypeCase_ == 1) { output.writeMessage(1, (com.google.cloud.optimization.v1.Location) locationType_); } @@ -248,15 +290,15 @@ public int getSerializedSize() { size = 0; if (locationTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.optimization.v1.Location) locationType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.optimization.v1.Location) locationType_); } if (locationTypeCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, locationType_); } if (sideOfRoad_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, sideOfRoad_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, sideOfRoad_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -266,24 +308,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.optimization.v1.Waypoint)) { return super.equals(obj); } - com.google.cloud.optimization.v1.Waypoint other = (com.google.cloud.optimization.v1.Waypoint) obj; + com.google.cloud.optimization.v1.Waypoint other = + (com.google.cloud.optimization.v1.Waypoint) obj; - if (getSideOfRoad() - != other.getSideOfRoad()) return false; + if (getSideOfRoad() != other.getSideOfRoad()) return false; if (!getLocationTypeCase().equals(other.getLocationTypeCase())) return false; switch (locationTypeCase_) { case 1: - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; break; case 2: - if (!getPlaceId() - .equals(other.getPlaceId())) return false; + if (!getPlaceId().equals(other.getPlaceId())) return false; break; case 0: default: @@ -300,8 +340,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SIDE_OF_ROAD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSideOfRoad()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSideOfRoad()); switch (locationTypeCase_) { case 1: hash = (37 * hash) + LOCATION_FIELD_NUMBER; @@ -319,99 +358,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.optimization.v1.Waypoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.optimization.v1.Waypoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.optimization.v1.Waypoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.optimization.v1.Waypoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.optimization.v1.Waypoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.optimization.v1.Waypoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.optimization.v1.Waypoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates a waypoint. Waypoints mark arrival and departure locations of
    * VisitRequests, and start and end locations of Vehicles.
@@ -419,33 +463,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.optimization.v1.Waypoint}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.optimization.v1.Waypoint)
       com.google.cloud.optimization.v1.WaypointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.optimization.v1.Waypoint.class, com.google.cloud.optimization.v1.Waypoint.Builder.class);
+              com.google.cloud.optimization.v1.Waypoint.class,
+              com.google.cloud.optimization.v1.Waypoint.Builder.class);
     }
 
     // Construct using com.google.cloud.optimization.v1.Waypoint.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -460,9 +503,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.optimization.v1.FleetRoutingProto.internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.optimization.v1.FleetRoutingProto
+          .internal_static_google_cloud_optimization_v1_Waypoint_descriptor;
     }
 
     @java.lang.Override
@@ -481,8 +524,11 @@ public com.google.cloud.optimization.v1.Waypoint build() {
 
     @java.lang.Override
     public com.google.cloud.optimization.v1.Waypoint buildPartial() {
-      com.google.cloud.optimization.v1.Waypoint result = new com.google.cloud.optimization.v1.Waypoint(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.optimization.v1.Waypoint result =
+          new com.google.cloud.optimization.v1.Waypoint(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -498,8 +544,7 @@ private void buildPartial0(com.google.cloud.optimization.v1.Waypoint result) {
     private void buildPartialOneofs(com.google.cloud.optimization.v1.Waypoint result) {
       result.locationTypeCase_ = locationTypeCase_;
       result.locationType_ = this.locationType_;
-      if (locationTypeCase_ == 1 &&
-          locationBuilder_ != null) {
+      if (locationTypeCase_ == 1 && locationBuilder_ != null) {
         result.locationType_ = locationBuilder_.build();
       }
     }
@@ -508,38 +553,39 @@ private void buildPartialOneofs(com.google.cloud.optimization.v1.Waypoint result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.optimization.v1.Waypoint) {
-        return mergeFrom((com.google.cloud.optimization.v1.Waypoint)other);
+        return mergeFrom((com.google.cloud.optimization.v1.Waypoint) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -552,19 +598,22 @@ public Builder mergeFrom(com.google.cloud.optimization.v1.Waypoint other) {
         setSideOfRoad(other.getSideOfRoad());
       }
       switch (other.getLocationTypeCase()) {
-        case LOCATION: {
-          mergeLocation(other.getLocation());
-          break;
-        }
-        case PLACE_ID: {
-          locationTypeCase_ = 2;
-          locationType_ = other.locationType_;
-          onChanged();
-          break;
-        }
-        case LOCATIONTYPE_NOT_SET: {
-          break;
-        }
+        case LOCATION:
+          {
+            mergeLocation(other.getLocation());
+            break;
+          }
+        case PLACE_ID:
+          {
+            locationTypeCase_ = 2;
+            locationType_ = other.locationType_;
+            onChanged();
+            break;
+          }
+        case LOCATIONTYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -592,30 +641,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getLocationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              locationTypeCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              locationTypeCase_ = 2;
-              locationType_ = s;
-              break;
-            } // case 18
-            case 24: {
-              sideOfRoad_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getLocationFieldBuilder().getBuilder(), extensionRegistry);
+                locationTypeCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                locationTypeCase_ = 2;
+                locationType_ = s;
+                break;
+              } // case 18
+            case 24:
+              {
+                sideOfRoad_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -625,12 +676,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int locationTypeCase_ = 0;
     private java.lang.Object locationType_;
-    public LocationTypeCase
-        getLocationTypeCase() {
-      return LocationTypeCase.forNumber(
-          locationTypeCase_);
+
+    public LocationTypeCase getLocationTypeCase() {
+      return LocationTypeCase.forNumber(locationTypeCase_);
     }
 
     public Builder clearLocationType() {
@@ -643,14 +694,20 @@ public Builder clearLocationType() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Location, com.google.cloud.optimization.v1.Location.Builder, com.google.cloud.optimization.v1.LocationOrBuilder> locationBuilder_;
+            com.google.cloud.optimization.v1.Location,
+            com.google.cloud.optimization.v1.Location.Builder,
+            com.google.cloud.optimization.v1.LocationOrBuilder>
+        locationBuilder_;
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
      * 
* * .google.cloud.optimization.v1.Location location = 1; + * * @return Whether the location field is set. */ @java.lang.Override @@ -658,12 +715,15 @@ public boolean hasLocation() { return locationTypeCase_ == 1; } /** + * + * *
      * A point specified using geographic coordinates, including an optional
      * heading.
      * 
* * .google.cloud.optimization.v1.Location location = 1; + * * @return The location. */ @java.lang.Override @@ -681,6 +741,8 @@ public com.google.cloud.optimization.v1.Location getLocation() { } } /** + * + * *
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -702,6 +764,8 @@ public Builder setLocation(com.google.cloud.optimization.v1.Location value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -709,8 +773,7 @@ public Builder setLocation(com.google.cloud.optimization.v1.Location value) {
      *
      * .google.cloud.optimization.v1.Location location = 1;
      */
-    public Builder setLocation(
-        com.google.cloud.optimization.v1.Location.Builder builderForValue) {
+    public Builder setLocation(com.google.cloud.optimization.v1.Location.Builder builderForValue) {
       if (locationBuilder_ == null) {
         locationType_ = builderForValue.build();
         onChanged();
@@ -721,6 +784,8 @@ public Builder setLocation(
       return this;
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -730,10 +795,13 @@ public Builder setLocation(
      */
     public Builder mergeLocation(com.google.cloud.optimization.v1.Location value) {
       if (locationBuilder_ == null) {
-        if (locationTypeCase_ == 1 &&
-            locationType_ != com.google.cloud.optimization.v1.Location.getDefaultInstance()) {
-          locationType_ = com.google.cloud.optimization.v1.Location.newBuilder((com.google.cloud.optimization.v1.Location) locationType_)
-              .mergeFrom(value).buildPartial();
+        if (locationTypeCase_ == 1
+            && locationType_ != com.google.cloud.optimization.v1.Location.getDefaultInstance()) {
+          locationType_ =
+              com.google.cloud.optimization.v1.Location.newBuilder(
+                      (com.google.cloud.optimization.v1.Location) locationType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           locationType_ = value;
         }
@@ -749,6 +817,8 @@ public Builder mergeLocation(com.google.cloud.optimization.v1.Location value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -773,6 +843,8 @@ public Builder clearLocation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -784,6 +856,8 @@ public com.google.cloud.optimization.v1.Location.Builder getLocationBuilder() {
       return getLocationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -803,6 +877,8 @@ public com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -811,14 +887,19 @@ public com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder()
      * .google.cloud.optimization.v1.Location location = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.optimization.v1.Location, com.google.cloud.optimization.v1.Location.Builder, com.google.cloud.optimization.v1.LocationOrBuilder> 
+            com.google.cloud.optimization.v1.Location,
+            com.google.cloud.optimization.v1.Location.Builder,
+            com.google.cloud.optimization.v1.LocationOrBuilder>
         getLocationFieldBuilder() {
       if (locationBuilder_ == null) {
         if (!(locationTypeCase_ == 1)) {
           locationType_ = com.google.cloud.optimization.v1.Location.getDefaultInstance();
         }
-        locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.optimization.v1.Location, com.google.cloud.optimization.v1.Location.Builder, com.google.cloud.optimization.v1.LocationOrBuilder>(
+        locationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.optimization.v1.Location,
+                com.google.cloud.optimization.v1.Location.Builder,
+                com.google.cloud.optimization.v1.LocationOrBuilder>(
                 (com.google.cloud.optimization.v1.Location) locationType_,
                 getParentForChildren(),
                 isClean());
@@ -830,11 +911,14 @@ public com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder()
     }
 
     /**
+     *
+     *
      * 
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; + * * @return Whether the placeId field is set. */ @java.lang.Override @@ -842,11 +926,14 @@ public boolean hasPlaceId() { return locationTypeCase_ == 2; } /** + * + * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; + * * @return The placeId. */ @java.lang.Override @@ -856,8 +943,7 @@ public java.lang.String getPlaceId() { ref = locationType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (locationTypeCase_ == 2) { locationType_ = s; @@ -868,24 +954,25 @@ public java.lang.String getPlaceId() { } } /** + * + * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; + * * @return The bytes for placeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPlaceIdBytes() { + public com.google.protobuf.ByteString getPlaceIdBytes() { java.lang.Object ref = ""; if (locationTypeCase_ == 2) { ref = locationType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (locationTypeCase_ == 2) { locationType_ = b; } @@ -895,28 +982,35 @@ public java.lang.String getPlaceId() { } } /** + * + * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; + * * @param value The placeId to set. * @return This builder for chaining. */ - public Builder setPlaceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPlaceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } locationTypeCase_ = 2; locationType_ = value; onChanged(); return this; } /** + * + * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; + * * @return This builder for chaining. */ public Builder clearPlaceId() { @@ -928,17 +1022,21 @@ public Builder clearPlaceId() { return this; } /** + * + * *
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; + * * @param value The bytes for placeId to set. * @return This builder for chaining. */ - public Builder setPlaceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); locationTypeCase_ = 2; locationType_ = value; @@ -946,8 +1044,10 @@ public Builder setPlaceIdBytes( return this; } - private boolean sideOfRoad_ ; + private boolean sideOfRoad_; /** + * + * *
      * Indicates that the location of this waypoint is meant to have a preference
      * for the vehicle to stop at a particular side of road. When you set this
@@ -958,6 +1058,7 @@ public Builder setPlaceIdBytes(
      * 
* * bool side_of_road = 3; + * * @return The sideOfRoad. */ @java.lang.Override @@ -965,6 +1066,8 @@ public boolean getSideOfRoad() { return sideOfRoad_; } /** + * + * *
      * Indicates that the location of this waypoint is meant to have a preference
      * for the vehicle to stop at a particular side of road. When you set this
@@ -975,6 +1078,7 @@ public boolean getSideOfRoad() {
      * 
* * bool side_of_road = 3; + * * @param value The sideOfRoad to set. * @return This builder for chaining. */ @@ -986,6 +1090,8 @@ public Builder setSideOfRoad(boolean value) { return this; } /** + * + * *
      * Indicates that the location of this waypoint is meant to have a preference
      * for the vehicle to stop at a particular side of road. When you set this
@@ -996,6 +1102,7 @@ public Builder setSideOfRoad(boolean value) {
      * 
* * bool side_of_road = 3; + * * @return This builder for chaining. */ public Builder clearSideOfRoad() { @@ -1004,9 +1111,9 @@ public Builder clearSideOfRoad() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1016,12 +1123,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.optimization.v1.Waypoint) } // @@protoc_insertion_point(class_scope:google.cloud.optimization.v1.Waypoint) private static final com.google.cloud.optimization.v1.Waypoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.optimization.v1.Waypoint(); } @@ -1030,27 +1137,27 @@ public static com.google.cloud.optimization.v1.Waypoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Waypoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Waypoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1065,6 +1172,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.optimization.v1.Waypoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java similarity index 74% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java rename to java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java index 4f923368a073..a7981e0ac51d 100644 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java +++ b/java-optimization/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/WaypointOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/optimization/v1/fleet_routing.proto package com.google.cloud.optimization.v1; -public interface WaypointOrBuilder extends +public interface WaypointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.Waypoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.cloud.optimization.v1.Location location = 1; + * * @return Whether the location field is set. */ boolean hasLocation(); /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.cloud.optimization.v1.Location location = 1; + * * @return The location. */ com.google.cloud.optimization.v1.Location getLocation(); /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
@@ -38,35 +62,45 @@ public interface WaypointOrBuilder extends
   com.google.cloud.optimization.v1.LocationOrBuilder getLocationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; + * * @return Whether the placeId field is set. */ boolean hasPlaceId(); /** + * + * *
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; + * * @return The placeId. */ java.lang.String getPlaceId(); /** + * + * *
    * The POI Place ID associated with the waypoint.
    * 
* * string place_id = 2; + * * @return The bytes for placeId. */ - com.google.protobuf.ByteString - getPlaceIdBytes(); + com.google.protobuf.ByteString getPlaceIdBytes(); /** + * + * *
    * Indicates that the location of this waypoint is meant to have a preference
    * for the vehicle to stop at a particular side of road. When you set this
@@ -77,6 +111,7 @@ public interface WaypointOrBuilder extends
    * 
* * bool side_of_road = 3; + * * @return The sideOfRoad. */ boolean getSideOfRoad(); diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto b/java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto similarity index 100% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto rename to java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/async_model.proto diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto b/java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto similarity index 100% rename from owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto rename to java-optimization/proto-google-cloud-optimization-v1/src/main/proto/google/cloud/optimization/v1/fleet_routing.proto diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeTours.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/AsyncBatchOptimizeToursLRO.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/batchoptimizetours/SyncBatchOptimizeTours.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/AsyncOptimizeTours.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetrouting/optimizetours/SyncOptimizeTours.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/fleetroutingsettings/optimizetours/SyncOptimizeTours.java diff --git a/owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java b/java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java similarity index 100% rename from owl-bot-staging/java-optimization/v1/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java rename to java-optimization/samples/snippets/generated/com/google/cloud/optimization/v1/stub/fleetroutingstubsettings/optimizetours/SyncOptimizeTours.java diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java deleted file mode 100644 index b0aaca5a9554..000000000000 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/AsyncModelProto.java +++ /dev/null @@ -1,124 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/optimization/v1/async_model.proto - -package com.google.cloud.optimization.v1; - -public final class AsyncModelProto { - private AsyncModelProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/optimization/v1/async_mod" + - "el.proto\022\034google.cloud.optimization.v1\032\037" + - "google/api/field_behavior.proto\032\037google/" + - "protobuf/timestamp.proto\"\225\001\n\013InputConfig" + - "\022=\n\ngcs_source\030\001 \001(\0132\'.google.cloud.opti" + - "mization.v1.GcsSourceH\000\022=\n\013data_format\030\002" + - " \001(\0162(.google.cloud.optimization.v1.Data" + - "FormatB\010\n\006source\"\245\001\n\014OutputConfig\022G\n\017gcs" + - "_destination\030\001 \001(\0132,.google.cloud.optimi" + - "zation.v1.GcsDestinationH\000\022=\n\013data_forma" + - "t\030\002 \001(\0162(.google.cloud.optimization.v1.D" + - "ataFormatB\r\n\013destination\"\036\n\tGcsSource\022\021\n" + - "\003uri\030\001 \001(\tB\004\342A\001\002\"#\n\016GcsDestination\022\021\n\003ur" + - "i\030\001 \001(\tB\004\342A\001\002\"\253\002\n\022AsyncModelMetadata\022E\n\005" + - "state\030\001 \001(\01626.google.cloud.optimization." + - "v1.AsyncModelMetadata.State\022\025\n\rstate_mes" + - "sage\030\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google" + - ".protobuf.Timestamp\022/\n\013update_time\030\004 \001(\013" + - "2\032.google.protobuf.Timestamp\"U\n\005State\022\025\n" + - "\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUC" + - "CEEDED\020\002\022\r\n\tCANCELLED\020\003\022\n\n\006FAILED\020\004*?\n\nD" + - "ataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010" + - "\n\004JSON\020\001\022\n\n\006STRING\020\002B{\n com.google.cloud" + - ".optimization.v1B\017AsyncModelProtoP\001ZDclo" + - "ud.google.com/go/optimization/apiv1/opti" + - "mizationpb;optimizationpbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_optimization_v1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_optimization_v1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_InputConfig_descriptor, - new java.lang.String[] { "GcsSource", "DataFormat", "Source", }); - internal_static_google_cloud_optimization_v1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_optimization_v1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "DataFormat", "Destination", }); - internal_static_google_cloud_optimization_v1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_optimization_v1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_GcsSource_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_optimization_v1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_optimization_v1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_AsyncModelMetadata_descriptor, - new java.lang.String[] { "State", "StateMessage", "CreateTime", "UpdateTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java deleted file mode 100644 index f8c29b1334a4..000000000000 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/BatchOptimizeToursResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/optimization/v1/fleet_routing.proto - -package com.google.cloud.optimization.v1; - -public interface BatchOptimizeToursResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.BatchOptimizeToursResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java deleted file mode 100644 index 8160e4f7631a..000000000000 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/CapacityQuantityOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/optimization/v1/fleet_routing.proto - -package com.google.cloud.optimization.v1; - -@java.lang.Deprecated public interface CapacityQuantityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.optimization.v1.CapacityQuantity) - com.google.protobuf.MessageOrBuilder { - - /** - * string type = 1; - * @return The type. - */ - java.lang.String getType(); - /** - * string type = 1; - * @return The bytes for type. - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - * int64 value = 2; - * @return The value. - */ - long getValue(); -} diff --git a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java b/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java deleted file mode 100644 index 427a75b29621..000000000000 --- a/owl-bot-staging/java-optimization/v1/proto-google-cloud-optimization-v1/src/main/java/com/google/cloud/optimization/v1/FleetRoutingProto.java +++ /dev/null @@ -1,1153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/optimization/v1/fleet_routing.proto - -package com.google.cloud.optimization.v1; - -public final class FleetRoutingProto { - private FleetRoutingProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_TimeWindow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Waypoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_Location_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BreakRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/optimization/v1/fleet_rou" + - "ting.proto\022\034google.cloud.optimization.v1" + - "\032\034google/api/annotations.proto\032\027google/a" + - "pi/client.proto\032\037google/api/field_behavi" + - "or.proto\032.google/cloud/optimization/v1/a" + - "sync_model.proto\032#google/longrunning/ope" + - "rations.proto\032\036google/protobuf/duration." + - "proto\032\037google/protobuf/timestamp.proto\032\030" + - "google/type/latlng.proto\"\245\t\n\024OptimizeTou" + - "rsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022*\n\007timeo" + - "ut\030\002 \001(\0132\031.google.protobuf.Duration\022:\n\005m" + - "odel\030\003 \001(\0132+.google.cloud.optimization.v" + - "1.ShipmentModel\022T\n\014solving_mode\030\004 \001(\0162>." + - "google.cloud.optimization.v1.OptimizeTou" + - "rsRequest.SolvingMode\022R\n\013search_mode\030\006 \001" + - "(\0162=.google.cloud.optimization.v1.Optimi" + - "zeToursRequest.SearchMode\022S\n\036injected_fi" + - "rst_solution_routes\030\007 \003(\0132+.google.cloud" + - ".optimization.v1.ShipmentRoute\022^\n\034inject" + - "ed_solution_constraint\030\010 \001(\01328.google.cl" + - "oud.optimization.v1.InjectedSolutionCons" + - "traint\022K\n\026refresh_details_routes\030\t \003(\0132+" + - ".google.cloud.optimization.v1.ShipmentRo" + - "ute\0221\n)interpret_injected_solutions_usin" + - "g_labels\030\n \001(\010\022\035\n\025consider_road_traffic\030" + - "\013 \001(\010\022\032\n\022populate_polylines\030\014 \001(\010\022%\n\035pop" + - "ulate_transition_polylines\030\r \001(\010\0226\n.allo" + - "w_large_deadline_despite_interruption_ri" + - "sk\030\016 \001(\010\022\036\n\026use_geodesic_distances\030\017 \001(\010" + - "\022\'\n\032geodesic_meters_per_second\030\020 \001(\001H\000\210\001" + - "\001\022\"\n\025max_validation_errors\030\005 \001(\005H\001\210\001\001\022\r\n" + - "\005label\030\021 \001(\t\022*\n\036populate_travel_step_pol" + - "ylines\030\024 \001(\010B\002\030\001\"Y\n\013SolvingMode\022\021\n\rDEFAU" + - "LT_SOLVE\020\000\022\021\n\rVALIDATE_ONLY\020\001\022$\n DETECT_" + - "SOME_INFEASIBLE_SHIPMENTS\020\002\"Z\n\nSearchMod" + - "e\022\033\n\027SEARCH_MODE_UNSPECIFIED\020\000\022\017\n\013RETURN" + - "_FAST\020\001\022\036\n\032CONSUME_ALL_AVAILABLE_TIME\020\002B" + - "\035\n\033_geodesic_meters_per_secondB\030\n\026_max_v" + - "alidation_errors\"\256\006\n\025OptimizeToursRespon" + - "se\022;\n\006routes\030\001 \003(\0132+.google.cloud.optimi" + - "zation.v1.ShipmentRoute\022\025\n\rrequest_label" + - "\030\003 \001(\t\022H\n\021skipped_shipments\030\004 \003(\0132-.goog" + - "le.cloud.optimization.v1.SkippedShipment" + - "\022U\n\021validation_errors\030\005 \003(\0132:.google.clo" + - "ud.optimization.v1.OptimizeToursValidati" + - "onError\022L\n\007metrics\030\006 \001(\0132;.google.cloud." + - "optimization.v1.OptimizeToursResponse.Me" + - "trics\022\026\n\ntotal_cost\030\002 \001(\001B\002\030\001\032\271\003\n\007Metric" + - "s\022Q\n\030aggregated_route_metrics\030\001 \001(\0132/.go" + - "ogle.cloud.optimization.v1.AggregatedMet" + - "rics\022(\n skipped_mandatory_shipment_count" + - "\030\002 \001(\005\022\032\n\022used_vehicle_count\030\003 \001(\005\022?\n\033ea" + - "rliest_vehicle_start_time\030\004 \001(\0132\032.google" + - ".protobuf.Timestamp\022;\n\027latest_vehicle_en" + - "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + - "\022U\n\005costs\030\n \003(\0132F.google.cloud.optimizat" + - "ion.v1.OptimizeToursResponse.Metrics.Cos" + - "tsEntry\022\022\n\ntotal_cost\030\006 \001(\001\032,\n\nCostsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\357\002\n\031Ba" + - "tchOptimizeToursRequest\022\024\n\006parent\030\001 \001(\tB" + - "\004\342A\001\002\022e\n\rmodel_configs\030\002 \003(\0132H.google.cl" + - "oud.optimization.v1.BatchOptimizeToursRe" + - "quest.AsyncModelConfigB\004\342A\001\002\032\324\001\n\020AsyncMo" + - "delConfig\022\024\n\014display_name\030\001 \001(\t\022E\n\014input" + - "_config\030\002 \001(\0132).google.cloud.optimizatio" + - "n.v1.InputConfigB\004\342A\001\002\022G\n\routput_config\030" + - "\003 \001(\0132*.google.cloud.optimization.v1.Out" + - "putConfigB\004\342A\001\002\022\032\n\022enable_checkpoints\030\004 " + - "\001(\010\"\034\n\032BatchOptimizeToursResponse\"\237\017\n\rSh" + - "ipmentModel\0229\n\tshipments\030\001 \003(\0132&.google." + - "cloud.optimization.v1.Shipment\0227\n\010vehicl" + - "es\030\002 \003(\0132%.google.cloud.optimization.v1." + - "Vehicle\022 \n\023max_active_vehicles\030\004 \001(\005H\000\210\001" + - "\001\0225\n\021global_start_time\030\005 \001(\0132\032.google.pr" + - "otobuf.Timestamp\0223\n\017global_end_time\030\006 \001(" + - "\0132\032.google.protobuf.Timestamp\022%\n\035global_" + - "duration_cost_per_hour\030\007 \001(\001\022f\n\032duration" + - "_distance_matrices\030\010 \003(\0132B.google.cloud." + - "optimization.v1.ShipmentModel.DurationDi" + - "stanceMatrix\022)\n!duration_distance_matrix" + - "_src_tags\030\t \003(\t\022)\n!duration_distance_mat" + - "rix_dst_tags\030\n \003(\t\022Q\n\025transition_attribu" + - "tes\030\013 \003(\01322.google.cloud.optimization.v1" + - ".TransitionAttributes\022b\n\037shipment_type_i" + - "ncompatibilities\030\014 \003(\01329.google.cloud.op" + - "timization.v1.ShipmentTypeIncompatibilit" + - "y\022Y\n\032shipment_type_requirements\030\r \003(\01325." + - "google.cloud.optimization.v1.ShipmentTyp" + - "eRequirement\022T\n\020precedence_rules\030\016 \003(\0132:" + - ".google.cloud.optimization.v1.ShipmentMo" + - "del.PrecedenceRule\022N\n\013break_rules\030\017 \003(\0132" + - "5.google.cloud.optimization.v1.ShipmentM" + - "odel.BreakRuleB\002\030\001\032\316\001\n\026DurationDistanceM" + - "atrix\022T\n\004rows\030\001 \003(\0132F.google.cloud.optim" + - "ization.v1.ShipmentModel.DurationDistanc" + - "eMatrix.Row\022\031\n\021vehicle_start_tag\030\002 \001(\t\032C" + - "\n\003Row\022,\n\tdurations\030\001 \003(\0132\031.google.protob" + - "uf.Duration\022\016\n\006meters\030\002 \003(\001\032\321\001\n\016Preceden" + - "ceRule\022\030\n\013first_index\030\001 \001(\005H\000\210\001\001\022\031\n\021firs" + - "t_is_delivery\030\003 \001(\010\022\031\n\014second_index\030\002 \001(" + - "\005H\001\210\001\001\022\032\n\022second_is_delivery\030\004 \001(\010\0222\n\017of" + - "fset_duration\030\005 \001(\0132\031.google.protobuf.Du" + - "rationB\016\n\014_first_indexB\017\n\r_second_index\032" + - "\261\004\n\tBreakRule\022Z\n\016break_requests\030\001 \003(\0132B." + - "google.cloud.optimization.v1.ShipmentMod" + - "el.BreakRule.BreakRequest\022h\n\025frequency_c" + - "onstraints\030\002 \003(\0132I.google.cloud.optimiza" + - "tion.v1.ShipmentModel.BreakRule.Frequenc" + - "yConstraint\032\301\001\n\014BreakRequest\022=\n\023earliest" + - "_start_time\030\001 \001(\0132\032.google.protobuf.Time" + - "stampB\004\342A\001\002\022;\n\021latest_start_time\030\002 \001(\0132\032" + - ".google.protobuf.TimestampB\004\342A\001\002\0225\n\014min_" + - "duration\030\003 \001(\0132\031.google.protobuf.Duratio" + - "nB\004\342A\001\002\032\225\001\n\023FrequencyConstraint\022;\n\022min_b" + - "reak_duration\030\001 \001(\0132\031.google.protobuf.Du" + - "rationB\004\342A\001\002\022A\n\030max_inter_break_duration" + - "\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\002:" + - "\002\030\001B\026\n\024_max_active_vehicles\"\200\014\n\010Shipment" + - "\022D\n\007pickups\030\001 \003(\01323.google.cloud.optimiz" + - "ation.v1.Shipment.VisitRequest\022G\n\ndelive" + - "ries\030\002 \003(\01323.google.cloud.optimization.v" + - "1.Shipment.VisitRequest\022M\n\014load_demands\030" + - "\016 \003(\01327.google.cloud.optimization.v1.Shi" + - "pment.LoadDemandsEntry\022\031\n\014penalty_cost\030\004" + - " \001(\001H\000\210\001\001\022\037\n\027allowed_vehicle_indices\030\005 \003" + - "(\005\022\031\n\021costs_per_vehicle\030\006 \003(\001\022!\n\031costs_p" + - "er_vehicle_indices\030\007 \003(\005\0225\n(pickup_to_de" + - "livery_relative_detour_limit\030\010 \001(\001H\001\210\001\001\022" + - "K\n(pickup_to_delivery_absolute_detour_li" + - "mit\030\t \001(\0132\031.google.protobuf.Duration\022@\n\035" + - "pickup_to_delivery_time_limit\030\n \001(\0132\031.go" + - "ogle.protobuf.Duration\022\025\n\rshipment_type\030" + - "\013 \001(\t\022\r\n\005label\030\014 \001(\t\022\016\n\006ignore\030\r \001(\010\022C\n\007" + - "demands\030\003 \003(\0132..google.cloud.optimizatio" + - "n.v1.CapacityQuantityB\002\030\001\032\243\005\n\014VisitReque" + - "st\022-\n\020arrival_location\030\001 \001(\0132\023.google.ty" + - "pe.LatLng\022@\n\020arrival_waypoint\030\002 \001(\0132&.go" + - "ogle.cloud.optimization.v1.Waypoint\022/\n\022d" + - "eparture_location\030\003 \001(\0132\023.google.type.La" + - "tLng\022B\n\022departure_waypoint\030\004 \001(\0132&.googl" + - "e.cloud.optimization.v1.Waypoint\022\014\n\004tags" + - "\030\005 \003(\t\022>\n\014time_windows\030\006 \003(\0132(.google.cl" + - "oud.optimization.v1.TimeWindow\022+\n\010durati" + - "on\030\007 \001(\0132\031.google.protobuf.Duration\022\014\n\004c" + - "ost\030\010 \001(\001\022Z\n\014load_demands\030\014 \003(\0132D.google" + - ".cloud.optimization.v1.Shipment.VisitReq" + - "uest.LoadDemandsEntry\022\023\n\013visit_types\030\n \003" + - "(\t\022\r\n\005label\030\013 \001(\t\022C\n\007demands\030\t \003(\0132..goo" + - "gle.cloud.optimization.v1.CapacityQuanti" + - "tyB\002\030\001\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001 \001(\t\022" + - ":\n\005value\030\002 \001(\0132+.google.cloud.optimizati" + - "on.v1.Shipment.Load:\0028\001\032\026\n\004Load\022\016\n\006amoun" + - "t\030\002 \001(\003\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001 \001(\t" + - "\022:\n\005value\030\002 \001(\0132+.google.cloud.optimizat" + - "ion.v1.Shipment.Load:\0028\001B\017\n\r_penalty_cos" + - "tB+\n)_pickup_to_delivery_relative_detour" + - "_limit\"\242\002\n\033ShipmentTypeIncompatibility\022\r" + - "\n\005types\030\001 \003(\t\022k\n\024incompatibility_mode\030\002 " + - "\001(\0162M.google.cloud.optimization.v1.Shipm" + - "entTypeIncompatibility.IncompatibilityMo" + - "de\"\206\001\n\023IncompatibilityMode\022$\n INCOMPATIB" + - "ILITY_MODE_UNSPECIFIED\020\000\022!\n\035NOT_PERFORME" + - "D_BY_SAME_VEHICLE\020\001\022&\n\"NOT_IN_SAME_VEHIC" + - "LE_SIMULTANEOUSLY\020\002\"\350\002\n\027ShipmentTypeRequ" + - "irement\022+\n#required_shipment_type_altern" + - "atives\030\001 \003(\t\022 \n\030dependent_shipment_types" + - "\030\002 \003(\t\022_\n\020requirement_mode\030\003 \001(\0162E.googl" + - "e.cloud.optimization.v1.ShipmentTypeRequ" + - "irement.RequirementMode\"\234\001\n\017RequirementM" + - "ode\022 \n\034REQUIREMENT_MODE_UNSPECIFIED\020\000\022\035\n" + - "\031PERFORMED_BY_SAME_VEHICLE\020\001\022\"\n\036IN_SAME_" + - "VEHICLE_AT_PICKUP_TIME\020\002\022$\n IN_SAME_VEHI" + - "CLE_AT_DELIVERY_TIME\020\003\"p\n\016RouteModifiers" + - "\022\023\n\013avoid_tolls\030\002 \001(\010\022\026\n\016avoid_highways\030" + - "\003 \001(\010\022\025\n\ravoid_ferries\030\004 \001(\010\022\032\n\014avoid_in" + - "door\030\005 \001(\010B\004\342A\001\001\"\233\025\n\007Vehicle\022E\n\013travel_m" + - "ode\030\001 \001(\01620.google.cloud.optimization.v1" + - ".Vehicle.TravelMode\022K\n\017route_modifiers\030\002" + - " \001(\0132,.google.cloud.optimization.v1.Rout" + - "eModifiersB\004\342A\001\001\022+\n\016start_location\030\003 \001(\013" + - "2\023.google.type.LatLng\022>\n\016start_waypoint\030" + - "\004 \001(\0132&.google.cloud.optimization.v1.Way" + - "point\022)\n\014end_location\030\005 \001(\0132\023.google.typ" + - "e.LatLng\022<\n\014end_waypoint\030\006 \001(\0132&.google." + - "cloud.optimization.v1.Waypoint\022\022\n\nstart_" + - "tags\030\007 \003(\t\022\020\n\010end_tags\030\010 \003(\t\022D\n\022start_ti" + - "me_windows\030\t \003(\0132(.google.cloud.optimiza" + - "tion.v1.TimeWindow\022B\n\020end_time_windows\030\n" + - " \003(\0132(.google.cloud.optimization.v1.Time" + - "Window\022%\n\030travel_duration_multiple\030\013 \001(\001" + - "H\000\210\001\001\022O\n\020unloading_policy\030\014 \001(\01625.google" + - ".cloud.optimization.v1.Vehicle.Unloading" + - "Policy\022J\n\013load_limits\030\036 \003(\01325.google.clo" + - "ud.optimization.v1.Vehicle.LoadLimitsEnt" + - "ry\022\025\n\rcost_per_hour\030\020 \001(\001\022\036\n\026cost_per_tr" + - "aveled_hour\030\021 \001(\001\022\032\n\022cost_per_kilometer\030" + - "\022 \001(\001\022\022\n\nfixed_cost\030\023 \001(\001\022\036\n\026used_if_rou" + - "te_is_empty\030\024 \001(\010\022Q\n\024route_duration_limi" + - "t\030\025 \001(\01323.google.cloud.optimization.v1.V" + - "ehicle.DurationLimit\022R\n\025travel_duration_" + - "limit\030\026 \001(\01323.google.cloud.optimization." + - "v1.Vehicle.DurationLimit\022I\n\024route_distan" + - "ce_limit\030\027 \001(\0132+.google.cloud.optimizati" + - "on.v1.DistanceLimit\022v\n#extra_visit_durat" + - "ion_for_visit_type\030\030 \003(\0132I.google.cloud." + - "optimization.v1.Vehicle.ExtraVisitDurati" + - "onForVisitTypeEntry\022;\n\nbreak_rule\030\031 \001(\0132" + - "\'.google.cloud.optimization.v1.BreakRule" + - "\022\r\n\005label\030\033 \001(\t\022\016\n\006ignore\030\034 \001(\010\022\036\n\022break" + - "_rule_indices\030\035 \003(\005B\002\030\001\022F\n\ncapacities\030\r " + - "\003(\0132..google.cloud.optimization.v1.Capac" + - "ityQuantityB\002\030\001\022X\n\024start_load_intervals\030" + - "\016 \003(\01326.google.cloud.optimization.v1.Cap" + - "acityQuantityIntervalB\002\030\001\022V\n\022end_load_in" + - "tervals\030\017 \003(\01326.google.cloud.optimizatio" + - "n.v1.CapacityQuantityIntervalB\002\030\001\032\313\002\n\tLo" + - "adLimit\022\025\n\010max_load\030\001 \001(\003H\000\210\001\001\022\025\n\rsoft_m" + - "ax_load\030\002 \001(\003\022$\n\034cost_per_unit_above_sof" + - "t_max\030\003 \001(\001\022U\n\023start_load_interval\030\004 \001(\013" + - "28.google.cloud.optimization.v1.Vehicle." + - "LoadLimit.Interval\022S\n\021end_load_interval\030" + - "\005 \001(\01328.google.cloud.optimization.v1.Veh" + - "icle.LoadLimit.Interval\0321\n\010Interval\022\013\n\003m" + - "in\030\001 \001(\003\022\020\n\003max\030\002 \001(\003H\000\210\001\001B\006\n\004_maxB\013\n\t_m" + - "ax_load\032\360\002\n\rDurationLimit\022/\n\014max_duratio" + - "n\030\001 \001(\0132\031.google.protobuf.Duration\0224\n\021so" + - "ft_max_duration\030\002 \001(\0132\031.google.protobuf." + - "Duration\022)\n\034cost_per_hour_after_soft_max" + - "\030\003 \001(\001H\000\210\001\001\022>\n\033quadratic_soft_max_durati" + - "on\030\004 \001(\0132\031.google.protobuf.Duration\022:\n-c" + - "ost_per_square_hour_after_quadratic_soft" + - "_max\030\005 \001(\001H\001\210\001\001B\037\n\035_cost_per_hour_after_" + - "soft_maxB0\n._cost_per_square_hour_after_" + - "quadratic_soft_max\032b\n\017LoadLimitsEntry\022\013\n" + - "\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.google.cloud" + - ".optimization.v1.Vehicle.LoadLimit:\0028\001\032`" + - "\n#ExtraVisitDurationForVisitTypeEntry\022\013\n" + - "\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.google.proto" + - "buf.Duration:\0028\001\"C\n\nTravelMode\022\033\n\027TRAVEL" + - "_MODE_UNSPECIFIED\020\000\022\013\n\007DRIVING\020\001\022\013\n\007WALK" + - "ING\020\002\"b\n\017UnloadingPolicy\022 \n\034UNLOADING_PO" + - "LICY_UNSPECIFIED\020\000\022\025\n\021LAST_IN_FIRST_OUT\020" + - "\001\022\026\n\022FIRST_IN_FIRST_OUT\020\002B\033\n\031_travel_dur" + - "ation_multiple\"\204\003\n\nTimeWindow\022.\n\nstart_t" + - "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + - "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + - "amp\0223\n\017soft_start_time\030\003 \001(\0132\032.google.pr" + - "otobuf.Timestamp\0221\n\rsoft_end_time\030\004 \001(\0132" + - "\032.google.protobuf.Timestamp\0221\n$cost_per_" + - "hour_before_soft_start_time\030\005 \001(\001H\000\210\001\001\022." + - "\n!cost_per_hour_after_soft_end_time\030\006 \001(" + - "\001H\001\210\001\001B\'\n%_cost_per_hour_before_soft_sta" + - "rt_timeB$\n\"_cost_per_hour_after_soft_end" + - "_time\"3\n\020CapacityQuantity\022\014\n\004type\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\003:\002\030\001\"x\n\030CapacityQuantityIn" + - "terval\022\014\n\004type\030\001 \001(\t\022\026\n\tmin_value\030\002 \001(\003H" + - "\000\210\001\001\022\026\n\tmax_value\030\003 \001(\003H\001\210\001\001:\002\030\001B\014\n\n_min" + - "_valueB\014\n\n_max_value\"\225\002\n\rDistanceLimit\022\027" + - "\n\nmax_meters\030\001 \001(\003H\000\210\001\001\022\034\n\017soft_max_mete" + - "rs\030\002 \001(\003H\001\210\001\001\022.\n!cost_per_kilometer_belo" + - "w_soft_max\030\004 \001(\001H\002\210\001\001\022.\n!cost_per_kilome" + - "ter_above_soft_max\030\003 \001(\001H\003\210\001\001B\r\n\013_max_me" + - "tersB\022\n\020_soft_max_metersB$\n\"_cost_per_ki" + - "lometer_below_soft_maxB$\n\"_cost_per_kilo" + - "meter_above_soft_max\"\205\002\n\024TransitionAttri" + - "butes\022\017\n\007src_tag\030\001 \001(\t\022\030\n\020excluded_src_t" + - "ag\030\002 \001(\t\022\017\n\007dst_tag\030\003 \001(\t\022\030\n\020excluded_ds" + - "t_tag\030\004 \001(\t\022\014\n\004cost\030\005 \001(\001\022\032\n\022cost_per_ki" + - "lometer\030\006 \001(\001\022C\n\016distance_limit\030\007 \001(\0132+." + - "google.cloud.optimization.v1.DistanceLim" + - "it\022(\n\005delay\030\010 \001(\0132\031.google.protobuf.Dura" + - "tion\"\201\001\n\010Waypoint\022:\n\010location\030\001 \001(\0132&.go" + - "ogle.cloud.optimization.v1.LocationH\000\022\022\n" + - "\010place_id\030\002 \001(\tH\000\022\024\n\014side_of_road\030\003 \001(\010B" + - "\017\n\rlocation_type\"R\n\010Location\022$\n\007lat_lng\030" + - "\001 \001(\0132\023.google.type.LatLng\022\024\n\007heading\030\002 " + - "\001(\005H\000\210\001\001B\n\n\010_heading\"\221\004\n\tBreakRule\022L\n\016br" + - "eak_requests\030\001 \003(\01324.google.cloud.optimi" + - "zation.v1.BreakRule.BreakRequest\022Z\n\025freq" + - "uency_constraints\030\002 \003(\0132;.google.cloud.o" + - "ptimization.v1.BreakRule.FrequencyConstr" + - "aint\032\301\001\n\014BreakRequest\022=\n\023earliest_start_" + - "time\030\001 \001(\0132\032.google.protobuf.TimestampB\004" + - "\342A\001\002\022;\n\021latest_start_time\030\002 \001(\0132\032.google" + - ".protobuf.TimestampB\004\342A\001\002\0225\n\014min_duratio" + - "n\030\003 \001(\0132\031.google.protobuf.DurationB\004\342A\001\002" + - "\032\225\001\n\023FrequencyConstraint\022;\n\022min_break_du" + - "ration\030\001 \001(\0132\031.google.protobuf.DurationB" + - "\004\342A\001\002\022A\n\030max_inter_break_duration\030\002 \001(\0132" + - "\031.google.protobuf.DurationB\004\342A\001\002\"\303\026\n\rShi" + - "pmentRoute\022\025\n\rvehicle_index\030\001 \001(\005\022\025\n\rveh" + - "icle_label\030\002 \001(\t\0226\n\022vehicle_start_time\030\005" + - " \001(\0132\032.google.protobuf.Timestamp\0224\n\020vehi" + - "cle_end_time\030\006 \001(\0132\032.google.protobuf.Tim" + - "estamp\022A\n\006visits\030\007 \003(\01321.google.cloud.op" + - "timization.v1.ShipmentRoute.Visit\022K\n\013tra" + - "nsitions\030\010 \003(\01326.google.cloud.optimizati" + - "on.v1.ShipmentRoute.Transition\022#\n\033has_tr" + - "affic_infeasibilities\030\t \001(\010\022S\n\016route_pol" + - "yline\030\n \001(\0132;.google.cloud.optimization." + - "v1.ShipmentRoute.EncodedPolyline\022A\n\006brea" + - "ks\030\013 \003(\01321.google.cloud.optimization.v1." + - "ShipmentRoute.Break\022@\n\007metrics\030\014 \001(\0132/.g" + - "oogle.cloud.optimization.v1.AggregatedMe" + - "trics\022P\n\013route_costs\030\021 \003(\0132;.google.clou" + - "d.optimization.v1.ShipmentRoute.RouteCos" + - "tsEntry\022\030\n\020route_total_cost\030\022 \001(\001\022E\n\tend" + - "_loads\030\r \003(\0132..google.cloud.optimization" + - ".v1.CapacityQuantityB\002\030\001\022P\n\014travel_steps" + - "\030\016 \003(\01326.google.cloud.optimization.v1.Sh" + - "ipmentRoute.TravelStepB\002\030\001\0225\n\016vehicle_de" + - "tour\030\017 \001(\0132\031.google.protobuf.DurationB\002\030" + - "\001\022W\n\030delay_before_vehicle_end\030\020 \001(\01321.go" + - "ogle.cloud.optimization.v1.ShipmentRoute" + - ".DelayB\002\030\001\032h\n\005Delay\022.\n\nstart_time\030\001 \001(\0132" + - "\032.google.protobuf.Timestamp\022+\n\010duration\030" + - "\002 \001(\0132\031.google.protobuf.Duration:\002\030\001\032\365\004\n" + - "\005Visit\022\026\n\016shipment_index\030\001 \001(\005\022\021\n\tis_pic" + - "kup\030\002 \001(\010\022\033\n\023visit_request_index\030\003 \001(\005\022." + - "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" + - "estamp\022X\n\014load_demands\030\013 \003(\0132B.google.cl" + - "oud.optimization.v1.ShipmentRoute.Visit." + - "LoadDemandsEntry\022)\n\006detour\030\006 \001(\0132\031.googl" + - "e.protobuf.Duration\022\026\n\016shipment_label\030\007 " + - "\001(\t\022\023\n\013visit_label\030\010 \001(\t\022I\n\rarrival_load" + - "s\030\t \003(\0132..google.cloud.optimization.v1.C" + - "apacityQuantityB\002\030\001\022Q\n\022delay_before_star" + - "t\030\n \001(\01321.google.cloud.optimization.v1.S" + - "hipmentRoute.DelayB\002\030\001\022C\n\007demands\030\005 \003(\0132" + - "..google.cloud.optimization.v1.CapacityQ" + - "uantityB\002\030\001\032_\n\020LoadDemandsEntry\022\013\n\003key\030\001" + - " \001(\t\022:\n\005value\030\002 \001(\0132+.google.cloud.optim" + - "ization.v1.Shipment.Load:\0028\001\032\344\005\n\nTransit" + - "ion\0222\n\017travel_duration\030\001 \001(\0132\031.google.pr" + - "otobuf.Duration\022\036\n\026travel_distance_meter" + - "s\030\002 \001(\001\022 \n\030traffic_info_unavailable\030\003 \001(" + - "\010\0221\n\016delay_duration\030\004 \001(\0132\031.google.proto" + - "buf.Duration\0221\n\016break_duration\030\005 \001(\0132\031.g" + - "oogle.protobuf.Duration\0220\n\rwait_duration" + - "\030\006 \001(\0132\031.google.protobuf.Duration\0221\n\016tot" + - "al_duration\030\007 \001(\0132\031.google.protobuf.Dura" + - "tion\022.\n\nstart_time\030\010 \001(\0132\032.google.protob" + - "uf.Timestamp\022S\n\016route_polyline\030\t \001(\0132;.g" + - "oogle.cloud.optimization.v1.ShipmentRout" + - "e.EncodedPolyline\022_\n\rvehicle_loads\030\013 \003(\013" + - "2H.google.cloud.optimization.v1.Shipment" + - "Route.Transition.VehicleLoadsEntry\022A\n\005lo" + - "ads\030\n \003(\0132..google.cloud.optimization.v1" + - ".CapacityQuantityB\002\030\001\032l\n\021VehicleLoadsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google." + - "cloud.optimization.v1.ShipmentRoute.Vehi" + - "cleLoad:\0028\001\032\035\n\013VehicleLoad\022\016\n\006amount\030\001 \001" + - "(\003\032!\n\017EncodedPolyline\022\016\n\006points\030\001 \001(\t\032d\n" + - "\005Break\022.\n\nstart_time\030\001 \001(\0132\032.google.prot" + - "obuf.Timestamp\022+\n\010duration\030\002 \001(\0132\031.googl" + - "e.protobuf.Duration\032\315\001\n\nTravelStep\022+\n\010du" + - "ration\030\001 \001(\0132\031.google.protobuf.Duration\022" + - "\027\n\017distance_meters\030\002 \001(\001\022 \n\030traffic_info" + - "_unavailable\030\003 \001(\010\022S\n\016route_polyline\030\004 \001" + - "(\0132;.google.cloud.optimization.v1.Shipme" + - "ntRoute.EncodedPolyline:\002\030\001\0321\n\017RouteCost" + - "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"\376" + - "\004\n\017SkippedShipment\022\r\n\005index\030\001 \001(\005\022\r\n\005lab" + - "el\030\002 \001(\t\022E\n\007reasons\030\003 \003(\01324.google.cloud" + - ".optimization.v1.SkippedShipment.Reason\032" + - "\205\004\n\006Reason\022G\n\004code\030\001 \001(\01629.google.cloud." + - "optimization.v1.SkippedShipment.Reason.C" + - "ode\022\"\n\025example_vehicle_index\030\002 \001(\005H\000\210\001\001\022" + - "&\n\036example_exceeded_capacity_type\030\003 \001(\t\"" + - "\313\002\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\016\n\nNO_VEH" + - "ICLE\020\001\022#\n\037DEMAND_EXCEEDS_VEHICLE_CAPACIT" + - "Y\020\002\0225\n1CANNOT_BE_PERFORMED_WITHIN_VEHICL" + - "E_DISTANCE_LIMIT\020\003\0225\n1CANNOT_BE_PERFORME" + - "D_WITHIN_VEHICLE_DURATION_LIMIT\020\004\022<\n8CAN" + - "NOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_D" + - "URATION_LIMIT\020\005\0223\n/CANNOT_BE_PERFORMED_W" + - "ITHIN_VEHICLE_TIME_WINDOWS\020\006\022\027\n\023VEHICLE_" + - "NOT_ALLOWED\020\007B\030\n\026_example_vehicle_index\"" + - "\330\005\n\021AggregatedMetrics\022 \n\030performed_shipm" + - "ent_count\030\001 \001(\005\0222\n\017travel_duration\030\002 \001(\013" + - "2\031.google.protobuf.Duration\0220\n\rwait_dura" + - "tion\030\003 \001(\0132\031.google.protobuf.Duration\0221\n" + - "\016delay_duration\030\004 \001(\0132\031.google.protobuf." + - "Duration\0221\n\016break_duration\030\005 \001(\0132\031.googl" + - "e.protobuf.Duration\0221\n\016visit_duration\030\006 " + - "\001(\0132\031.google.protobuf.Duration\0221\n\016total_" + - "duration\030\007 \001(\0132\031.google.protobuf.Duratio" + - "n\022\036\n\026travel_distance_meters\030\010 \001(\001\022P\n\tmax" + - "_loads\030\t \003(\0132=.google.cloud.optimization" + - ".v1.AggregatedMetrics.MaxLoadsEntry\022M\n\005c" + - "osts\030\n \003(\0132:.google.cloud.optimization.v" + - "1.AggregatedMetrics.CostsEntryB\002\030\001\022\026\n\nto" + - "tal_cost\030\013 \001(\001B\002\030\001\032h\n\rMaxLoadsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.o" + - "ptimization.v1.ShipmentRoute.VehicleLoad" + - ":\0028\001\032,\n\nCostsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + - "\030\002 \001(\001:\0028\001\"\237\006\n\032InjectedSolutionConstrain" + - "t\022;\n\006routes\030\001 \003(\0132+.google.cloud.optimiz" + - "ation.v1.ShipmentRoute\022H\n\021skipped_shipme" + - "nts\030\002 \003(\0132-.google.cloud.optimization.v1", - ".SkippedShipment\022m\n\026constraint_relaxatio" + - "ns\030\003 \003(\0132M.google.cloud.optimization.v1." + - "InjectedSolutionConstraint.ConstraintRel" + - "axation\032\212\004\n\024ConstraintRelaxation\022m\n\013rela" + - "xations\030\001 \003(\0132X.google.cloud.optimizatio" + - "n.v1.InjectedSolutionConstraint.Constrai" + - "ntRelaxation.Relaxation\022\027\n\017vehicle_indic" + - "es\030\002 \003(\005\032\351\002\n\nRelaxation\022m\n\005level\030\001 \001(\0162^" + - ".google.cloud.optimization.v1.InjectedSo" + - "lutionConstraint.ConstraintRelaxation.Re" + - "laxation.Level\0222\n\016threshold_time\030\002 \001(\0132\032" + - ".google.protobuf.Timestamp\022\035\n\025threshold_" + - "visit_count\030\003 \001(\005\"\230\001\n\005Level\022\025\n\021LEVEL_UNS" + - "PECIFIED\020\000\022%\n!RELAX_VISIT_TIMES_AFTER_TH" + - "RESHOLD\020\001\0222\n.RELAX_VISIT_TIMES_AND_SEQUE" + - "NCE_AFTER_THRESHOLD\020\002\022\035\n\031RELAX_ALL_AFTER" + - "_THRESHOLD\020\003\"\375\002\n\034OptimizeToursValidation" + - "Error\022\014\n\004code\030\001 \001(\005\022\024\n\014display_name\030\002 \001(" + - "\t\022Y\n\006fields\030\003 \003(\0132I.google.cloud.optimiz" + - "ation.v1.OptimizeToursValidationError.Fi" + - "eldReference\022\025\n\rerror_message\030\004 \001(\t\022\030\n\020o" + - "ffending_values\030\005 \001(\t\032\254\001\n\016FieldReference" + - "\022\014\n\004name\030\001 \001(\t\022\017\n\005index\030\002 \001(\005H\000\022\r\n\003key\030\004" + - " \001(\tH\000\022\\\n\tsub_field\030\003 \001(\0132I.google.cloud" + - ".optimization.v1.OptimizeToursValidation" + - "Error.FieldReferenceB\016\n\014index_or_key2\340\004\n" + - "\014FleetRouting\022\342\001\n\rOptimizeTours\0222.google" + - ".cloud.optimization.v1.OptimizeToursRequ" + - "est\0323.google.cloud.optimization.v1.Optim" + - "izeToursResponse\"h\202\323\344\223\002b\"1/v1/{parent=pr" + - "ojects/*/locations/*}:optimizeTours:\001*Z*" + - "\"%/v1/{parent=projects/*}:optimizeTours:" + - "\001*\022\224\002\n\022BatchOptimizeTours\0227.google.cloud" + - ".optimization.v1.BatchOptimizeToursReque" + - "st\032\035.google.longrunning.Operation\"\245\001\312A0\n" + - "\032BatchOptimizeToursResponse\022\022AsyncModelM" + - "etadata\202\323\344\223\002l\"6/v1/{parent=projects/*/lo" + - "cations/*}:batchOptimizeTours:\001*Z/\"*/v1/" + - "{parent=projects/*}:batchOptimizeTours:\001" + - "*\032T\312A cloudoptimization.googleapis.com\322A" + - ".https://www.googleapis.com/auth/cloud-p" + - "latformB}\n com.google.cloud.optimization" + - ".v1B\021FleetRoutingProtoP\001ZDcloud.google.c" + - "om/go/optimization/apiv1/optimizationpb;" + - "optimizationpbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursRequest_descriptor, - new java.lang.String[] { "Parent", "Timeout", "Model", "SolvingMode", "SearchMode", "InjectedFirstSolutionRoutes", "InjectedSolutionConstraint", "RefreshDetailsRoutes", "InterpretInjectedSolutionsUsingLabels", "ConsiderRoadTraffic", "PopulatePolylines", "PopulateTransitionPolylines", "AllowLargeDeadlineDespiteInterruptionRisk", "UseGeodesicDistances", "GeodesicMetersPerSecond", "MaxValidationErrors", "Label", "PopulateTravelStepPolylines", "GeodesicMetersPerSecond", "MaxValidationErrors", }); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor, - new java.lang.String[] { "Routes", "RequestLabel", "SkippedShipments", "ValidationErrors", "Metrics", "TotalCost", }); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor = - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor, - new java.lang.String[] { "AggregatedRouteMetrics", "SkippedMandatoryShipmentCount", "UsedVehicleCount", "EarliestVehicleStartTime", "LatestVehicleEndTime", "Costs", "TotalCost", }); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor = - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursResponse_Metrics_CostsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor, - new java.lang.String[] { "Parent", "ModelConfigs", }); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor = - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor, - new java.lang.String[] { "DisplayName", "InputConfig", "OutputConfig", "EnableCheckpoints", }); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BatchOptimizeToursResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_optimization_v1_ShipmentModel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor, - new java.lang.String[] { "Shipments", "Vehicles", "MaxActiveVehicles", "GlobalStartTime", "GlobalEndTime", "GlobalDurationCostPerHour", "DurationDistanceMatrices", "DurationDistanceMatrixSrcTags", "DurationDistanceMatrixDstTags", "TransitionAttributes", "ShipmentTypeIncompatibilities", "ShipmentTypeRequirements", "PrecedenceRules", "BreakRules", "MaxActiveVehicles", }); - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor, - new java.lang.String[] { "Rows", "VehicleStartTag", }); - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_DurationDistanceMatrix_Row_descriptor, - new java.lang.String[] { "Durations", "Meters", }); - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_PrecedenceRule_descriptor, - new java.lang.String[] { "FirstIndex", "FirstIsDelivery", "SecondIndex", "SecondIsDelivery", "OffsetDuration", "FirstIndex", "SecondIndex", }); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor, - new java.lang.String[] { "BreakRequests", "FrequencyConstraints", }); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_BreakRequest_descriptor, - new java.lang.String[] { "EarliestStartTime", "LatestStartTime", "MinDuration", }); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentModel_BreakRule_FrequencyConstraint_descriptor, - new java.lang.String[] { "MinBreakDuration", "MaxInterBreakDuration", }); - internal_static_google_cloud_optimization_v1_Shipment_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_optimization_v1_Shipment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_descriptor, - new java.lang.String[] { "Pickups", "Deliveries", "LoadDemands", "PenaltyCost", "AllowedVehicleIndices", "CostsPerVehicle", "CostsPerVehicleIndices", "PickupToDeliveryRelativeDetourLimit", "PickupToDeliveryAbsoluteDetourLimit", "PickupToDeliveryTimeLimit", "ShipmentType", "Label", "Ignore", "Demands", "PenaltyCost", "PickupToDeliveryRelativeDetourLimit", }); - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor = - internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor, - new java.lang.String[] { "ArrivalLocation", "ArrivalWaypoint", "DepartureLocation", "DepartureWaypoint", "Tags", "TimeWindows", "Duration", "Cost", "LoadDemands", "VisitTypes", "Label", "Demands", }); - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor = - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_VisitRequest_LoadDemandsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor = - internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_Shipment_Load_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_Load_descriptor, - new java.lang.String[] { "Amount", }); - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor = - internal_static_google_cloud_optimization_v1_Shipment_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Shipment_LoadDemandsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentTypeIncompatibility_descriptor, - new java.lang.String[] { "Types", "IncompatibilityMode", }); - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentTypeRequirement_descriptor, - new java.lang.String[] { "RequiredShipmentTypeAlternatives", "DependentShipmentTypes", "RequirementMode", }); - internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_optimization_v1_RouteModifiers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_RouteModifiers_descriptor, - new java.lang.String[] { "AvoidTolls", "AvoidHighways", "AvoidFerries", "AvoidIndoor", }); - internal_static_google_cloud_optimization_v1_Vehicle_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_optimization_v1_Vehicle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_descriptor, - new java.lang.String[] { "TravelMode", "RouteModifiers", "StartLocation", "StartWaypoint", "EndLocation", "EndWaypoint", "StartTags", "EndTags", "StartTimeWindows", "EndTimeWindows", "TravelDurationMultiple", "UnloadingPolicy", "LoadLimits", "CostPerHour", "CostPerTraveledHour", "CostPerKilometer", "FixedCost", "UsedIfRouteIsEmpty", "RouteDurationLimit", "TravelDurationLimit", "RouteDistanceLimit", "ExtraVisitDurationForVisitType", "BreakRule", "Label", "Ignore", "BreakRuleIndices", "Capacities", "StartLoadIntervals", "EndLoadIntervals", "TravelDurationMultiple", }); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor, - new java.lang.String[] { "MaxLoad", "SoftMaxLoad", "CostPerUnitAboveSoftMax", "StartLoadInterval", "EndLoadInterval", "MaxLoad", }); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimit_Interval_descriptor, - new java.lang.String[] { "Min", "Max", "Max", }); - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_DurationLimit_descriptor, - new java.lang.String[] { "MaxDuration", "SoftMaxDuration", "CostPerHourAfterSoftMax", "QuadraticSoftMaxDuration", "CostPerSquareHourAfterQuadraticSoftMax", "CostPerHourAfterSoftMax", "CostPerSquareHourAfterQuadraticSoftMax", }); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_LoadLimitsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor = - internal_static_google_cloud_optimization_v1_Vehicle_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Vehicle_ExtraVisitDurationForVisitTypeEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_TimeWindow_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_optimization_v1_TimeWindow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_TimeWindow_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "SoftStartTime", "SoftEndTime", "CostPerHourBeforeSoftStartTime", "CostPerHourAfterSoftEndTime", "CostPerHourBeforeSoftStartTime", "CostPerHourAfterSoftEndTime", }); - internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_optimization_v1_CapacityQuantity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_CapacityQuantity_descriptor, - new java.lang.String[] { "Type", "Value", }); - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_CapacityQuantityInterval_descriptor, - new java.lang.String[] { "Type", "MinValue", "MaxValue", "MinValue", "MaxValue", }); - internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_optimization_v1_DistanceLimit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_DistanceLimit_descriptor, - new java.lang.String[] { "MaxMeters", "SoftMaxMeters", "CostPerKilometerBelowSoftMax", "CostPerKilometerAboveSoftMax", "MaxMeters", "SoftMaxMeters", "CostPerKilometerBelowSoftMax", "CostPerKilometerAboveSoftMax", }); - internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_optimization_v1_TransitionAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_TransitionAttributes_descriptor, - new java.lang.String[] { "SrcTag", "ExcludedSrcTag", "DstTag", "ExcludedDstTag", "Cost", "CostPerKilometer", "DistanceLimit", "Delay", }); - internal_static_google_cloud_optimization_v1_Waypoint_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_optimization_v1_Waypoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Waypoint_descriptor, - new java.lang.String[] { "Location", "PlaceId", "SideOfRoad", "LocationType", }); - internal_static_google_cloud_optimization_v1_Location_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_optimization_v1_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_Location_descriptor, - new java.lang.String[] { "LatLng", "Heading", "Heading", }); - internal_static_google_cloud_optimization_v1_BreakRule_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_optimization_v1_BreakRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BreakRule_descriptor, - new java.lang.String[] { "BreakRequests", "FrequencyConstraints", }); - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor = - internal_static_google_cloud_optimization_v1_BreakRule_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BreakRule_BreakRequest_descriptor, - new java.lang.String[] { "EarliestStartTime", "LatestStartTime", "MinDuration", }); - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor = - internal_static_google_cloud_optimization_v1_BreakRule_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_BreakRule_FrequencyConstraint_descriptor, - new java.lang.String[] { "MinBreakDuration", "MaxInterBreakDuration", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_optimization_v1_ShipmentRoute_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor, - new java.lang.String[] { "VehicleIndex", "VehicleLabel", "VehicleStartTime", "VehicleEndTime", "Visits", "Transitions", "HasTrafficInfeasibilities", "RoutePolyline", "Breaks", "Metrics", "RouteCosts", "RouteTotalCost", "EndLoads", "TravelSteps", "VehicleDetour", "DelayBeforeVehicleEnd", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Delay_descriptor, - new java.lang.String[] { "StartTime", "Duration", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor, - new java.lang.String[] { "ShipmentIndex", "IsPickup", "VisitRequestIndex", "StartTime", "LoadDemands", "Detour", "ShipmentLabel", "VisitLabel", "ArrivalLoads", "DelayBeforeStart", "Demands", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Visit_LoadDemandsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor, - new java.lang.String[] { "TravelDuration", "TravelDistanceMeters", "TrafficInfoUnavailable", "DelayDuration", "BreakDuration", "WaitDuration", "TotalDuration", "StartTime", "RoutePolyline", "VehicleLoads", "Loads", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Transition_VehicleLoadsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_VehicleLoad_descriptor, - new java.lang.String[] { "Amount", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_EncodedPolyline_descriptor, - new java.lang.String[] { "Points", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_Break_descriptor, - new java.lang.String[] { "StartTime", "Duration", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(6); - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_TravelStep_descriptor, - new java.lang.String[] { "Duration", "DistanceMeters", "TrafficInfoUnavailable", "RoutePolyline", }); - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor = - internal_static_google_cloud_optimization_v1_ShipmentRoute_descriptor.getNestedTypes().get(7); - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_ShipmentRoute_RouteCostsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_optimization_v1_SkippedShipment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor, - new java.lang.String[] { "Index", "Label", "Reasons", }); - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor = - internal_static_google_cloud_optimization_v1_SkippedShipment_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_SkippedShipment_Reason_descriptor, - new java.lang.String[] { "Code", "ExampleVehicleIndex", "ExampleExceededCapacityType", "ExampleVehicleIndex", }); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor, - new java.lang.String[] { "PerformedShipmentCount", "TravelDuration", "WaitDuration", "DelayDuration", "BreakDuration", "VisitDuration", "TotalDuration", "TravelDistanceMeters", "MaxLoads", "Costs", "TotalCost", }); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor = - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_AggregatedMetrics_MaxLoadsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor = - internal_static_google_cloud_optimization_v1_AggregatedMetrics_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_AggregatedMetrics_CostsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor, - new java.lang.String[] { "Routes", "SkippedShipments", "ConstraintRelaxations", }); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor = - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor, - new java.lang.String[] { "Relaxations", "VehicleIndices", }); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor = - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_InjectedSolutionConstraint_ConstraintRelaxation_Relaxation_descriptor, - new java.lang.String[] { "Level", "ThresholdTime", "ThresholdVisitCount", }); - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor, - new java.lang.String[] { "Code", "DisplayName", "Fields", "ErrorMessage", "OffendingValues", }); - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor = - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_optimization_v1_OptimizeToursValidationError_FieldReference_descriptor, - new java.lang.String[] { "Name", "Index", "Key", "SubField", "IndexOrKey", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.optimization.v1.AsyncModelProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/versions.txt b/versions.txt index 0eb7d5886aa4..1a4a39bf9b6d 100644 --- a/versions.txt +++ b/versions.txt @@ -683,4 +683,4 @@ grpc-google-cloud-policy-troubleshooter-v3:1.27.0:1.27.0 google-shopping-merchant-reports:0.4.0:0.4.0 proto-google-shopping-merchant-reports-v1beta:0.4.0:0.4.0 grpc-google-shopping-merchant-reports-v1beta:0.4.0:0.4.0 -proto-google-cloud-alloydb-connectors-v1:0.6.0:0.6.0 \ No newline at end of file +proto-google-cloud-alloydb-connectors-v1:0.6.0:0.6.0